[Chugalug] LAMP problem

Dave Brockman dave at brockmans.com
Thu Feb 28 19:56:14 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Reading over that again.... can you post the output of phpinfo()?
Specifically, what is PHP's memory limit?

Regards,

dtb

On 2/28/2013 2:50 PM, wes wrote:
> what's the URL to the html file? is it possible it's using a
> hostname other than "localhost" and that is causing different
> behavior between the two examples?
> 
> -wes
> 
> 
> On Thu, Feb 28, 2013 at 11:39 AM, Garrett Gaston
> <garrett85 at hotmail.com <mailto:garrett85 at hotmail.com>> wrote:
> 
> I'M trying to learn a little php but my learning as been halted by 
> some strange behavior when executing my html/php files. Within my 
> html documents I am attaching them to php files via:
> 
> <form action="somefile.php" method="post">
> 
> When the html file executes the form, the browser downloads the 
> somefile.php file as if I were a picture or song I was downloading 
> from a website rather than executing and displaying the php page
> in the browser. Executing phpinfo() from the browser via 
> 'localhost/phptest.php' is working just fine. This problem is only 
> occurring when a php script is called to be executed from an html 
> file within the browser. Also note that I have tried this in two 
> browsers with the same result.
> 
> I've removed php5 and apache2 and re-installed both of them and
> I'M still getting the same result.
> 
> Here's the info from /var/log/apache2/error.log
> 
> [Thu Feb 28 12:45:35 2013] [notice] Apache/2.2.22 (Ubuntu) 
> PHP/5.3.10-1ubuntu3.5 with Suhosin-Patch configured -- resuming 
> normal operations
> 
> 
> Any ideas. I've hit a brick wall here and I can't continue my php 
> book until I get this resolved.
> 
> _______________________________________________ Chugalug mailing
> list Chugalug at chugalug.org <mailto:Chugalug at chugalug.org> 
> http://chugalug.org/cgi-bin/mailman/listinfo/chugalug
> 
> 
> 
> 
> _______________________________________________ Chugalug mailing
> list Chugalug at chugalug.org 
> http://chugalug.org/cgi-bin/mailman/listinfo/chugalug
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRL7ZeAAoJEMP+wtEOVbcdblwH/jDh3GsUjrUJCvQ9tECT5MA+
81l5CYACnuyHnQalC+/hUH/MiSXGj79/vvD4XOLqjTyAeqSQZsBnv0kYozfPtw4f
6dr/u83F52gO5GhdBfoUWaUtfjXkdXhv8z9RKgFE2c5sXQ6Oqu2Qz6Tjz/6YL/qD
XhCpYUtramHTp+fj9lPi8xxGd3xvYwHR10X43kmDfrhrMucptjUvbSyNM6s+uOk/
RVLyhkl2dESuL+Vue1hvRuqz/jS/0Lr4AM26QetVjXILE5tf2wsVVIRY/d5NuEXr
PsJiFqAp87AbE+0dgZz5kzmgtOyIvdvDDbZ3VUSF+qi4wbColv5LgEpth6fNg6A=
=AXS7
-----END PGP SIGNATURE-----


More information about the Chugalug mailing list