asp程序转php
常年做web的,⼯作需要,可能有的时候需要将asp代码批量转换成php,最近发现⼀个⼩东西很不错,虽不能100%转换(毕竟是程序),但是⼤⼤提⾼了⼯作效率 Asp2Php是⼀个可以将ASP转化成PHP的⼩程序,做web的可能有时会⽤到。
Asp2Php使⽤⽅法:
单个转换:asp2php ⽂件名
如⽂件名是 amznz.asp 那么在CMD命令下输⼊ 木卡姆往事
asp2php amznz.asp
⽬录转换:asp2php -dir ⽬录名 -o b
如⽬录名为 amznz 那么在CMD命令下输⼊参数 b 为存放转换后的php⽂件的⽬录名
克伦族asp2php -dir amznz -o b铸铁工艺
以下是详细参数
Usage: asp2php <-options> <infile.asp>
-o <output filename>
-dir (input and output files are directories so copy recursively)
-mysql -odbc -oracle -sybase -postgres (to select database)
-uid <database username>
-passwd <database password>
-database <database name or sid>
-address <database ip address or ip name>
传奇故事2011-dsn <database ODBC dsn>
-pngs (for converting links to gifs into png)
-y2k (if your asp came from non-y2k compliant NT Box)
-
php3 or -php4 (change extension to .php3 or php4 instead of .php)
-toupper (change all variables to uppercase)
-tolower (change all variables to lowercase)
-html (change links to .htm files to .html)
-includes (change #includes to php requires())
-addextension .xxx (filenames with .xxx extension get asp2php translated)
wb193-spacer (Space out php code differently)
-gif2png (use gif2png instead of ImageMagick [-pngs mode only])危险固体废物
-nomagick (don't convert gif files to png [-pngs mode only])
-global_asa (include global.php in all pages)
-fixwinpaths (fix windows paths [ '\' becomes '/' ])
-
longexternvars (use, for example, $HTTP_POST_VARS instead of $_POST)
-fulltags (asp2php will use <?php instead of <?)
-change_response_links (in response.write text as .asp will change to .php)
关键词:asp转php asp批量转php