deesse Posted September 5, 2007 Share Posted September 5, 2007 HI All, May I know, how can I generalize my php script and how would that script be like based on these description: 1--The new script should be a ONE php-program that takes a file name (URL) to download as command line parameter. 2--Depending on the extension of the file to download, the program should choose between downloading and unpacking (.ext1 extension), or just downloading (.ext2 and .ext3). overall working archi..... . | | ------------- file extension |------ext1-----set ext1=true--- ------------- | | ext2, ext3 | | | --------------- | set ext1=true | --------------- | | | |-------------------------------------- --------------- download --------------- | | --------------- ------------ ext1 | ------true---- unzip --------------- ------------ | | false ready Link to comment https://forums.phpfreaks.com/topic/68019-generalized-php-scripts/ Share on other sites More sharing options...
deesse Posted September 5, 2007 Author Share Posted September 5, 2007 minor error.... below ext2 and ext3 set ext1= false instead of true.... Link to comment https://forums.phpfreaks.com/topic/68019-generalized-php-scripts/#findComment-341963 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.