Jump to content

Archived

This topic is now archived and is closed to further replies.

Darkness Soul

Learning out

Recommended Posts

Hi guys,

I'm learning about that preg_replace, but, all tutorials I have found, have no info about how to use it as well.. I mean that [i]mixed pattern[/i] field..

Like this exemple.. it was suppose to secury an url from a user or form to call in the require/include..

[code]$url = $_POST['url']
$url = preg_replace ( '@\.\.*@' , '.' , $url );
require ( $url );[/code]
So, what the frell is that [b]'@\.\.*@'[/b]..? o-o

^^ Thank you..

D.Soul

Share this post


Link to post
Share on other sites
Spend some time with this website... hopefully it'll help you: [a href=\"http://www.regular-expressions.net/\" target=\"_blank\"]http://www.regular-expressions.net/[/a]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.