Click to See Complete Forum and Search --> : weird error


penguinboy
10-25-2002, 03:03 PM
ok, i've only been coding for about 3 months, but this just seems weird to me


1) i'm doing php work for an isp, and the server uses linux

2) when i edit code, i use dreamweaver (i can ssh into the server and use MC, but i like dreamweaver)

well..

((on the windowz machine))
lets say i have a file called hello.php

and its saved in c:/www/mysite/.plugins

well, i got the bright idea that i should make a temp dir

so i made c:/www/temp

now i work on the files in /temp then i upload them to the
computer, and i always have a back up in /www/mysite/.plugins

so lets say i edit the file hello.php in /www/mysite/.plugins

and i upload it to the server, and everything works just fine

then lets say i save the file to /temp/hello.php

and just for giggles i upload it to the server

AND IT CRASHES!!!!!

it gives me this error


Fatal error: Failed opening required '../www/.include/include.h' (include_path='.:/usr/local/lib/php') in /home/bbonds/www/.plugins/hello.php on line 3


its the same exact code, i changed NOTHING, just save it do a temp dir in windows then uploaded it to the linux server

any one know why????

penguinboy
10-25-2002, 05:15 PM
okay .. okay i found the problem, dreamweaver screwed me

look at this

when i save the code it looked like this

required '../.include/include.h'

and it worked.

then i save the same exact code to my temp dir and it changed it to read

required '../www/.include/include.h'

so when i uploaded it to the server it wasn't looking in the right place.....

pretty crappy, but i'm glad i found it, now i just gotta figure out how to turn that "feature" off in dreamweaver....