Re: [PHP] Netscape 6, What a piece of s$#@ ,anyone else hadproblems with php and Netscape 6?

2001-05-18 Thread DAve Goodrich

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 HTMLBODY\n;
 echo this is a test...this is the first partBR\n;
 echo this is a test...this is the second partBR\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 HTMLBODY\n;
 echo 1) this is a test...this is the first partBR\n;
 echo this is a test...this is the second partBR\n;
 if ( $var == 10)
 {
 include ('netscape6.2.php');
 }
 echo this is a test...this is the last partbr\n;
 echo /BODY/HTML\n;
 ?
 
 File: netscape6.2.php
 ?php
 echo h1this 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 partBR\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: 

Re: [PHP] Netscape 6, What a piece of s$#@ ,anyone else hadproblems with php and Netscape 6?

2001-05-18 Thread Lucas Persona

Hy there!

DAve Goodrich wrote:
 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.

  Yeah..I did it and no '\0' was returned. Then I traced everything to 
find out what was happening.
  The final briefing: :) 
  
  Netscape 6.x handles in a different way some actions.
  The reason that Netscape doesn't show a correct Source is because 
Netscape don't use the currently showed page to get the source. It does 
another GET to get (get-get oops :)) the source.
  This way the 'View Source' option do another server access and this
time 
don't send the POST variables needed.

The browser request:
X.X.X.X - - [18/May/2001:13:58:44 -0300] POST /netscape6.1.php
HTTP/1.1 200 208 http:
//server.com/netscape6.php Mozilla/5.0 Gecko/20010131 Netscape6/6.01

The 'View Source' request:
X.X.X.X - - [18/May/2001:13:59:17 -0300] GET /netscape6.1.php HTTP/1.1
200 173 - Mo
zilla/5.0 Gecko/20010131 Netscape6/6.01

  Another problem on this subject is when creating a FORM that, via a
POST 
method will define a download.
  Netscape 6.x do the POST and ALSO DO A GET, so the result for the
download 
is wrong.
  Netscape X.xx or IE X.xx do just one POST and then download the file.

  I don't know if there is a way to change this Netscape behaviour... or
change 
everything to GET style ;)

Well..I think this is the answer for that 'strange behaviou'...
Thanks for everyone that helped on that...
See you,
-- 
Lucas PersonaICQ #17635618
[EMAIL PROTECTED]   +55 19 451 6300
---
Widesoft Sistemas Ltda  http://www.widesoft.com.br

-- 
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]




RE: [PHP] Netscape 6, What a piece of s$#@ ,anyone else hadproblems with php and Netscape 6?

2001-05-18 Thread Johnson, Kirk

Good call, Lucas! Netscape has bitten me before on this one, and I had
forgotten about it- sorry. I was doing a View Source, but all the dynamic
elements that got updated on each request were changing, because Netscape
does another request for the View Source. So, the View Source code is not
the code that produced the page I was looking at. Drove me nuts until I
figured it out. Thanks for the reminder.

Kirk 

 -Original Message-
 From: Lucas Persona [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 18, 2001 11:39 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Netscape 6, What a piece of s$#@ ,anyone else
 hadproblems with php and Netscape 6?

   The reason that Netscape doesn't show a correct Source is because 
 Netscape don't use the currently showed page to get the 
 source. It does 
 another GET to get (get-get oops :)) the source.
   This way the 'View Source' option do another server access and this
 time 
 don't send the POST variables needed.

-- 
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]




Re: [PHP] Netscape 6, What a piece of s$#@ , anyone else hadproblems with php and Netscape 6?

2001-05-17 Thread DAve Goodrich

Do you have a URL I could try? I've used PHP to generate a lot of dynamic js
and css.

DAve

on 5/17/01 1:50 PM, Billy Harvey at [EMAIL PROTECTED] wrote:

 1. I am not making a JavaScript version at all I don't see where I ever say
 this. ???
 
 2. If I copy the html outputted to the browser and past it into an html file
 it loads good.  When I say I suspect this to be something wrong with PHP I
 mean that Netscape doesn't play good with PHP.(Not that PHP has a bug in it)
 
 Thanks,
 Brandon
 
 Brandon,
 
 Neither Netscape nor any other browser has any clue that PHP is being
 used on the server.  All broswers simply interpret the html,
 javascript, java, etc.that gets sent to them.  PHP is not a factor in
 whatever is causing a browser to misbehave.  For Netscape it's often
 an improperly formed table that causes trouble.  I occassionally find
 that people also use IE-centric code without realizing it (or perhaps
 without caring initially).
 
 Billy

--
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]




Re: [PHP] Netscape 6, What a piece of s$#@ , anyone else hadproblems with php and Netscape 6?

2001-05-17 Thread DAve Goodrich

You need some closing table row tags in lines 19,34,49,64,79,94.

DAve


on 5/17/01 4:21 PM, Brandon Orther at [EMAIL PROTECTED] wrote:

big snip

 
 --
 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]
 

--
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]