Title: Error 500
Last modified: August 22, 2016

---

# Error 500

 *  [nathanbobato](https://wordpress.org/support/users/nathanbobato/)
 * (@nathanbobato)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/error-500-575/)
 * Hi, this code is not working
 * function getFile($url){
    $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 
   0); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER,
   1); $tmp = curl_exec($ch); curl_close($ch); if ($tmp != false){ return $tmp; }}
 *  $contents = getFile(‘[http://bsoftsistemas.mysuite.com.br/empresas/bso/verifica.php&#8217](http://bsoftsistemas.mysuite.com.br/empresas/bso/verifica.php&#8217););
 *  echo $contents;
 * what i’m doing wrong?
 * Tnx
 * [https://wordpress.org/plugins/shortcode-exec-php/](https://wordpress.org/plugins/shortcode-exec-php/)

The topic ‘Error 500’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [nathanbobato](https://wordpress.org/support/users/nathanbobato/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/error-500-575/)
 * Status: not resolved