php script doest work on server -> works on computer

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Greg_BigPhpAmator
Forum Newbie
Posts: 15
Joined: Thu Feb 12, 2009 1:56 pm

php script doest work on server -> works on computer

Post 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
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

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

Post by josh »

Upload the missing file?
Greg_BigPhpAmator
Forum Newbie
Posts: 15
Joined: Thu Feb 12, 2009 1:56 pm

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

Post 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.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

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

Post by josh »

You read your own error? What's the .db file
Post Reply