Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





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 Complete Forum Thread with Replies

Related Forum Messages:
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 !
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 !
Fopen Creates Files?
According to the PHP documentation fopen will create a file that it is directed to open with write access if it doesn't exist... It may be my current host, or I may be doing it wrong, but it doesn't work. Code:

View Replies !
Cron Job Creates Php Files
I have a cron job that is running on my server. Its set to run every half hour. It works great, but it has an annoying little quirk. Everytime the cron job is run, it creates a php file in the root directory of my server. Since its running every 1/2 hour, I get a bucnh of files on my root directory and I have to manually delete them everyday. I've posted the code for my cron job below.

View Replies !
Sessions, Tmp Dir, Empty Files
Problem - the /tmp session files created in my tmp directory contain zero bytes (ie. totally empty). Any ideas why?

Here's my setup: Windows 2000, Apache web server, PHP402. I can see new session files being created each time a new session is registered, but they're not much use if they're empty! I've checked the file permissions on the tmp directory, and it's completely shared out. No error messages or logs are being generated that I'm aware of.

Thanks for any help...

View Replies !
How To Delete All Sessions (session Files)?
What line(s) of PHP code can I use to delete ALL existing session files? I tried:

$_SESSION = array();
session_destroy();

......but those two lines appear to only delete the session file that was created for the current session.

View Replies !
Can I At Least Read The Session Files For All Sessions?
Right now, I am attempting to see how many users are "signed on" to my system. Since this is, at best, rather tenuous in a WEB environment, I thought to read the active session variables and see how many sessions there were.

View Replies !
Problem With Sessions / External Javascript Files In IE6 Only
I have a very frustrating problem. I have been trying to make it more
difficult to access external javascript files by using PHP sessions.

This works beautifully locally (both in IE6 and IE7) and online in IE7,
but frustratingly, online in IE6, the javascript does not render on the
page, unless you refresh the page.

Is there something different about the way IE6 handles sessions? Why
would it work locally but not online?

View Replies !
How To Protect Clips Files By Php, Apache, Mysql, Sessions
I have a members area full of video clips.
Clips are inside /hide/videoclips/ and /hide is apache protected directory
by .htaccess
Users can enter by a login.php (entering user and password) managed by
php, sessions and mysql.
When they enter I create a symbolic temp link pointing to
/private/videoclips so they can download the clips.
By the crontab I clean the temp link every now and then.
So if someone post the link http://www.mydomain.com/hide/clip1.mpg on a
forum, nobody can enter thanks to the apache login.

View Replies !
My Insert Creates
I cannot figure how to fix it. That snippet should be used to grab an ID which it does fine Then insert that ID in a col named "member_web_address" As mentioned it does get the ID and insert it But not on the row where from the ID was taken . It does insert it on a new row created by the insert action Which due to the auto increment creates a new ID etc... How can I keep the original row and pass its ID # to the "member_web_address" col in the very same row
<?

$query = "select id from templates where username= '$username' and page= '$page' ";
$result= mysql_query ($query);
while($query_data=mysql_fetch_array($result))
{
$member_web_address=($query_data["id"]);
}
$query = "select id from templates where username= '$username' and page= '$page' ";
$result= mysql_query("insert INTO phplates (member_web_address) values ('$member_web_address')");
?>

View Replies !
Creates The Session
i have a field in a database called Password. It is based on 'password' that a query on the rest of the database is run. The query uses sesions. I attempt to login to thru a login page with my 'email' and 'password'.

This is the page which checks that the login details are correct and it creates the session Code:

View Replies !
Dynamically Creates Varibles
i have this script for that uses 7 pulldowns for the time of an event each day of the week that gets inserted in to a db. Instead of writing the script 7 times for taking the data from the pulldowns, creating a time based on the hour, minute and AM/PM -can i create something that dynamically creates varibles. Basically takes something like $hour1, $minute1 and automatically creates $hour2, $minute2 and so on. This is kinda difficult to explain, heres a snippit of code which i want to duplicate.

View Replies !
CURL Creates New Session
I currently have a curl session that can access hundreds of different pages on a site. One thing I noticed with it is that it is initiating a new session of the server that is accessing. I don't want it to create a million sessions, just use the one it currently has. I am going to guess that if curl_close($ch) is called, then it is is reinitiated curl_init, it restarts the session correct.

