Jump to content

[SOLVED] creating external files in php for use in code


ag3nt42

Recommended Posts

I have a need to create an external file that would hold a series of functions or statements that I would like to import/include into a main php file. For use in functions/statements within that php file..sorta of like a library file.

 

Kinda like the external .js file for javascript..

I tried using the include(); function but it simply displays the code as html.. I need to be able to use the code inside the functions. Anyone know of a way to accomplish this.

 

using php.

 

thanx for the help in advance :)

nvrm i'm an idiot...

 

I thought that if I added the <?php ?> tags to the included file that it would close those statements out of the while statement i'm trying to include them into but I tested it and it works.. you can delete this topic if u like mods.. thanx

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.