ag3nt42 Posted May 22, 2008 Share Posted May 22, 2008 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 Link to comment https://forums.phpfreaks.com/topic/106797-solved-creating-external-files-in-php-for-use-in-code/ Share on other sites More sharing options...
ag3nt42 Posted May 22, 2008 Author Share Posted May 22, 2008 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 Link to comment https://forums.phpfreaks.com/topic/106797-solved-creating-external-files-in-php-for-use-in-code/#findComment-547472 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.