Title: Use variables with Shortcode Exec PHP
Last modified: August 21, 2016

---

# Use variables with Shortcode Exec PHP

 *  [Florent](https://wordpress.org/support/users/frappi/)
 * (@frappi)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/use-variables-with-shortcode-exec-php/)
 * Hello,
 * I’m trying to make it works a shortcode [download] that need 2 variables : $url
   and $filename
 * But when I call the PHP code bellow with shortcode [download url=”www.url.com”
   filename=”01254551.xls”]
 * `if (get_doc_from_url($url,$filename, "mydoc.xls")) {`
 * It returns nothing. Any idea what is wrong with it ?
 * Thank you
 * Vivaldi
 * [http://wordpress.org/plugins/shortcode-exec-php/](http://wordpress.org/plugins/shortcode-exec-php/)

The topic ‘Use variables with Shortcode Exec PHP’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/shortcode-exec-php.svg)
 * [Shortcode Exec PHP](https://wordpress.org/plugins/shortcode-exec-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcode-exec-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcode-exec-php/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcode-exec-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcode-exec-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcode-exec-php/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [variable](https://wordpress.org/support/topic-tag/variable/)

 * 0 replies
 * 1 participant
 * Last reply from: [Florent](https://wordpress.org/support/users/frappi/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/use-variables-with-shortcode-exec-php/)
 * Status: not a support question