39 users online (0 members and 39 guests)  


  Results 1 to 2 of 2

Related

  1. Replies: 0
  2. Replies: 3
  3. Replies: 2
  4. mysql connection sometime failed    Forum: Databases
    Replies: 16
  5. Video stream with ASP.NET    Forum: ASP Forum
    Replies: 2
  1. #1
    27amDotCom's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2006
    Location
    Penticton, BC, Canada
    Posts
    2

    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

  2. #2
    vinyl-junkie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    721

    Re: Failed to open stream errors (using php script with MySQL)

    Before you pay someone to do this for you, you might just go over your documentation one more time and make sure you've followed the instructions to the letter. It sounds to me like you didn't preserve the directory structure that they want you to have, or you didn't upload everything to the server that you should have. Another common problem is not editing the appropriate file(s) and changing default usernames and passwords to whatever you setup for a database.

    After doing all that, if you still need some help, PM me and I'll see what I can do for you.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more



Tags for this Thread