M
Mark Johnson
DELURK<<
Over the last few weeks, we've been working on building an online
portfolio using XML to pass content to an HTML page via PHP. In the
process, we've run across a rather inexplicable error which we've been
unable to find any reference to elsewhere. Hopefully, someone who
reads this will know what's going on and be able to provide some
assistance.
Here is our XML:
http://www.uky.edu/AuxServ/creativegraphics/clients/test/portfolio_xml.txt
Here is our HTML and PHP:
http://www.uky.edu/AuxServ/creativegraphics/clients/test/portfolio_php.txt
And here is the page in action:
http://www.uky.edu/AuxServ/creativegraphics/clients/test/portfolio.php
The problem is this: When a user clicks the third link under the
"Digital" heading, as you can see from the XML, the following text
ought to be displayed:
==begin==
Such has been the patient sufferance of these Colonies; and such is now
the necessity which constrains them to alter their former Systems of
Government. The history of the present King of Great Britain [George
III] is a history of repeated injuries and usurpations, all having in
direct object the establishment of an absolute Tyranny over these
States. To prove this, let Facts be submitted to a candid world. He
has refused his Assent to Laws, the most wholesome and necessary for
the public good. He has forbidden his Governors to pass Laws of
immediate and pressing importance, unless suspended in their operation
till his Assent should be obtained; and when so suspended, he has
utterly neglected to attend to them.
==end==
However, rather than that text being displayed in its entirety, the
following is all that displays:
==begin==
sing importance, unless suspended in their operation till his Assent
should be obtained; and when so suspended, he has utterly neglected to
attend to them.
==end==
Somehow, everything prior to that point has been eaten.
This is what we know: this error occurs in WindowsXP, MacOSX, and
RedHat Linux. It occurs regardless of whether IE or a Gekko-based
browser is used. It occurs regardless of what type of server the files
are uploaded to. If all elements are edited to contain the exact same
number of characters, the error seems to disappear, but doing so
renders the code useless for our purposes. No other errors have been
noted. Changing the code so that no elements are undisplayed has no
effect. The question is this: what is causing this error, and how can
it be avoided? Any assistance would be greatly appreciated.
Mark Johnson
Over the last few weeks, we've been working on building an online
portfolio using XML to pass content to an HTML page via PHP. In the
process, we've run across a rather inexplicable error which we've been
unable to find any reference to elsewhere. Hopefully, someone who
reads this will know what's going on and be able to provide some
assistance.
Here is our XML:
http://www.uky.edu/AuxServ/creativegraphics/clients/test/portfolio_xml.txt
Here is our HTML and PHP:
http://www.uky.edu/AuxServ/creativegraphics/clients/test/portfolio_php.txt
And here is the page in action:
http://www.uky.edu/AuxServ/creativegraphics/clients/test/portfolio.php
The problem is this: When a user clicks the third link under the
"Digital" heading, as you can see from the XML, the following text
ought to be displayed:
==begin==
Such has been the patient sufferance of these Colonies; and such is now
the necessity which constrains them to alter their former Systems of
Government. The history of the present King of Great Britain [George
III] is a history of repeated injuries and usurpations, all having in
direct object the establishment of an absolute Tyranny over these
States. To prove this, let Facts be submitted to a candid world. He
has refused his Assent to Laws, the most wholesome and necessary for
the public good. He has forbidden his Governors to pass Laws of
immediate and pressing importance, unless suspended in their operation
till his Assent should be obtained; and when so suspended, he has
utterly neglected to attend to them.
==end==
However, rather than that text being displayed in its entirety, the
following is all that displays:
==begin==
sing importance, unless suspended in their operation till his Assent
should be obtained; and when so suspended, he has utterly neglected to
attend to them.
==end==
Somehow, everything prior to that point has been eaten.
This is what we know: this error occurs in WindowsXP, MacOSX, and
RedHat Linux. It occurs regardless of whether IE or a Gekko-based
browser is used. It occurs regardless of what type of server the files
are uploaded to. If all elements are edited to contain the exact same
number of characters, the error seems to disappear, but doing so
renders the code useless for our purposes. No other errors have been
noted. Changing the code so that no elements are undisplayed has no
effect. The question is this: what is causing this error, and how can
it be avoided? Any assistance would be greatly appreciated.
Mark Johnson