+ Reply to Thread
Results 1 to 10 of 10




  

Thread: How to Include a php file directly to phpfox html file

      
  1. #1
    I'm New! vineethclm is on a distinguished road
    Join Date
    October 3, 2008
    Posts
    4
    Rep Power
    0
    Feedback Score
    0

    Default How to Include a php file directly to phpfox html file

    I'm working in a phpfox site for a client. I want to include a new php file to a phpfox templete file(html). this is for integrating new module to phpfox. I used 'include_php file="_modules/newpage.php"' for that, but it doesn't work. can anyone help me
    Last edited by vineethclm; Oct 3rd, 2008 at 11:04 pm.

  2. #2
    Grand Masters Colleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond repute Colleen's Avatar
    Join Date
    September 22, 2006
    Location
    Canada
    Posts
    11,144
    Rep Power
    26
    Feedback Score
    0

    Default Re: How to Include a php file directly to phpfox html file

    As far as I know the server has to be set to allow html files to parse out php.

    The include would look like this,

    PHP Code:
    <?php include('modules/newpage.php'); ?>

  3. #3
    I'm New! vineethclm is on a distinguished road
    Join Date
    October 3, 2008
    Posts
    4
    Rep Power
    0
    Feedback Score
    0

    Default Re: How to Include a php file directly to phpfox html file

    thanks for your reply.......
    i tried <?php include('modules/newpage.php'); ?>, but not working.
    I don't know how to set to allow html files to parse out php. could you please help me.....hope your fast reply

    vineethclm added 2 Minutes and 25 Seconds later...

    thanks for your reply.......
    i tried <?php include('modules/newpage.php'); ?>, but not working.
    I don't know how to set to allow html files to parse out php. could you please help me.....hope your fast reply
    Last edited by vineethclm; Oct 5th, 2008 at 9:51 pm. Reason: Automerged Doublepost

  4. #4
    Grand Masters Colleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond reputeColleen has a reputation beyond repute Colleen's Avatar
    Join Date
    September 22, 2006
    Location
    Canada
    Posts
    11,144
    Rep Power
    26
    Feedback Score
    0

    Default Re: How to Include a php file directly to phpfox html file

    phpfox should have a support forum where you can ask this, it was probably asked before and they have the solution, good luck!

  5. #5
    The Force is Strong! scoopy82 will become famous soon enoughscoopy82 will become famous soon enoughscoopy82 will become famous soon enough scoopy82's Avatar
    Join Date
    December 31, 2007
    Posts
    61
    Rep Power
    5
    Feedback Score
    0

    Default Re: How to Include a php file directly to phpfox html file

    Their support forum is here:
    forums.phpfox.com/index.php

    If they use the smarty template engine... it may work like this:
    Code:
    {php} include('modules/newpage.php'); {/php}
    There may also be a file in which you need to allow your new file. But I have seen many different scripts accomplish this task in many different ways. Like she said, best to go to their forum.

  6. #6
    I Am Yuneek Rhiannon is a splendid one to beholdRhiannon is a splendid one to beholdRhiannon is a splendid one to beholdRhiannon is a splendid one to beholdRhiannon is a splendid one to beholdRhiannon is a splendid one to beholdRhiannon is a splendid one to beholdRhiannon is a splendid one to beholdRhiannon is a splendid one to beholdRhiannon is a splendid one to beholdRhiannon is a splendid one to behold Rhiannon's Avatar
    Join Date
    May 30, 2008
    Location
    Keeps Gettin Lost :(
    Posts
    1,574
    Rep Power
    5
    Feedback Score
    0

    Default Re: How to Include a php file directly to phpfox html file

    Did you get this worked out??

  7. #7
    I'm New! vineethclm is on a distinguished road
    Join Date
    October 3, 2008
    Posts
    4
    Rep Power
    0
    Feedback Score
    0

    Default Re: How to Include a php file directly to phpfox html file

    If they use the smarty template engine... it may work like this:
    Code:
    {php} include('modules/newpage.php'); {/php}
    Yes they are using smarty template engine,but this is not working

  8. #8
    I'm New! hannah1 is on a distinguished road
    Join Date
    December 22, 2010
    Posts
    8
    Rep Power
    0
    Feedback Score
    0

    Default Re: How to Include a php file directly to phpfox html file

    I hope it helps people who have existing .html pages they need to execute PHP on.
    Last edited by BiologyWebmaster; Apr 25th, 2011 at 3:39 pm.

  9. #9
    I'm New! mtrick is on a distinguished road mtrick's Avatar
    Join Date
    December 22, 2011
    Location
    india
    Posts
    41
    Rep Power
    1
    Feedback Score
    0

    Default Re: How to Include a php file directly to phpfox html file

    <?php

    include 'page.php';
    ?>

  10. #10
    Grand Masters simplyamazing12 will become famous soon enoughsimplyamazing12 will become famous soon enough
    Join Date
    May 6, 2010
    Posts
    593
    Rep Power
    3
    Feedback Score
    0

    Default Re: How to Include a php file directly to phpfox html file

    A simple <?php include "yourpage.php"; ?> will work. Just make sure your file extensions are perfectly in line.
    So many times I see people try to include a .php file but have the extension as .html
    My Business: Chi Chi Floral [link soon!]

    Web hosting provided by: Myhosting.com

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. How to pull xml file on joomla??
    By Kaos in forum HTML & Website Design
    Replies: 5
    Last Post: Apr 14th, 2008, 7:14 pm
  2. Help for PSD file PLEASE
    By Saagar in forum HTML & Website Design
    Replies: 2
    Last Post: Sep 27th, 2007, 10:42 am
  3. File List Generator
    By timsdd in forum Forum Lounge
    Replies: 3
    Last Post: Apr 14th, 2007, 7:43 am

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
WebTalkForums
WebTalkForums
Recent Forum Threads