I'm having an odd error that I'm hoping someone can help me with.
I am using Adobe Muse and a server side CMS called Pulsepro. To run the CMS modules all I have to do is paste an embed line like the following:
<?php include("pulsepro/includes/gallery2.php"); ?>
I am placing this php code in an HTML snippet in muse and then exporting and uploading to server. On the server I have an .htaccess file with the following lines of code to make sure that the browser can find the PHP:
AddType application/x-httpd-php .html .htm
AddHandler application/x-httpd-php .html .htm
When I go to my page, where the php should be is blank. Upon viewing source code it shows that the php include is completed deleted and just has a blank DIV. Now, the local file on my machine (the export from Muse) shows the correct php include line. Why is it that when the browser runs the code it removes the php code from the HTML file? If I put the same php line in a simple html file it runs fine.
Help? I've never had this issue with anything other than Muse.
Browsers do not find or process PHP. PHP is found and processed by the server before it hits your browser.
The reason why you may not see anything where you placed the PHP is that it is unable to locate "pulsepro/includes/gallery2.php" or that included PHP file is simply rendering nothing.
What happens when you call "pulsepro/includes/gallery2.php" directly in your browser? Does it display anything?