Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

Search Help:  
 
Enter keywords to search help.

How can I call one PHP script from another?

If you would like to reference a PHP script from within another PHP script, use either the include() or require() functions. For example, if you want to store functions for all of your pages in one file, you could reference that file from within your web pages like this:

include ('/foo.php');

Was this article helpful?

Yes   No
Click to contact Customer Care for further assistance.