No objections to this : there is the codeI would like to see your code, if you have no objections. I see in general terms how to script it, but I'm still enough of a php novice to benefit from real-world examples.many thanks, tim ($idmol is your PDB id, the files are stored in 2 directories, one for gz (mol/gz) and one for pdb (mol/pdb) The messages and comments are in french... I hope you could guess the meaning ;-)   Â Â //on copie le fichier compressà tÃlÃchargà à l'endroit voulu   $sourcePDB = fopen ("http://www.rcsb.org/pdb/cgi/export.cgi/".$idmol.".pdb.gz?format=PDB&pdbId=".$idmol."&compression=gz","rb");     if (!$sourcePDB)    $message .= "Impossible de lire le fichier<br>\n";   else   {    $adresse["gz"] = "mol/gz/".$nomFichier.".pdb.gz";    $destination = fopen($adresse["gz"],"wb");    if (!$destination) {     $message .= "Impossible d'Ãcrire le fichier destination.<br>\n";     fclose($sourcePDB);    }    else    {     while (!feof ($sourcePDB)) {      $line = fread ($sourcePDB, 1024);      fwrite($destination,$line);     }     $message .= "Transfert du fichier rÃalisà avec succÃs.<br>\n";     fclose($destination);     fclose($sourcePDB);         //on dÃcompresse le fichier tÃlÃchargà     $copieGZ = gzopen ($adresse["gz"],"rb");         if (!$copieGZ) {      $message .= "Impossible de lire le fichier transfÃrà pour le dÃcompresser.<br>\n";     }     $adresse["pdb"] = "mol/pdb/".$nomFichier.".pdb";     $copiePDB = fopen($adresse["pdb"],"w");         while (!gzeof ($copieGZ)) {      $line = gzgets ($copieGZ, 1024);      //echo $line;      fwrite($copiePDB,$line);     }     $message .= "Les versions compressÃes et non compressÃes du fichier ont Ãtà rÃalisÃes.<br>\n";     fclose($copiePDB);     gzclose($copieGZ);       } Paul ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users |
- Re: [Jmol-users] access to raw PDB entry data? Albion Baucom
- Re: [Jmol-users] access to raw PDB entry data? timothy driscoll
- Re: [Jmol-users] access to raw PDB entry data? Albion Baucom
- Re: [Jmol-users] access to raw PDB entry data? Paul Pillot
- Re: [Jmol-users] access to raw PDB entry data? timothy driscoll
- Re: [Jmol-users] access to raw PDB entry dat... Paul Pillot
- Re: [Jmol-users] access to raw PDB entry data? Miguel

