易截截图软件、单文件、免安装、纯绿色、仅160KB

[php]how to confirm deleting without using form.

<html>
<head>
<script type="text/javascript">
<!--
function confirmDelete()
{
    return confirm("Are you sure you wish to delete this entry?");
}   
//-->
</script>
</head>
<body>
<% $var1 = 2;%>
<a href="?action=delete&id=<?=$var1?>" onclick="return confirmDelete();">
    Delete this entry
</a>
</body>
</html> 
B
TW:
Line 14 is using PHP's short_open_tag which is not recommended, the formal tag should be <%php %>
Line 15 is using ASP-style <% %> tags.
Of couse you can use the PHP formal tag, the above code is simply to demostrate the other two tags. 
To enable short_open_tag and "<?" support in php, you need to modify php.ini, make sure enable below two attributes.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://php.net/short-open-tag
short_open_tag = On
; Allow ASP-style <% %> tags.
; http://php.net/asp-tags
asp_tags = On


相关文档:

关于MemcacheDB PHP客户端的问题及解决办法

http://blog.developers.api.sina.com.cn/?p=264
最近MemcacheDB邮件列表和研发部那边同事报告PHP的memcache客户端php-memcache经常出 现断连接的问题:
PHP Notice:  Memcache::get(): Server ………. (tcp 11211) failed with: Failed reading line from stream (0) with pecl-memcache 3.*
&h ......

VisualSVN增加密码php修改页面

VisualSVN增加密码php修改页面
1.假设VisualSVN安装在 C:\Program Files\VisualSVN Server
2.下载并安装php windows版本,假设安装在c:\php
  可以到php官方网站下载 www.php.net
  附件中带的是 php-5.3.2-Win32-VC6-x86.zip
3.VisualSVN增加php支持
注意修改 "c:/php/php5apache2_2.dll" 为正确路径
C:\ ......

PHP与ACCESS链接的类

[php]
<?php
--------------------------------------------------------------------
//FileName:class.php
//Summary: Access数据库操作类
//Author:  forest
//CreateTime: 2006-8-10    
//LastModifed:
//copyright (c)2006
//http://freeweb.nyist.net/~chairy 
//cha ......

iptables + php 上网计费实现

最近有一个香港的酒店提出需求,要到酒店业内的商务中心实行计费上网, 提供了如下技术方案:
1、设一台CENTOS5的机器做为路由,把需要计费的机器都设为用此服务器做网关。
2、服务器开启IPTABLE,通过IPTABLE控制能不能使用互联网。
记录下以下技术要点:
一、 php可以通过shell_exec来执行shell指令,但iptables的指令是r ......

PHP中foreach循环遍历数组(3)

<?php
 
  //声明数组变量
  $arr = array(val1 =>'张三',val2 => '李四',val3 => '王五',val4 => '李明',val5 => '周燕妮');
 
  //foreach循环遍历数组
  foreach($arr as $key => $value){
   //注意“$value”后必须要一个空格,否则输 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号