[PHP] Re: virtual() ignoring str_replace()

2001-08-19 Thread CC Zona

In article [EMAIL PROTECTED],
 [EMAIL PROTECTED] (Charlie Romero) wrote:

 it just prints the virtual include w/out replacing
 the word window w/ the word DOG in my example. What am I doing wrong?
 
 $results = virtual(/cgi-bin/search.cgi?q=hellom=world);
 print str_replace(window, DOG, $results);

str_replace() is case-sensitive.  If $results is returning a string like 
Windows are nice (it would help to see the actual string next time...hint 
hint), it won't match window.

-- 
CC

-- 
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: [EMAIL PROTECTED]




[PHP] Re: virtual() ignoring str_replace()

2001-08-19 Thread jimw

Charlie Romero [EMAIL PROTECTED] wrote:
 $results = virtual(/cgi-bin/search.cgi?q=hellom=world);

virtual doesn't return the content of the subrequest, it sends it to
the browser.

you need to use something like popen() to do what you're trying
to do.

jim

-- 
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: [EMAIL PROTECTED]