View Replies !
Looking For Script That Creates List Of Referrers
I've been looking for a script that will create a real-time list of
'top referrers', similar to the links to sites you see on the left of
the page at http://www.linkswarm.com. They also have a page
http://www.linkswarm.com/referrers/referrers.php which shows all
referrers.

I'm assuming you'd be able to set filters. There is no signup
required, you just link to the site and your site appears in the
referrers list, but as a webmaster, you wouldn't want to include
search engines for example.

View Replies !
Creates A Database On Any Server Via A Web Page.
I have basically an install script that creates a database and all the tables and fields.
This works great on the local IIS I have on this machine, but that's because I have 1 password for all databases. THe database cannot be created when I run this on the server that hosts my websites (which is a remote server that I rent space on, it's not in my control).

I'm trying to figure out if what I want to do is possible. I want to have a script that creates a database on any server via a web page.

View Replies !
Mysqldump Creates 0 Bytes File!?
i found some simple code for dumping mysql database but whatever i do (change path to mysqldump, change arguments, change functions) it generates 0 bytes file every time! why is this happening? how could i debug my code? Code:

View Replies !
Script Creates Owner As Apache
I am using a fantastic script called Photofolio from www.billwadman.com/photofolio and everything is awesome with it except that when you call the file "buildthumbnails.php" and it builds your thumbnail folders it creates them with the owner name as "apache" and permissions at 644. The problem here that you may suspect is that I cannot go in and delete those files in any of my FTP programs of DW because I am not the "owner".

My hosting company says I will have to manually lodge a ticket each time to have the folders deleted. THis seems like a pain in the arse. could anyone offer any help into this situation? or will this really be the case that they will have to delete the files.
The only other option I see is Bill Wadman creating some sort of script that will go in and delete the fies or folder directories for you.

View Replies !
Mysqldump Creates Empty File
I have the following code running on a Windows PC (it actually needs to work in a Linux environment on live but still developing it). It seems to create the a.sql file but there is nothing in the a.sql file even though there is data in the database....

View Replies !
MySqldump Creates Empty File?
I am Trying to create a one click backup database script so non-geek office staff can do this, but so far I can only output empty files

$db_user = "root";
$db_password = "";
$db_database = "or";
$db_server = "localhost";
$backup_path = "C:xampphtdocsopenrealadminackup";
$path_to_mysqldump = "C:xamppmysqlin";
$filename = "backup".date("YmdHis").".sql";

shell_exec ("mysqldump $db_database > $path_to_mysqldump.$filename --user=$db_user --password=$db_password");

I have tried various forms of this syntax with no content output?

View Replies !
Securing Code That Creates Images
I have a pretty nice php web site, that's also reasonably secure.
However, I wrote some php code to create some dynamic images based on
database data, but I can't figure out how to secure this script?

when I reference the php code via img src="myimage.php", none of my
session variables are available for use in the script. So, without my
session variables, how am I suppose to ensure that the script is only
run by a valid user, rather than just anyone who can blindly type in
random parameters to my image creation script?

View Replies !
'exec' Creates Popup Windows
I'm running php under apache (I'm using the uniserv distribution) on Windows XP. Every time I execute an external command using backticks or exec or system, I get a cmd windows that pops up for the 1/4 second the command executes. This would all be fine, except that I'm deploying the server to run locally on the user's box, and needless to say, the popups are annoying.

I've search everything I'm clever enough to understand and
can't find a way to get the external commands to run in the 'background'. All of the input and output of the commands have been redirected, any shell command causes this behavious, and in all other respects it all seems to work great.

View Replies !
Verify Page Which Creates A Session
I am new to sessions and php and have been playing around with them -
and would like to know why this is happening?

Firstly I have a login page and it goes to a verify page which creates
a session like so:

View Replies !
Creates A Cookie And Redirects It Automatically
i am migrating my ASP code to PHP and I have a problem with redirection i have a code here that creates a cookie and redirects it automatically but the problem is that...

