I am having a hard time trying to insert a simple image browsing php script in an html page. Can somebody point me in the right direction. The script works when I link to it directly (/album/index.php) but I want this to work within a table in html, so i tried renaming the photo page to photos.shtml and inserting the php script as a server side include, then I get [an error occurred while processing this directive] I don't even know if this is possible. Any ideas?
You can't have a php file in a html file, you will need to use a php include or something like that, and rename your html file to a php file. You can't execute php code in a html file.
Where is your html file hosted , is that server supports the php itself ? Are you using following type of directive in your html ? <!--#include file="path.html" -->
You can try 2 different approaches: 1) Use an IFRAME to insert the PHP script in the html file. 2) Modify your .htaccess file and add this line AddType application/x-httpd-php .html If this works on your Server, your html file will be parsed as a php file and can include any php command, such as include. Hope this helps. Kuldeep
Thank you everyone for pointing me in the right direction; with the information provided it is now up to me to get to work and get this page running; I appreciate your support ..
you can make your php files to parse in html files by changing the .htaccess as below AuthName www.example.com AuthUserFile /home/play/public_html/_vti_pvt/service.pwd AuthGroupFile /home/play/public_html/_vti_pvt/service.grp RemoveHandler .html .htm AddType application/x-httpd-php .php .htm .html HTML: