Re: [PHP] URL hiding
There may be an easier way, but I usually use sessions when I want to pass variables around that I want to remain hidden, but want to use links. Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom - Original Message - From: "Kris" <[EMAIL PROTECTED]> Cc: "PHP-General" <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 10:39 AM Subject: Re: [PHP] URL hiding > I already use POST as the form method. > I know > www.whatever.com/index.php?uName=Kris can be the same as > www.whatever.com?uName=Kris > > I just want to get rid of the ?uName=Kris part on the end > I still need the variables to be passed I just don't want the user to be > able to see them. > > Thanks for your help > > Kris > > - Original Message - > From: "Marco Tabini" <[EMAIL PROTECTED]> > To: "Kris" <[EMAIL PROTECTED]> > Cc: "PHP-General" <[EMAIL PROTECTED]> > Sent: Wednesday, November 27, 2002 9:12 AM > Subject: Re: [PHP] URL hiding > > > > If index.php is the index page of your website, then you do not need to > > specify it at all. > > > > i.e. www.whatever.com/index.php?uName=Kris > > > > is functionally equivalent to www.whatever.com?uName=Kris > > > > A way to get rid of the variables passed in the query string is to use > > POST instead of GET as the method of your HTML form. > > > > > > Hope this helps, > > > > > > Marco > > -- > > > > php|architect - The magazine for PHP Professionals > > The first monthly worldwide magazine dedicated to PHP programmers > > > > Come visit us at http://www.phparch.com! > > > > > -- -- > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Reading Directory in reverse
Hi Guys, Does anyone happen to know why the below code reads the directory in reverse alphabetical order? Not a major problem - easy enough to whack it in an array and sort it, but annoying nonetheless. $default_dir = "../screenshots"; if (!($dp = opendir($default_dir))) die("cannot open $default_dir"); while($file = readdir($dp)) if($file != '.' && $file != '..') echo"$file"; closedir($dp); Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php_mcrypt.dll
Did you try the php.net website? Because I haven't used it, I can't help you other than doing a quick google search which produces the following link - which contains information on a workaround for a similar problem. Do a find on the page for 'failed'. http://si.php.net:/manual/en/ref.mcrypt.php Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom - Original Message - From: "Daniel Guerrier" <[EMAIL PROTECTED]> To: "php user group" <[EMAIL PROTECTED]> Sent: Friday, February 21, 2003 4:12 PM Subject: [PHP] php_mcrypt.dll > I'm trying to use the mcrypt function on winXP using > php 4.3.1 and IIS 5. First the dll would not load but > I got past that by placing the libmcrypt.dll in my > system32. Now it loads but when I try to use mcrypt I > get > > Warning: mcrypt_encrypt(): Module initialization > failed in > E:\IIS\wwwroot\savehiphop\admin\access\encrypt.php on > line 6 > > I don't think it's the code, it's pretty simple. > $key = "longencrytionkey"; > $text = "danny"; > echo($text . ""); > > $newtext = mcrypt_encrypt("MCRYPT_BLOWFISH",$key, > $text, "ecb"); > echo($newtext); > > > How do I get mycryt extension to work properly on > windows? > > > __ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] array question
Hi Guys, This might be a bit of a newbie question, but I'm not sure how to search for this particular information as its hard to put in search terms. Say I have a mysql/file with information about variables. Eg, I have a string from a mysql database of 'test' Am I able to then, in PHP, assign whatever that string is to a variable name? Eg, the string 'test' is used to create the variable '$test'... What is in that variable, doesn't matter, just the fact that the script knows the name of the variable (which can change depending on what the strings are) I'm sure its an easy piece of code, like a string function, but I'm buggered if I can find it! Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] strange behaviour with login page
I have seen this as well. Try using netscape or an earlier version of IE and you will probably find it will work without issue. I posted about this many moons ago and unfortunately didn't get a solution. I can't recall the specifics of when it was doing it (and if I remember correctly, sometimes it would work and sometimes it wouldn't - in the context of a members area where sessions are used - some pages worked, others didn't - same sessions method), but on some servers, we had no issues (exactly the same versions of linux, php etc) and others this happens. There must have been some sort of variation at our end, but we couldn't see it. We upgraded to PHP Version 4.2.3, and this fixed it. Sorry I can't give you any more info. At the time I was having the problem, I was under a tight schedule and didn't have time to track down possible causes. As I said, the upgrade helped us (also fixed a few mysql query caching problems we were having too - caused a few GD ones though). My guess is that its some sort of cookies problem with windows IE 6 (as that was the only browser I saw the problem on). Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom If anyone has come across a similar problem to the one described below, and has a solution I'd be really grateful if you can help me out. I'm trying to implement a user authentication process where users can click on an external link to my site. If they're not logged in they get presented with a login dialog. Once they log in they're redirected onwards to the page they initially wanted to visit. The system I have in place at the moment handles authentication using sessions. The bizarre thing is, while everything seems to work on my home pc (windows & iis web server, php 4.2.1), on the host server (linux, apache, php 4.1.2) I get the login screen twice before I get redirected. My hunch is that it's something to do with when session variable become available after registering them. (I'm using the sesssion management functions built in to php 4). TIA Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] strange behaviour with login page
In my case, it was a https website. However, in testing, it was happening on a normal http website as well. It was something I ruled out trying to find the problem. Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom - Original Message - From: "Andre Dubuc" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROTECTED]> Sent: Monday, March 10, 2003 10:44 AM Subject: Re: [PHP] strange behaviour with login page > Hi Steve, > > Just out of curiosity, when you mention "implement a user authentication > process where users can click on an external link to my site" are you using > the https protocol? > > I had similar bizarre behavior with IE using a "Confirmation Required' > script. Worked great at home (localhost), with apache, linux, et al, but with > IE sometimes it worked, most often not. > > I finally traced the route of my problem to the https protocol. I found this > quite by mistake -- AOL, Hotmail, and Yahoo users were not being redirected > to my site. Almost exactly the same problem occurred as you describe: if I > clicked the link twice, it sometimes worked. (Btw, I lost a lot of > registrants because of this problem. I finally dumped the whole thing, and > now, users once registered, go immediately to specified areas of the site. > Apparently, with AOL, Yahoo, Hotmail users the https protocol is 'optional' > or 'premium' or somesuch idiocy!) > > If you do find the root of your problem, would you be so kind as to drop me > an email with your resolution -- I'd like to get my little script to work. > > Hth, > Andre > > > On Sunday 09 March 2003 06:18 pm, you wrote: > > I have seen this as well. Try using netscape or an earlier version of IE > > and you will probably find it will work without issue. I posted about this > > many moons ago and unfortunately didn't get a solution. I can't recall the > > specifics of when it was doing it (and if I remember correctly, sometimes > > it would work and sometimes it wouldn't - in the context of a members area > > where sessions are used - some pages worked, others didn't - same sessions > > method), but on some servers, we had no issues (exactly the same versions > > of linux, php etc) and others this happens. There must have been some sort > > of variation at our end, but we couldn't see it. > > > > We upgraded to PHP Version 4.2.3, and this fixed it. > > > > Sorry I can't give you any more info. At the time I was having the > > problem, I was under a tight schedule and didn't have time to track down > > possible causes. As I said, the upgrade helped us (also fixed a few mysql > > query caching problems we were having too - caused a few GD ones though). > > My guess is that its some sort of cookies problem with windows IE 6 (as > > that was the only browser I saw the problem on). > > > > Best Regards > > Bob Irwin > > Server Admin & Web Programmer > > Planet Netcom > > > > If anyone has come across a similar problem to the one described below, and > > has a solution I'd be really grateful if you can help me out. > > > > I'm trying to implement a user authentication process where users can click > > on an external link to my site. If they're not logged in they get presented > > with a login dialog. Once they log in they're redirected onwards to the > > page they initially wanted to visit. > > > > The system I have in place at the moment handles authentication using > > sessions. The bizarre thing is, while everything seems to work on my home > > pc (windows & iis web server, php 4.2.1), on the host server (linux, > > apache, php 4.1.2) I get the login screen twice before I get redirected. My > > hunch is that it's something to do with when session variable become > > available after registering them. (I'm using the sesssion management > > functions built in to php 4). > > > > TIA > > > > Steve > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] fopen and file dump to a databace...
I would use something like this (assuming you're just going to read the entire file and bung it into the database). Be careful reading large files in, it can fill up PHP's allocated memory resource. I've used this with 4 meg files though, and its worked ok. $fp = file("yourfile.txt"); //This reads the file into an array, each element of the array is a line. Which you can then, test, manipulate, explode etc to put into the database. while (list($barry, $tbone) = each($fp)) { //barry is the index of the array element, $tbone is the value of that element in the array. echo"Index: $barry Value: $tbone "; //just insert into the database what you need to. } Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom - Original Message - From: "Mark Tehara" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 10, 2003 1:02 PM Subject: [PHP] fopen and file dump to a databace... > HI, I'm looking to take the data from a CSV file, then upload it into a > mysql databace. > > I figure i will need the following. > > To count the number of lines ... and cut up each line in its veriables then > entering it into the databace. > > I have: > > $file = fopen("pricelist-snippet.csv","r"); > $buffer = fread($file,1); > echo $buffer; > > This dumps the data to the screen ... > > where would i start to making cutting this data up by the line? > > / Mark > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Access DB & PHP
Hi guys, I have a client who insists on using PHP and an Access database. He describes a problem with the access databases becoming locked when a user clicks 'stop' in their browser whilst downloading the page (and I have to stop the IIS server to release it). I have absolutely no experience with PHP/Access connections, so I thought I'd ding it along and see if the elite PHP programmers of the world can pick up an error in his code. > > I connect like this: > $conn = new COM ('ADODB.Connection'); > $conn->Open ("Provider=Microsoft.Jet.OLEDB.4.0; Data > Source='c:\\home\\westir\\data\\libcat.mdb'"); > $sql = "SELECT * FROM tbl_name "; > $result = $conn->Execute($sql); > > // deal with the database generated information > > $result->Close() > $conn->Close Is there a better way to do this? Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Sessions Question
Aside from the fact that bad code can obviously make sessions hackable, what does everyone think about the security of sessions? I rely on them fairly heavily for low-mid range security on some of my scripts, but if I was to do something that involved more sensitive info, are sessions bullet proof? Can someone forge them somehow? Bob Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sessions Question
Oops. Forgot to remove the Re: - it was a new thread - I just replied to an old message to get the php list email address then managed to stuff the subject up. Thanks for the help though! Best Regards Bob Irwin *** Email [EMAIL PROTECTED] for speedy email response *** - Original Message - From: "- Edwin -" <[EMAIL PROTECTED]> To: "Bob Irwin" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, June 27, 2003 2:39 PM Subject: Re: [PHP] Sessions Question > > "Bob Irwin" <[EMAIL PROTECTED]> wrote: > > > Aside from the fact that bad code can obviously make sessions hackable, what > > does everyone think about the security of sessions? > > > > I rely on them fairly heavily for low-mid range security on some of my > > scripts, but if I was to do something that involved more sensitive info, are > > sessions bullet proof? Can someone forge them somehow? > > I think you'll find related info if you try Google or the archives for > > "hijack sessions" > > And, talking about "hijacking", you just hijacked this thread which is not good. > > http://marc.theaimsgroup.com/?l=php-general&m=105337989306112&w=2 > > - E - > __ > Do You Yahoo!? > Yahoo! BB is Broadband by Yahoo! > http://bb.yahoo.co.jp/ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Session Problems
G'day, I'm having some frustrating issues with PHP 4.1.2 and Apache/1.3.26. I am using sessions on a secure server and on a whole, they are working beautifully. Using the same code on all pages (after the user logs in successfully, they are given a value and its a simple 'if' statement to determine whether they have a session). As I say, this has been working fine. However, just recently I've been having a very strange problem with certain pages. What happens is that when I go to an affected page, it simply loses the session information (in fact, the session appears to disappear completely and I'm forced to log in again). The majority of pages, using exactly the same session code, work fine. If I log back in (without closing the browser), I find that all of the pages work as they should. If I close the browser, open it and log in again, the problem occurs again. This problem occurs on multiple computers and multiple browser platforms. So I'm thinking this is either code or server side. I have tried starting a session, destroying it and starting it again, thinking that maybe the initial session doesn't initialise properly. I am also clearing all session cookies upon the user logging in successfully. Does anyone have any idea what this could be? I'm more than happy to provide any additional information that you might need to diagnose the problem. My session code is simply as follows... session_start(); $session = session_id(); As I say, this works fine on other pages in the same directory, with exactly the same code Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Some questions.
Also, This may be unrelated, but something I'll throw in just in case as there was much hair pulling on my part. I recently discovered a problem with using sessions on Apache 1.3.2.23 and PHP the two latest versions of PHP (excluding the most recent version which was not available at the time). This problem was only with sessions (without sessions, the pages worked fine). I'd find that when you logged in, the first time you updated the mysql database, the results were displayed fine on the results page. However, upon making another change (editing a field, deleting an entire entry etc), the results page showed the results of the previous update and continued to do so even though the database had been updated. The only way to see the new results was to log out of the browser completely and log back in. This problem was ONLY with IE, netscape/mozilla did not have this problem. Solution: upgrade to Apache: 1.3.26 and the problem hasn't been seen since. However, we are seeing a few little issues using sessions on PHP that are utterly unexplainable (it will log you out for no reason on pages that previously worked perfectly). We're hoping the newest PHP revision will solve this (haven't got around to installing it). Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom - Original Message - From: "Justin French" <[EMAIL PROTECTED]> To: "mintbaggio" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, August 13, 2002 12:21 PM Subject: Re: [PHP] Some questions. > on 13/08/02 3:42 AM, mintbaggio ([EMAIL PROTECTED]) wrote: > > > I'm a Chinese university student,I want to ask some questions about session. > > These days I'm build a website for my university with PHP, But I meet a > > question when I develop the part of User Management: After I have log out > > from a user page(I use "session_unset()" and "session_destroy()"),I can > > return to the page again by click the button "Back"to that pagea and refresh > > it, the user page can be shown again. This is unsafe. > > So I want to ask that the function "session_unset" and "session_destroy()" > > will > > destroy session immediately or there is a life-time for session. In my memory, > > I think that there is a life-time for session and the life-time can be > > configured. > > Firstly, make sure you've read the page at php.net/session_destroy and > php.net/session_unset, because it supplies perfect code for destroying a > session. > > Make sure your code matches either example 1 or 2, depending on your code. > If you're unsure, test with both. > > If you've named your session somewhere, you need to unset and destroy it > WITH that name, I think (never had to do it). > > > > > Another question: > > If the user log page is "main.php",the page for authenticate the user is > > "login.php" > > I use session to store the infomation of user such as : > > session_register($userid); > > But if the variables in the session are unfortunately be known by somebody > > else. > > and he can visit others' information bye the url:"login.php?userid=***",how > > can solve > > these problem? use a ugly but difficult session varable? > > When you store the the username as a session variable, it's stored on the > SERVER, not on the client. Hence, there is less chance of the session > variables being disclosed. Better still, if you NEVER store both the > password and username in the session, then the "hacker" will not be able to > do anything without the password. > > The only thing stored on the browser or transmitted in clear view when > running a session is the session id (a long number), NOT the variables > assigned to the session... that's the whole point. > > > FWIW, if you really want to make things more secure, you should turn off > register globals, learn about the new super global arrays like $_POST, > $_SESSION, $_GET, etc etc. > > In short, you'd register a new session variable as $_SESSION['var'] = > "value"; rather than $var="value"; session_register($var); > > > Justin French > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] MySQL vs Session?
I'd have to say that I haven't done any controlled tests, but mysql can be very slow when you are doing a lot of connections (correct me if I'm wrong, but I think it executes requests in order?). To be untechnical about it and only speak from experience (if I was a typical internet user, I'd think that because it does it for me, it must do it for everyone! :) ), I personally have never found sessions to be slow getting a lot of data, where as I have found it slow with mysql... probably also depends greatly on your server load. I'd imagine that you would see a massive difference on a server that is under load. Bob >Which is generally faster/better, doing a SELECT or doing session_start()? >Rephrased, are sessions significantly faster/lighter than using MySQL? >I'd imagine they are, since they won't need to do a connection or anything, >but I am not familiar with how sessions scale. Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Further Security Clarifications [was: Simple Security Clarifcation]
Usually the first thing you want to do here is check your error log. Most of the time, this sort of thing will be a permissions problem, as the apache server runs the PHP scripts as a user (ie you), that user needs to have the ability to execute those files. If you aren't sure, make the file owner you and give the files 777 and work backwards from there. Don't forget to check the directory permissions as well as the file permissions. From a hosting point of view, its different and a little more complicated if you have multiple users on the server, if it's just you though, it makes it a little easier. Take note of what the file permissions/ownership are befor eyou change them (in case this isn't the problem). Another simple things to check - make sure you're using the full path, ie, /var/www/secure/filename.php How are you including them? I use a require("/pathtofile/filename.php"); Works for me assuming I have the right permissions. Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom - Original Message - From: "Andre Dubuc" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 22, 2002 11:19 AM Subject: [PHP] Further Security Clarifications [was: Simple Security Clarifcation] > My main files are located in /var/www/html (the 'DOCUMENT_ROOT' in Apache, > according to php.ini). All sensitive files have been moved to > '/var/www/secure', but now I can't access them! (According to php.ini, the > PHP core 'doc_root=none'). > > I'm totally confused. If I understand this correctly, I want the files in > '/var/www/secure' to be served through php scripts that reside in the > individual files that call them up in /var/www/html. So, the problem seems to > be that either Apache or PHP doesn't know/can't access them. So, what am I > doing wrong here? > > I've also added a directive to refuse all .sht files > (they're .inc's). How do get access for php to the secure file directory, and > exclude the hackers? > > At this point, I'm about as confused as I've ever been since beginning PHP. > Any clarifications that will guide back into the fold, will be greatly > appreciated! > > Tia, > Andre > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Further Security Clarifications [was: Simple Security Clarifcation]
> Thanks Bob, > > Got a 404: File not Found. Checked the ssl_error_log as suggested, and found > a rather interesting entry: > "No such file: /var/www/html/var/www/secure/test.php" Ahhh - ok - I thought you were including them internally from PHP. You are actually linking to the file being SERVED by the web server in HTML. IN this case, all you need to do is reference to it as https://secureserveraddress/filename.php First of all, we need to understand this. We have two seperate servers here, the unix server that apache is running on and the apache server (this runs PHP, the secure server etc) itself. So... your normal website (served by the apache server) is at http://mywebsite.com/files.php BUT 'files.php' is located ON THE UNIX SERVER as /var/www/html/files.php The /var/www/html/ is the UNIX path to the file. The users who are using your APACHE server to get file do not see this in anyway. All they see is what is in the root directory, ie, /var/www/html from http://mywebsite.com/, this is exactly the same for the secure server, except the served files are encrypted. Success in this depends on what you are trying to do. Are you trying to secure files that contain information like your database passwords? Or are you just trying to run PHP scripts that produce HTML on a secure server (so that you can take credit card details from the remote users?). If you are trying to hide scripts with important information (ie, passwords) then running a secure server will not work. They will STILL be available from the internet, just at https://mywebsite/myfilewithapassword.php. This is not easily explained and I don't want to spend time going into it if its not what you're after, but if this is what you are doing, let me know and I'll help out. If you are just trying to encrypted the data from the server to the user, then you are doing the right thing, you just need to lose the /var/www/secure/ in the https:// address. > Obviously it's goes to DOCUMENT_ROOT (pre-pending the/var/www/html) and adds > what I've asked for. So, how do I tell it where to look, and not the default > setting? > > How am I including them? Well, most of the action occurs from the menu so > it's: > > https://localhost/var/www/secure/test.php";>Testing for Bugs > (I've also tried /secure/test.php > > Any ideas what I'm messing up? > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Session problems: "Warning: write failed: Disk quota exceeded"
G'day, Most likely they haven't pointed it to the right place (or maybe permissions? Doubt it would give this error for that). Session information is usually stored in /tmp on the hosting server (and on unix servers /tmp is actually a disk partition with a set size). There are a lot of applications on a hosting server that might use /tmp to store temporary files, so I suppose it is possible that something has filled /tmp up and PHP simply can't write to it because there is no where to write to! Call your host is my advice. Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom - Original Message - From: "Beau Hartshorne" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]> Sent: Thursday, August 22, 2002 12:24 PM Subject: [PHP] Session problems: "Warning: write failed: Disk quota exceeded" > Hi, > > Recently, my php app has started to throw these warnings: > > Warning: write failed: Disk quota exceeded (122) in Unknown on line 0 > > Warning: Failed to write session data (files). Please verify that the > current setting of session.save_path is correct (/tmp) in Unknown on > line 0 > > I narrowed it down to this code: > > session_start(); > session_register('anything'); > ?> > > (A test file containing only that will throw those two warnings.) > > The php version is 4.2.2. This script is running in a shared hosting > environment. My guess is that the ISP has misconfigured php, and has not > set the appropriate permissions to the /tmp directory. > > Does this make sense? Or is there something that I've missed? > > Thank you, > > Beau > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Dumb question
You need to declare $vari as a global variable. eg; Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom - Original Message - From: "Liam MacKenzie" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 22, 2002 1:27 PM Subject: [PHP] Dumb question > Hey guys, got a basic question for you... > > > > function getvar() > { > $vari = "bollocks"; > } > > getvar(); > echo $vari; > ?> > > > How do I make that function return the variable? > > > Thanks, > Liam > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Encryption of emails.
Hey guys, Can anyone recommend any PHP functions or plugins that will allow me to send encrypted emails via PHP? Something similar to PGP would be excellent. I have use PGP with a formmail cgi previously, but obviously it'd be easier to have in-PHP support for it. Any suggestions are much appreciated! Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Encryption of emails.
Actually, there ARE servers at both ends. And the one I am sending to is cut off from the net except for the SMTP mail port so I can do whatever I want to with it. That's an excellent idea! *slaps head* Why didn't I think of that? :) Thanks Justin! Bob - Original Message - From: "Justin French" <[EMAIL PROTECTED]> To: "Bob Irwin" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, September 05, 2002 4:00 PM Subject: Re: [PHP] Encryption of emails. > Perhaps not EXACTLY what you're after, but I wrote a small, simple function > to encrypt a string with a key (i'll skip a long note about keeping the key > safe). > > Then I send an email with the data encrypted, and decrypt it at the other > end (me) using a decrypt script located on my local server. > > It required PHP at both ends, which is a little catch. If I move it into > client systems, I'll look at a windows GUI to decrypt. > > > Justin > > > on 05/09/02 3:29 PM, Bob Irwin ([EMAIL PROTECTED]) wrote: > > > Hey guys, > > > > Can anyone recommend any PHP functions or plugins that will allow me to send > > encrypted emails via PHP? Something similar to PGP would be excellent. I > > have use PGP with a formmail cgi previously, but obviously it'd be easier to > > have in-PHP support for it. > > > > Any suggestions are much appreciated! > > > > Best Regards > > Bob Irwin > > Server Admin & Web Programmer > > Planet Netcom > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] HT authentication question
G'day, Is there a PHP function/method that destroys or expires a HT authentication session? So, for example, you're using a .htaccess file to control access to a directory on a server, is there a way to destroy that session without closing the browser window? Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] I don't want multiple form submitted
You could also do a simple data check against your database to make sure that the same information isn't posted by the same person in a certain time period. More complicated, but works well and doesn't rely on browser refresh or php headers - both of which can occasionally run into problems. Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom - Original Message - From: "John Holmes" <[EMAIL PROTECTED]> To: "'Clemson Chan'" <[EMAIL PROTECTED]>; "'Php'" <[EMAIL PROTECTED]> Sent: Friday, September 27, 2002 9:13 AM Subject: RE: [PHP] I don't want multiple form submitted > > I have a message board written in PHP w/MySQL. > > So when a person submitting a post, it goes to a list_view. > > If this person refresh the list_view. > > The message he submitted will get submitted again. > > How can I avoid this problem? > > Please let me know if you know the answer. Thanks > > This question is asked every week, it seems. Best method is to use a > "middle-man". Use a middle page that processes the new post, then > redirects the user to the next page. You can use a PHP header() > solution, or a javascript META-REFRESH method. > > ---John Holmes... > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Multiple Tables Select
G'day, Hoping someone can help me with a mysql select statement. I have two tables that I am trying to do a select on. The basic table details are below. table name: time | ID | timefinished| status | |1| 11 |C | table name: details | sid | completedby | | 1 | bob | sid and ID are always the same corresponding value (one is inserted based on the other). What I am trying to do is do a select based on the current date and status and then by who it was completed by. What I have is... select * from time, details where time.timefinished between '10' and '12' and time.status='C' and details.completedby='bob' and time.ID = details.sid; What I am getting is not accurated, it just seems to grab the one entry, which is correct, but there are 3 entries that fall within the range I am trying to select on. Any ideas what I'm doing wrong? Any help is greatly appreciated. Been staring at the monitor for a while dribbling :) Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Flash
Works fine for me... IE 6.023 Flash 6.0 if I click on 'stallions' I get a list of the stallions with pics. If I choose a horse from the dropdown menu, I get a picture of a horse with a flash textbox full of details. Not all of them do this though - some are missing info and pics - I'm assuming it's still in dev. Netscape 6.2.3 works as well. Mozilla loads the horse, but doesn't load the textbox for some reason. Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom - Original Message - From: "Peter Houchin" <[EMAIL PROTECTED]> To: "Rebekah Garner" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, October 02, 2002 2:59 PM Subject: RE: [PHP] PHP and Flash > > do you mean load into the menu as in populate the menu? if so then that is > working but if u mean u click on a link then nothing comes up > > > > -Original Message- > > From: Rebekah Garner [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, 2 October 2002 2:15 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] PHP and Flash > > > > > > Okay, this may be a bit off topic, BUT we just finished a website > > using PHP, MySql and Flashwell, I need someone...anyone to > > check out this URL for me and click on the Stallions menu, and > > tell me if anything loads into the text field. The client swears > > that it isn't, but it is dammit. Or is it? > > > > http://www.overbrookfarm.myiglou.com/ > > > > Rebekah Garner > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cookie
I'm pretty sure this is a global variables problem. There is an option in your ini.php file that refers to 'global variables' You need to set this on, otherwise reference to them with the absolute variable name. Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom - Original Message - From: "Max Buvry" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 02, 2002 2:37 AM Subject: [PHP] Cookie > > > Hi, > > I use : apache 1.3.26, php 4.2.3, postgresql 7.2 (under solaris 7). > > I attempt to modify my old sources which run with the previous versions > and I meet a problem with the cookie. > > I read that we can see the contents of a cookie with 2 methods : > > echo $testcookie > echo $_COOKIE["testcookie"] > > For me, only the second method runs. > > An idea ? > > In advance, thanks > > mb > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Speeding up a Mysql Select
G'day, I'm doing a select on a database that has about 45000 records and growing and its a bit SLOW. Its using a unix timestand to mark the beginning of a call and the end of a call. This is also used so I know what date the call was received. When I do a select * from support where begintime between 'timestamp1' and 'timestamp2'; It takes a while to execute... The timestamp fieldtype is varchar(10)... Will I see any speed difference with a different column type? Any advice on how to speed this up would be greatly appreciated! :) Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] if conditional
If the code isn't working, its because you weren't using a $name in the first if statement. Always the little things ! :) But this should work... if (!$name) { print "please enter your name."; } if (!$email) { print "Please enter you e-mail"; } > > > Hello, > > > > I would like to how to know how to create an if conditional with only one > > condition. Can some one tell me the way to do this. This is my previos code > > : > > > > < > > if (!name) { > > print "please enter your name."; > > } > > exit; > > > > if (!$email) { > > print "Please enter you e-mail" > > } > > exit; > > > > ?> > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Seconds to minutes
Hey Guys, At the moment, I'm using quite a few lines of code to convert seconds to minutes and hours. I'm thinking, surely I'm missing something really simple! Is there a PHP function that converts seconds to minutes? Or is it a 4 or 5 (and not always that accurate) lines of code? Any ideas or input would be appreciated. Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Seconds to minutes
Its seems far more reliable than what I am using (dividing by 60 for minutes, 3600 for hours and doing rounding, exploding if its not a round number etc). Its only for measuring short times, so Matt's suggestion should work ok. Ideally though, because it will crop up from time to time, it'd be the go to do it right the first time. Anyone else know of a better way? Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "'Matt'" <[EMAIL PROTECTED]>; "'Bob Irwin'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, November 20, 2002 12:09 PM Subject: RE: [PHP] Seconds to minutes > > You can do something like this: > > > $seconds = 265; > > $time = date('i s',$seconds); > > $minSecs = explode(' ',$time); > > echo "{$minSecs[0]} minutes and {$minSecs[1]} seconds\n"; > > ?> > > That doesn't work for anything over 3599 seconds, though... > > ---John Holmes... > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Seconds to minutes
Ahhh - that works a treat! First time I've seen the floor command in action. Thanks Jonathon. Still more lines of code than I'd like, but obviously its not that easy to do! Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom - Original Message - From: "Jonathan Sharp" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "'Matt'" <[EMAIL PROTECTED]>; "'Bob Irwin'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, November 20, 2002 12:41 PM Subject: Re: [PHP] Seconds to minutes > i'll just throw my code in here while we're at it... > > $seconds = 3600*5 + (60 * 10) + 45; > > $hours = floor( $seconds / 3600 ); > $mins = floor( ($seconds % 3600) / 60 ); > $seconds = floor( ($seconds % 60) ); > > echo "Hours: $hours\nMins: $mins\nSeconds: $seconds\n"; > > -js > > > John W. Holmes wrote: > >>You can do something like this: > >> >> $seconds = 265; > >> $time = date('i s',$seconds); > >> $minSecs = explode(' ',$time); > >> echo "{$minSecs[0]} minutes and {$minSecs[1]} seconds\n"; > >>?> > > > > > > That doesn't work for anything over 3599 seconds, though... > > > > ---John Holmes... > > > > > > > > > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Session problems based on browser?
G'day, I'm using scripts that are using sessions. A user logs into a main page with a master list of database entries. They go to another page, add a new database entry and it appears on the master list. The user adds another database entry and upon going back to the master list, the new entry does not exist. It is like the database has not been updated. Refreshing the page does not help, I have to go and touch the file on the server or restart the browser to see the changes. What I though yesterday was the problem was occuring in both netscape and IE browsers. However, I have since discovered that netscape does NOT have this problem. Are there any session issues known to occur only with Internet Explorer? We are running PHP 4.2 on a unix box with apache. Any ideas? Best Regards Bob (Coffee + Laptop = KABOOM!) Irwin Server Admin & Web Programmer Planet Netcom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Session problems based on browser?
Thanks for the info Chris. Its causing me some serious headaches. IE just refuses to release the old information. Best Regards Bob (Coffee + Laptop = KABOOM!) Irwin Server Admin & Web Programmer Planet Netcom - Original Message - From: "Chris Shiflett" <[EMAIL PROTECTED]> To: "Bob Irwin" <[EMAIL PROTECTED]> Cc: "php-general" <[EMAIL PROTECTED]> Sent: Wednesday, June 19, 2002 11:36 AM Subject: Re: [PHP] Session problems based on browser? > I'm not sure if this might be related to the problem you're having, but > Internet Explorer has a long history of poor cookie implementation, from > the browser allowing anyone to read cookies from any site (versions 4.0 > - 6.0) to the browser not sending the cookie information in subsequent > requests as it should (version 5.5 - maybe others). > > In particular, there is an IE bug related to use of the "Location" > header that causes some versions of IE to "forget" the cookies in the > next request. Basically, when the server responds with a 304 and > includes the "Location" header, the browser is supposed to submit a GET > request for the URL specified in that header for the content. It is in > this request that IE might be failing to include the cookie information. > > If this sounds remotely similar to your problem (you have some code that > looks something like header("Location: ...) in part of the transactions > that fail), try to use a relative URL in the header rather than the full > URL. This violates the standard, but it has been known to alleviate the > bug in IE, and other browsers will gracefully handle the relative URL > anyway. > > Chris > > Bob Irwin wrote: > > >G'day, > > > >I'm using scripts that are using sessions. A user logs into a main page > >with > >a master list of database entries. They go to another page, add a new > >database entry and it appears on the master list. The user adds another > >database entry and upon going back to the master list, the new entry does > >not exist. It is like the database has not been updated. Refreshing the > >page does not help, I have to go and touch the file on the server or > >restart the browser to see the changes. > > > >What I though yesterday was the problem was occuring in both netscape and IE > >browsers. However, I have since discovered that netscape does NOT have this > >problem. Are there any session issues known to occur only with Internet > >Explorer? We are running PHP 4.2 on a unix box with apache. > > > >Any ideas? > >Best Regards > >Bob (Coffee + Laptop = KABOOM!) Irwin > >Server Admin & Web Programmer > >Planet Netcom > > > > > > > > > > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Session problems based on browser?
Had more of a look at the server side of things. It isn't even requesting the page in IE (according to the server logs). It's like once it has a copy of the page, it is completely ignoring the server copy. I have tested on several different machines and on a few different networks (including the network the server is on - no proxy server). Again, netscape doesn't have this problem. The crazy thing is that if I don't use sessions (and I'm only using 1 variable - a username), this works perfectly ok in both browsers. *scratches head* Any more suggestions? I'm not using the location function at all BTW. Best Regards Bob (Coffee + Laptop = KABOOM!) Irwin Server Admin & Web Programmer Planet Netcom - Original Message - From: "Chris Shiflett" <[EMAIL PROTECTED]> To: "Bob Irwin" <[EMAIL PROTECTED]> Cc: "php-general" <[EMAIL PROTECTED]> Sent: Wednesday, June 19, 2002 11:36 AM Subject: Re: [PHP] Session problems based on browser? > I'm not sure if this might be related to the problem you're having, but > Internet Explorer has a long history of poor cookie implementation, from > the browser allowing anyone to read cookies from any site (versions 4.0 > - 6.0) to the browser not sending the cookie information in subsequent > requests as it should (version 5.5 - maybe others). > > In particular, there is an IE bug related to use of the "Location" > header that causes some versions of IE to "forget" the cookies in the > next request. Basically, when the server responds with a 304 and > includes the "Location" header, the browser is supposed to submit a GET > request for the URL specified in that header for the content. It is in > this request that IE might be failing to include the cookie information. > > If this sounds remotely similar to your problem (you have some code that > looks something like header("Location: ...) in part of the transactions > that fail), try to use a relative URL in the header rather than the full > URL. This violates the standard, but it has been known to alleviate the > bug in IE, and other browsers will gracefully handle the relative URL > anyway. > > Chris > > Bob Irwin wrote: > > >G'day, > > > >I'm using scripts that are using sessions. A user logs into a main page > >with > >a master list of database entries. They go to another page, add a new > >database entry and it appears on the master list. The user adds another > >database entry and upon going back to the master list, the new entry does > >not exist. It is like the database has not been updated. Refreshing the > >page does not help, I have to go and touch the file on the server or > >restart the browser to see the changes. > > > >What I though yesterday was the problem was occuring in both netscape and IE > >browsers. However, I have since discovered that netscape does NOT have this > >problem. Are there any session issues known to occur only with Internet > >Explorer? We are running PHP 4.2 on a unix box with apache. > > > >Any ideas? > >Best Regards > >Bob (Coffee + Laptop = KABOOM!) Irwin > >Server Admin & Web Programmer > >Planet Netcom > > > > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Session problems based on browser?
Till having no luck. Expires didn't work. I've put it on another server with the same results. Completely stripped sessions off of the code and it works perfectly with a normal username variable. Perhaps the session headers are confusing IE? We will try to update to the latest version of PHP (currenty running 4.1.2 on Apache/1.3.23). I might also try a different version of IE. Best Regards Bob (Coffee + Laptop = KABOOM!) Irwin Server Admin & Web Programmer Planet Netcom - Original Message - From: "Chris Shiflett" <[EMAIL PROTECTED]> To: "César Aracena" <[EMAIL PROTECTED]> Cc: "'Bob Irwin'" <[EMAIL PROTECTED]>; "'php-general'" <[EMAIL PROTECTED]> Sent: Wednesday, June 19, 2002 1:38 PM Subject: Re: [PHP] Session problems based on browser? > I mentioned a couple in a previous email: > > header("Expires: " . gmdate("D, d M Y H:i:s", time()) . " GMT"); > header("Cache-Control: Private"); > > Most HTTP headers with regards to caching are more intended to dictate > proxy behavior. For example, the header above specifying that > cache-control be private keeps personal information sent in a POST from > being cached. In fact, many people include that header at the beginning > of any script receiving POST data (there are clean ways to do this with > well-designed architectures). > > I honestly don't know which HTTP headers IE will be most interested in, > so you might want to do a tad bit of research. Here is another to try: > > header("Pragma: no-cache"); > > Let me know if any of this does/doesn't work. I should give more > concrete answers, but I don't have much time this evening. :) > > Chris > > César Aracena wrote: > > >Hi all. I'm having the same problem when developing a site with a flash > >animation inside. Let's say I'm seeing the page, I change the flash > >background color, save the flash animation again and refresh the page... > >nothing happens. > > > >I found out that is a problem of configuration of my IE. If I go to > >Tools > Options > Temporary Internet Files and set it up to "Every visit > >to the page" then it get refreshed well. The thing is that I don't want > >to tell every visitor to change this. Isn't there a way for PHP to send > >"refresh" header if the visit is beign made after the last update date > >stored maybe in a DB or file??? > > > > > > > >>-Original Message- > >>From: Bob Irwin [mailto:[EMAIL PROTECTED]] > >>Sent: Tuesday, June 18, 2002 8:57 PM > >>To: php-general > >>Subject: [PHP] Session problems based on browser? > >> > >>G'day, > >> > >>I'm using scripts that are using sessions. A user logs into a main > >> > >> > >page > > > > > >>with > >>a master list of database entries. They go to another page, add a new > >>database entry and it appears on the master list. The user adds > >> > >> > >another > > > > > >>database entry and upon going back to the master list, the new entry > >> > >> > >does > > > > > >>not exist. It is like the database has not been updated. Refreshing > >> > >> > >the > > > > > >>page does not help, I have to go and touch the file on the server or > >>restart the browser to see the changes. > >> > >>What I though yesterday was the problem was occuring in both netscape > >> > >> > >and > > > > > >>IE > >>browsers. However, I have since discovered that netscape does NOT > >> > >> > >have > > > > > >>this > >>problem. Are there any session issues known to occur only with > >> > >> > >Internet > > > > > >>Explorer? We are running PHP 4.2 on a unix box with apache. > >> > >>Any ideas? > >>Best Regards > >>Bob (Coffee + Laptop = KABOOM!) Irwin > >>Server Admin & Web Programmer > >>Planet Netcom > >> > >> > >>-- > >>PHP General Mailing List (http://www.php.net/) > >>To unsubscribe, visit: http://www.php.net/unsub.php > >> > >> > > > > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Session Logout Problems
G'day, I'm not getting much help on the IMP list about this problem, but I think it is more PHP related than anything else. I'll post as much info as I have, hopefully someone has seen something similar before. I have imp mail installed and the users are being randomly logged out. When I look at the matching session ID on the server, the file is completely blank! I thought this might have been some sort of problem with using the /tmp directory or a garbage collection problem. But I've moved the session storage folder and made the garbage collection a one in 100 million chance! I've also upped the the lifetimes for the sessions. Does anyone have any ideas? If you need more info, let me know what it is and I'll try to get it! My Config Details. I am running version 2.2.4 of Horde and version 3.2 of IMP (according to the README files). I'm also running PHP Version 4.3.3 on Apache/1.3.28 Here is my session config session.save_handler = files session.save_path = /var/session_files session.use_cookies = 1 session.name = PHPSESSID session.auto_start = 0 session.cookie_lifetime = 36000 session.cookie_path = / session.cookie_domain = session.serialize_handler = php session.gc_probability = 1 session.gc_divisor = 1 session.gc_maxlifetime = 36000 session.bug_compat_42 = 1 session.bug_compat_warn = 1 session.referer_check = session.entropy_length = 0 session.entropy_file = session.cache_limiter = nocache session.cache_expire = 180 session.use_trans_sid = 0 Regards, Bob Irwin Server Admin & Web Apps "I'm a Brick!" Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Session Logout Problems
Hi Richard, I wish there was a pattern - it'd help make testing... acheivable! :) I have had it happen to me on my machine, but it will be completely out of the blue. Sometimes I can leave the webmail open all day and have no problems with it. Hmmm - I'm not aware of the bug in IE, that could definitely be a possibility as we are all using it! I'll ask the helpdesk guys to use netscape (as they are seeing it more than me) to rule out a browser problem (in my experience, netscape is far more reliable with sessions anyhow). But at least if it happens in netscape, then it should rule out a client problem. Here's an example of oe of the links they use... is the bug only when posting a form, or could it also affect links like below? Purge Deleted Regards, Bob Irwin Server Admin & Web Apps "I'm a Brick!" - Original Message - From: "Richard Davey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 10, 2004 10:20 AM Subject: Re: [PHP] Session Logout Problems > Hello Bob, > > Tuesday, March 9, 2004, 10:43:34 PM, you wrote: > > BI> I have imp mail installed and the users are being randomly logged out. When > BI> I look at the matching session ID on the server, the file is completely > BI> blank! I thought this might have been some sort of problem with using the > > Does it happen to ANY user or is there a pattern in the nature of > this? Could it be the current IE bug with blank POST data causing the > session to be wiped? > > -- > Best regards, > Richard Davey > http://www.phpcommunity.org/wiki/296.html > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php