[PHP] manual : Call-time pass-by-reference has been deprecated

2002-01-20 Thread Bruce BrackBill
Hi, If Call-time pass-by-reference has deprecated so long ago, why are the instructions on how to do it still in the manual? http://www.php.net/manual/en/html/functions.arguments.html#functions.arguments.by-reference At least it should point out that it has been deprecated. Bruce ___

RE: [PHP] PHP-JavaScript

2002-01-20 Thread Bruce BrackBill
Hi, A little trick I did to get the text from a textbox in a form ( for user comments ) without the user having to submit it was to use javascript to append the textbox contents to a url ( GET METHOD ) when the user clicked on a link, which pointed to a redirect script which extracted the textb

[PHP] replace nested custom html tags

2001-11-04 Thread Bruce BrackBill
Hi, Anyone have any ideas on how I could modify the following to work on nested tags? The regex replaces custom tags [i] [u] [b] with real tags. The Regex takes any of the characters in the class \[([ubi])\] then non greedily matches any character (.*?) then matches the result of the first ref

[PHP] preg_replace() substrings NOT IN tags

2001-07-31 Thread Bruce BrackBill
Hi, I'm trying to figure out a regex that would match substrings in a string that are NOT inside tags. In the example below I try to replace the substring 'paris' with http://www.somehost.com";>paris but it also matches 'paris' in the image name. * this does not work: $url = "http://www.somehos