Skip navigation
tatabidibidi
Currently Being Moderated

PHP code disappearing from Muse html

May 1, 2012 3:44 AM

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.

 

Best,

Oliver

 
Replies
  • Currently Being Moderated
    May 1, 2012 5:44 AM   in reply to tatabidibidi

    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?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points