Hi biostars Currently, I have decided to evaluate a docking program by inputting some PDB files from rcsb.org. I have written this piece of code of PHP but I don't know why it doesn't work at all for getting the pdb data from RCSB?
$identifier = "2efj" $web = "http://www.rcsb.org/pdb/explore/explore.do?structureId=" . $identifier; $handle = file_get_contents($web); if ($handle !== false) { $filename = "sequences/" . $identifier . ".html";
$f=@fopen($filename,"a"); fwrite($f,$handle); fclose($f);
Is there any way to get the whole RCSB page and it's contents? Note that i don't want to have just .pdb files, and I need the informations like PMID, Images and other fields of the main page. look the : "http://www.rcsb.org/pdb/explore/explore.do?structureId=2efj" for instance I really appreciate your help to solve this stupid problem :-)