Support » Plugin: Shortcode Exec PHP » Including a PHP page

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor M66B


    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.

    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…

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

    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");?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Including a PHP page’ is closed to new replies.