...

View Full Version : parsing PHP in iframes



romalong
09-21-2003, 11:29 AM
hi, buddies!!!

hope it's possible to force php machine to parse files contained on frmes.
such construction just displays source code instead of proccessed one:
...
<TR>
<TD bgcolor="black" valign="bottom"><!-- frames -->
<IFRAME name="xxx" src="c:/AppServ/www/mine/03/cutenews/show_news.php" marginwidth="1" marginheight="1" scrolling="yes" frameborder="0" height="470" width="550"></IFRAME>
</TD>
</TR>
...

shown output:

<?PHP
error_reporting (E_ALL ^ E_NOTICE);
$path = __FILE__;
$path = preg_replace( "'\\\show_news\.php'", "", $path);
$path = preg_replace( "'/show_news\.php'", "", $path);
require_once("$path/inc/functions.inc.php");
require_once("$path/inc/templates.php");
require_once("$path/inc/config.php");
...

TNX!!!
PEACE!

mordred
09-21-2003, 03:12 PM
In your src attribute of the iframe, the link points to a file path on a windows machine. This path must be served by, uh, your server instead. Try changing it to localhost/dir/whatever.php and see if it works then.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum