Weird Refresh Problem With Netscape 4.08
I am developing a new site and I am having a weird problem with Netscape 4.08 browser. The page, once loaded, re-loads itself for some reason. I am using a lot of PHP... was wondering if anyone could shed some light on this for me?
View Complete Forum Thread with Replies
Sponsored Links:
Related Messages:
Netscape Image Refresh
I have a button that is made by PHP's GDlib that says: Home And I call it to my page by saying: <img src="button.bkk?message=Home"> and on IE it works fine. It works fine on Netscape fine too but then I wanted to show a blank button when the user is on the home page and when they're not have it appear. So this of course works perfect in IE but in Netscape here is what is happening: The user accesses the home page, gets button.bkk as an image and even on other pages does not refresh it (even on a reload request) because Netscape thinks it allready has it. So the user never sees it say home unless the first page they see is NOT the home and when they go to home then it STILL says "Home" 1) Am I making any sense? 2) Is there a way to force Netscape to either redownload a certain image or have it check to see if its new?
View Replies !
View Related
Refresh Page - Or An Absolute Refresh Not Reload.
If the image content for image1.jpg changes, but the file name image1.jpg does not, IE6 does not show the new content unless F5 is pressed. If I reload the page using http://domain.com/view_pictures.php the image does not change. If I use a header("LOCATION: http://domain.com/view_pictures.php"), the image does not change. I have tried several ideas to force the reloading of the image file with no little success. I cannot change the image file name. Even if I add another a second image, the first image does not change. IE must use the file name to determine if it should reload the file. But F5 works. Is there a means in either php or JavaScript to call (force) a F5-keyboard command? or an absolute refresh not reload.
View Replies !
View Related
Different Between Ie 5 And Netscape 4.5 ?
when using ie 5, the $PHP_AUTH_USER and $PHP_AUTH_PW is set by an earlier php file. Upon redirecting to another page, only netscape 4.5 has these variables not set. The following is not set for netscape 4.5 . <?php if(!isset($PHP_AUTH_USER) | | !isset($PHP_AUTH_PW) ) { Echo "Invalid Login or Login Expired !"; Echo "Try Again ! <A href='login.php'>Login Here </a>";
View Replies !
View Related
Netscape/IE
i have code that prints out bookmarks in a html table. the links appear in the table and when i click on a link in IE it goes to the link. when i click on the link in netscape it says Forbidden KFWebServer/2.5.0 Windows XP at http://127.0.0.1 Port 9122 this appears to be the offending line of code (best guess) print("<td><a href="http:www.tinyurl.com$row[0]">$row[0]</a> </td>"); i am going to have my resume on this site so i care about different browsers. i will probably test mozilla also. before i wouldnt have cared but since the virus writers target IE and everyone is being told to use different browsers it becomes more important now for my site to work with more than one browser.
View Replies !
View Related
Sessions And Netscape 4.7
Has anybody had problems with sessions and Netscape 4.7. I've been searching the forum for answers but cant find any. I've tried this: // s1.php <?php session_start(); session_register("foo"); $foo = "bar"; ?> <HTML> <HEAD> </HEAD> <BODY> <A HREF="s2.php?PHPSESSID=<? echo $PHPSESSID; ?>">check var</A> </BODY> </HTML> ____________________________ // s2.php <? php session_start(); ?> <HTML> <HEAD> </HEAD> <BODY> <?php echo $foo; ?> </BODY> </HTML> This works in IE and Netscape 6, but not 4.7
View Replies !
View Related
Netscape 4.x Error
i have a php page that does not disply in netscape 4.x when you click on that it sould display a page with some text/pictures and a bunch of questions.....it works in IE but not it netscape....when you view the source page it looks like it is all there..but just not displaying.
View Replies !
View Related
Netscape & Sessions?
Has anyone else had trouble getting sessions to work with Netscape? I have a script that adds an item to a basket. Works great in IE, but Netscape continues to replace the existing contents instead of adding. I have tried passing the SID via the URL, same result. This has also been tested on both Mac and PC and only works with IE?
View Replies !
View Related
Setcookies & Netscape
Can anyone explain why the following sets a cookie on IE, but not on Netscape? <?php $lifetime = time() + 86400 * 7; if (isset ($aud)) setcookie ("tar", $aud, $lifetime,"/","mydomain.com"); ?>
View Replies !
View Related
Cookies Won't Set In Netscape 4.7
I've tried lots of different things, but my cookies just don't seem to set in Netscape 4.7. The function below is included on a page that the user is taken to when they type their user name (UserName) and password (Password) into a form and click the log in button. PHP Code:
View Replies !
View Related
Netscape And PHP3
when i search for data in MySQL and then create a link of the data returned to another page so users can click on the link and then edit the data associated with their selection, thats were Netscape fails to pass the data to the next page so when users click on the links nothing comes up except if they are using IE 4.0+ which passes the data with no plroblem. i already tried the forms in HTML and PHP but wiht no success.
View Replies !
View Related
Download With Netscape
I use "header" to force download of text data on Windows desktops. header("Content-type: application/octet-stream"); header("Content-disposition: attachment; filename=$file_name"); $file_name is a file name like "my_file.txt". It works well with IE6. With Netscape7, the Save dialog box has "PHP" set as file type, which causes the file to be downloaded by default to "my_file.txt.php". It can of course be changed manually in the Save dialog box, but has anyone an idea where this "PHP" setting comes from?
View Replies !
View Related
Detecting Netscape 4
I am using PhpSniff to detect browsers, checking for browser name and major version. This doesn't work on my NS4.8 test browser because it only returns HTTP_USER_AGENT as "Mozilla/4.8 [en] (Win98; U)" and therefore shows up as Mozilla. I can get round this by testing for the minor version. But am I correct in assuming that any Mozilla/4.x with a minor version greater than .0 is a genuine Netscape? I am using this to serve NS4 a simple table layout, so I don't want to catch any other browsers by mistake.
View Replies !
View Related
Problem With Cookies In Netscape
I'm doing a user login script, and I am using cookies to try to pass the values of the person's username, password and id number to another page. Is there any reason why the following doesn't work in Netscape: Code: (omitted code of database query) while ( $row = mysql_fetch_object( $result ) ) { $id = $row->id; $username = $row->username; $password = $row->password; } setcookie( "id", "$id", 0 ); setcookie( "username", "$username", 0 ); setcookie( "password", "$password", 0 ); I then go to main.php. Just to test if the cookies work, I coded: Code: <?php print "$id<br>$username<br>$password"; ?> In IE it works perfectly, but netscape prints nothing but the to <br>'s. I did make sure that Netscape accepts cookies, and even have it so that a msgbox pops up to tell me what the values of each cookie are. What could possibly be going wrong?
View Replies !
View Related
400 Bad Request For Netscape 4 Users
I recently created an order FORM for my employer. (I have included the code at the bottom of this post) Its been live for about two weeks now, and during that time a few problems have come to light. When Netscape 4 users complete the form (its a 5 step form which passes variables in the URL) they get the following error on Step 4. Bad Request Your browser sent a request that this server could not understand. The request line contained invalid characters following the protocol string. Our webhost is running an Apache server v1.3.27, and the form is on a secure (https) page. At present, its not a particularly pressing issue (only 3 users out of an approximate 500) but I am irked beyond words. I would like to know what is causing this problem. Code:
View Replies !
View Related
Netscape Redirect Loop
I'm currently testing with "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; m18) Gecko/20010131 Netscape6/6.01". The problem is this: we have lot's of forms where users can set options and post the form, the page will then reload with the new options set, but to avoid the annoying "Page has expired" error, aswell as to avoid people from double posting by hitting reload, we have implemented the form handling as a simple process: Handle the form If successful, redirect back to page using header()Otherwise, redisplay form with error messages. Now, this works fine in IE, but in NS6, the following appears in the location bar when we post these forms and no errors occured during handling: "file:///C:/Program%20Files/Netscape%206/Netscape%206/chrome/packages/core/redirect_loop.xul" Judging from the name, Netscape seems to think it's running into a redirect loop because of the header('Location: ...') we use, which of course can't be true because it works fine in IE and Netscape 4.71. A very basic example goes like this: PHP Code:
View Replies !
View Related
Netscape 6.x Session Irregularity
Is anyone aware of a bug in Netscape 6.x that messes up session variables in PHP 4.x? I can't get any of my session variables to show up. If I echo get, post, session and cookie variables on a page where session variables should be, I get the following: Code:
View Replies !
View Related
Clearing Cookies In Netscape When Done Shopping?
Got a real problem with clearing a cookie in netscape once a customer's order is completed (payment processor accepted). I was using setcookie("cart_id", ""); initially to clear the cookie which worked in IE but not in Netscape. I've tried setting an expiry time to it and a host of others. Does anyone have special tricks to getting rid of them? I NEED to have the cookie clear upon the order being accepted and nothing is working in Netscape.
View Replies !
View Related
Netscape Cannot Load Local PHP Pages
I am developing a php application on a windows xp machine running IIS and I cannot load the famous test.php page or any others with a php extension in my Netscape 7.1 browser (I also tried version 4.6). I am always prompted with: you are trying to open an application of type "application/octet-stream " and what I would like to do with the file, when in reality my browser should be processing it. It works great in IE, and php pages on the web work fine in Netscape. So I know it is something local, but I just can't figure it out! Is there a particular setup of php files with Netscape, something mime-type related? Does anyone have any advice?
View Replies !
View Related
Php Download Management - Netscape/mozilla Bug
I am using the script as below, but there is a problem, in Netscape, and Mozilla Firebird, a .php is added to the filename when the user is prompted to save, it's ok in Internet Explorer and Opera though: $filename="/home/myUserName/filename.exe"; header("Content-Disposition: attachment; filename=filename.exe"); header("Content-Type: application/octet-stream"); header("Content-Length: ".@filesize("$filename")); readfile("$filename"); This works fine, other than on Mozilla Firebird and Netscape, it wants to save as filename.exe.php I've noticed if I make the download link download.php?anyvariable=anyvalue, the .php IS NOT added however, so I use that to temporarily stop the problem. Can anyone suggest what I maybe doing wrong.
View Replies !
View Related
Netscape (Transfering Data From Localhost)
I use Netscape Navigator (7) for one purpose and that is seeing the Document read time at status bar. However, Since several weeks the Time won't show. This must have something to do with my application? Now it only says "Transfering data from localhost..." even though the document has been read. What should I do to make It says "Document done (0.083 sec)" or similar?
View Replies !
View Related
Netscape Creates 2 Files For My Sessions
I am having a problem with Netscape when I try to create session variables on two different pages. Netscape produces two separate session temp files ... one with the Redirect.php session variables... one with the Results.php session variables... both have an unique sessionID. IE works fine (in that it creates one session temp file for all variables). Here is the code I am using: PHP Code:
View Replies !
View Related
Printing POST Data In Netscape.
I've got a site that generates all sorts of reports on the fly both by including text files with content and pulling stuff from a database all based on user selections from a form. Needless to say, users HAVE to be able to print these reports for this thing to have any applicable use whatsoever. My Problem: Netscape will not print these pages. The error is: Data Missing. This document resulted from a POST operation and has expired from the cache. If you wish you can repost the form data to recreate the document by pressing the reload button. It would seem the solution lies in forcing Netscape to cache these pages. This seems ridiculous to me as these will always be dynamically generated pages - but whatever, the "common sense" of Netscape eludes me often.
View Replies !
View Related
Inline DIVs Under Netscape/Opera
i want to display a series of inline, fixed-width DIVs that will wrap into columns - a table, basically. i can do it under Internet Explorer, but the same code under Netscape or Opera does not behave as expected. the DIVs "collapse" into small rectangles (i put a border around them so i could see), but their contents (some middle-aligned text) span the width of the page. if not for the borders that i added, it would appear that each DIV was width: 100%. rather than a number of smaller columns, i get one big, fat column. what am i doing wrong? here's the code (with only two columns, for simplicity): <?xml version="1.0" encoding="us-ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> <head> <title></title> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=us-ascii" /> <style type="text/css"> div.productListing { display: inline; width: 128px; text-align: center; /* temp */ border: solid 1px red; } </style> </head> <body> <div class="productListing"> <div class="productImageContainer"><img class="productImage" src="#" alt="Cufflinks" /></div> <div class="productName">Gold Cufflinks</div> <div class="description">They are cufflinks and they are gold.</div> <div class="price">$59.90</div> </div> <div class="productListing"> <div class="productImageContainer"><img class="productImage" src="#" alt="More Cufflinks" /></div> <div class="productName">Gold Cufflinks</div> <div class="description">These cufflinks are also gold.</div> <div class="price">$69.90</div> </div> </body> </html>
View Replies !
View Related
Flash Banner Not Showing In Netscape Browsers(7.x)
I just got my site up and low and behold, my flash banner does not show in Netscape, only in IE. It shows on Netscape in my local testing enviornment, this is why I felt all was fine. the site is at www.derouenfamily.com If you see a blank white space where a banner should be, thats it.. its at the top of most of the pages. Am I nieve, is this something that is known, or is there a simple fix to this. Alot of the postings speak of POSR bugs et al. All elaborators will be appriciated.
View Replies !
View Related
Strange Problem With Netscape, Opera And Pageviews
i'm trying to count pageviews on my website. this is part of the code included in each page: $query = mysql_query("SELECT * FROM pageviews WHERE datei = '$datei'"); if(mysql_num_rows($query) != 0) { $query = mysql_query("UPDATE pageviews SET hits = hits + 1 WHERE datei = '$datei'"); } else { $query = mysql_query("INSERT INTO pageviews SET datei = '$datei', hits = Ƈ'"); } the "hits" field in the database is incremented every time a page gets hit. this works fine with IE and mozilla firefox, but NN and opera count a page twice when you load for the first time. i figure that somehow a reload is triggered, but i don't know how. the page contains javascript also, but even without it it counts twice. anyone any ideas?
View Replies !
View Related
This Code Fails On IE But Works With Netscape / Mozilla
<script language="Javascript1.1" type="text/javascript"> function xso_popup(url,name,options) { var cw=window.open(url,name,options); cw.opener=this; cw.focus(); } Link : <a href="javascript:xso_popup('http://www.somewebsite.com/images/image 239.jpg','Enlarged View','width=300,height=300,scrollbars,resizable') "> What could be wrong ? I just get a "Error on page" error with some gripe about arguments.
View Replies !
View Related
Firefox, Netscape And Opera Not Accepting My PHP Session?
I have compiled a PHP Upload script including Flash interface to upload files to my hosting. The only problem though is that it will only work with internet explorer? With other browsers, the confirmation link to the file doesn't show at all, it's just blank? I have tried Netscape which will only work in Internet Explorer mode, Firefox doesn't work at all and neither does Opera. The below is what I include on the upload page which is followed by the embeded flash: Code:
View Replies !
View Related
Weirdness: Mysql Query Works Fine On Netscape, Access Denied On IE
The error is the common "access denied to user@localhost on database," or whatever the exact language is. (I email from Linux so can't copy the exact wordage right now.) But like I say, it only occurs on IE running on the woeful Windows ME. I haven't tried it on another flavor of Windows. Netscape works just fine on whatever both OSes I have. Here's the code, short and sweet: // database variables $userName = GetDBUserName(); $password = GetDBPassword(); $dbName = GetDBName(); $hostName = GetDBHostName(); $db = mysql_pconnect($hostName, $userName, $password);
View Replies !
View Related
Weird Result? Php 4.4.0
I have a variable v with the value -1. After v++ it has the value "" not 0. Since I am using it for a subscript, the "" value is not overwriting the 0 element of the array as desired. Should v++ ever give a non-numeric value?
View Replies !
View Related
Something Weird With Sessions
I'm having a little weird condition. I have a simple form (POST method), whose Action is a validation script, most of the times it works. But sometimes, the validation script does not "receive" the variables from the form script. The code is very simple, so I think I should review some of the parameters of the PHP version (4.3.4) installed in the server where my site is hosted, but I'm not sure which of them I should check.
View Replies !
View Related
Weird Array
I'm executing these commands: $text="example text"; $parts=explode(" ", $text); $result=$parts[0]; $result becomes a weird array. echo "$result" prints 'example', but if I use function count_chars($result) i got error message, that $result is an array not a string.
View Replies !
View Related
Weird $_FILES
I have a file input field named mainpic. PHP Code: $main = strtolower($_FILES['mainpic']['name']); $main is continually blank. if i do a foreach on $_FILES it says mainpic is an array but if i try to foreach mainpic it errors out. I have the correct enctype and everything. The shortcut i usually use did not work either. PHP Code: $main = $mainpic_name; It's working on my other sites so I'm going pretty nuts. Any ideas?
View Replies !
View Related
Weird Bitwise Bug
In doing user permissions, I'm having a weird bug with a bitwise and. The values are being stored correctly, yet when the 'and' is done the value that returns varies by which server the command is done on. Example: $user["permissions"] = 54975580511 //0x7FFFFFDF47 $CLIENT_VIEW = 4294967296 // 0x10000000 $user["permissions"] & $CLIENT_VIEW => 0 on one of our servers. Any suggestions?
View Replies !
View Related
Weird Session
I have a form setup as to where I can promote moderators by putting their username into an input field and press submit . From there, the username is queried against a users table to find the user_id and if it exists. If it doesnt, it shows the form again with an error, if it does. then it inserts the moderator row fine and dandy. But my problem is, when I hit the back button to go to previous pages after the form is submit, my $_SESSION['user_id'] reverts to the user_id of the member being promoted to moderator. Why the heck would this ever occur? Its a security risk if an admin was promoted to a moderator, because that person could steal the admins identity.
View Replies !
View Related
Weird Require_once
I have a file(call this file1) that has a class definition extending a parent class. This file has require_once on the top to include another file(call this file2) which has its own require_once which include the file that has the actual parent class definition. Somehow, php always complains at file2 and says that it can't find the parent class. Does anyone know why?
View Replies !
View Related
Weird IP Address
let's say i have a 2 web servers. i have a php script running on the first that uses an included PHP script that's sitting on server 2. how can i get the script on server 2 that's sending info back to server 1 to detect the IP address of the requesting server so i can check for authorization? i was looking at $_SERVER["REMOTE_ADDR"] but i don't think it's what i need.
View Replies !
View Related
Weird <> If Statement
$cd = date(j); function isday($day) { if($day < $cd) { echo ' style="background:url(/images/green.bmp);"' } else { echo ' style="background:url(/images/red.bmp);"' } } //end isday isday(Ƈ'); that prints the red one... (today cd = 9) Anyone know why? and how to fix it? Its supposed to be green if the day has passed.
View Replies !
View Related
Weird Apache2 + 5.2.2
I've installed apache 2 and php 5.2.2 on Suse 10 SLES. I'm experiencing some weird problem: In the Apache DocumentRoot directory I have several files they are owned by the same user and have the same permissions. I can open some of them in a web browser and for some of them I get "error 404: Object not found!". At first I thought that I have so problem with the permissions After checking and setting the permissions and owner on the same values as the files that are opened correctly I've tried again but i got the same results. Code:
View Replies !
View Related
Weird Heredoc
$login = <<<LOGIN <form action = "$_SERVER['PHP_SELF']" method = "POST" > <table border= "0" cellspacing="1" cellpadding="3" bgcolour = $formBackground align="center" bgcolour = $formBackground> <tr> <td <FONT COLOR= $font> Name: </td> <td <FONT COLOR= $font> <input type="text" name = "userName" > </td> <td <FONT COLOR= $font> Password: </td> <td <FONT COLOR= $font><input type="password" name = "userPass" > </td> <td FONT COLOR= $font colspan="4" align="center"> <input type="submit" name = "submit" value = "Log In"></td> </table> </form> LOGIN;
View Replies !
View Related
Weird CURL Result
I am having a problem using curl and when it returns the page it has all of the images listed as local files to my server, I am assuming this is because the design of the site I am accessing, but shouldn't cURL recieve the site the same way a browser does and not show files local to me. I can adjust it using string replace methods but it seems a bit troublesome to do so:
View Replies !
View Related
|