fopen???

Discussion in 'PHP' started by DhDDL, Jul 24, 2007.

  1. #1
    i get that error when i try loading a script. Anyone got any idea

    Warning: fopen(/home/anime/public_html/uploader/wrar370.exe) [function.fopen]: failed to open stream: Permission denied in /home/anime/public_html/uploader/downloader.php on line 246

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/anime/public_html/uploader/downloader.php on line 247

    Warning: fclose(): supplied argument is not a valid stream resource in /home/anime/public_html/uploader/downloader.php on line 248
     
    DhDDL, Jul 24, 2007 IP
  2. lbalance

    lbalance Peon

    Messages:
    381
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    make sure that files permissions are readable.

    chmod it to 777 just to be sure
     
    lbalance, Jul 24, 2007 IP
  3. DhDDL

    DhDDL Peon

    Messages:
    194
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    its all 777. I did that first when it wouldnt work.


    By the way this script is a server to server transfer script. Its good just needs to be fixed
     
    DhDDL, Jul 24, 2007 IP
  4. pruad

    pruad Peon

    Messages:
    71
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    check the name 'wrar370.exe' carefully. Is it in lowercase on server really (some FTP clients can lie about it: to show lowercase allways)?
     
    pruad, Jul 24, 2007 IP
  5. DhDDL

    DhDDL Peon

    Messages:
    194
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    this is the script im using

    http://anime-concepts.com/uploader/sst.php


    the wrar..is winrar from the orignal site. iwanted to use that to test to see if it will work. but after upload it wont save on server..

    here is the script for the hole thing::

    script.inc.php :
    <?
    ////////////////////////////////////////////////////////////////////////////////
    //
    // Project : Server to Server Transfer [SST] 2
    // Filename : script.inc.php
    // Purpose : Javascript script library
    // Version : 2.1
    // Author : James Azarja
    //

    function status($msg)
    {
    echo "<SCRIPT>document.form.status.value=\"$msg\";</SCRIPT>\n";
    }

    function changebg()
    {
    echo "<SCRIPT>document.bgColor=\"#B22222\";</SCRIPT>\n";
    }

    function progress($progress,$max)
    {
    echo "<SCRIPT>showprogress($progress,$max);</SCRIPT>\n";
    }
    ?>

    sst.php:::

    <?
    ////////////////////////////////////////////////////////////////////////////////
    //
    // Project : Server to Server Transfer [SST] 2
    // Filename : sst.php
    // Purpose : SST Demo
    // Version : 2.1
    // Author : James Azarja
    //
    ob_implicit_flush(true);
    ?>
    <HTML>

    <HEAD>
    <META NAME="KEYWORDS" CONTENT="php sst transfer download upload moving document http">
    <META NAME="DESCRIPTION" CONTENT="Server to Server Transfer 2 - transfer your document from a server to another without download/uploading it first">
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
    <TITLE>Server to Server Transfer [SST]</TITLE>
    </HEAD>

    <BODY>

    <DIV ALIGN="center">
    <CENTER>
    <TABLE BORDER="1" CELLPADDING="4" CELLSPACING="0" WIDTH="600" BORDERCOLOR="#0068A0" BORDERCOLORLIGHT="#0068A0" BORDERCOLORDARK="#0068A0">
    <TR>
    <TD BGCOLOR="#0068A0">
    <P ALIGN="center"><B><FONT FACE="Arial" SIZE="2" COLOR="#FFFFFF">Server
    to Server Transfer 2</FONT></B></P>
    </TD>
    </TR>
    <TR>
    <TD>
    <?
    if (!$HTTP_POST_VARS) { $egFilename=dirname(__FILE__... } } ?>
     
    DhDDL, Jul 24, 2007 IP