If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Failed to open stream errors (using php script with MySQL)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-05-06, 19:16
27amDotCom 27amDotCom is offline
Registered User
 
Join Date: Oct 2006
Location: Pentiction, BC, Canada
Posts: 3
Unhappy Failed to open stream errors (using php script with MySQL)

I'm really at a loss. In fact, I'd have no problem sending $10-$30 to someone via PayPal if they can get this working for me. It should be simple... for those who know servers, MySQL and the likes... but that's not me.

I keep getting these errors:
Warning: main(../../_scripts/PromoCodeScript/includes/config.php): failed to open stream: No such file or directory

I'm trying to install a new script. I am hosted with GoDaddy on a Linux OS. An install.php script is to install the whole thing and then I should be able to access an admin area to use it.

But that's just not working.

The install.php does go through the installation, creates the config file and tells me the Installation went okay. As soon as I head over to the admin area, I get messages like the one above or more specifically like this:

Warning: main(../../_scripts/PromoCodeScript/includes/config.php): failed to open stream: No such file or directory in /home/content/r/o/b/robtoth27/html/DearEmployee/admin/index.php on line 4

But the errors reference lines 4, 5, 6 and 28.

Line 4 of the .php file (when I open it in Dreamweaver) is:
include ("../includes/config.php");

Line 5 is...
mysql_connect($db_host,$db_user,$db_pass);

Line 6 is...
mysql_select_db($db_name);

Line 28 is...
include("./includes/inc_index.php");


Is the above information of any use? Does anyone have even a suspesion of what the error could be?

I'll mention that the script (a promo/discount script) is sold online and has several hundred customers who are well setup. So the script seems to work. But let's just say their tech support is lacking at best (which I'll address with them later but right now I need this script live and can't keep waiting).

Any advice is welcomed. Rob Toth
Reply With Quote
  #2 (permalink)  
Old 10-10-06, 20:36
pakcik_kantin pakcik_kantin is offline
Registered User
 
Join Date: Jul 2004
Posts: 62
Greetings
Do you have /home/content/r/o/b/robtoth27/html/DearEmployee/admin/index.php in that directory.
If yes then try a single file with single line with :
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
Can you make the connection
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On