Jump to content

Learning out


Darkness Soul

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
Link to comment
https://forums.phpfreaks.com/topic/8549-learning-out/
Share on other sites

Archived

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

×
×
  • Create New...

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.