[PHP] parse a Makefile

2006-04-03 Thread Benjamin D Adams
I'm trying to parse a Makefile, (FreeBSD Ports)
I plan on dumping the Makefile vars to a MySQL Database.

Would I parse the make file like a ini file?
Or would I have to use something different?

Maybe someone knows a tool that can do this for me?

Thanks
Ben

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] preg_match

2006-03-31 Thread Benjamin D Adams
I'm trying to check a string for ../
?php
if(preg_match(/..//i, $string)){
echo string has ../;
}
?

Can't get it to work can anyone help?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php