[PHP] Code running function

2001-07-17 Thread B R
I know there's a function that takes a string argument and runs it as PHP code. i.e. function_name('echo $variable;'); I just can't remember what it is. Does any know? _ Do You Yahoo!? Get your free @yahoo.com address at

[PHP] Extract from string

2001-04-14 Thread n e t b r a i n
Hi all, anyone have or know where I can find a small function in order to extract from a string the most relevant words in it? something like this: $var="I love coffe ... Coffe is from Brazil and coffe with milk .."; $occurence=2; //$occurence means word that are repeat 2 or more times

[PHP] strange error

2001-04-14 Thread n e t b r a i n
Hi all, I don't know why this (quick dirty) small function: function esiste_url($file){ @$fp=fopen($file,"r"); if(!$fp){return false;}else{return true;} @fclose($fp); } //it checks if a url submit via form client exist in two different pages: a.php3 --- works fine

[PHP] stdin on win

2001-03-09 Thread n e t b r a i n
Hi all, anyone know if there's a similar way to read like the linux php://stdin on a windows box? I've tried to run a simple script founded on phpbuilder.com about a shell scripting and it seems to work in some way just for the first "request" ... This a "screenshoot" of my ms-dos window:

[PHP] imap prob.

2001-02-27 Thread n e t b r a i n
Hi all, I've a prob. using the imap functions ... with a simple code that retrieve a multipart mail, $struttura=imap_fetchstructure($link,2);//2 is the msg nr $pezzi=0; foreach($struttura as $key=$val){ //some code if($key=="parts"){ foreach($val as $w){

Re: [PHP] REGEX prob

2001-02-18 Thread n e t b r a i n
Hi Christian, function change_sess($html_code){ if(eregi("flag=[0-9]{9}PHPSESSID=[[:alnum:]]{32}",$html_code)){ str_replace("flag=[0-9]{9}PHPSESSID=[[:alnum:]]{32}","?=append_url() ;?", $html_code); str_replace doesn't know about regular expressions, so it tries to find the literal

Re: [PHP] REGEX prob

2001-02-18 Thread n e t b r a i n
Hi Christian, $html_code = eregi_replace (..., $html_code); arghhh ... I'm so stupid !! Yes, u're right ... really, many thanks max -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] REGEX prob

2001-02-17 Thread n e t b r a i n
Hi all, I'm trying to match a particular piece of string in a big string using a regex in order to change it whith another value ... I mean: eg: $html="a href=link.htm?flag=982420537PHPSESSID=2c86b460d360b13c3ef08b8a46b9cafcLnk /a"; function change_sess($html_code){

[PHP] Zend IDE

2001-01-14 Thread n e t b r a i n
Hi all, anyone know something more about the future Zend IDE? e.g price, etc .. many thanks in advance max -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: