communication
 databases
 directories
 file handling
 html and code
 image editing
 image listing
 sessions and co
 string handling
 information
 forms
 apple stuff
 image handling
 array handling
 lixlpixel
php - snippets
google search terms detected and highlighted.
remove highlighting | keep highlighting
make snippet in "html and code" - download "force PHP in HTML"
 search
php - snippets

Valid CSS!

php webring logo
prev next
random list
join the Ring!

html and code - force PHP in HTML was created/last modified on Mon 22 Mar 2004 9:35 AM

put this in a .htaccess file to force the server to recognize PHP in .html files.
after doing this you don't need to rename your files to .php anymore

AddType application/x-httpd-php .html .htm

learn more about some of the PHP functions used in this snippet: file, for, rename

view the GNU general license - view the GNU library license - search on PHPsnippets - see your code like this

 a lixlpixel.com site

PHParadise.com - PHP-classes.org - your site on safari