Re: [PHP] Re: About Session And Cookies

2007-08-30 Thread Stut
Richard Lynch wrote: On Wed, August 29, 2007 4:33 pm, tedd wrote: At 10:52 PM +0200 8/18/07, Michelle Konzack wrote: Am 2007-08-17 22:07:47, schrieb Bastien Koert: If cookies are not available, you can either hide the id in the hidden form field element or enable trans_sid to

Re: [PHP] Internet Explorer Caching

2007-08-30 Thread Stut
Satyam wrote: I'm sending these headers: header('Cache-Control: no-cache, must-revalidate'); // HTTP/1.1 header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in the past I don't remember where I took them from, but they are working fine for me. Probably not relevant to the

Re: [PHP] Pragmatically changing a Record Number

2007-08-30 Thread Stut
Jason Pruim wrote: Hi Everyone, Hi Dr Jason. I think after I get this question answered, I can stop asking for awhile since my project will be done, at least until the users say What happened to XYZ then I'll ask again :) I asked on a MySQL list about Resetting a auto increment filed

Re: [PHP] Pragmatically changing a Record Number

2007-08-30 Thread M. Sokolewicz
Stut wrote: Jason Pruim wrote: Hi Everyone, Hi Dr Jason. I think after I get this question answered, I can stop asking for awhile since my project will be done, at least until the users say What happened to XYZ then I'll ask again :) I asked on a MySQL list about Resetting a auto

Re: [PHP] Pragmatically changing a Record Number

2007-08-30 Thread Jason Pruim
On Aug 30, 2007, at 5:14 AM, Stut wrote: Jason Pruim wrote: Hi Everyone, Hi Dr Jason. I think after I get this question answered, I can stop asking for awhile since my project will be done, at least until the users say What happened to XYZ then I'll ask again :) I asked on a MySQL

Re: [PHP] Pragmatically changing a Record Number

2007-08-30 Thread Stut
M. Sokolewicz wrote: Stut wrote: Jason Pruim wrote: Hi Everyone, Hi Dr Jason. I think after I get this question answered, I can stop asking for awhile since my project will be done, at least until the users say What happened to XYZ then I'll ask again :) I asked on a MySQL list

Re: [PHP] Pragmatically changing a Record Number

2007-08-30 Thread Stut
Jason Pruim wrote: On Aug 30, 2007, at 5:14 AM, Stut wrote: Jason Pruim wrote: Hi Everyone, Hi Dr Jason. I think after I get this question answered, I can stop asking for awhile since my project will be done, at least until the users say What happened to XYZ then I'll ask again :) I

Re: [PHP] Pragmatically changing a Record Number

2007-08-30 Thread Jason Pruim
On Aug 30, 2007, at 6:34 AM, Stut wrote: Jason Pruim wrote: On Aug 30, 2007, at 5:14 AM, Stut wrote: Jason Pruim wrote: Hi Everyone, Hi Dr Jason. I think after I get this question answered, I can stop asking for awhile since my project will be done, at least until the users say What

Re: [PHP] Pragmatically changing a Record Number

2007-08-30 Thread Stut
Jason Pruim wrote: The information is being displayed in a table, and can be sorted by any of the fields. The purpose of the application I am writing is going to be a online database, giving my customers access to their mailing list 24/7 from anywhere in the world. Alot of the customers that

Re: [PHP] Pragmatically changing a Record Number

2007-08-30 Thread Jason Pruim
On Aug 30, 2007, at 6:52 AM, Stut wrote: Jason Pruim wrote: The information is being displayed in a table, and can be sorted by any of the fields. The purpose of the application I am writing is going to be a online database, giving my customers access to their mailing list 24/7 from

[PHP] Internet Explorer Caching - Solved

2007-08-30 Thread Charlene
Charlene wrote: I've been having problems with Internet Explorer caching php programs. I'm using the following code: header(Cache-Control: no-cache, must-revalidate); // HTTP/1.1 header(Pragma, no-cache); header(Expires, -1); And it used to work, but now, according to

