Installation, Configuration, & Upgrades  :: 
How about executing an external php file??
 Top

  • I already have an external PHP file.
    How Can I call this .php file from a Block in order to displaying its contents to my Block.
    What is the command to call myfile.php ?
  • I am not sure if you can call an external file due the built in security protocols. To include a PHP file, create a PHP block and add this

    Code

    <include ('myfile.php');>
  • Quote

    I am not sure if you can call an external file due the built in security protocols.


    I believe this to be true. I tried calling a non-PN PHP file and got an error. Is there a way?

    --
    pnDev.com ~ featuring the PostNuke paid services forum
  • I imagine you would have to hack the block to allow external files. However if you do this be VERY CAREFUL so that you only allow files that you want (i.e. don't open in up to allow any external files, but only allows for in an array for example)
This list is based on the users active over the last 60 minutes.