Jump to content

Ereg Function REG_EMPTY Error


ShoeLace1291

Recommended Posts

This if statement sees if the string contains certain characters with ereg.  I'm getting an error that says:

 

Warning: ereg() [function.ereg]: REG_EMPTY in /home/unholy/public_html/webtop/register.php on line 44

 

This is my code:

 

if(ereg('\/?.><$%^&*()!@;:"-+=|',$directory)){

Link to comment
https://forums.phpfreaks.com/topic/76733-ereg-function-reg_empty-error/
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.