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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.