常年做web的,工作需要,可能有的时候需要将asp代码批量转换成php,最近发现一个小东西很不错,虽不能100%转换(毕竟是程序),但是大大提高了工作效率

Asp2Php是一个可以将ASP转化成PHP的小程序,做web的可能有时会用到。

官方下载地址http://asp2php.naken.cc/download.php

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>
    -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)
    -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

最新文章

  1. Java数据结构——双向链表
  2. 关于Mesos和Kubernetes的区别
  3. 开源项目:FFmpeg
  4. 【转】Java中只有按值传递,没有按引用传递!
  5. OC 成员变量作用域
  6. nodejs调试
  7. 向GridView的模板列绑定OnClientClick的函数时出现了奇怪的问题
  8. jquery.form.js+jquery.validation.js实现表单校验和提交
  9. MyBatis动态代理
  10. 安装rabbtimq CentOS 7
  11. selenium官方网站文档,testng官方网站文档
  12. windows cmd命令 批处理bat 导增量jar包【原】
  13. VS2013/VS2015/VS2017通过oschina托管代码
  14. javolution学习--介绍
  15. [C#]使用RabbitMQ模拟抽奖系统的例子
  16. Django的配置文件(settings.py)
  17. Python3 break与continue
  18. Teaching Machines to Understand Us 让机器理解我们 之三 自然语言学习及深度学习的信仰
  19. oracle用户解锁
  20. python os.popen 乱码问题

热门文章

  1. SQLSERVER中常用的系统视图
  2. JMS学习之理论基础
  3. PM2部署资料
  4. centos7部署JavaWeb项目
  5. CentOS 7搭建FTP服务器
  6. Introducing .NET Standard
  7. 简单引入logback
  8. Mac开发者常用的工具
  9. HashMap的小试牛刀
  10. [原创] 改善 Firemonkey Canvas 几何绘图质量问题(移动平台)