Have you tried this test with your code?

http://www.php.net/FAQ.php#7.8

The FAQ does not give a solution, but the problem is known to have affected
only select users. The problem is no-one seems to know what the selection
criteria is! Some people have the problem, some do not.

DAve


on 5/18/01 7:49 AM, Lucas Persona at [EMAIL PROTECTED] wrote:

> Jason,
> 
> I've Replyed also to the lsit, because someone could help us on this...
> 
> Jason Lotito wrote:
>> Lucas Persona wrote:
>>> I was used to think on that way...
>>> Some time ago I have problems with Netscape 6 and PHP. It
>>> was not a HTML error
>>> but something related to PHP/Netscape 6.
>>> The problem was in showing correctly the source code.
>>> I had a page that includes another one, like a
>>> header/menu/footer main that includes
>>> a data area.
>>> If I just put the include (or require code) following the
>>> page sequence, that's ok, the Netscape 6 shows correctly the source.
>>> If I add something like (if (isSet($var) && $var == 10) {})
>>> before the include
>>> (or require) and $var exists and has value 10, the parser
>>> will process the include, show
>>> the page, but Netscape don't show the source code of this part.
>> 
>> Unfortunately, I have a very hard time believing this.  Now, I can
>> imagine a few instances where this might come into play, but then you
>> would have to actually design for this to happen, but you didn't.  I
>> would have to imagine that something was wrong with your actual code
>> logic, as PHP is only as good as the HTML you code, and the logic you
>> use.  If the if statement was failing, of course it would not include
>> the file.  At the same time, why you used both isset() and $var == 10
>> when $var == 10 would have worked fine also makes me wonder about the
>> underlying code.
> 
> Yeah I know...I can say that I still don't believe..but it happens! :)
> If you (or anyone here) has Netscape 6 (I'm using the 6.01) could try
> the following codes:
> --------------------------------------------------------
> File: netscape6.php
> <?php
> echo "<HTML><BODY>\n";
> echo "this is a test...this is the first part<BR>\n";
> echo "this is a test...this is the second part<BR>\n";
> echo "<form method=\"POST\" action=\"netscape6.1.php\"
> name=\"netscape\">\n";
> echo "<input type=hidden name=var value=10>\n";
> echo "<input type=submit name=go value=\"Test\">\n";
> echo "</form>\n";
> echo "</BODY></HTML>\n";
> ?>
> --------------------------------------------------------
> File: netscape6.1.php
> <?php
> echo "<HTML><BODY>\n";
> echo "1) this is a test...this is the first part<BR>\n";
> echo "this is a test...this is the second part<BR>\n";
> if ( $var == 10)
> {
> include ('netscape6.2.php');
> }
> echo "this is a test...this is the last part<br>\n";
> echo "</BODY></HTML>\n";
> ?>
> --------------------------------------------------------
> File: netscape6.2.php
> <?php
> echo "<h1>this is the other file...</h1>\n";
> ?>
> --------------------------------------------------------
> 
> 
> Ok, now that you have all the three sample files you can check for
> HTML errors...
> How I did the test:
> 1. Run Netscape 6
> 2. Access file netscape6.php
> 3. Press the 'Test' button that POST to netscape6.1.php
> 4. See the page and compare with the source code (View Page Source)
> 5. Surprise! They are different...the netscape6.2.php file is not in the
> source.
> 
> 6. Change the netscape6.1.php file on the following lines:
> 3: echo "2) this is a test...this is the first part<BR>\n";
> 5: // if ( $var == 10)
> 6: //{
> 8: //}
> 7. Great! Now that you just take the if statement out, clear the
> Netscape 
> Cache (Edit -> Preferences -> Advanced -> Cache -> Clear Memory Cache
> and 
> Clear Disk Cache)
> 8. Access file netscape6.php again..
> 9. Press the 'Test' button that POST to netscape6.1.php
> 10. The result is the same that you've get before but now, when you view
> the source code, the result of netscape6.2.php is there too..
> 11. Be sure to see the '2)' on the Page Source. If the '1)' is still
> there 
> you need to clean your cache.
> 
> Anyone did this test? How Netscape know that there is an if statment
> there??
> Any point that I'm missing on this test?
> 
>>> This is not a big deal when dealing with simple pages, but,
>>> if you have a form on this
>>> page, it will not work right since after the page comes to
>>> the browser and is shown, it
>>> doesn't recognize it anymore.
>>> It's very strange but I tested it and it happened that
>>> way...changing something on PHP
>>> code, changes the behaviour of the browser..
>> 
>> No.  PHP does what you tell it to do, and by all accounts, I can only
>> see that you were telling PHP NOT to display the code.
> 
> Try the test above.. It shows the code but netscape doesn't know that.
> 
> See you,
> Lucas Persona

--
Dave Goodrich
Director of Interface Development
Reality Based Learning Company
9521 NE Willows Road, Suite 100
Redmond, WA 98052 
Toll Free 1-877-869-6603 ext. 237
Fax (425) 558-5655 
[EMAIL PROTECTED] 
http://www.rblc.com



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to