Er, what?

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

johnny6

Old GuyVIP Member
Impact
80
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

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.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
do you have settings.php file on the "cigarettes/directory" dir? :D
 
0
Close
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.
 
0
Close
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.
 
0
Close
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.
 
Last edited:
0
Close
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
 
0
Close
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.
 
0
Close
CatchedCatched

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back