网站开发
文章平均质量分 60
HeiMaoChuMei
这个作者很懒,什么都没留下…
展开
-
php 常用字符串处理
*连接字符串使用.操作符$txt1 = "hello";$txt2 = "alice";echo $txt1.' '.$txt2; //"hello alice"*计算字符串长度使用strlen()函数<?php$txt = "hello";echo strlen($txt);//输出5?>*查找字符串内某个字符(字符串),并返回该字符(字原创 2013-08-08 10:48:25 · 710 阅读 · 0 评论 -
php 文件处理
*打开关闭文件使用函数 fopen(filename,mode)为防止文件无法打开的错误,使用下列语句$file = fopen("welcome.txt","r") or exit("Unable to open file!");mode 参数:打开文件的方式,一般有r 只读,从文件开头开始w 只写,打开并清空文件,如文件不存在,创建新文件a 追加,打开并向文原创 2013-08-08 23:32:19 · 745 阅读 · 0 评论 -
jquery 操作
jquery 操作-选择元素-读取元素-修改元素使用chrome console 实践 test first one one one one one one one one one one hello world baidu选择元素1.使用与css选择器类似的方式$("p"原创 2013-08-11 23:37:43 · 534 阅读 · 0 评论 -
PHP 文件上传
upload_file1.修改表单传递编码表单默认情况传递,这个编码格式是 application/x-www-form-urlencoded只用使用了 multipart/form-data 才能完整的传递文件2.上传空间 type="file"会显示一个输入框和一个按钮3.$_FILES系统函数$_FILE['upfile']['na原创 2013-08-30 08:20:22 · 556 阅读 · 0 评论