FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » PHP discussions » Slash problem
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Slash problem [message #31904] Tue, 23 May 2006 17:40 Go to previous message
esm2002 is currently offline  esm2002   United States
Messages: 339
Registered: May 2002
Location: Atlanta Georgia
Karma:
Senior Member
when I save a file, I'm getting slashes added to the data.

If I have the following:
$path = "../aameta/";


it becomes

$path = \"../aameta/\";


when I save it.


if I save it again, it addes the "\" again

$path = \\\"../aameta/\\\";




here is the code to save the file:

  if ($fp = fopen($file_name_path,"w+"))
  {
    if (fwrite ($fp,$file_data))
    {
      fclose($fp);
      $message = "SUCCESS...! Data saved to $file_name";
    } else {
      $message = "Data NOT saved. Could not write data to $file_name";
    }
  } else {
    $message = "Could not open $file_name. Data NOT Saved";
  }


Can someone help me? Confused




Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
[Message index]
 
Read Message
Read Message
Previous Topic: Logging users into the forum from a separate site
Next Topic: remote connection to mysql from php
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu May 16 00:28:07 GMT 2024

Total time taken to generate the page: 0.05146 seconds