Title: Die return not working
Last modified: November 9, 2022

---

# Die return not working

 *  Resolved [isolmac](https://wordpress.org/support/users/isolmac/)
 * (@isolmac)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/die-return-not-working/)
 * I use a simple php code to parse a php file (epg.php). It works properly (now
   live working) echoing a div with echo return, between other divs.
    I’m trying
   to modify the code just in case epg.php can’t be downloaded.
 * (@include(“epg.php”)) or die(“<span class=\”sonando\”>” . “Directo” . “</span
   >”);
 * When I delete epg.php for testing, this div is returned, but it doesn’t load 
   the rest of wordpress page.
    I don’t know why when answer is the same when exists
   and doesn’t only changing innertext in div, when it doesn’t, the return is ok,
   but not the resto of page. Wondering Probably is not plugin issue… Anyway, can
   you help me?
 * Thnks in advance
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdie-return-not-working%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [isolmac](https://wordpress.org/support/users/isolmac/)
 * (@isolmac)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/die-return-not-working/#post-16184731)
 * Reply to myself, wordpress doesn’t like die. I solved this way:
 *     ```
       if(is_file('epg.php')){
       		 include 'epg.php';
       	 }else {
       		 $xmltext= ""; // this is the name of var to parse within epg.php
       	 }
       ```
   
 * This way I echo “Directo” in case parsing result is “”.
    Thanks
    -  This reply was modified 3 years, 5 months ago by [isolmac](https://wordpress.org/support/users/isolmac/).

Viewing 1 replies (of 1 total)

The topic ‘Die return not working’ is closed to new replies.

 * ![](https://ps.w.org/code-manager/assets/icon-128x128.png?rev=2392773)
 * [Code Manager](https://wordpress.org/plugins/code-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/code-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/code-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-manager/reviews/)

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [isolmac](https://wordpress.org/support/users/isolmac/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/die-return-not-working/#post-16184731)
 * Status: resolved