[PHP] PHPlot patch
Hi, I was using Phplot for a project of mine and I had to do some modifications in the phplot.php code to show the data values at the peaks of the graph. I would like to commit the modification code to the phplot repository so that others can also use it as an inbuilt functionality. If I want to commit to the phplot, how may I achieve it? Thank you -- View this message in context: http://www.nabble.com/PHPlot-patch-tp25550789p25550789.html Sent from the PHP - General mailing list archive at Nabble.com.
[PHP] preg match
This php script perform matching text of some certain URLs. but in this preg_match it wont match few patterns < _ . with help of this script , can some body help me to match the other all patterns .plz ? "; if ( preg_match("/$chk_msg/", "$msg", $match) ) { // match found $SQL="update Status set Status = 'UP' where ServiceNo=".$rset["ServiceNo"]; mysql_query ("$SQL") or die ("Invalid 2nd query"); }else{ // SERIVCE DOWN // nothing to do here. //echo "No match.."; } } mysql_close($dblink); ?> thanx in advance, chandana
[PHP] Only variables can be passed by reference - Preg_match Fatal error
hi When i try to compile this code it gives following error. Fatal error: Only variables can be passed by reference in /var/www/html/hello/test.php on line 16 I have defined variable for to match some string patterns / symbols. when i execute that code for preg_match , gives this fatal error . "; $dblink = mysql_connect("localhost:3306", "$user", "$pass")or die("Could not connect to db"); mysql_select_db($db) or die ("can't select the db"); $result = mysql_query ("select ServiceNo,Reply from Acknowledgement order by ServiceNo") or die ("Invalid query"); while ( $rset= mysql_fetch_array($result)) { /* Lets check the reply with the database*/ $chk_msg= $rset["Reply"]; //echo "checking $chk_msg in $msg"; if ( preg_match("$pattern","/$chk_msg/","$msg", $match) ) { // match found $SQL="update ServiceStatus set Status = 'UP' where ServiceNo=".$rset["ServiceNo"]; mysql_query ("$SQL") or die ("Invalid 2nd query"); }else{ } } mysql_close($dblink); ?> how can i prevent this problem ??? Thanx in advance chandana
[PHP] Preg_match----------help
hi , using preg_match , how can i match "<", "_" , ">" " - " such special characters in a sentence ??? Eg: Strings are like this, 1.Ahgrwgsgd dfjb yuhh dfh GHJGJ kjHGKJGK -- here i want to match 3.GHHTGH GHJK