PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
i'm so baffled. i have a piece of PHP code (in an open-source CMS called Joomla) that is just not appearing when i access it from a particular computer. The actual source code is missing a chunk when i view it from this particular computer. i thought that PHP (where no variables are involved) would output the same code to any browser just the same, so i'm confused. If it makes any difference, here's the code for the little module. Remember, the module is working fine at every computer but one. i tested it in IE and Firefox on all machines.
Let me be dumb for a minute. Just to make sure i understand correctly, when you're using PHP, the server computes the HTML (based on the code) and sends it to the browser, right? So if that's the case, i don't see how it could be a browser/system issue, because when i query the page i should get fresh info every time, right? In what situations would the server all of the sudden say, "oh, it's THAT computer again. i think i'll just hide this piece of code"? i mean, there aren't any conditional statements in the module at all, and if there were somewhere else in the CMS, what kind of statement would give this result?
Good suggestion, but flash appears when viewing other pages. in addition to that, i believe the particular method in use (called the Flash Satay method) is designed to show an alternate image in case Flash isn't available, so i think at least that would show. But you have me curious- if there was a setting to disable objects, or certain types of objects, would it be stripped right out of the source code read by the browser?
Not that either. But now i'm on a new track. What yum-jelly said got me thinking. Is it possible that the browser simply omits some code for some security reason? i went ahead and make a plain HTML page that's an exact duplicate of the PHP's final output (from a machine that displayed it properly). When i viewed it on that particular machine, again it didn't show- not even in the source! i also included a some plain text in the echo before the object tag in the original PHP module. THAT showed up!
So evidentally this isn't a PHP issue at all. i think the reason i'm running into this problem now is the Flash Satay method- there must be some characteristic about it that causes some local setting to strip the object tag out of the html altogether. Maybe an anti-spam or internet tool? Should i close this and find a new forum now that we know it's not really a PHP issue?
Here's the final object tag rendered by the Satay method, in case anyone can spot a characteristic that would casue a machine to omit it.