Shortcode Exec PHP
[resolved] Including a PHP page (5 posts)

  1. philipt18
    Posted 3 years ago #

    If I have a PHP page, can I just include that using this plug-in? I'm looking for a way to integrate with WP, while allowing a developer to update the php file without having to deal with WP. Thanks.


  2. M66B
    Plugin Contributor

    Posted 3 years ago #

    You can try, but be aware that the scope of a shortcode is different from a separate PHP file. In other words you might have to change things.

  3. markostanley
    Posted 3 years ago #

    philipt18 how did you get on with this? I am including a complex php script previously written and sitting on my web server, but it's not working. Did you try this and find particular things worked / didn't work? I was previously doing the same thing, including the same script on WordPress 2 using Exec-PHP which worked. But no more it seems...

  4. johnh44
    Posted 3 years ago #

    shortcode-exec worked for me, but I did have to alter my code a bit; supplied some global variables for one thing. Minor adjustments.

  5. lohray
    Posted 2 years ago #

    I am wondering the same thing. How do I include an existing php file? What path do I use? Should I use an absolute path? What folder should myFile.php be in to run include("myFolder.php");?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic