Jump to content

d22552000

Members
  • Posts

    535
  • Joined

  • Last visited

    Never

Posts posted by d22552000

  1. if ((($upload["type"] == "image/gif") || ($upload["type"] == "image/jpeg") || ($upload["type"] == "image/pjpeg")) && $upload["size"] < 20000000)

     

    Well, I (me) woudl do the following just for debugging's sake:

     

    if ($upload["size"] < 20000000) {
      if ($upload["type"] == "image/gif") {
        //call the function that does stuff if its valid
      } else if ($upload["type"] == "image/jpeg") {
        //call the function that does stuff if its valid
      } else if ($upload["type"] == "image/pjpeg") {
        //call the function that does stuff if its valid
      } else {
        return(false);
      }
    }
    
    
    

  2. I am trying a few js based ones:

     

    function imgLoad()
    {
    var strT = new String();
    document.getElementById("ShowImg").innerHTML= "";
    strT = document.ModReg.file1.value;
    if(strT != "")
    {
    strT = "<img id='Sample' src='" + strT + "' width='100' height='100'></img>";
    document.getElementById("ShowImg").innerHTML= strT;
    if(!LimitedSize())
    {
    alert("File Size is more than 100 KB");
    document.getElementById("ShowImg").innerHTML= "";
    }
    }
    }
    
    function LimitedSize()
    {
    var i;
    var y = document.images;
    for (i=0;i<y.length;i++)
    {
    if((y[i].id) == 'Sample')
    { 
    if(y[i].fileSize > 102400)
    return false;
    }
    }
    return true;
    }
    
    
    //--------------HTML
    <INPUT 
    name=file1 type=file id="file1" onChange="imgLoad()" >
    

     

    I am not sure about it though, it works, but VERY badly.  Please can anyone help?

  3. Is there a way to get information about a file BEFORE it is submitted to the server?

     

    I am trying to make a upload progress bar from scratch WITHOUT THE PRON.C PHP FIX!!!

     

    I found the file being uploaded in my NET://WINN01910//TEMP folder and I can outputs its file size in a popup with a one second refrehs, but this makes it so the USER needs to know the full file size to know if its anywehre near done.  Is there a way to get the filesize from the clients side?  Possibly javascript that uses ajax to submit the values to the server before the file is sent but when it is selected??

     

    Is there an easier way to do this and/or do you have any ajax example code of how it might work?

     

    I also have another problem, Althoguh i can echo the filesize of what is recieved so far, I am just glob()ing the temp folder for: "php*.tmp" but is there a way to tell the tmp file so they don't see everyone's uploads?

  4. OK so please help me!!! My current source is:

     

    <PRE>
    <?php
    
    $string = file_get_contents('./Files/file.lst');
    $MATCH = 'a';
    
    foreach(file('./Files/file.lst') as $haystack) {
    $ID[] = str_replace("\r\n",'',split("[\t]", $haystack));
    }
    
    foreach ($ID as $IDNM => $FIL) {
      foreach ($FIL as $FILE) {
        if (eregi($MATCH, $FILE)) {$R++;
          $RET.="<TR><TD>$FILE</TD><TD>ID: $IDNM</TD></TR>\r\n";
    
          $IDFND[$FILE] = $IDNM;
    
          foreach ($FIL as $IDS) {
            if ($d=1) {
              $Z.= $IDS."{}"; $d++;
            } else if ($d=2) {
              $Z.= $IDS."\r\n"; $d=1;
            }
          }
        }
      }
    }
    echo $Z;
    print_r($IDFND);
    print_r($ID);
    
    echo $string;
    
    echo "<div align=\"center\">$R Results Returned:\r\n\r\n<br/>";
    echo "<br/><TABLE WIDTH=\"50%\">".$RET.'</TABLE></div>';
    
    ?>
    </PRE>
    

     

    The current page output is:

    <PRE>
    7504434428{}Gmod Auto Updater.exe{}7513176882{}asdf.bat{}7562112438{}asdf.bat{}7575651003{}asdf.bat{}7190396421{}BANNER-bonw.gif{}7233149017{}Garry Newman's Modification (10) Addon Package.exe{}7234947174{}Garry Newman's Modification (10) Addon Package.exe{}7240136136{}Garry Newman's Modification (10) Addon Package.exe{}7241585907{}Garry Newman's Modification (10) Addon Package.exe{}7251364519{}Garry Newman's Modification (10) Addon Package.exe{}Array
    (
        [Gmod Auto Updater.exe] => 0
        [asdf.bat] => 3
        [bANNER-bonw.gif] => 5
        [Garry Newman's Modification (10) Addon Package.exe] => 10
    )
    Array
    (
        [0] => Array
            (
                [0] => 7504434428
                [1] => Gmod Auto Updater.exe
            )
    
        [1] => Array
            (
                [0] => 7513176882
                [1] => asdf.bat
            )
    
        [2] => Array
            (
                [0] => 7562112438
                [1] => asdf.bat
            )
    
        [3] => Array
            (
                [0] => 7575651003
                [1] => asdf.bat
            )
    
        [4] => Array
            (
                [0] => 7081649567
                [1] => 
            )
    
        [5] => Array
            (
                [0] => 7190396421
                [1] => BANNER-bonw.gif
            )
    
        [6] => Array
            (
                [0] => 7233149017
                [1] => Garry Newman's Modification (10) Addon Package.exe
            )
    
        [7] => Array
            (
                [0] => 7234947174
                [1] => Garry Newman's Modification (10) Addon Package.exe
            )
    
        [8] => Array
            (
                [0] => 7240136136
                [1] => Garry Newman's Modification (10) Addon Package.exe
            )
    
        [9] => Array
            (
                [0] => 7241585907
                [1] => Garry Newman's Modification (10) Addon Package.exe
            )
    
        [10] => Array
            (
                [0] => 7251364519
                [1] => Garry Newman's Modification (10) Addon Package.exe
            )
    
    )
    7504434428	Gmod Auto Updater.exe
    7513176882	asdf.bat
    7562112438	asdf.bat
    7575651003	asdf.bat
    7081649567	
    7190396421	BANNER-bonw.gif
    7233149017	Garry Newman's Modification (10) Addon Package.exe
    7234947174	Garry Newman's Modification (10) Addon Package.exe
    7240136136	Garry Newman's Modification (10) Addon Package.exe
    7241585907	Garry Newman's Modification (10) Addon Package.exe
    7251364519	Garry Newman's Modification (10) Addon Package.exe<div align="center">10 Results Returned:
    
    <br/><br/><TABLE WIDTH="50%"><TR><TD>Gmod Auto Updater.exe</TD><TD>ID: 0</TD></TR>
    <TR><TD>asdf.bat</TD><TD>ID: 1</TD></TR>
    <TR><TD>asdf.bat</TD><TD>ID: 2</TD></TR>
    <TR><TD>asdf.bat</TD><TD>ID: 3</TD></TR>
    <TR><TD>BANNER-bonw.gif</TD><TD>ID: 5</TD></TR>
    <TR><TD>Garry Newman's Modification (10) Addon Package.exe</TD><TD>ID: 6</TD></TR>
    <TR><TD>Garry Newman's Modification (10) Addon Package.exe</TD><TD>ID: 7</TD></TR>
    <TR><TD>Garry Newman's Modification (10) Addon Package.exe</TD><TD>ID: 8</TD></TR>
    <TR><TD>Garry Newman's Modification (10) Addon Package.exe</TD><TD>ID: 9</TD></TR>
    <TR><TD>Garry Newman's Modification (10) Addon Package.exe</TD><TD>ID: 10</TD></TR>
    </TABLE></div></PRE>
    

  5. ok, I have made ascript to split the numbers (id) from the names (files)...

     

    CODE:

    <?php
    
    $string = file_get_contents('./Files/file.lst');
    
    foreach(file('./Files/file.lst') as $haystack) {
    list($ID[], $FI[]) = split("[\t]", $haystack);
    }
    
    echo '<PRE>';
    print_r($ID);
    print_r($FI);
    echo '</PRE>';
    ?>
    

     

    THIS OUTPUTS:

    Array
    (
       [0] => 7504434428
       [1] => 7513176882
       [2] => 7562112438
       [3] => 7575651003
       [4] => 7081649567
       [5] => 7190396421
       [6] => 7233149017
       [7] => 7234947174
       [8] => 7240136136
       [9] => 7241585907
       [10] => 7251364519
    )
    Array
    (
       [0] => *.exe
    
       [1] => *.bat
    
       [2] => *.bat
    
       [3] => *.bat
    
       [4] => 
    
       [5] => *.gif
    
       [6] => *.exe
    
       [7] => *.exe
    
       [8] => *.exe
    
       [9] => *.exe
    
       [10] => *.exe
    )
    

     

    I replaced the filenames with * but you get the point, now could I loop thorugh the array saying foreach ($ID => $FI as $FIID && $FILE) ??  (HELP PLZ)

  6. <?php
    
    $fileid = "/^([0-9]{1,20}).*$/";
    $filename = "/([a-z0-9_.]{1,255})$/";
    
    echo "File id's:";
    
    foreach(file('./Files/file.lst') as $haystack) {
    preg_match($fileid, $haystack, $matches);
    print_r($matches);
    }
    echo "<br/>\r\n<br/>\r\nFile Names: ";
    
    foreach(file('./Files/file.lst') as $haystack) {
    preg_match($filename, $haystack, $matches);
    print_r($matches);
    }
    
    ?>
    

     

    The only problem with this code, is... Where do I feed in the $_GET or $_POST search terms?  I understand preg_match but should I then replace the preg term with the search term!?  (I noticed it was regular expression but I could do string matching because it is word searching, that would be way faster wouldn't it?  *without the preg engine*)  I am not sure, but I am overlooking the $NEEDLE...

  7. ok dudes, well, I am actually loading this text file cause im gonna allow hte user to do a PARTIAL and WILDCARD search on the FILENAME's. I already have one where they type part of the ID and it goes to it. I am making a fulltext search of the filenames... Would you be able to help me with that? lol. (I shoulda clarified)

     

    The above SRC would work, but how would I search $cols[1] ? there is no find or search command in php...

  8. OK, I am trying to make a program to read a text file with the following format:

     

    FILEID\tFILENAME\r\n
    FILEID\tFILENAME\r\n
    

     

    I know to use split("\t",$string); to split the fileid from the name, but still how would I go abouts reading this file and looking for the line that has the name?

     

    I though of using eregi but then I though "hmm, that would be incredibly server intensive"

    so what do you think I can or should do?

     

  9. I am trying to SIMPLY add a command to disable the button AND submite the form when they click submit.

     

    current html (with js) is:

    <input type="button" name="submit" value="Download Now!" onclick="this.disabled=true;">
    

     

    IE7 gives me an error with my code every time I try to add a "form.submit()" or "document.forms[0].submit()" to the end of the "this.disabled=true". I have even tried "this.form.submit()" and "myformname.submit". Why would none of these work..?

     

    P.S. JS is on, and the button DOES get disabled.

  10. Sorry for re-replying but this site won't load the "edit" boxes...  damned ajax...

     

    my fastcgi.log shows:

     

    06/Oct/2007:22:09:04 -0700	SUID: 0	PUID: 0	RUID: 0	URI: 	Reading 0 bytes failed = The process cannot access the file because it is being used by another process.
    06/Oct/2007:22:09:04 -0700	SUID: 0	PUID: 0	RUID: 0	URI: 	timeout-header2!
    06/Oct/2007:22:11:42 -0700	SUID: 0	PUID: 0	RUID: 0	URI: 	Reading 0 bytes failed = The process cannot access the file because it is being used by another process.
    06/Oct/2007:22:11:42 -0700	SUID: 0	PUID: 0	RUID: 0	URI: 	timeout-header2!
    06/Oct/2007:22:17:13 -0700	SUID: 1	PUID: 1	RUID: 0	URI: 	Reading 0 bytes failed = The process cannot access the file because it is being used by another process.
    06/Oct/2007:22:17:13 -0700	SUID: 1	PUID: 1	RUID: 0	URI: 	timeout-header2!
    

     

    My acess.log shows:

    64.59.144.23 - - [06/Oct/2007:22:11:36 -0700] "GET / HTTP/1.1" 302 5 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)"
    64.59.144.23 - - [06/Oct/2007:22:11:43 -0700] "GET /./FilePirate HTTP/1.1" 301 421 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)"
    64.59.144.23 - - [06/Oct/2007:22:11:43 -0700] "GET /FilePirate/Upload.html HTTP/1.1" 200 1015 "http://damon.zapto.org/FilePirate/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)"
    64.59.144.23 - - [06/Oct/2007:22:11:54 -0700] "GET /FilePirate/Download.html HTTP/1.1" 200 683 "http://damon.zapto.org/FilePirate/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)"
    64.59.144.23 - - [06/Oct/2007:22:12:09 -0700] "GET /FilePirate HTTP/1.1" 301 417 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)"
    64.59.144.23 - - [06/Oct/2007:22:12:09 -0700] "GET /FilePirate/ HTTP/1.1" 304 0 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)"
    ***********
    64.59.144.23 - - [06/Oct/2007:22:24:16 -0700] "GET /FilePirate/ HTTP/1.1" 304 0 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)"
    64.59.144.23 - - [06/Oct/2007:22:24:16 -0700] "GET /FilePirate/ HTTP/1.1" 304 0 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)"
    64.59.144.23 - - [06/Oct/2007:22:24:17 -0700] "GET /FilePirate/ HTTP/1.1" 304 0 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)"
    

     

    hmm it says it returned code 304!?!?!?!?!? wtf its not permanently moved...?

     

     

    Ane yes apparently its been sent to the browser.  PHP-CGI.exe runs under tasklist.exe (taskmanager dos version) and the script worked about 10 minutes ago without me changing anything.  when I go to my server using ip 127.0.0.1 I get error 500 INTERNAL SERVER ERROR but I dont get this error when I use damon.zapto.org, localhost, or my 24.* ip adress...?

  11. RIGHT-CLICK VIEW SOURCE ON THE BLANK PAGE:

     

    "<?PHP

    include('./HTML/html.php');

     

        header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // some day in the past

        header("Cache-Control: must-revalidate, post-check=0, pre-check=0");

        header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");

     

    $RET = '<H4>Welcome!</H4><H2><A HREF="Upload.html">Upload A File</A> | <A HREF="Download.html">Download A File</A></H2>';

    html('Home',$RET);

     

    ?>"

  12. Ok first I will start off with the code:

     

    INDEX.HTML:

    <?PHP
    include('./HTML/html.php');
    
        header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // some day in the past
        header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
        header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
    
    $RET = '<H4>Welcome!</H4><H2><A HREF="Upload.html">Upload A File</A> | <A HREF="Download.html">Download A File</A></H2>';
    html('Home',$RET);
    
    ?>

     

    HTML/HTML.PHP:

    <?PHP
    
    function html($TITLE,$RET,$BASE=true) {
    echo '<HTML><HEAD>
    <TITLE>FilePirate :: '.$TITLE.'</TITLE>';
    if ($BASE) {
    echo '<LINK HREF="../style.css" REL="stylesheet" TYPE="text/css" />';
    } else {
    echo '<LINK HREF="style.css" REL="stylesheet" TYPE="text/css" />';
    }
    echo '</HEAD><BODY>
    <TABLE WIDTH="75%" BORDER="1" CELLSPACING="2" CELLPADDING="2">
      <TR>';
    if ($BASE) {
    echo '    <TH SCOPE="col"><A HREF="../index.html"><IMG SRC="../Images/BANNER-bonw.gif" ALT="FilePirate" NAME="header" WIDTH="300" HEIGHT="40" ID="header" /></A></TH>';
    } else {
    echo '    <TH SCOPE="col"><A HREF="index.html"><IMG SRC="Images/BANNER-bonw.gif" ALT="FilePirate" NAME="header" WIDTH="300" HEIGHT="40" ID="header" /></A></TH>';
    }
    echo '  </TR>
      <TR>
        <TD>'.$RET.'</TD>
      </TR>
      <TR>
        <TD>Copyright© Damon Hosting 2007.  All Rights Reserved.</TD>
      </TR>
    </TABLE>
    </BODY></HTML>';
    }
    
    ?>
    

     

    Now my problem is that once in a while, and with certain adresses it will show up as a blank white page.  Is this possibly my header calls?  Is this a coding error?  Please tell me 'bout it :D.

  13. I, personally, do not see the problem with tables, but in DW the tables tool is very apalling.  In DW I stay on the "Live Data" or "Code" views of my work, and hardly use design view.  In the past *and present* DW doesn't properly load SOME css, like when you double classify somehting say, "TH" is classified with TD as bold but it is also classified with text2 as center, DW will only listen to the bold in deisng view and may even DELETE the other parts of the css.

  14. My path and folder setup is below:

    /----------------------MAIN DIRECTORY----------------------\
    |   flvtool2.exe
    |   index.php
    |   videos.php
    |
    +---ffmpeg
      |   avcodec-51.dll
      |   avformat-51.dll
      |   avutil-49.dll
      |   ffmpeg.exe
      |   ffplay.exe
      |   libdts.dll
      |   libfaac.dll
      |   libfaad.dll
      |   libgsm.dll
      |   libmp3lame-0.dll
      |   libogg-0.dll
      |   libvorbis-0.dll
      |   libvorbisenc-2.dll
      |   libx264-54.dll
      |   postproc-51.dll
      |   SDL.dll
      |   xvidcore.dll
      |
      +---include
      |   +---ffmpeg
      |   |       adler32.h
      |   |       avcodec.h
      |   |       avformat.h
      |   |       avio.h
      |   |       avutil.h
      |   |       common.h
      |   |       fifo.h
      |   |       integer.h
      |   |       intfloat_readwrite.h
      |   |       log.h
      |   |       mathematics.h
      |   |       md5.h
      |   |       opt.h
      |   |       rational.h
      |   |       rgb2rgb.h
      |   |       rtp.h
      |   |       rtsp.h
      |   |       rtspcodes.h
      |   |       swscale.h
      |   |
      |   \---postproc
      |           postprocess.h
      |
      +---lib
      |   |   avcodec-51.lib
      |   |   avformat-51.lib
      |   |   avutil-49.lib
      |   |   postproc-51.lib
      |   |
      |   \---pkgconfig
      |           libavcodec.pc
      |           libavformat.pc
      |           libavutil.pc
      |           libpostproc.pc
      |           libswscale.pc
      |
      \---man
          \---man1
                  ffmpeg.1
                  ffplay.1
    

     

    My code for index.php is below:

    <body bgcolor="black" text="white">
    <form action="videos.php" method="POST" enctype="multipart/form-data">
    <input type="file" style="background-color: black;font-color: white;text-color: white;" name="file1" size="50" />
    <input type="submit" style="background-color: black;font-color: white;text-color: white;" name="submit" value="Upload!" />
    </form></body>
    

     

    My code for videos.php is below:

    <?php
    
    error_reporting(E_ALL);
    $rootpath = realpath('.'); $rootpath.="/";
    
    chdir('C:/');
    
    function convert_media($filename, $rootpath, $width, $height, $bitrate, $samplingrate)
    {
    $outfile = "";
    $rPath = $rootpath."ffmpeg";
    $size = $width."x".$height;
    $outfile = realpath($filename);
    
    $outfile = $rootpath.'out_file.flv';
    
    $ffmpegcmd1 = "ffmpeg -i ".$rootpath.$filename." -acodec mp3 -ar ".$samplingrate." -ab ".$bitrate." -f flv -s ".$size." ".$outfile;
    $ret = exec($rPath.$ffmpegcmd1);
    echo "\r\n<br/>Converting: $ret\r\n<br/>";
    return $outfile;
    }
    
    function set_buffering($filename,$root)
    {
    $ffmpegcmd1 = "flvtool2 -U ".$root."/".$filename;
    $ret = exec($root.$ffmpegcmd1);
    echo "\r\n<br/> Buffering: $ret\r\n<br/>";
    } 
    
    function grab_image($filename, $rootpath, $no_of_thumbs, $frame_number, $image_format, $width, $height)
    {
    $_rootpath = $rootpath."ffmpeg";
    $size = $width."x".$height;
    
    $outfile = $rootpath.'sample.png'; 
    
    $ffmpegcmd1 = "ffmpeg -i ".$rootpath.$filename." -vframes ".$no_of_thumbs." -ss 00:00:03 -an -vcodec ".$image_format." -f rawvideo -s ".$size. " ".$outfile;
    $ret = exec($_rootpath.$ffmpegcmd1);
    echo "\r\n<br/> Grab_bing: $ret\r\n<br/>";
    return $outfile;
    }
    
    $source = $HTTP_POST_FILES['file1']['tmp_name'];
    $fileSize = $HTTP_POST_FILES['file1']['size'];
    $filetype = $HTTP_POST_FILES['file1']['type'];
    $name = $HTTP_POST_FILES['file1']['name'];
    
    copy($source, $rootpath.$name);
    
    $name=$rootpath.$name;
    
    $outfile = convert_media($name, $rootpath, 320, 240, 32, 22050);
    $image_name = grab_image($outfile, $rootpath, 1, 2, "png", 110, 90);
    Set_Buffering($outfile, $rootpath);
    
    echo "\r\n<br/>image_name: ".$image_name."\r\n<br/>";
    echo "rootpath: ".$rootpath."\r\n<br/>";
    echo "outfile: ".$outfile."\r\n<br/>";
    echo "size: ".$fileSize."\r\n<br/>";
    echo "type: ".$filetype."\r\n<br/>";
    echo "name: ".$name."\r\n<br/>";
    echo "source: ".$source;
    ?>
    

     

    The output of this process is currently:

    Converting: 
    Grab_bing: 
    Buffering: ERROR: lib/flvtool2.rb:228
    
    image_name: C:\wamp\www\videoshare/sample.png 
    rootpath: C:\wamp\www\videoshare/ 
    outfile: C:\wamp\www\videoshare/out_file.flv 
    size: 322290 
    type: video/avi 
    name: C:\wamp\www\videoshare/[a-g] Cardcaptor Sakura - 01-1.avi 
    source: c:/windows/temp\php306.tmp
    

     

    Additional Information:

    Testing upload with a 342 kB split of an AVI file.
    
    PHP: 5.4.2
    Windows XP
    

     

    My Problem / Issue:

    There seems to be a problem at step three in the file, and it does
    not seem to properly convert any ifle I upload to an FLV file.  If it
    never makes an FLV file, step three will never start and will return
    an error.  Steps 1 and 2 Return nothing and do not show any errors
    or information.  The AVI I am uploading as a test is a 342 kByte
    *1 Minute* part of a card captor sakura episode.  This file is a
    windows/avi file with a divx encoding.  This file uploaded to youtube
    sucessfully and is readable in windows media player.  My problem is
    that for no reason that I can figure out, my script is not creating a
    FLV file.  (I think it is not calling FFMPEG properly) EDIT: The AVI file
    IS uploaded sucessfully and copied to its permanent directory at
    /videoshare.  The paths are all absolute and are all valid, says the
    output.  I am not sure as to why it will not create the FLV file.  If
    anyone knows of any other software that can make an FLV file from
    the command line (or from a php file) please inform me.
    

  15. now during the step to get the size of the buffer

     

    ERROR: No such file or directory - C:/out_file.flv ERROR: flvtool2/base.rb:259:in `initialize' ERROR: flvtool2/base.rb:259:in `open' ERROR: flvtool2/base.rb:259:in `open_stream' ERROR: flvtool2/base.rb:238:in `process_files' ERROR: flvtool2/base.rb:225:in `each' ERROR: flvtool2/base.rb:225:in `process_files' ERROR: flvtool2/base.rb:44:in `execute!' ERROR: lib/flvtool2.rb:168:in `execute!' ERROR: lib/flvtool2.rb:228 
    

  16. im really being such an idiot today -_-

     

    C:\wamp\www\videoshare/out_file.flv

    sample.png

     

    since the COPY command wont copy the file properly ,I changed all paths to allow the file to be in the main directory. I now get...

     

    an empty eveyr folder... -_-

     

    I am in windows, shouldnt it be exec instead of shell_exec..? whats the difference?

     

    for holy shit level of debugging I added:

     

    echo "image_name: ".$image_name."\n\r\n\r<br/><br/>";
    echo "rootpath: ".$rootpath."\n\r\n\r<br/><br/>";
    echo "outputpath: ".$outputpath."\n\r\n\r<br/><br/>";
    echo "outfile: ".$outfile."\n\r\n\r<br/><br/>";
    echo "name: ".$name."\n\r\n\r<br/><br/>";
    echo "source: ".$source."\n\r\n\r<br/><br/>";
    

     

    this echos:

     

    image_name: sample.png 
    rootpath: C:\wamp\www\videoshare/ 
    outputpath: C:\wamp\www\videoshare\Flv 
    outfile: out_file.flv 
    name: LineTexture.mov 
    source: C:\WINDOWS\TEMP\php2F0.tmp 
    

×
×
  • 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.