RE: [PHP] Problem with ssh2_connect

2010-06-24 Thread Radek Krejča
Hi, new symptoms... So, I have following: 1. created rsa keys - tested over ssh command - on remote server is public key renamed to authorized_keys, on local machine i have both keys 2. rights on local machine: -r 1 radek wheel 1675 23 led 2007 radek -r 1 radek wheel

RE: [PHP] Problem with ssh2_connect - finished

2010-06-24 Thread Radek Krejča
Hi, so I have (hope) finished. There is problem with rsa keys in function ssh2_connect (probably bug, I dont see any problem on my side), so I created two pairs - rsa and dsa. rsa method isnt working, but dsa method without problems. Its little complication, because I have everwhere rsa keys, bu

[PHP] Quick session question

2010-06-24 Thread Danny
Hi guys, I always start new projects with the following session code-snippet: (In other words this is how I initialize my sessions in the index.php file.) ### START CODE SNIPPET http://localhost/~user/new_project"; ; $_SESSION['sql_

Re: [PHP] Quick session question

2010-06-24 Thread Ashley Sheridan
On Thu, 2010-06-24 at 16:24 +0200, Danny wrote: > Hi guys, > > I always start new projects with the following session code-snippet: > (In other words this is how I initialize my sessions in the index.php file.) > > ### START CODE SNIPPET > ###

Re: [PHP] Quick session question

2010-06-24 Thread Jim Lucas
Danny wrote: > Hi guys, > > I always start new projects with the following session code-snippet: > (In other words this is how I initialize my sessions in the index.php file.) > > ### START CODE SNIPPET > >session_start(); >

Re: [PHP] Quick session question

2010-06-24 Thread Danny
Thanks Ashley and Jim, > When you say 'sessions did not work' what do you mean? Sessions aren't being > created? You can't access session variables? You need to be a bit more > specific > about the issue. Sorry, here is an explanation: The project I uploaded for a customer is a "stock ordering"

Re: [PHP] Quick session question

2010-06-24 Thread Mari Masuda
On Jun 24, 2010, at 9:09 AM, Danny wrote: > Thanks Ashley and Jim, > >> When you say 'sessions did not work' what do you mean? Sessions aren't being >> created? You can't access session variables? You need to be a bit more >> specific >> about the issue. > > Sorry, here is an explanation: > >

[PHP] Making a Password Confirmation in PHP

2010-06-24 Thread Michael Calkins
This is very straight forward, if password a and b are not equal to each other, how can I let the user know that with out losing all of the entered information on the registration form? I was trying this: ---$p1 = ""; $p2 = ""; // if they didn't match return $p1 = "";--- I was trying to change

Re: [PHP] Making a Password Confirmation in PHP

2010-06-24 Thread Ashley Sheridan
On Thu, 2010-06-24 at 11:22 -0700, Michael Calkins wrote: > This is very straight forward, if password a and b are not equal to each > other, how can I let the user know that with out losing all of the entered > information on the registration form? > I was trying this: > ---$p1 = ""; > $p2 = "

Re: [PHP] Making a Password Confirmation in PHP

2010-06-24 Thread Floyd Resler
On Jun 24, 2010, at 2:22 PM, Michael Calkins wrote: > > This is very straight forward, if password a and b are not equal to each > other, how can I let the user know that with out losing all of the entered > information on the registration form? > I was trying this: > ---$p1 = ""; > $p2 = "";

Re: [PHP] Making a Password Confirmation in PHP

2010-06-24 Thread Ashley Sheridan
On Thu, 2010-06-24 at 14:29 -0400, Floyd Resler wrote: > On Jun 24, 2010, at 2:22 PM, Michael Calkins wrote: > > > > > This is very straight forward, if password a and b are not equal to each > > other, how can I let the user know that with out losing all of the entered > > information on the

Re: [PHP] Quick session question

