this is the code if (file_exists('/user/'.$_SESSION['Username'].'/avatar.jpg')) { echo 'Exists'; } else { echo 'Doesn't exist'; } and i get the negative case

Member Avatar
Member Avatar
+0 forum 16

I am starting out with PHP and in my project I'm trying to fetch XML data from a url and parsing it for data. Now the url that I use is being fetched from a webpage and hence I know that it is correct and it exists. Still, when I try to execute the page I get the following errors: [ICODE] Warning: DOMDocument::load() [domdocument.load]: php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\Users\Siddharth Dahiya\Dropbox\www\Site\includes\tw_worlds.php on line 138 [/ICODE] The code in question is: [CODE=PHP] //Problem function function PopulateSettings() { set_time_limit(60000); //Lots of data hence large load time... $rtnVal = …

Member Avatar
Member Avatar
+0 forum 1

The End.