Re: [PHP] How to show proper time to users from around the world

2007-08-30 Thread Hemanth
Its ok if I can display just the time set in their computers wherever they are and even if they are travelling. anyway thats as far as anyone can get short of asking them for the time Is there some simple way I have collected various ideas and snippets searching google trying to piece them all

[PHP] Reload page after form submit

2007-08-30 Thread Wagner Garcia Campagner
Hello, I'm building a web page just like a blog... Where the user input some information... (name, website and comment) This information is stored in a file... And then the page displays it... When the user access the page the first time, the information is displayed correct... After the

Re: [PHP] Reload page after form submit

2007-08-30 Thread Per Jessen
Wagner Garcia Campagner wrote: Hello, I'm building a web page just like a blog... Where the user input some information... (name, website and comment) This information is stored in a file... And then the page displays it... When the user access the page the first time, the

Re: [PHP] Reload page after form submit

2007-08-30 Thread Wouter van Vliet / Interpotential
On 30/08/2007, Per Jessen [EMAIL PROTECTED] wrote: Wagner Garcia Campagner wrote: Hello, I'm building a web page just like a blog... Where the user input some information... (name, website and comment) This information is stored in a file... And then the page displays it...

RE: [PHP] Reload page after form submit

2007-08-30 Thread Wagner Garcia Campagner
Thanks a lot, I tried both suggestions, but it didn't work... I did it send an Echo with this string: META HTTP-EQUIV='refresh' content='0;URL=index.php' After processing the form... it worked... Is there any problem doing this? Thanks again, Wagner. -Original Message- From:

[PHP] Compiling PHP 5.2.3

2007-08-30 Thread Eric Gorr
I am attempting to compile PHP 5.2.3 and am having trouble with the configuration step: configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information. I cannot figure this one out. Any help would be

Re: [PHP] How to show proper time to users from around the world

2007-08-30 Thread Ólafur Waage
Since there are always many ways to do things here's one id like to see how well it worked. It would be getting the IP address of the user and matching it against an IP address locator. Since ive seen these to be accurate to what timezone people are in. Olafur W 2007/8/30, Hemanth [EMAIL

Re: [PHP] Reload page after form submit

2007-08-30 Thread Stut
Wagner Garcia Campagner wrote: Thanks a lot, I tried both suggestions, but it didn't work... I did it send an Echo with this string: META HTTP-EQUIV='refresh' content='0;URL=index.php' After processing the form... it worked... Is there any problem doing this? You'd be better off with...

RE: [PHP] Reload page after form submit

2007-08-30 Thread Instruct ICC
From: Wagner Garcia Campagner [EMAIL PROTECTED] Hello, I'm building a web page just like a blog... Where the user input some information... (name, website and comment) This information is stored in a file... And then the page displays it... When the user access the page the first time, the

RE: [PHP] Reload page after form submit

2007-08-30 Thread Instruct ICC
From: Wagner Garcia Campagner [EMAIL PROTECTED] Is there a way to tell PHP to reload the page after the user submit the information, so the page is always updated?? Thanks in advance, Wagner. I don't get your fundamental problem. When a user submits a form, the page handling the submission

Re: [PHP] Reload page after form submit

