28, May 2012

problems on line 2 - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: problems on line 2
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: problems on line 2  (Read 1512 times)
Cyberpunk Wannabe
*
Gender: Male
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: Male
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: Male
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 Smiley

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: Male
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: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #4 on: Mar 24, 2007, 07:38:22 am »

/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.

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6286
Tags : upload image Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: problems on line 2
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 07:00:33 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.