What is wrong

Links for php scripts

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 1
Joined: Thu Oct 25, 2012 7:19 pm

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.$templ_name.DIRECTORY_SEPERATOR.info.xml");
function get_details()
   $t = new SimpleXMLElement($templ);
   $t_name = $t->template->title;
   return $t_name;

New php-forum User
New php-forum User
Posts: 53
Joined: Wed Oct 10, 2012 12:14 am

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...)

Return to “PHP Scripts”

Who is online

Users browsing this forum: No registered users and 0 guests