Page 1 of 1

php script doest work on server -> works on computer

Posted: Thu Feb 26, 2009 10:43 pm
by Greg_BigPhpAmator
Hi. Please explain me why some simple script (php) works on my computer (when set as server) and not working uploaded to server. The script is included on page home_top which page is included on page home. When I point directly script file works. Paths are OK because working on my computer. I get folowing errors:
Warning: fopen(banner.db): failed to open stream: No such file or directory in /home/content/m/i/a/miasik/html/Vancouver/skrypty/rotator/banner.php on line 13

Warning: flock(): supplied argument is not a valid stream resource in /home/content/m/i/a/miasik/html/Vancouver/skrypty/rotator/banner.php on line 14

Warning: feof(): supplied argument is not a valid stream resource in /home/content/m/i/a/miasik/html/Vancouver/skrypty/rotator/banner.php on line 15

Warning: fgets(): supplied argument is not a valid stream resource in /home/content/m/i/a/miasik/html/Vancouver/skrypty/rotator/banner.php on line 17

Warning: fgets(): supplied argument is not a valid stream resource in /home/content/m/i/a/miasik/html/Vancouver/skrypty/rotator/banner.php on line 18

Warning: flock(): supplied argument is not a valid stream resource in /home/content/m/i/a/miasik/html/Vancouver/skrypty/rotator/banner.php on line 25

Warning: fclose(): supplied argument is not a valid stream resource in /home/content/m/i/a/miasik/html/Vancouver/skrypty/rotator/banner.php on line 26

Re: php script doest work on server -> works on computer

Posted: Thu Feb 26, 2009 11:22 pm
by josh
Upload the missing file?

Re: php script doest work on server -> works on computer

Posted: Fri Feb 27, 2009 12:24 pm
by Greg_BigPhpAmator
all files are there. Script works when pointed directly. When included on page displays error in line 13 and others.........
Funny but I included other scripts and those doesnt work either. All scripts were working on my computer.

Re: php script doest work on server -> works on computer

Posted: Fri Feb 27, 2009 11:18 pm
by josh
You read your own error? What's the .db file