www.webdeveloper.com
Results 1 to 2 of 2

Thread: what is wrong

  1. #1
    Join Date
    Jun 2007
    Posts
    1
    im tring to see if this code is wrong

    PHP Code:
    if (preg_match(!^$match!$request_match$matches) ||
    preg_match(!^$match!urldecode($request_match), $matches)) {
    // Got a match.
    $this->matched_rule $match
    Last edited by LiLcRaZyFuZzY; 06-26-2007 at 06:42 PM.

  2. #2
    Join Date
    Apr 2006
    Posts
    56
    Was any of the copy/pasted? Those are some odd looking quotes around the search clauses.

    try...
    PHP Code:
    if( preg_match"!^$match!"$request_match$matches ) || 
        
    preg_match"!^$match!"urldecode$request_match ), $matches ) )
    {
        
    // Got a match.
        
    $this->matched_rule $match;


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles