473,387 Members | 1,515 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Intermittent escaping backslashes appear in output

Hello all

Using PHP 4.1.2, I am seeing intermittent visible escaping backslashes
in my HTML output. Try refreshing the following page a few times to
see what I mean:

http://www.actorscentrene.co.uk/thre...ssageThread=25

It seems totally random. Any ideas? The extra escaping backslashes are
not present in the underlying MySQL records. magic_quotes_gpc is on.

Thanks,

Tom
Jul 17 '05 #1
4 2130
Tom Chadwin <to*********@gmail.com> wrote or quoted:
Using PHP 4.1.2, I am seeing intermittent visible escaping backslashes
in my HTML output. Try refreshing the following page a few times to
see what I mean:

http://www.actorscentrene.co.uk/thre...ssageThread=25

It seems totally random. [...]


It seems totally deterministic and predictable to me :-|

Calling stripslashes(...) before outputting looks like it would fix things.
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
Jul 17 '05 #2
> It seems totally deterministic and predictable to me :-|
Calling stripslashes(...) before outputting looks like it would fix things.


Probably so, but that is treating the symptom, not the cause. Why
would the backslashes only appear intermittently and not consistently?

Thanks,

Tom
Jul 17 '05 #3
Tom Chadwin <to*********@gmail.com> wrote or quoted:
It seems totally deterministic and predictable to me :-|

Calling stripslashes(...) before outputting looks like it would fix things.


Probably so, but that is treating the symptom, not the cause. Why
would the backslashes only appear intermittently and not consistently?


They *did* appeare totally consistently when I observed your page.

*Now* they don't appear (also consistently).

In both cases I tested using many page refreshes.

I presume this indicates that you have resolved the problem.
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
Jul 17 '05 #4
> I presume this indicates that you have resolved the problem.

No. I have altered nothing. I, too, cannot get them to appear now. As
I say, intermittent.

Thanks,

Tom
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Aloysio Figueiredo | last post by:
I need to replace every ocurrence of '/' in s by '\/' in order to create a file named s. My first attempt was: s = '\/'.join(s.split('/')) but it doesn't work: >>> s = 'a/b' >>> s =...
8
by: felciano | last post by:
Hi -- I am trying to use the csv module to parse a column of values containing comma-delimited values with unusual escaping: AAA, BBB, CCC (some text, right here), DDD I want this to come...
4
by: agarwalpiyush | last post by:
Hello, I am going nuts with trying to get the following to work: This is what I intend to do: I have a line in /etc/syslog.conf which I need to delete based on ip-address provided to me in a...
3
by: Regan | last post by:
Hello, I have done tons of searching on this topic but have yet to find something relavent to the problem I am experiencing so I am hoping someone can help me. The problem I am having is that...
0
by: DeadAtBirth | last post by:
I have an XML file which have nodes that contain filepaths, e.g.<path>c:\SomeDirectory\SomeFile.txt</path> I'm using an XmlDocument and XPath query to try and find a node XmlDocument doc = new...
3
by: Taras_96 | last post by:
Hi everyone, I'm having a bit of trouble understanding the purpose of escaping nulls, and the use of addcslashes. Firstly, the manual states that: "Strictly speaking, MySQL requires only...
1
The1corrupted
by: The1corrupted | last post by:
Okay, this is somewhat annoying but I need to escape backslashes to make something look nice. <?php if ($mesgread=="/" AND $user!=$otheruser) { $action=explode(" ", $msg, 2); ...
3
by: placid | last post by:
Hi All, I have these files; which are Merge Request (ClearCase) files that are created by a Perl CGI script (being re-written in Python, as the HTML/ JavaScript have been mixed with Perl,...
7
by: wannymahoots | last post by:
optparse seems to be escaping control characters that I pass as arguments on the command line. Is this a bug? Am I missing something? Can this be prevented, or worked around? This behaviour...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.