ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


php code in IFRAMEs in the content


  • 2005-11-15 08:06:16

    php code in IFRAMEs in the content

    I want to use infromation from the database in my courses (e.a. the results of a test) My idea is to use an IFRAME on the page which refers to the php page with the code needed.

    First the File manager does not let me upload php file, but I managed to put the file in place (FTP directly to the server).

    When I set the src of the IFRAME to this php page the php code is not executed. When I look at the proporties of the IFRAM it shows : www.xyz.nl/atutor/get.php/test.php. The source of the whole page seems to be correct.

    Is there a way to fix this and let the server process the php code for the IFRAME

    Jan Speur

  • 2005-11-15 10:24:39

    .

    you'll have to put the php file outside of your content directory and within the atutor docs directory then link to it using an absolute path.

  • 2005-11-15 10:32:03

    .

    you'll have to put the php file outside of your content directory and within the atutor docs directory then link to it using an absolute path.

  • 2005-11-15 10:43:19

    .

    you'll have to put the php file outside of your content directory and within the atutor docs directory then link to it using an absolute path.

  • 2005-11-15 11:36:49

    Yes it works

    Yes, this is working. As soon as there is a / in the url the get.php page is not interfering any more and the webserver is giving you the url.