Forum Moderators: open
To be more exact, I have 5 links that are causing these errors because the links have a variety of "signs" in them, for example, teh "&" seems to be causing particular problems. I get this error:
----------
"Line 167, column 118: cannot generate system identifier for general entity "place_ad" "
----------
followed by the following errors in sequence:
----------
Line 167, column 118: general entity "place_ad" not defined and no default entity (explain...).
Line 167, column 126: reference to entity "place_ad" for which no system identifier could be generated
Line 167, column 117: entity was defined here
----------
Any suggestions how to solve this problem? These links are causing me much needed headache, but they shouldn't be too hard to fix because they are solely located in the header/footer php includes. Any advice?
BJarneDM, i have access to my .htaccess file, if I code the following:
php_value arg_separator.output ";"
php_value arg_separator.input ";&"
Will it affect my script? What is this esentially telling php to do? I'm a little confused. Also, does this mean i shoudl go through my link and replace all the instances of & with ";"?
Thanks,
Andrew.
The other trick I have used is hidden form fields, because the values of these transfer automatically to the next page, you just grab the variable in the next page when you need using the form field name.
Tim
<Sorry, no personal URLs. See TOS [webmasterworld.com]>
[edited by: tedster at 8:29 pm (utc) on April 16, 2004]
Will it affect my script? What is this esentially telling php to do? I'm a little confused. Also, does this mean i shoudl go through my link and replace all the instances of & with ";"?
I simply took all the "&"'s out of the URLs, and the script worked fine. Is it ok if i just keep it like this? Or do you think this would advertisely affect my script.
For example, originally it was:
classifieds.cgi?session_key=;place_ad=on
Now it is:
classifieds.cgi?session_key=place_ad=on
Do you think this will work ok? it seems to work fine on my end? Does this make sense?
Thanks,
Andrew.
The case you are referring is special in that session_key has no value.
But what happens when it does get a value? How is the script to destinguish between where the value of session_key stops and the name of the next parameter starts without a divider? Implicit in your example you do have the divider as the '=' is used for that because session_key has no value.
Your expanations are superb. Personally, I just like seeing "why" certain things work. I guess i will re-instate your notes in the .htaccess, and restore the "placeholders" as you put it.
My question is? are both ";" and "=" considered placeholders? If so? why do i need both?
I hope this isn't become tedious, but this is just something i'm a litle confused about. And i enjoy figuring out how a script works.
THanks again for the help, it really is appreciated.
Andrew.
Valid HTML should not contain the & symbol unless it is being used to insert a special character/entity (such as > or <) to insert the & character itself you must use &
So, this is incorrect...
<a href="/edposts.cgi?action=reply&forum=21&discussion=7719">Show question & replies</a>
The correct way is...
&<a href="/edposts.cgi?action=reply&forum=21&discussion=7719">Show questionreplies</a>