Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001072

[PHP] Creating a .xxx via PHP From: php fun (php <email protected>)
Date: 07/20/01

Hi!

I've got installed an Apache+PHP server on my LinuxBox.

I want to create a 'myname.foo' file, but generated via PHP.

I mean:

----//----

<?php

header("Content-type: FooType");
....

-----//-----

I modify my 'httpd.conf' file, and insert:
AddType FooType .foo

But when browsing 'myname.foo', this is not generated, I only get the '<?php ....'.

How can I tell Apache to generate .foo files by using PHP?

Thank you very much.

_______________________________________________________________________
Get a FREE email address for your WILD SIDE! Choose from over 350
outrageous email addresses at http://www.WildEmail.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>