[Chugalug] LAMP problem

K I Goldman kigtest at hotmail.com
Fri Mar 1 00:41:57 UTC 2013


You can also check the mime-type by telnetting to port 80.
From the command line:

telnet localhost 80
GET /somefile.php HTTP/1.0
Host: localhost 

(Two returns there)

It should show you the mime-type in the headers.  Text/html is good.  Application/octet-stream not so much

Keith

On Feb 28, 2013, at 7:15 PM, "Mike Harrison" <cluon at geeklabs.com> wrote:

>> My opening tag <?php and closing tag ?> are present. This problem is occurring with my html & PHP files as well as files that
>> I'M copying from else ware just to make sure. So the syntax should be good. The PHP files are working just as long as I point
>> the URL straight to the file, 'localhost/somefile.php' but their downloading instead of executing when trigged from an html
>> form.
> 
> While not the real problem, part if it the mime types for your files are wrong. In Apache, set your default mime document type to text/html
> 
> You can also do this in your PHP code.. or server mime types comfig.. or.. or..
> 
> 
> _______________________________________________
> Chugalug mailing list
> Chugalug at chugalug.org
> http://chugalug.org/cgi-bin/mailman/listinfo/chugalug


More information about the Chugalug mailing list