Board index   FAQ   Search  
Register  Login
Board index PHP PHP Scripts

PHP function in a different file

Links for php scripts

Moderators: macek, egami, gesf

PHP function in a different file

Postby Gian Piero » Thu Sep 02, 2004 5:04 pm

I try to call a function sitting in a different file than the main program, but I get the "doesn't find the function".
How do I provide the information about the name of the PHP file where the funcion is sitting ?
Thanks for any help.
Gian Piero
New php-forum User
New php-forum User
 
Posts: 2
Joined: Thu Sep 02, 2004 4:39 pm
Location: Florida

Postby swirlee » Thu Sep 02, 2004 6:14 pm

You have to include the file in your script using include or require.
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back


Return to PHP Scripts

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron