note 64814 added to function.system

From: Date: Fri, 21 Apr 2006 05:19:34 +0000
Subject: note 64814 added to function.system
Groups: php.notes 
Request: Send a blank email to php-notes+get-108887@lists.php.net to get a copy of this message
Here is the problem i am facing. I want a script that download a file into the server(into a destined folder). I am guessing i need to use the system(wget) command for that. <form name='pdb_id' method=POST action=download.php> <input type=text name=id> <input type='submit' name='submit' value='Download PDB File'> </form> when the user types into the id into the text field, i want the script to download the following file into \uploaded_pdb\ folder the file is at http://www.rcsb.org/pdb/downloadFile.do? fileFormat=pdb&compression=NO&structureId=$id where $id is the text the user inputs. for example, if the user inputs 1AV1 the server should download http://www.rcsb.org/pdb/downloadFile.do? fileFormat=pdb&compression=NO&structureId=1AV1 and save it in /uploaded_pdb/ what do you think i should do now? $pdb = system(get http://www.rcsb.org/pdb/downloadFile.do? fileFormat=pdb&compression=NO&structureId=$id) is that correct? it isnt working... I am running on linux! Any help would be appreciated! Thanks a lot Vidyashankar ---- Server IP: 64.71.164.2 Probable Submitter: 65.68.103.216 ---- X-Spam-Status: No, hits=3.3 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, HTML_MESSAGE autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.system.php Edit -- http://master.php.net/note/edit/64814 Del: integrated -- http://master.php.net/note/delete/64814/integrated Del: useless -- http://master.php.net/note/delete/64814/useless Del: bad code -- http://master.php.net/note/delete/64814/bad+code Del: spam -- http://master.php.net/note/delete/64814/spam Del: non-english -- http://master.php.net/note/delete/64814/non-english Del: in docs -- http://master.php.net/note/delete/64814/in+docs Del: other reasons-- http://master.php.net/note/delete/64814 Reject -- http://master.php.net/note/reject/64814 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#108887) next »