SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jun 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    php call function

    Hi,
    I have this website and i have a few php scripts on it
    I also have an html page that links to the other php scripts
    What i want to do is have a php function that can call a file or a set of codes that would display a particular section onto that html page.

    For example, i have a recipe script and it would display the more recent recipe, i want a code or something that can pull that information from that page


    Thanks

    Wayne

  2. #2
    SitePoint Evangelist
    Join Date
    Aug 2005
    Posts
    453
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Store your information in a text file already formatted with your html tags.
    Use the readfile() function, this function reads a file and outputs it to the output buffer.
    Documentation here ;
    http://us.php.net/manual/en/function.readfile.php
    Computers and Fire ...
    In the hands of the inexperienced or uneducated,
    the results can be disastrous.
    While the professional can tame, master even conquer.

  3. #3
    SitePoint Member
    Join Date
    Jun 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks
    I'll give it a try


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
  •