Question: Help with getting the whole pdb data from rcsb for further parsing
0
gravatar for Ali HEBRA
3.4 years ago by
Ali HEBRA0
Switzerland, Basel
Ali HEBRA0 wrote:

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

software error • 769 views
ADD COMMENTlink written 3.4 years ago by Ali HEBRA0
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2325 users visited in the last hour