Re: Re: php-general Digest 23 Jun 2000 17:46:06 -0000 Issue 78

From: Date: Sat, 24 Jun 2000 02:22:00 +0000
Subject: Re: Re: php-general Digest 23 Jun 2000 17:46:06 -0000 Issue 78
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2882@lists.php.net to get a copy of this message
Bill Rausch pressed the little lettered thingies in this order... > At 10:46 AM -0700 6/23/00, php-general-digest-help@lists.php.net > wrote: >>Can anyone tell me if there is anything to what I have just > heard regarding >>Netscape, Frames and PHP? They doen't mix? > >I've > done one project which uses all the above without any problems. Is > >there anything specific you've heard? > > I've had some problems with Netscape that I was able to solve. My > main page has two top level frames with one of those subdivided and > one of those subdivided again resulting in four total frames looking > about like this: > <snip> > > The solution was to initialize all four frames with contents at the > time they were created. I created a tiny web page that was a single > blank character to initially be displayed in 3A and 3B. Subsequent > updates with real contents then worked correctly. > > I have no idea if this is the "correct" solution or not (this is my > first experience with web stuff) but it worked for me. YMMV > At any rate... This isn't a PHP problem. The original question was about PHP and Netscape not "mixing." PHP is 100% server-side. This means that your web server parses PHP code and sends it to the browser as plain old HTML. PHP and Netscape will never talk to each other directly (PHP code will NEVER be sent directly to Netscape, only regular HTML). Any problem that you have that exists in one web browser and not the other cannot be with the PHP coding. It can only be with the plain HTML that is being sent to the browser, which is going to be the same regardless of what browser you are using. Don't believe me? View the source code of the script with which you are having problems in both browsers. What you see will be exactly the same code. If you properly program your PHP script to output HTML that Netscape knows how to handle, you will be OK. One thing to keep in mind is that Netscape is VERY picky about the HTML code that it accepts. For example, if you forget to close a </table> tag, Netscape won't show you ANY of the table. The prgrammers of Internet Explorer have purposely made their software handle these situations in a smarter manner (like assuming that you want to close tags that are not closed when the script ends). Whatever your solution is, the problem will be with the HTML coding of your script, NOT with the PHP coding or the PHP parser. More specifically, the problem will probably be related to Netscape's intolerance of sloppy HTML. Avoiding browser compatibility problems is one of the biggest advantages of using a server-side scripting language over a client- side language. Have fun... Christopher Ostmo a.k.a. support@rosenet.net Rosenet, Inc. For a good time, http://modems.rosenet.net/mysql/

« previous php.general (#2882) next »