Jump to content

[SOLVED] Failed opening 'config.php' for inclusion....


zeeshan_haider000

Recommended Posts

Hi there,

For some reasons i am getting this error:

 

Warning: getnohayreciter(config.php) [function.getnohayreciter]: failed to open stream: No such file or directory in /homepages/46/d272861742/htdocs/i.com/sitev2/functions.php on line 30

Warning: getnohayreciter() [function.include]: Failed opening 'config.php' for inclusion (include_path='.:/usr/lib/php') in /homepages/46/d272861742/htdocs/i.com/sitev2/functions.php on line 30

Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /homepages/46/d272861742/htdocs/i.com/sitev2/functions.php on line 33

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /homepages/46/d272861742/htdocs/i.com/sitev2/functions.php on line 33
Error with the query
: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

 

And this is line 30 + 33:

function GetNohayReciter($cat){

include_once('config.php');

 

$query = "SELECT * FROM nohay WHERE Cat='".$cat."' ORDER BY Name";

$result = mysql_query($query) or die ("<h1>Error with the query</h1>:\n".mysql_error());

 

 

What am i doing wrong?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.