EagleLink;11007803 wrote:Except that when you have an ENTIRE sight designed with HTML, it it a lot easier to embed a little PHP into an HTML file then to go through the entire site changing everything.
Sounds like problem started in your designing phase then. Although, I fail to see why you would need to go "through the entire site changing everything" (after all, URLs aren't directly coupled to file paths).
EagleLink;11007803 wrote:Well now you know.
I know you're a stubborn, misinformed web designer that should probably stick with cute WYSIWYG editors than venture into the world of actual programming, aye.
EagleLink;11007803 wrote:In fact I have, I have said that it worked on the other servers.
Why would the fact that it works on other servers have any bearing on why it is or isn't working on the server at hand? You do realize not all web servers in the world share the same global configuration, right?
EagleLink;11007803 wrote:And since you don't know how to do it, here's what you need to do.
Ah, but I do know all about that (I even talked about it in my very first reply). But as I also talked about, that seems more like a cheap workaround - the solution is to give your files more meaningful file extensions.
EagleLink;11007803 wrote:Ahhh, but it does. Or at least it's supposed to.
It's supposed to according to you, apparently. Not according to the authors of PHP who created the tags in the first place.
EagleLink;11007803 wrote:The opposite of "embedded PHP" would be that it's a PHP file automatically passed to PHP by the web server based on it's extension, where as "embedded PHP" is in a different file, such as HTML, so that you don't have to change everything else on your site.
So you're expecting Apache to sniff every single resource requested, look for any occurrence of "<?php", and then - whether you wanted it to or not - automatically invoke the PHP parser?
Thankfully, webservers don't actually work like that.
EagleLink;11007803 wrote:Nope, wrong again. a PHP script is exactly that. I've never seen a PHP script (at least designed by a real PHP pro) that didn't start with <?PHP in the first place and ahve straight PHP to the end.
You haven't seen much PHP at all, then, I take it?
EagleLink;11007803 wrote:Again, many people would argue with that. It could very well have other things that are processed before it goes out to the client, such as SSI like "<!--#include virtual="/cgi-bin/random.pl" -->".
... which again suggests that it shouldn't have a ".html" extension but instead ".shtml" (for example).
EagleLink;11007803 wrote:Nope, not at all. I've viewed the page source through Firefox as well as Internet Explorer and the code was not there.
Then you should probably pull your head out of your ass and take a second look. You can even clearly see part of the PHP code from the mangled output you posted.
Even better, use a terminal client like PuTTY or a text-only browser like Lynx (e.g. any application that doesn't understand HTML markup) and request the page from your webserver. (Note your head will also need to be extricated from your ass to do this as well; you may return it if you feel the need to reply again.)
EagleLink;11007803 wrote:Absolutely, now you should do the same....for real.
Heh.. trust me, I've read every bit of this thread. I'm sure the other regulars around here will find your replies rather amusing as well.
EagleLink;11007803 wrote:Now go find someone else to but that might believe everything you say.
I think you just accidentally the whole sentence there. Regardless, don't fret - I'm not worried about educating you any more. It's far more fun to be a rude ass and dissect the boatloads of ignorance (or is it stupidity) in your replies. 🙂
@: Bugger off with your 'moderator cap' - it's more fun to feed the trolls around here anyway.