Doubt on simplexml_load_file()
Posted: Tue Jun 19, 2007 9:01 am
feyd | Please use
In this above code with out this @ symbol before simplexml_load_file() function i will not loaded. It's give a error message like
Fatal error: Call to undefined function: simplexml_load_file() in c:\phpdev\www\ananth\19_06_07\list.php on line 8
Reply me please.
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hai,
i am Ananth working as a PHP developer. Now i have a doubt on simplexml_load_file() function. this function is not working. My code isCode: Select all
$myGroceryList = "groceries.xml" ;
if (file_exists('groceries.xml'))
{
$xml = @simplexml_load_file('groceries.xml');
print_r($xml);
}
else
{
exit('Failed to open groceries.xml.');
}Fatal error: Call to undefined function: simplexml_load_file() in c:\phpdev\www\ananth\19_06_07\list.php on line 8
Reply me please.
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]