Jump to content


Photo

Cannot delete lines as displayed from flat file


  • Please log in to reply
3 replies to this topic

#1 ditusade

ditusade
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 01 May 2006 - 01:43 AM

Hi,
I am new to PHP trying to debug a script. I cannot delete lines from a flat file displayed on my page. Please help. I'll post more details below. Any help will be much appreciated.
Thanks and Regards
Dave

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 01 May 2006 - 01:53 AM

[!--quoteo(post=370199:date=Apr 30 2006, 09:43 PM:name=Ditusade)--][div class=\'quotetop\']QUOTE(Ditusade @ Apr 30 2006, 09:43 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
I'll post more details below.[/quote]
Lots more would be good.

Legend has it that reading the manual never killed anyone.
My site

#3 ditusade

ditusade
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 01 May 2006 - 02:05 AM

Below are more details about the issue:
I am trying to debug a script in PHP 5 (Windows XP,
Apache). It has the feature of displaying lines from a
flat file where individual lines can be deleted.
However, when clicking on delete, it doe snot delete
and I can't figure out why.

I cannot post the scipt written... goes in error everytime... anyone can help. Thanks again

#4 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 01 May 2006 - 02:21 AM

The error when trying to post here is caused by the way this forum handles what it sees as file read/write operations. I *think* that if you post your script but with a space between the f and open/close/read/write in file commands, then it will be accepted here.

Also - do you get any error messages when running your script? Are the file permissions set properly for you to (re)write the changed version of the file?
Legend has it that reading the manual never killed anyone.
My site




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users