2007-08-30 Thread Afan Pasalic
rough code, to give you an idea: ?php if (isset($_POST)) { # after validation $first = $_POST['firs']; $last = $_POST['last']; mysql_query( insert into table (first, last) values ('.mysql_real_escape_string($first).',

Re: [PHP] Reload page after form submit

2007-08-30 Thread Instruct ICC
From: Afan Pasalic [EMAIL PROTECTED] rough code, to give you an idea: ?php if (isset($_POST)) { # after validation $first = $_POST['firs']; $last = $_POST['last']; mysql_query( insert into table (first, last) values

[PHP] make test failures (was Re: [PHP] Compiling PHP 5.2.3)

2007-08-30 Thread Eric Gorr
I was able to get past the configure problem. It was apparently associated with the --with-imap option and I don't need imap support. In any case, I got to the make test and got the following failures: = FAILED TEST SUMMARY

Re: [PHP] Reload page after form submit

2007-08-30 Thread Martin Marques
Stut wrote: Wagner Garcia Campagner wrote: META HTTP-EQUIV='refresh' content='0;URL=index.php' header('Location: index.php'); Although technically speaking that should be an absolute URL. AFAIK, they are both equivalent. -- 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37,

RE: [PHP] Internet Explorer Caching

2007-08-30 Thread Daevid Vincent
Here are some cache things we do for IE... // workaround for IE bug that prevents downloading files from an httpS site // (see http://support.microsoft.com/default.aspx?scid=kb;en-us;316431 ) session_cache_limiter('public'); // This ensures that most browsers known to human beings won't try to

Re: [PHP] Reload page after form submit

2007-08-30 Thread Stut
Martin Marques wrote: Stut wrote: Wagner Garcia Campagner wrote: META HTTP-EQUIV='refresh' content='0;URL=index.php' header('Location: index.php'); Although technically speaking that should be an absolute URL. AFAIK, they are both equivalent. Essentially yes, but personally (and for no

Re: [PHP] Reload page after form submit

2007-08-30 Thread Instruct ICC
From: Martin Marques [EMAIL PROTECTED] Stut wrote: Wagner Garcia Campagner wrote: META HTTP-EQUIV='refresh' content='0;URL=index.php' header('Location: index.php'); Although technically speaking that should be an absolute URL. AFAIK, they are both equivalent. Ahhh, if the OP meant, Load

[PHP] crypt salt question

2007-08-30 Thread Andras Kende
Hello, I'm trying to move some app from postgresql to mysql but unable to find out how to authenticate against the current crypted passwords with php.. insert to database: $cset = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./; $salt = substr($cset, time() 63, 1) .

Re: [PHP] crypt salt question

2007-08-30 Thread Satyam
No chance. Unless you have the salt stored along each password, your passwords are as good as random texts Satyam - Original Message - From: Andras Kende [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thursday, August 30, 2007 11:42 PM Subject: [PHP] crypt salt question

RE: [PHP] crypt salt question

2007-08-30 Thread Jan Reiter
Hi! How did you do the comparison with the PG_SQL database?? I believe there is a UNIX function, able to retrieve the salt from a crypt string, or one that can do the comparison, without a slat given. But I'm not quite sure. I'm gonna investigate that. But how did you compare passwords before,

RE: [PHP] crypt salt question

2007-08-30 Thread Jan Reiter
No, I'm sorry, I spoke out that thought to early!! At the university we used a PG_SQL database to store the passwords, and used the LDAP tree with all the user information and stuff to store the salt as well! How do your scripts operate on that with the PG_SQL database before migrating to mysql

RE: [PHP] crypt salt question

2007-08-30 Thread Andras Kende
I figured out finally:) Actually the random salt is always the first 2 character of the encryoted password, so this works fine now : ?php // username,saltencryptedpass // sean,VK3bOV.yYuXfw $cryptpass = VK3bOV.yYuXfw; $password = $_GET[p]; $salt = substr($cryptpass, 0, 2); if

[PHP] Re: date formatting

2007-08-30 Thread Haydar TUNA
Hello, You can DATE_FORMAT MySQL Command in your SQL Query. For example: select DATE_FORMAT(yourdatetimefield,'%Y-%m-%d') from yourtable -- Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY Web: http://www.haydartuna.net Mike Ryan

[PHP] PHP/MySQL not playing nicely. Server drops connection. . .

2007-08-30 Thread Michael Williams
Hi All, I recently installed PHP, APACHE, MYSQL per the method at the following site: http://switch.richard5.net/isp-in-a-box-v2/installing-mysql-on-mac-os-x/ . . .I then attempted to connect to a database (but without executing any commands on it), and I keep receiving the following