Jump to content

kmaid

Members
  • Posts

    56
  • Joined

  • Last visited

    Never

Posts posted by kmaid

  1. Hi again all!

    I have been trying to stream a 19mb quicktime file through PHP. While this script does work i find it to be really slow. Is there any way i can make it faster? I have tried using fpassthru and using a smaller buffer and neither seemed to have much effect. Here is the code im using thanks for your help Kmaid

          
            $filename = "Trailer.mov"; 
            header("Content-Disposition: atachment; filename=$filename");
            header("Content-Type: video/mov");
            header("Content-Length: ".filesize("$filename"));
            $fp=fopen("$filename","r");
            print fread($fp,filesize("$filename"));
            fclose($fp);
    

  2. Hi i am quite new to PHP. I have lots of experience in C++ Delphi and a few other languages however working out what the path to a file is from various scripts is constantly confusing me especially when i am referring to files in a php file i have included in another PHP file. How do you all deal with this? I don’t want to give the full file path each time as these php files will be on 3-4 servers possibly more so i don’t want to have to have everything in a certain place. I was thinking about defining a constant of the base directory for everything but it seems a little extreme for something that should be quite simple.

     

    Thanks

    Kmaid

     

  3. I dont think automated tasks will help me as i need the PID back and would like to avoid using CGI. Im trying to use user defined services and making their name a handle i can start and stop but it looks like alot of work having to edit the registry each time. I would like to avoid it though are there any better ways on windows?

     

    Kmaid

  4. Hi,

     

    I am trying to run a console application which needs to keep running even after the php script has finished executing. I also need the PID or some sort of handle I can use to kill the program at a later stage.

     

    Thanks

    kmaid

     

    **Edit the machines are all windows (windows2000 and windows web edition)***

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