How to use functions from another php file
Moderator: General Moderators
- jdhorton77
- Forum Commoner
- Posts: 56
- Joined: Tue Nov 07, 2006 3:29 pm
- Location: Charlotte, NC
How to use functions from another php file
If I have some functions that I find are going to be used in multiple pages how do I link to them. Actually I think that's the tag I'm supposed to use. But when I was playing around with the link tag it didn't seem to work right. Am I supposed to use include()? Thanks for all of your help.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: How to use functions from another php file
You got it.jdhorton77 wrote:Am I supposed to use include()?
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: How to use functions from another php file
This is probably something you could have solved for yourself if you would have tried it.jdhorton77 wrote:If I have some functions that I find are going to be used in multiple pages how do I link to them. Actually I think that's the tag I'm supposed to use. But when I was playing around with the link tag it didn't seem to work right. Am I supposed to use include()? Thanks for all of your help.
- jdhorton77
- Forum Commoner
- Posts: 56
- Joined: Tue Nov 07, 2006 3:29 pm
- Location: Charlotte, NC