Results 1 to 3 of 3

Thread: str_replace parse error *** RESOLVED ***

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    South Wales (UK)
    Posts
    83

    str_replace parse error *** RESOLVED ***

    I've got the following line of code in a php page:
    PHP Code:
    $ProjectReference str_replace("\","/",$ProjectReference); 
    But I'm getting a parse error as follows:
    Parse error: parse error, unexpected T_STRING in c:\inetpub\wwwroot\specac_test\ppc\nuaire_form_save.php on line 142

    I've got a feeling it doesn't like the backslash, as other str replaces work ok?

    Any ideas?
    Last edited by aaronskw; Apr 5th, 2004 at 09:44 AM.

Posting Permissions

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



Click Here to Expand Forum to Full Width