[Chugalug] LAMP problem

Mike Harrison cluon at geeklabs.com
Fri Mar 1 00:15:31 UTC 2013


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




More information about the Chugalug mailing list