iframe and includes

5 posts / 0 new
Last post
#1 Tue, 04/20/2010 - 16:58
dbg20

iframe and includes

I have just installed the latest version of CentOS and the automated virtualmin install. None of my iframe or php includes are showing up on the pages. Any ideas on how to fix this?

Tue, 04/20/2010 - 18:20
andreychek

Howdy,

Nothing about a typical install should prevent PHP includes or iframes from working.

I'd suggest two things --

  1. Look in the Apache error logs, and look for any clues in there. That's in $HOME/logs/error_log.

  2. You can always post an example of the code you're using that's not working, and perhaps a link to the site as well. We can see if something stands out as the problem.

    -Eric

Tue, 04/20/2010 - 19:36
dbg20

Here is the site:

http://www.patriotfiles.com

Here is the code:

<center><br><IFRAMEĀ  SRC="randomimage_block2.php" WIDTH=130 HEIGHT=160 FRAMEBORDER=0 SCROLLING=no ALLOWTRANSPARENCY=TRUE></IFRAME>

The places it is not showing up are on the home page under the headings "Random Photos" and "Did you know".

Another site is not processing php includes.

Here is the code from that site:

<?php virtual ("./cgi-bin/cannonhost/random.cgi"); ?>

I do not have the files in the proper cgi directory but the odd thing is there is no error on the page failing to include the file.

Thank you for your reply.

Tue, 04/20/2010 - 19:45
dbg20

Ok I looked at the error log and found the problem was bad paths. This server was migrated from a Windows 2003 Enterprise box.

Thank you again for your reply.

Tue, 04/20/2010 - 21:46
andreychek

Sure thing... glad you got it working!

-Eric

Topic locked