PHP function in a different file

Links for php scripts

Moderators: macek, egami, gesf

Gian Piero
New php-forum User
New php-forum User
Posts: 2
Joined: Thu Sep 02, 2004 4:39 pm
Location: Florida
Contact:

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.

User avatar
swirlee
Moderator
Moderator
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

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

You have to include the file in your script using include or require.


Return to “PHP Scripts”

Who is online

Users browsing this forum: No registered users and 1 guest

cron