2010-06-24 Thread Gaurav Kumar
Danny, I just read the email trail regarding your problem. The very first thing- 1. Session are stored as a file on the server in a folder. Check that the folder has read/*write* permission. (/tmp/ folder) 2. Check on the server that are the sessions really getting saved on the server? 3. Now in

RE: [PHP] Making a Password Confirmation in PHP

2010-06-24 Thread David Česal
Yes, it is. D -Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Thursday, June 24, 2010 8:32 PM To: Floyd Resler Cc: PHP Subject: Re: [PHP] Making a Password Confirmation in PHP On Thu, 2010-06-24 at 14:29 -0400, Floyd Resler wrote: > On Jun 24, 2010, at

RE: [PHP] Making a Password Confirmation in PHP

2010-06-24 Thread Ashley Sheridan
On Thu, 2010-06-24 at 20:37 +0200, David Česal wrote: > Yes, it is. > > D > > -Original Message- > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: Thursday, June 24, 2010 8:32 PM > To: Floyd Resler > Cc: PHP > Subject: Re: [PHP] Making a Password Confirmation in PHP >

Re: [PHP] Making a Password Confirmation in PHP

2010-06-24 Thread Adam Richardson
On Thu, Jun 24, 2010 at 2:46 PM, Ashley Sheridan wrote: > On Thu, 2010-06-24 at 20:37 +0200, David Česal wrote: > > > Yes, it is. > > > > D > > > > -Original Message- > > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > > Sent: Thursday, June 24, 2010 8:32 PM > > To: Floyd Resler

Re: [PHP] Quick session question

2010-06-24 Thread Jim Lucas
Danny wrote: > Thanks Ashley and Jim, > >> When you say 'sessions did not work' what do you mean? Sessions aren't being >> created? You can't access session variables? You need to be a bit more >> specific >> about the issue. > > Sorry, here is an explanation: > > The project I uploaded for a c

[PHP] Unexpected behaviour from define()

2010-06-24 Thread James Long
Perhaps I am missing something basic here. Why does the LOG_WARNING constant take on a value of 4, when it is defined with a value of 1? Thank you! Jim $ cat bug.php $ php bug.php LOG_NORMAL 0 LOG_WARNING 4 LOG_ERROR 2 $ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

[PHP] Re: Unexpected behaviour from define()

2010-06-24 Thread James Long
On Thu, Jun 24, 2010 at 02:41:51PM -0700, James Long wrote: > Perhaps I am missing something basic here. > > Why does the LOG_WARNING constant take on a value of 4, when > it is defined with a value of 1? > > Thank you! > > Jim Answering my own question here LOG_WARNING is already defined

Re: [PHP] Unexpected behaviour from define()

2010-06-24 Thread Tim Schofield
On 24/06/10 22:41, James Long wrote: Perhaps I am missing something basic here. Why does the LOG_WARNING constant take on a value of 4, when it is defined with a value of 1? Thank you! Jim $ cat bug.php $ php bug.php LOG_NORMAL 0 LOG_WARNING 4 LOG_ERROR 2 $ Very strange, as seems to w

Re: [PHP] Unexpected behaviour from define()

2010-06-24 Thread Ashley Sheridan
On Thu, 2010-06-24 at 23:02 +0100, Tim Schofield wrote: > On 24/06/10 22:41, James Long wrote: > > Perhaps I am missing something basic here. > > > > Why does the LOG_WARNING constant take on a value of 4, when > > it is defined with a value of 1? > > > > Thank you! > > > > Jim > > > > > > $ cat b

Re: [PHP] Unexpected behaviour from define()

2010-06-24 Thread Tim Schofield
On 24/06/10 23:08, Ashley Sheridan wrote: On Thu, 2010-06-24 at 23:02 +0100, Tim Schofield wrote: Very strange, as seems to work fine Tim It would, you misspelt LOG_WARNING with a lowercase 'i' ;) Thanks, Ash http://www.ashleysheridan.co.uk Thats what I was trying to illustrate, it

Re: [PHP] Quick session question

2010-06-24 Thread Danny
Hi Gaurav, Creating a "local" folder solved the problem. I can now catch the session varaibles. I think that I am too familiar with setting up everything on a local server and forgot that there are "other" things to consider when you work on the internet. Thank You Danny >On Jun 25 10, Gaurav K

Re: [PHP] Quick session question

2010-06-24 Thread Danny
Hi Jim, I followed Gaurav's tips on creating a "folder" to store the session info in and it got solved. I can now catch the session variables but I got A LOT of "include()" file errors which was solved by following your suggestion on expanding my URL's. Thank You Danny >On Jun 24 10, Jim Lucas

Re: [PHP] Quick session question [SOLVED]

2010-06-24 Thread Danny
Hi Guys, Thanks to all of you who helped me with my problem. I can now continue with my life :) . I'm happy and the customer is happy ... Thank you once again. Danny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Quick session question

2010-06-24 Thread Danny
Hi Mari, I used "localhost" as a substitute for the real url. My mistake I should've told you guys. Thanks anyway for your input. Danny >On Jun 24 10, Mari Masuda : > > Maybe you need to change > > $_SESSION['server'] = "http://localhost/~user/new_project"; ; > > to be not localhost. -- PHP