Closed Thread
Results 1 to 4 of 4

Thread: Remote include of PHP files

  1. #1
    weregus24 is offline x10Hosting Member weregus24 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    6

    Remote include of PHP files

    Hi all,

    I have a function file in PHP to use in different places, so I need to have it only in one folder and include it remotely. The problem is that the "include_once" function doesn't work for urls, so when I write something like this I have an error:

    include_once 'http://www.mysite.com/myfile.php';

    I have found in Internet that the solution is enabling the allow_url_include in php.ini

    Is there any way of doing it in my code, or should be done by the hosting service?

  2. #2
    creativosred75 is offline x10Hosting Member creativosred75 is an unknown quantity at this point
    Join Date
    Sep 2011
    Posts
    28

    Re: Remote include of PHP files

    Estás en el foro de SOPORTE en castellano, y como tal, deberás formular tu pregunta en dicho idioma. Para tickets en inglés ya dispones de otro foro.

  3. #3
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: Remote include of PHP files

    The feature is disabled on a per server basis and will not be changed. Including files from remote sources is a security issue.
    Nothing is always absolutely so.

  4. #4
    weregus24 is offline x10Hosting Member weregus24 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    6

    Re: Remote include of PHP files

    Perdón por lo del idioma and thanks a lot for your answer.

    Siento haber tardado en responder pero no he recibido notificaciones en el email de las respuestas que habéis dado.

Closed Thread

Similar Threads

  1. php Include files
    By respond in forum Free Hosting
    Replies: 1
    Last Post: 11-11-2009, 11:34 AM
  2. Using Include Files with html on X10Hosting
    By frankfriend in forum Tutorials
    Replies: 0
    Last Post: 07-06-2009, 01:38 PM
  3. How do I put include files in html - what is the syntax please
    By frankfriend in forum Programming Help
    Replies: 4
    Last Post: 02-17-2009, 02:19 PM
  4. Could use some php include help here...
    By Agenator in forum Programming Help
    Replies: 8
    Last Post: 01-02-2009, 08:23 PM
  5. Php include?
    By limelight987 in forum Programming Help
    Replies: 3
    Last Post: 06-17-2008, 04:29 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers