Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

\n stopped working?

Status
Not open for further replies.

cleansedbb

Technical User
Feb 11, 2002
95
0
0
US
anyone have an idea why \n would stop working??

I have a script that would edit a text file and go to
the next line so I could enter more data.

this function has stopped, now it just tags everything
at the same line???

very strange, I'm going to reupload my cgi from a backup but just wondered if anyone knew why it would just stop?

the cgi hasnt been touched *that I know of* in months and it just stopped working about 3 days ago.
 
Maybe with some code samples I could help and also what kind of machine you are running.

 
using a linux redhat system, if u need speed specs I can post them.

using echat.cgi and admin.cgi (from echat)

in admin.cgi is has a section for banned ip's

and it prints the banned ip to the ban list

print BANNED "$FORM['IP'}\n";
but the \n doesnt make the return to a new line.

my banlist ends up like
123.123.123.123123.123.123.124
instead of
123.123.123.123
123.123.123.124
 
I'm assuming print BANNED "$FORM['IP'}\n"; is a typo? ['IP'}?
 
yeah it's a typo it's {'ip"}

I was typing to quick. either way in the original code
it's original and it isnt making a new line. is there
a way to force it? like in html with <br>??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top