Links for php scripts
Moderators: macek, egami, gesf
by 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;
}
get_details();
-
kaiten65
- New php-forum User

-
- Posts: 1
- Joined: Thu Oct 25, 2012 7:19 pm
by 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...)
-
MeroD
- 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 2 guests