kmaid
-
Posts
56 -
Joined
-
Last visited
Never
Posts posted by kmaid
-
-
Nah it doesnt time out, it works fine its just that if i download the file directly i get 120kbs speeds and if i download it via the PHP script i seem to be getting closer to 30-40kbs. Im wondering if this is a phpini setting or somthing its just incredibly slow.
-
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);
-
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
-
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
-
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)***
Fread is slow, Is there a better way?
in PHP Coding Help
Posted
I dont think that is the issue, the server is dedicated and this script is currently its only task the specifications are
Processer: AMD Athlon 3200
Ram: 1024MB
Hard drive: 160GB
Port: 100mbs