Forum Moderators: coopster

Message Too Old, No Replies

windows server includes

         

joey tribiani

7:47 pm on Nov 14, 2003 (gmt 0)

10+ Year Member



HI! I am new to this. I have downloaded a php script which has the sole purpose of displaying how many users are browsing my website. the thing is i cant get the script to work. Im hosted on a windows 2000 platform not unix. I am using the following method to include the scripts output on to my main.html or main.php pages.

<? include"/cgi-bin/phpscr/online.php";?>

and this is what shows up on the webpage when i view it

Warning: main(/cgi-bin/phpscr/online.php): failed to open stream: No such file or directory in d:\websites\belj544352\www\into1.php on line 15

Warning: main(): Failed opening '/cgi-bin/phpscr/online.php' for inclusion (include_path='.;c:\php4\pear') in d:\websites\belj544352\www\into1.php on line 15

when i try the same thing with an extension of .html as the webpage it doesnt show anything.

Again im hosted on a windows 2000 server

Timotheos

11:31 pm on Nov 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey Joey,

I'm pretty new at this too but I'll give it try since no one else is answering.

It's looking for the relative location according to your php file. You could modify it to put in the whole directory structure. Something like
<? include "c:/inetpub/wwwroot/cgi-bin/phpscr/online.php"?>

Information on the include path is here [php.net].

Tim

joey tribiani

6:13 pm on Nov 15, 2003 (gmt 0)

10+ Year Member



cool.! Thx very much. It seems to work now. :)