ColinHarbut Posted February 26, 2007 Share Posted February 26, 2007 Hi guys, I have a standed template here: http://calpropertysearch.com/temp.html And I also have a php file that I want to appear in the editable region. Can I show the php file info without having to use frames? When I just copy the PHP content and past it into the editable region it doesn't load correctly. I have used <iframe> <iframe> but then I get two scroll boxes. This is what I am trying to fix: http://calpropertysearch.com/buy.html Thanks again for all your help. Colin Harbut http://www.colinharbut.com Quote Link to comment https://forums.phpfreaks.com/topic/40228-solved-best-way-to-wrap-a-template-around-a-php-file/ Share on other sites More sharing options...
boo_lolly Posted February 26, 2007 Share Posted February 26, 2007 inside that table cell it should look like this: <td><?php include "yourfile.php"; ?></td> Quote Link to comment https://forums.phpfreaks.com/topic/40228-solved-best-way-to-wrap-a-template-around-a-php-file/#findComment-194622 Share on other sites More sharing options...
ColinHarbut Posted February 26, 2007 Author Share Posted February 26, 2007 I can't see my php file. Here is my page: http://calpropertysearch.com/buy.html Here is my php file: http://calpropertysearch.com/index1.php And my template looks like this: <tr align="left" valign="top"> <td height="144" colspan="2"><div align="center"><!-- InstanceBeginEditable name="EditRegion1" --> <?php include("http://calpropertysearch.com/index1.php"); ?> <!-- InstanceEndEditable --></div></td> </tr> But I can't see the php part (and I've tried it without the ("http://calpropertysearch.com/ before the index1.php). Any suggestions? Thanks, Colin Harbut http://www.colinharbut.com Quote Link to comment https://forums.phpfreaks.com/topic/40228-solved-best-way-to-wrap-a-template-around-a-php-file/#findComment-194678 Share on other sites More sharing options...
boo_lolly Posted February 26, 2007 Share Posted February 26, 2007 you don't include the URL, you include the file. as in include "path/to/file.txt"; Quote Link to comment https://forums.phpfreaks.com/topic/40228-solved-best-way-to-wrap-a-template-around-a-php-file/#findComment-194716 Share on other sites More sharing options...
ColinHarbut Posted February 26, 2007 Author Share Posted February 26, 2007 <?php include("/usr/www/users/charbut/calpropertysearch/buy.php"); ?> Still won't work. Is this incorrect? Quote Link to comment https://forums.phpfreaks.com/topic/40228-solved-best-way-to-wrap-a-template-around-a-php-file/#findComment-194739 Share on other sites More sharing options...
sasa Posted February 26, 2007 Share Posted February 26, 2007 rename your page to buy.php (you use same php in it) and include('index1.php'); Quote Link to comment https://forums.phpfreaks.com/topic/40228-solved-best-way-to-wrap-a-template-around-a-php-file/#findComment-194752 Share on other sites More sharing options...
ColinHarbut Posted February 26, 2007 Author Share Posted February 26, 2007 Got it, thank you so much! Quote Link to comment https://forums.phpfreaks.com/topic/40228-solved-best-way-to-wrap-a-template-around-a-php-file/#findComment-194759 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.