Current location: Hot Scripts Forums » Programming Languages » PHP » Help with my config.php and base path...getting error: failed to open stream: ...


Help with my config.php and base path...getting error: failed to open stream: ...

Reply
  #1 (permalink)  
Old 07-06-06, 07:25 PM
shannonw shannonw is offline
New Member
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question Help with my config.php and base path...getting error: failed to open stream: ...

I am a beginner I am am trying to get a script to work that I just purchased. I am editing the config.php file. I am not sure what the base path i supposed to consist of.

PHP Code:

// Base path (e.g. '/home/username/public_html/')

$sm['path_base'] = ' '
Is it my domain name and the subfolder where I uploaded the script? What user name would I be putting there? Or is it just my subfolder? Like this?

PHP Code:

// Base path (e.g. '/home/username/public_html/')

$sm['path_base'] = '/[COLOR=Blue]mysubfolder[COLOR]/'
Here's the error I get when trying to load the page:
[error]
Warning: main(/home/content/s/h/a/shancmc/html/myspaceresource/ lib/functions.php): failed to open stream: No such file or directory in /home/content/s/h/a/shancmc/html/myspaceresource/config.php on line 73

Fatal error: main(): Failed opening required '/home/content/s/h/a/shancmc/html/myspaceresource/ lib/functions.php' (include_path='.:/usr/local/lib/php') in /home/content/s/h/a/shancmc/html/myspaceresource/config.php on line 73[/error]


Thanks in advance for any help I can get

Last edited by shannonw; 07-06-06 at 07:28 PM. Reason: added info to title
Reply With Quote
  #2 (permalink)  
Old 07-07-06, 10:02 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
you probably have to fill in the path to the folder where you store that script. you can do this by either typing the exact path: usr/www/public_html/script (depends on your server), or you can use: $_SERVER['DOCUMENT_ROOT']."/script"

good luck,
UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #3 (permalink)  
Old 07-07-06, 11:38 AM
shannonw shannonw is offline
New Member
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks UnrealEd.

I did have to have the exact path. Now that I have it working I need to figure out how to make it work correctly. Since it looks all wrong. I'm sure I'll be back later to ask more questions.
Reply With Quote
Reply

Bookmarks


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

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
POSTing to PHP, - making a install script urlguy PHP 4 03-30-05 04:48 PM
Help with config.php xandri PHP 3 11-16-04 12:19 PM


All times are GMT -5. The time now is 07:20 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.