Jump to content

ERROR using require_once("http://www.example.com/connect_file.php");


seany123

Recommended Posts

As the title above says im trying to use this code:

 

require_once("http://www.example.com/connect_file.php");

 

its giving this error:

 

Warning: mysql_query() [function.mysql-query]: Access denied for user 'username'@'localhost' (using password: NO) in /template/header.php on line 56

 

if i was to just use this code it works fine:

 

require_once("./connect_file.php");

 

Just incase it makes a difference, im testing this on index.php, however the codes above are not inside index.php, instead they are inside my /templates/header.php file which is included at the top of index.php

 

any ideas?

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.