Cyberpunk Wannabe
Gender:
Posts: 35
234 credits Members referred : 0
If at first you dont suceed, try try again
« on: Mar 23, 2007, 01:03:29 am »
I know this is going to be something i will kick myself at but i have done a number of tutorials and scripts and none of them have had any success, so alas im going to ask for help!
when i run foto_upload i get the following error:
Code:
Warning: main(/Library/WebServer/Documents/images/upload_class.php) [function.main]: failed to open stream: No such file or directory in /Users/ross/Sites/image/foto_upload.php on line 2
Warning: main() [function.include]: Failed opening '/Library/WebServer/Documents/images/upload_class.php' for inclusion (include_path='.:') in /Users/ross/Sites/image/foto_upload.php on line 2
Fatal error: Class foto_upload: Cannot inherit from undefined class file_upload in /Users/ross/Sites/image/foto_upload.php on line 7
what is it that everyone else seems to have done
i'm also running my server on os x.4 Global variables are off. The default "upoad_tmp_dir" is the system temp dir.
Any pointers people?
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #1 on: Mar 23, 2007, 07:42:53 am »
compare the paths on your server with them of the script, this error is not related to the script.
if you need assistance about some include/require command you should check the php manual too
Cyberpunk Wannabe
Gender:
Posts: 35
234 credits Members referred : 0
If at first you dont suceed, try try again
« Reply #2 on: Mar 23, 2007, 06:27:07 pm »
Thanks for your reply
however the path "/Library/WebServer/Documents/" is always getting called.
What is causing this to happen?
i am unclear on what to change...
Is the problem all to do with this line?
include ($_SERVER['DOCUMENT_ROOT']."/images/upload_class.php")
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
It's time to use PHP5!
« Reply #3 on: Mar 23, 2007, 07:25:53 pm »
/Library/WebServer/Documents is your document root
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 5799
46391 credits Members referred : 3
/Library/WebServer/Documents is your document root
or the include path. When you include something that does not exists in the directory you seek it, php automatically searches for it in the include paths.