Re: [PHP] comparing string values, etc

2002-03-03 Thread DL Neil
Hi Tim, > I'm a major newbie. I was in the navy so never made it to major!? I'm only going to comment on your syntax and ignore the wide/Unix-related issues: > $noting = ""; > $checkval = "Hello > World"; > $filename = "thefile.inc"; > > $fd = fopen ($filename, "w"); > $contents = fread ($fd, f

[PHP] comparing string values, etc

2002-03-03 Thread Tim Martens
Hi - I'm a major newbie. - I have a file that pulls an include into a for a user to edit - before pulling the include, I'd like to open it and check it's value - if the include's value is exactly equal to the string: Hello World then I want to overwrite that string with nothing; close the inc