Hi, well i open at the same time 6 *.cmd scripts with the following command: "C:\Program Files (x86)\GnuWin32\bin\wget.exe" http://127.0.0.1/index_list.php (how do i open there 6 scripts: mark the 6 scripts than shift + right klick --> open) again error 500... here ist the logfile: #Software: Microsoft Internet Information Services 8.0 #Version: 1.0 #Date: 2013-08-02 16:42:46 #Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken 2013-08-02 16:42:46 127.0.0.1 GET /index_list.php - 80 - 127.0.0.1 Wget/1.11.4 - 200 0 0 312 2013-08-02 16:42:46 127.0.0.1 GET /index_list.php - 80 - 127.0.0.1 Wget/1.11.4 - 200 0 0 343 2013-08-02 16:42:46 127.0.0.1 GET /index_list.php - 80 - 127.0.0.1 Wget/1.11.4 - 200 0 0 343 2013-08-02 16:42:46 127.0.0.1 GET /index_list.php - 80 - 127.0.0.1 Wget/1.11.4 - 200 0 0 343 2013-08-02 16:42:46 127.0.0.1 GET /index_list.php - 80 - 127.0.0.1 Wget/1.11.4 - 500 0 64 421 2013-08-02 16:42:46 127.0.0.1 GET /index_list.php - 80 - 127.0.0.1 Wget/1.11.4 - 200 0 0 390 2013-08-02 16:42:47 127.0.0.1 GET /index_list.php - 80 - 127.0.0.1 Wget/1.11.4 - 500 0 64 15 2013-08-02 16:42:49 127.0.0.1 GET /index_list.php - 80 - 127.0.0.1 Wget/1.11.4 - 500 0 995 15 movie.mpg has 6mb thx for help ----- Original Nachricht ---- Von: oli.laurel@xxxxxxxx An: php-windows@xxxxxxxxxxxxx Datum: 02.08.2013 18:20 Betreff: Readfile() + mpg = http status 500, windows server 2012, php 5.5.1 > 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 > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php