Title: Path to php script
Last modified: July 10, 2018

---

# Path to php script

 *  [aliferis](https://wordpress.org/support/users/aliferis/)
 * (@aliferis)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/path-to-php-script/)
 * 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](https://wordpress.org/support/users/miunosoft/)
 * (@miunosoft)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/path-to-php-script/#post-10482534)
 * 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’ ]](http://php.net/manual/en/reserved.variables.server.php).
 * 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](https://wordpress.org/support/users/aliferis/)
 * (@aliferis)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/path-to-php-script/#post-10482764)
 * 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](https://wordpress.org/support/users/miunosoft/)
 * (@miunosoft)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/path-to-php-script/#post-10482787)
 * > 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](https://wordpress.org/support/users/aliferis/)
 * (@aliferis)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/path-to-php-script/#post-10483031)
 * can I put the script folder and file relative to the plugin dir ?
 *  Plugin Author [miunosoft](https://wordpress.org/support/users/miunosoft/)
 * (@miunosoft)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/path-to-php-script/#post-10483054)
 * 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](https://wordpress.org/support/users/aliferis/)
 * (@aliferis)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/path-to-php-script/#post-10483130)
 * 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](https://wordpress.org/support/users/miunosoft/)
 * (@miunosoft)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/path-to-php-script/#post-10483148)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/task-scheduler_ffffff.svg)
 * [Task Scheduler](https://wordpress.org/plugins/task-scheduler/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/task-scheduler/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/task-scheduler/)
 * [Active Topics](https://wordpress.org/support/plugin/task-scheduler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/task-scheduler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/task-scheduler/reviews/)

## Tags

 * [cron](https://wordpress.org/support/topic-tag/cron/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 7 replies
 * 2 participants
 * Last reply from: [miunosoft](https://wordpress.org/support/users/miunosoft/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/path-to-php-script/#post-10483148)
 * Status: not resolved