Board index   FAQ   Search  
Register  Login
Board index PHP PHP Scripts

What is wrong

Links for php scripts

Moderators: macek, egami, gesf

What is wrong

Postby kaiten65 » Thu Oct 25, 2012 7:22 pm

Can someone tell me what is wrong with this code please. I keep getting a 500 error!

Code: Select all
if (!isset($templ_name)) {
      $templ_name = "original";
$templ = simplexml_load_file("$temp_dir.DIRECTORY_SEPERATOR.$");
function get_details()
   $t = new SimpleXMLElement($templ);
   $t_name = $t->template->title;
   return $t_name;
New php-forum User
New php-forum User
Posts: 1
Joined: Thu Oct 25, 2012 7:19 pm

Re: What is wrong

Postby MeroD » Thu Oct 25, 2012 10:57 pm

Your Web server should generate some kind of internal error log which gives more details of what went wrong. Try to analyze the applicable logs (if you have access...)
New php-forum User
New php-forum User
Posts: 53
Joined: Wed Oct 10, 2012 12:14 am

Return to PHP Scripts

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.