WordPress.org

Ready to get started?Download WordPress

Forums

Exec-PHP
Function call with parameters to 'included' PHP script? (1 post)

  1. k44g
    Member
    Posted 1 year ago #

    My question is about whether it is possible to use PHP code in my WP page that invokes a PHP script invoked by a Function call with parameters...

    I have a tested php script that containing a function that is entry to the script, and that is invoked with a function call that includes a series of text-string and numeric parameters, like this:

    <?php
    include('myScript.php');
    myScript_main("string1", "string2", 100, 200, 300);
    ?>

    The consequences of execution is echoing information generated by parsing a file that is accessed using a URL like this (using the string1 and string2 parameters):

    http://myWebsite.com/string1/string2.xml

    Before I spend lots of time hunting down the details, is this even possible in WP ... upload the script to somewhere, then use the PHP code above within a WP page to invoke it?

    If not possible, guidance as to what is the best way to achieve what I want to do will be much appreciated.

    http://wordpress.org/extend/plugins/exec-php/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic