-
php 源码限制问题$str=$_POST['name'];if(strlen($str)<4){ echo'对不起,您的用户名过短';}这个是限制name这个关键字的最小长度,不知道是不是这么写$strl=$_POST['name'];if(strlen($strl)>18){echo'对不起,您的用户名过长'}strl。这个是限制name这个关键字的最大长度请xin1987 时间:06-24 + 阅读全文
-
我走淘宝助理上面导出店铺商品,用PHP读取全部是乱码,怎么回事,如何解决?我现在通过淘宝助理导出商品信息为csv格式,用php:$handle=fopen("311-2RBX.csv","r");$row=1;while($data=fgetcsv($handle,",")){//1000,$num=count($data);for($i=1;$i<$num;$i++){$sql=strip_tags($data[$i]);echo$sql."nixiang2012 时间:06-24 + 阅读全文
-
php168中的一个页面看不懂....<?phprequire_once("global.php");//这个懂preg_match("/(.*)\/(index\.php|)\?main=([^\/]+)/is",$WEBURL,$array);//这句看不懂$MainUrl=$array[3]?$array[3]:"center.php?job=config";//这句也看不懂 require_goodmhjmhj 时间:06-24 + 阅读全文
-
新手问题:多按钮提交 运行submitit1,为什么还会刷新页面?[/<html><head><script>functionsubmitit1(){return;//为什么还会刷新页面?}functionsubmitit2(){document.myForm.action="2.htm"document.myForm.submit();}</script></head&gbauwa 时间:06-24 + 阅读全文
-
php远程连接mysql,十分古怪,蛋疼中....早上来的时候,我(本地)测试了一下远程连接一个mysql,将其传到服务器上,并且在远程mysql设置了远程IP ,传了之后,我测试,成功,能够连接到mysql 上午10,我又测试,居然死活都不行了,我无语了,各位有没有遇见这种问题的啊?而且我的mysql_error()并没有提示什么错误的信息(我配置文件中已经开启了的),不知道原因。求解惑 在线HelloJimmy520 时间:06-23 + 阅读全文
-
主机不能识别COOKIE?碰到一个奇怪的问题,本地架设的php5.2.8,MYSQL5.2.5,windowXP,部份COOKIE不能识别,但程序上传到服务器上,却可以识别,请问有这方面的设置?php_aga 时间:06-23 + 阅读全文
-
一个很奇怪的问题,有关require,include和require_once,include_once设置了open_basedir只要使用require或include包含文件(不管是./xx.php还是xx.php)都是报下面的错误Warning:include()[function.include]:open_basedirrestrictionineffect.File()isnotwithintheallowedpath(s):(/var/www/:/tmOphite 时间:06-23 + 阅读全文
-
DEDE系统在线下单怎么在后台显示前台已经提交可是后台订单管理出错 DedeCMSErrorWarning!TechnicalSupport:http://bbs.dedecms.comErrorpage:/antihit/order_main.phpErrorinfos:Table'youting398.jrsy_order_products'doesn'texistErrorWilliameng 时间:06-22 + 阅读全文