NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page er, what?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 04-19-2007, 10:50 PM THREAD STARTER               #1 (permalink)
Senior Member
Join Date: Mar 2004
Location: North Carolina
Posts: 2,130
johnny6 has a brilliant futurejohnny6 has a brilliant futurejohnny6 has a brilliant futurejohnny6 has a brilliant futurejohnny6 has a brilliant futurejohnny6 has a brilliant futurejohnny6 has a brilliant futurejohnny6 has a brilliant futurejohnny6 has a brilliant futurejohnny6 has a brilliant futurejohnny6 has a brilliant future
 



er, what?


I have this error that's showing up on this site of mine - http://nationalcigarettes.com/ -

Warning: main(settings.php) [function.main]: failed to open stream: No such file or directory in http://www.nationalcigarettes.com/cigarettes/directory on line 9
????: NamePros.com http://www.namepros.com/programming/318761-er-what.html

Warning: main(settings.php) [function.main]: failed to open stream: No such file or directory in http://www.nationalcigarettes.com/cigarettes/directory on line 9

Fatal error: main() [function.require]: Failed opening required 'settings.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in http://www.nationalcigarettes.com/cigarettes/directory on line 9


please anyone tell me what the heck it means and how I can fix it..... I'm no whiz at this stuff! i'll give namebucks or something if someone can help me out.
__________________
Find the best property managers
johnny6 is offline  
Old 04-19-2007, 11:01 PM   #2 (permalink)
Senior Member
 
angisson's Avatar
Join Date: Mar 2006
Posts: 1,680
angisson has a brilliant futureangisson has a brilliant futureangisson has a brilliant futureangisson has a brilliant futureangisson has a brilliant futureangisson has a brilliant futureangisson has a brilliant futureangisson has a brilliant futureangisson has a brilliant futureangisson has a brilliant futureangisson has a brilliant future
 


Ethan Allen Fund Save The Children
do you have settings.php file on the "cigarettes/directory" dir?
angisson is offline  
Old 04-20-2007, 05:07 AM   #3 (permalink)
Domains my Dominion
 
sdsinc's Avatar
Join Date: Aug 2005
Location: Web 1.0
Posts: 9,556
sdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatness
 


Third World Education Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Animal Rescue Animal Cruelty AIDS/HIV Animal Rescue Wildlife Breast Cancer Animal Rescue Wildlife
If you are trying to include a file using require you should use an absolute server path like /var/www/html/yoursite/.
If you run phpinfo() you can find out the actual path where your scripts reside.
__________________
NameNewsletter.com - free lists of available domain names
ZoneFiles.net (beta) - ccTLD and gTLD droplists
sdsinc is offline  
Old 04-20-2007, 06:53 AM   #4 (permalink)
NamePros Member
 
jabba_29's Avatar
Join Date: Mar 2007
Location: Finland
Posts: 29
jabba_29 is an unknown quantity at this point
 



For your includes
Code:
$_SERVER['DOCUMENT_ROOT'] .'/path/to/file
should do it.
Or if you have access to .htaccess, set include_path to a specific existing folder.
__________________
Regards Jamie

Let the might of your compassion arise to bring a quick end
to the flowing stream of the blood and tears .....
Please hear my anguished words of truth.
jabba_29 is offline  
Old 04-20-2007, 08:38 AM   #5 (permalink)
NamePros Regular
Join Date: Mar 2005
Posts: 442
paaaaaaaaaa is a jewel in the roughpaaaaaaaaaa is a jewel in the roughpaaaaaaaaaa is a jewel in the rough
 



what is going on with that site. I have just managed to download your actuall php file.

Its looking for the settings.php file in the cigarettes/directory folder. Make sure its there and that it's readable. Also boost up your ftp program and make sure the chmod settings of that folder and any others is set to 755.

Are you trying to get the directory to show on the frontpage. If so what are you doing to do that? By doing this The script is trying to load settings.php relative from the root folder. As the settings. file is in cigarettes/directory folder it will not work. Change: require("settings.php") to require("cigarettes/directory/settings.php") and it will work. However if there are other includes in the script you may find more of the same problem.
__________________
Please add to my rep points if i was helpful. Thanks.

Content management system and online shop software
Last edited by paaaaaaaaaa; 04-20-2007 at 08:46 AM.
paaaaaaaaaa is offline  
Old 04-24-2007, 12:11 AM THREAD STARTER               #6 (permalink)
Senior Member
Join Date: Mar 2004
Location: North Carolina
Posts: 2,130
johnny6 has a brilliant futurejohnny6 has a brilliant futurejohnny6 has a brilliant futurejohnny6 has a brilliant futurejohnny6 has a brilliant futurejohnny6 has a brilliant futurejohnny6 has a brilliant futurejohnny6 has a brilliant futurejohnny6 has a brilliant futurejohnny6 has a brilliant futurejohnny6 has a brilliant future
 



hmm, i appreciate the efforts here... pretend i'm a walrus and you're trying to teach me english... i really don't get this stuff....

can anyone help me fix this? like screw around in the code and walk me through the problem? i'll give namebucks or paypal money or whatever
__________________
Find the best property managers
johnny6 is offline  
Old 04-28-2007, 07:58 AM   #7 (permalink)
NamePros Member
 
jabba_29's Avatar
Join Date: Mar 2007
Location: Finland
Posts: 29
jabba_29 is an unknown quantity at this point
 



Are you using a CMS?

I can probably help you, but you will need to grant me pretty high access to your site:
ftp and/or admin - need to see your raw php files.

If you need more help,just send me a PM.
__________________
Regards Jamie

Let the might of your compassion arise to bring a quick end
to the flowing stream of the blood and tears .....
Please hear my anguished words of truth.
jabba_29 is offline  
Closed Thread


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


Liquid Web Smart Servers  
All times are GMT -7. The time now is 12:31 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger