asp程序转php

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

本文发布于:2024-09-23 07:25:58,感谢您对本站的认可!

本文链接:https://www.17tex.com/xueshu/273993.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:转换   需要   发现   命令   铸铁   故事
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议