| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Mar 2004 Location: North Carolina
Posts: 2,130
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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 |
| |
| | #3 (permalink) |
| Domains my Dominion Join Date: Aug 2005 Location: Web 1.0
Posts: 9,556
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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 |
| |
| | #4 (permalink) |
| NamePros Member Join Date: Mar 2007 Location: Finland
Posts: 29
![]() | For your includes Code: $_SERVER['DOCUMENT_ROOT'] .'/path/to/file 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. |
| |
| | #5 (permalink) |
| NamePros Regular Join Date: Mar 2005
Posts: 442
![]() ![]() ![]() | 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.
|
| |
| | THREAD STARTER #6 (permalink) |
| Senior Member Join Date: Mar 2004 Location: North Carolina
Posts: 2,130
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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 |
| |
| | #7 (permalink) |
| NamePros Member Join Date: Mar 2007 Location: Finland
Posts: 29
![]() | 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. |
| |