• hi there

    Love this plugin btw

    i have a problem understanding he path i need to use to a php script i want to include

    The fture to click folder and browse my directory structure to build the path does not seem to work so i tried enteering it manually

    I added this

    /scripts/myscriptname.php

    and placed the folder ‘scripts’ with my php script in it my web root – as a test

    this does not seem to work when I run it on the schedue or manually

    did i set the path wrong

    cheers

    joe

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author miunosoft

    (@miunosoft)

    Hi,

    The fture to click folder and browse my directory structure to build the path does not seem to work so i tried enteering it manually

    How does not it work? When you press the folder icon, it is supposed to open a modal window titled Select Path and you should be able to select a file.

    The path you need to enter should be relative to the value $_SERVER[ ‘DOCUMENT_ROOT’ ].

    Say, you have

    $_SERVER[ 'DOCUMENT_ROOT' ]: /htdocs/
    – WordPress Site Path: /htdocs/wordpress
    – Your desired PHP Script Path: /htdocs/php/myscript.php

    Then it would be, /php/myscript.php.

    Hope this helps.

    Thread Starter aliferis

    (@aliferis)

    thanks

    the modal opens but its empty

    I have a folder ‘scripts’ in my web root (same location is the wp-config

    so I used this path in the plugin

    /scripts/myscriptname.php

    this ok ?

    Joe

    Plugin Author miunosoft

    (@miunosoft)

    same location is the wp-config

    Then try adding the directory name of the wordpress site. Say, it is installed on the mywp directory, try /mywp/scripts/myscriptname.php.

    Thread Starter aliferis

    (@aliferis)

    can I put the script folder and file relative to the plugin dir ?

    Plugin Author miunosoft

    (@miunosoft)

    Hi,

    You can, but it does not mean the file is properly found if it is the wrong path.

    You have to specify the script file location relative to the value $_SERVER[ 'DOCUMENT_ROOT' ] as mentioned in the initial reply.

    Thread Starter aliferis

    (@aliferis)

    I think that is what i originally did

    like so

    /scripts/myscriptname.php

    do I use the slash at the start ?

    joe

    Plugin Author miunosoft

    (@miunosoft)

    You can either omit or keep the forward slash at the beginning.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Path to php script’ is closed to new replies.