on the first event that a user visits the page... the cookie is created but it does not redirect automatically. on the second event that a user visited that page, it redirects the user to another page. Code:

View Replies !
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 !
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 !
PHP Exec Calls A C Program That Creates A File
I'm using exec to call a compiled C program that creates/writes to a
file...However this doesn't seem to be working....
I tried setting all the permissions to 777 but still nothing...?

View Replies !
Creates Some Session Variables After Validating The User
I'm new to PHP...

I wrote a php script for login page, which creates some session
variables after validating the user... But it's not working...

When i compile it... The compiler is giving me the following
Warnings...

----------------------------------------------------------------------------------
PHP Warning: session_start():
open(/var/lib/php/session/sess_f207f20079897ad6f830fc632fa5e0c0,
O_RDWR) failed: Permission denied (13)

PHP Warning: session_start(): Cannot send session cookie - headers
already sent by (output started at /home/gana/public_html/login.php:4)

PHP Warning: session_start(): Cannot send session cache limiter -
headers already sent

PHP Warning: Unknown():
open(/var/lib/php/session/sess_f207f20079897ad6f830fc632fa5e0c0,
O_RDWR) failed: Permission denied (13)

PHP Warning: Unknown(): Failed to write session data (files).

(/var/lib/php/session)

View Replies !
Script That Creates A Smaller Version Of Image.
I have a dynamic image. i.e it keeps on changing. What i want to do i make a script that creates a smaller version of this image. like 50% width and 50% height. i want to place it elsewhere. But the thing is this smaller image should change when the original image changes too.

View Replies !
A System Automatically Creates A Copy Of A Php Page.
What I want to do is for people to put information into a form and after they hit "submit" a system automatically creates a copy of a php page. Then, it inserts the inputted info from the form in the new php page.

The pages would be numberically named and accessed easily like this. Everything is set up on the php page where only variables are needed to be changed. How do I take the submitted variables and write it into a newly created numbered page and insert the variables?

View Replies !
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 !
Why Is This Not Showing In Netscape?
The below script works fine in IE but not in netscape. The checkboxes are shown, but when clicked nothing happens, what am I doing wrong?

View Replies !
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 !
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 !
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 !
Cookie In IE Can't Appear In Netscape?
i'm experiencing one problem regarding setting the cookie. may i know why the cookie that i set in IE can't appear in Netscape? what i mean the page that i view using netscape are without cookie while in IE display the cookie page?

View Replies !
Netscape Compatability?
I have looked for the information regarding browser compatability and PHP 4.06, without success. Does anyone know of this, or can direct me to it?

View Replies !
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 !
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 !
$_SESSION Problem - Page Reload Creates New Session ID
I am having trouble using the session vars in
PHP 4.3.9
OS: Win XP Prof
Web Server IIS (is local and there are no links to other servers from
the web pages I work on)
Browser: IE 6.0

The problem I am having is that each time I reload the same PHP page, I get
a different
Session ID (and thus all session vars are lost from one page to another).

let's say in firstpage.php I set
$_SESSION["firstvar"] = "someval";
$_SESSION["secvar"] = "otherval";

and in secpage.php I try to retrieve $_SESSION["firstvar"] , it gives me
"Undefined Index error"
I did not know what is happening and when printing out the session id (echo
SID;) I found out
that the ID is changing every time page is reloaded or when moving to
another page.

The problem is that I don't know what might reset the session since I use
"session_auto_start"
and have not played with session_start, session_destroy or anything else.

View Replies !
Creates A Dropdown List Of Information Belonging To That User.
I have a page that uses php to look up specific fields in a specific table of a specific database based on the username. Using this, it creates a dropdown list of information belonging to that user. The fields in question each have 13 pieces of data. Based on what they click in the dropdown box, I need that specific data to pass onto hidden fields on the page. Code:

View Replies !
Unable To Write A File In A Directory That My PHP Script Creates
I've a problem of being able to create and remove a directory but
unable to write a file inside the created directory for some strange
reason. I suspect that this problem could be vaguely linked to Safe
mode being set to On since my site is using shared server hosting and
probably insufficient/incorrect Unix file permission.

Below is my test script that helps me narrow down the problem.
--------------------------------------------------------------------------------------------
<html>
<head>
<title>File IO Test</title>
</head>
<body>
<pre>

