PHP coding summary
来源:互联网 发布:彩票源码 设计 编辑:程序博客网 时间:2024/06/06 19:31
1,确定URL:
//defining the URL
$url = 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']);
//check for a trailing slash.
if((substr($url, -1) == '/') OR (substr($url, -1) == '/')) {
$url = substr(url, 0, -1); //chop off the slash.
}
$url = 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']);
//check for a trailing slash.
if((substr($url, -1) == '/') OR (substr($url, -1) == '/')) {
$url = substr(url, 0, -1); //chop off the slash.
}
2,处理文件上载的表单必须的语法的三部分:
<form enctype="multipart/form-data" action="script.php" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="30000"/>
File <input type="file" mame="upload"/>
<input type="hidden" name="MAX_FILE_SIZE" value="30000"/>
File <input type="file" mame="upload"/>
- PHP coding summary
- Summary of problems when coding
- 一些PHP Coding Tips
- 一些PHP Coding Tips
- PHP Coding Tips
- 一些PHP Coding Tips
- PHP Coding Guideline
- C++ Coding Standards:Summary of Summaries-编码风格
- DVD-Video 解谜 - Virtual Machine coding - Instruction Set Summary
- Month of PHP Security - Summary
- Summary
- summary
- summary
- Summary
- Summary
- summary
- Summary
- summary
- 中断向量
- Oracle彻底优化
- ASP.NET(C#)连接SQL EXPRESS 研究中……
- 函数的指针与指针函数
- We offer the products with top quality and reasonable price SHOES>www.ectopmall.com
- PHP coding summary
- Unix平台下的常用命令技巧之 tar包、压缩与解压缩
- (www.ectopmall.com)sell to TN shoes,nike Air jordan Air Fore 1 Shox
- 比二分查找法更好的,我的估算值查找法
- 嵌入式实时操作系统μC/OS-II及其应用
- Struts Tiles框架使用
- 一个好用的日志工具类
- Unix平台下的常用命令技巧之五 资源与性能
- 一个按钮同时触发二个验证JS函数