Hi list,
i hope someone can help me out... i have to replace
a href=order.php?order_id=12345
with
a href=order_12345.html
any ideas? thank you!
Tobias
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 2004-01-16 at 09:49, Tobias Engelhardt wrote:
Hi list,
i hope someone can help me out... i have to replace
a href=order.php?order_id=12345
with
a href=order_12345.html
any ideas? thank you!
What about just using the variable to build the name?
$file_name =
That is not possible because the id's are hard-coded in thousands of
html-pages. Not a very good idea, i know. It wasn't mine... I *have* to
use search/replace. (A script processes each file in the directory)
Brad Pauly wrote:
What about just using the variable to build the name?
$file_name =
i hope someone can help me out... i have to replace
a href=order.php?order_id=12345
with
a href=order_12345.html
any ideas? thank you!
PCRE style:
'/a href=order.php\?order_id=(\d+)/'
replaced by 'a href=order_$1.html'.
-
On Fri, 2004-01-16 at 10:07, Tobias Engelhardt wrote:
That is not possible because the id's are hard-coded in thousands of
html-pages. Not a very good idea, i know. It wasn't mine... I *have* to
use search/replace. (A script processes each file in the directory)
Ah, I see. I think you could
On Fri, 2004-01-16 at 10:21, Brad Pauly wrote:
On Fri, 2004-01-16 at 10:07, Tobias Engelhardt wrote:
That is not possible because the id's are hard-coded in thousands of
html-pages. Not a very good idea, i know. It wasn't mine... I *have* to
use search/replace. (A script processes each
Thanks, that solved the problem...
Mike Migurski wrote:
i hope someone can help me out... i have to replace
a href=order.php?order_id=12345
with
a href=order_12345.html
any ideas? thank you!
PCRE style:
'/a href=order.php\?order_id=(\d+)/'
replaced by 'a href=order_$1.html'.
7 matches
Mail list logo