<?php
define("TEST_DIR", "./newsletter/2005_11");
define("TEST_FILE", "./newsletter/2005_11/file_io_test.txt");

echo "Make Directory";
if(mkdir(TEST_DIR, 0777)){
echo "<font color="green">OK</font>
";
}
else{
echo "<font color="red">Fail</font>
";
}

if(file_exists(TEST_DIR) && is_dir(TEST_DIR)){
echo TEST_DIR . " exists.
";
}
else{
echo TEST_DIR . " does not exists.
";
}
echo "<hr>
";

// TEST FILE WRITE
echo "Write Open File";
$file_handle = fopen(TEST_FILE, "w");
if($file_handle){
echo "OK";
}
else{
echo "Fail";
}
fwrite($file_handle, "This file is written at " . date("Y/m/d H:i:s") .
"
");
echo "Write Close File";
if(fclose($file_handle)){
echo "<font color="green">OK</font>
";
}
else{
echo "<font color="red">Fail</font>
";
}
echo "--- START FILE DUMP ---
";
readfile(TEST_FILE);
echo "--- END FILE DUMP ---
";
echo "<hr>";
?>
</body>
</html>
--------------------------------------------------------------------------------------------
This script will report a success with the creation of the directory on
my server, but fails to write a file inside the newly created
directory.

Originally, I only call mkdir without specifying any permission and it
doesn't work. Thus I explicitly instruct mkdir to use 0777 to allow all
write operation by everybody, in case PHP and Apache try to write files
using "nobody" or "www" user account, instead of my shell login user
account. Still it doesn't work. The owner of the created directory is
called "www". When I login via SSH and check the permission, strangely,
the permission is 775 instead, with Write permission for Others
disabled, although I told mkdir to use 0777 instead.

Is there any workaround, and what am I doing wrong here? Thanks for
sharing with me any insight into this problem. I'm not quite sure what
exactly is wrong here, whether because of PHP Safe mode, incorrect
directory permission, incorrect file permission or the case of
different UID or owner.

View Replies !
Creates A Simple Text Box For The User To Enter Details In.
I'm using a Mambo component (Remository) to output details about files for download. The code below shows what's there at the moment. PHP Code:

$this->fileOutputBox(_CUSTOM_4,'custom_4',$file->custom_4,25);

This creates a simple text box for the user to enter details in. However, in some fields I want to limit the options available by having a select drop down box. In other fields I may want to supply the values in the select drop down from other fields in the db.

View Replies !
Creates Generates A Download Link Which Is Active For One Hour Only
I'm making a system which creates generates a download link which is active for one hour only. I wanted to make it cookie based, but I'm having troubles setting the expiry time of the cookie correctly:


$timestamp = time();
$expires = $timestamp + 3600;
setcookie("DOWNLOAD_ID", $hash, $expires);

In Firefox the cookie is set correctly to expire in one hour from the current local time.
In IE and Opera it sets the expiry time to one hour in GMT. The server is in the same timezone as the client machine (for now). How to I make sure that the expiry time of the cookie is set to 1 hour in local time ?

View Replies !
Mp3 Force Download - Creates A Single Mp3 That Plays The Song Twice
Ok so my Mp3 download plays the same song twice : merges the Mp3 into a single, double-sized file. I am baffled.

<?php
if ($_GET[download] == 1) {
header("Content-type: application/MP3");
header("Content-disposition: attachment;filename="$_GET[name].mp3"");
}

session_start(); ....

View Replies !
Xml Parsing Issue - See Some Extra Information Which Creates Problem
I am using for web service client and been able to get correct results. Now i have problem in parsing it, I have methods available for this either get data form array which in user debug or i can parse the xml.

When i put the who xml in file and try to parse it it works file, but when i try to parse it directly you can see some extra information which creates problem, please check this issue and help me out. Code:

View Replies !
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 !
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 !
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 !
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 !
Running Php On Netscape Browser
for some reason, I have a difficult time running my php script on netscape 4.7 browser. it works well on i.e but netscape for some reason messed up part of my code. anyone know why?

View Replies !
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 !
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 Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved