Jump to content

Question On Include Files


TrakSoft

Recommended Posts

Hello. I have a PHP issue and require some assistance. I’m not sure what caused this issue - going from PHP4 to PHP5, or a PHP configuration setting that my web hosting company made. In PHP4 I was able to include a page of code in my web apps that was hosted on another URL by using the following:

require(" http:// myincludes.mysite.com / inc_myfunctions.php "). This allowed me to have all my common functions and components used by different web applications in one location and not have to have a copy of them in each web app directory. If I made a change to a function, or added a function, I only had to do it in one place and the change became available to all my web apps. Now with PHP5, I cannot include a page that resides on another URL. This means that I am going to have to have a copy of all my function pages and components in the directory of each of my web apps – And when I need to make a change, I will need to make that change in each location. Does anyone know of a workaround or have an idea of another way to implement this to meet my needs of having them located in one location? Please note that each web app has it’s own URL. Any help will be greatly appreciated.

 

Thanks,

 

Gary

Link to comment
Share on other sites

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.