Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2006
    Location
    Pentiction, BC, Canada
    Posts
    3

    Unhappy Unanswered: 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

  2. #2
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •