Browsing articles from "March, 2010"
Mar
3
2010

stristr – Searching inside a text string

$main_string="This is a test string <a href=http://www.plus2net.com>with a link</a> to plus2net"; if(stristr($main_string,"http://")){ echo "String contains a link or the text http:// inside it ";} else { echo "String does not contains a link or the text http:// inside it ";}

Mar
1
2010

OpenVPN on Centos with windows

iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE iptables -A FORWARD -i tun0 -s 10.8.0.0/24 -o eth0 -j ACCEPT iptables -A FORWARD -i eth0 -o tun0 -m state –state ESTABLISHED,RELATED -j ACCEPT echo 1 > /proc/sys/net/ipv4/ip_forward

Pages:«12
Get Adobe Flash playerPlugin by wpburn.com wordpress themes