Hi Mark, Your code seems to work fine for me on our server: http://www.ccpem.ac.uk/jsmol_test/wass-kent.html<http://ccpem.ac.uk/jsmol_test/wass-kent.html> when I change change the JSInfo values of j2s and serverURL. If I try and use your PHP file, I see the same error as you. Can you check other PHP files (even as something as just running PHPInfo()) to make sure that your server is parsing PHP correctly?
Cheers, Chris ------------------- Dr Chris Wood STFC Rutherford Appleton Laboratory Didcot OX11 0QX chris.w...@stfc.ac.uk www.ccpem.ac.uk Tel: +44(0)1235 567864 Tel: +44(0)7909 586624 Fax: +44(0)1235 567801 Skype: chris_c_wood<callto://chris_c_wood/> ________________________________ From: Mark Wass [m.n.w...@kent.ac.uk] Sent: 03 September 2014 10:33 To: jmol-users@lists.sourceforge.net Cc: Mark Wass Subject: [Jmol-users] JSmol - Unable to load PDB file appears to think it is binary Hi, I am currently trying to get Jsmol to work on my server. I have used Jsmol successfully on other servers but this time I can’t get it to work. As a test I am simply trying to load a PDB file but when I try to load the page I get the following message: Error connecting to server: http://www.sbg.bio.ic.ac.uk/3dligandsite/jmol-14.2.4_2014.08.03/jsmol/php/jsmol.php?call=getRawDataFromDatabase&database=_&query=http%3A%2F%2Fwww.sbg.bio.ic.ac.uk%2F3dligandsite%2Fmodel.jmol.pdb&encoding=base64 The page then displays the following: Unrecognized file format for file http://www.sbg.bio.ic.ac.uk/3dligandsite/model.jmol.pdb <!DOCTYPEE HTML PUBLIC “-//ETF//DTD HTML 2.0/EN” > <html><head> <title>500 Internal Server Error</title> I have tried with different versions of Jmol without success. Any suggestions on how I can resolve this would be appreciated. I have copied the code fro mthe page below: In the header I have the following code: <script type="text/javascript" src="jmol-14.2.4_2014.08.03/jsmol/JSmol.min.js"></script> <script type="text/javascript" src="jmol-14.2.4_2014.08.03/jsmol/js/Jmol2.js"></script> <script type="text/javascript"> Jmol._alertNoBinary = false; var jmolApplet0 = null; var JSInfo = { addSelectionOptions: false, color: "#000000", j2sPath: "jmol-14.2.4_2014.08.03/jsmol/j2s", // HTML5 only use: "HTML5", width: 900, height: 900, disableJ2SLoadMonitor: false, readyFunction: null, deferApplet: false, src: null, serverURL: "http://www.sbg.bio.ic.ac.uk/3dligandsite/jmol-14.2.4_2014.08.03/jsmol/php/jsmol.php" } </script> Then in the body I have: <script type="text/javascript"> jmolApplet0 = Jmol.getApplet("jmolApplet0", JSInfo); Jmol.script(jmolApplet0, "load model.jmol.pdb;"); </script> Many thanks, Mark ------------------------------------------ Dr Mark Wass Lecturer in Computational Biology Centre for Molecular Processing School of Biosciences University of Kent web: http://www.wasslab.org m.n.w...@kent.ac.uk<mailto:m.n.w...@kent.ac.uk> ------------------------------------------ -- Scanned by iCritical. ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users