To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Misc Help > Linux/Unix Help

Linux/Unix Help Help with server-side Linux and Unix issues

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-25-2002, 03:03 PM   #1
penguinboy
Member
 
Join Date: Aug 2002
Posts: 30
weird error

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 is offline   Reply With Quote
Old 10-25-2002, 05:15 PM   #2
penguinboy
Member
 
Join Date: Aug 2002
Posts: 30
damn dreamweaver.

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....
penguinboy is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 09:16 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.