php-windows Digest 15 Aug 2013 07:58:58 -0000 Issue 4137

Topics (messages 31120 through 31121):

imageManipulation wrapper class, etc.
        31120 by: Jacob Kruger

Re: Readfile() + mpg = http status 500, windows server 2012, php 5.5.1
        31121 by: oli.laurel.arcor.de

Administrivia:

To subscribe to the digest, e-mail:
        php-windows-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-windows-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-wind...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
If interested, here's what seems to be a sort of working image manipulation 
utility class, etc., along with a few examples of usage - index.php loads a 
physical image, and applies multiple effects to it, before storing it in the 
DB, and then show_image.php renders the image out for display, and all through 
the testing steps, I just use imagesx() and imagesy() functions to make sure 
the image resource hasn't become corrupted.

And, lastly, the .sql file is just for the structure of the test table I used, 
and dbInc.php stores mySQL server info:
https://dl.dropboxusercontent.com/u/13327195/imageManipulation.zip

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'

--- End Message ---
--- Begin Message ---
Hi List,
I opend a bug report.
Hope this helps to find the problem.

https://bugs.php.net/bug.php?id=65453

Regards 


----- Original Nachricht ----
Von:     sniukbp sniukbp <sniu...@gmail.com>
An:      php-wind...@lists.php.net
Datum:   14.08.2013 21:58
Betreff: [PHP-WIN] Readfile() + mpg = http status 500, windows server 2012, php 
5.5.1

> Good morning,
> I run into same trouble.
> 
> Kind regards
> 
> 
> 
> 
> 
> hi oli,
> i can confirm this if i use following command.
> one download one 500
> 
> [download.cmd]
> "C:\Program Files (x86)\GnuWin32\bin\wget.exe" --limit-rate=40000
> http://127.0.0.1/index.php
> 
> did you find any solution?
> 
> regards
> 
> 
> Hi List,
> i installed a blank Windows Server 2012 Standard, added Role IIS & Feature
> CGI
> extracted 5.5.1 VC11 x86 Non Thread Safe to c:\Program Files (x86)\php
> installed vcredist_x86.exe
> 
> added Handler Mappings in IIS
> Request path: *.php
> Module: FastCgiModule
> Executable: c:\Program Files (x86)\php\php-cgi.exe
> Name: PHP via FastCgi
> 
> Added 2 files to C:\inetpub\wwwroot index.php & movie.mpg (6MB)
> Content of index.php
> 
> <?php
> $track = "movie.mpg";
> if (file_exists($track)) {
>     header("Content-Type: audio/mpeg");
>     header('Content-Length: ' . filesize($track));
>     header('Content-Disposition: inline; filename="movie.mpg"');
>     header('X-Pad: avoid browser bug');
>     header('Cache-Control: no-cache');
>     readfile($track);
>     exit;
> } else {
>     header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found', true, 404);
>     echo "no file";
> }
> 
> ?>
> 
> Now every time the index.php is requested i get an error 500 in
> Webserver log. But file will be delivered sucessfully.
> Is there a problem with mpg files and readfile();
> No difference with 5.4.17, 5.3.27 & Windows Server 2008 R2.
> I know its very basic, but expected result should be: HTTP-Status: 200 or?
> phpinfo() will be delivered succesful.
> 
> Thx + regards
> oli
> 

--- End Message ---

Reply via email to