Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.