SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: php call function
-
Jun 14, 2007, 16:39 #1
- 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
-
Jun 14, 2007, 17:07 #2
- 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.phpComputers and Fire ...
In the hands of the inexperienced or uneducated,
the results can be disastrous.
While the professional can tame, master even conquer.
-
Jun 14, 2007, 17:27 #3
- Join Date
- Jun 2007
- Posts
- 2
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks
I'll give it a try
Bookmarks