php-general Digest 20 Feb 2011 12:45:28 -0000 Issue 7191

2011-02-20 Thread php-general-digest-help
php-general Digest 20 Feb 2011 12:45:28 - Issue 7191 Topics (messages 311443 through 311458): Re: chat facebook 311443 by: Brian Waters 311445 by: fakessh . 311446 by: fakessh . 311448 by: Daniel Brown Array from one form to other? 311444 by: Yogesh

php-general Digest 21 Feb 2011 01:21:45 -0000 Issue 7192

2011-02-20 Thread php-general-digest-help
php-general Digest 21 Feb 2011 01:21:45 - Issue 7192 Topics (messages 311459 through 311480): Re: Array from one form to other? 311459 by: Tamara Temple 311460 by: Yogesh 311475 by: Tamara Temple Submitting data to MySQL database using HTML/PHP form 311461

[PHP] Accessing multi-word properties

2011-02-20 Thread Florin Jurcovici
Hi. I have a JSON, let's say {\a b\: 13}. json_decode() handles it properly. However, then resulting object has a property composed of two words. What I did to access this property was the following: $json = {\a b\: 13}; $decoded = json_decode($json); $tag = a b; print($decoded-$tag);

[PHP] Re: 9970318527584

2011-02-20 Thread Vlatko Šurlan
John Taylor-Johnston wrote: 9970318527584 Could this number refer to a date()? In late 2009? How could I calculate it? How did you get the number? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Accessing multi-word properties

2011-02-20 Thread bender
Am 20.02.2011 11:32, schrieb Florin Jurcovici: Hi. I have a JSON, let's say {\a b\: 13}. json_decode() handles it properly. However, then resulting object has a property composed of two words. What I did to access this property was the following: $json = {\a b\: 13}; $decoded =

Re: [PHP] Array from one form to other?

2011-02-20 Thread Tamara Temple
On Feb 19, 2011, at 6:38 PM, Yogesh wrote: I have two forms. One form helps read an input file into an array. And the other form needs this array as an input. I am able to read the input file into an array, but how do I pass it over to the other form. Both forms have PHP file as 'action'.

Re: [PHP] Array from one form to other?

2011-02-20 Thread Yogesh
Hi Tamara, I don't entirely understand this; Dan Brown gave you solution to use curl to pass the array to the second form (do you mean script here?). That would certainly work, but I'm wondering if it wouldn't be more secure to spool out the array to a file from the first script after it has

[PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread Nazish
Hi there, I am creating a login page for my website. The users' information will be stored in a MySQL database. I have a registration form on my home page, and a separate file called login.php to process the user values. However, the entries are not going to the MySQL database (however, the

Re: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread Daniel Brown
On Sun, Feb 20, 2011 at 12:55, Daniel Brown danbr...@php.net wrote: On Sun, Feb 20, 2011 at 12:53, Daniel Brown danbr...@php.net wrote:    If the value isn't that of your database password, there's your problem: register_globals.  A simpler way is to check the output of phpinfo(); to see if

Re: [PHP] Connection Handling - unreliable at best?

2011-02-20 Thread James Green
Hm. Commented out the line re-tested. Absolutely no change whatsoever :( Even made it false. I'm really hoping I've been an idiot on this one. Makes no sense otherwise but this is where I am. Hope to hear further suggestions. James On 20 February 2011 03:05, Daniel Brown danbr...@php.net

Re: [PHP] New to list and to PHP

2011-02-20 Thread tedd
At 2:03 PM -0500 2/18/11, Pete Woodhead wrote: Hi I'm Pete Woodhead. I'm new to the list and to PHP. To be honest I very new to code writing. Thought this would be a good way to learn good habits as well as good code writing. Looking forward to learning and participating. Pete: Welcome to

Re: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread Nazish
Update: I added echo statements after mysql_connect and mysql_select_db to check where the code was broken. These statements show up on the login.php page after submitting the form, which means the MySQL connection works. So, the problem seems to lie with the *$insert *query... ideas? On Sun,

Re: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread Nazish
Issue resolved! It turned out to be the use of quotations. Instead of double quotations to surround the $insert variable, it worked with single quotations: $insert = ' INSERT INTO user_info (login,password) VALUES ('.$login.', '.$password.') ' ; With the

Re: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread Andre Polykanine
Hello Nazish, Try to do the following in your login.php: ?php print_r($_POST); // assign your variables echo br$loginbr$passwordbr$insertbr; So we'll see the result. -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion

Re: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread Andre Polykanine
Hello Nazish, Echo the $insert variable. -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From: Nazish

RE: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread admin
I see an errors in the syntax. $insert = INSERT INTO user_info (login, password) VALUES ('.mysql_real_escape_string($login).','.mysql_real_escape_string($passwor d).'); Issues resolved. $insert = INSERT INTO user_info (login, password) VALUES

Re: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread Tamara Temple
I'm wondering if anyone is going to comment on the transmittal and storage of plain text passwords -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Submitting data to MySQL database using HTML/PHP form

2011-02-20 Thread Andre Polykanine
Hello Tamara, :-)) I assume that was a testcase... -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From:

Re: [PHP] Array from one form to other?

2011-02-20 Thread Tamara Temple
On Feb 20, 2011, at 10:51 AM, Yogesh wrote: I don't entirely understand this; Dan Brown gave you solution to use curl to pass the array to the second form (do you mean script here?). That would certainly work, but I'm wondering if it wouldn't be more secure to spool out the array to a

Re: [PHP] Re: 9970318527584

2011-02-20 Thread Richard Quadling
On 20 February 2011 12:24, Vlatko Šurlan mrdo...@gmail.com wrote: John Taylor-Johnston wrote: 9970318527584 Not an ISBN number. In fact Google only shows this thread for this number. The hex value is uninspiring 0x911654B4C60 As is the octal 0221054522646140 and binary

Re: [PHP] New to list and to PHP

2011-02-20 Thread Richard Quadling
On 20 February 2011 23:34, Richard Quadling rquadl...@gmail.com wrote: On 18 February 2011 19:03, Pete Woodhead pete.woodhea...@gmail.com wrote: Hi I'm Pete Woodhead.  I'm new to the list and to PHP.  To be honest I very new to code writing. Thought this would be a good way to learn good

Re: [PHP] New to list and to PHP

2011-02-20 Thread tolga
21.02.2011 01:41, Richard Quadling yazmış: On 20 February 2011 23:34, Richard Quadlingrquadl...@gmail.com wrote: On 18 February 2011 19:03, Pete Woodheadpete.woodhea...@gmail.com wrote: Hi I'm Pete Woodhead. I'm new to the list and to PHP. To be honest I very new to code writing. Thought

Re: [PHP] New to list and to PHP

2011-02-20 Thread Richard Quadling
On 18 February 2011 19:03, Pete Woodhead pete.woodhea...@gmail.com wrote: Hi I'm Pete Woodhead.  I'm new to the list and to PHP.  To be honest I very new to code writing. Thought this would be a good way to learn good habits as well as good code writing. Looking forward to learning and

Re: [PHP] New to list and to PHP

2011-02-20 Thread Tamara Temple
On Feb 20, 2011, at 5:51 PM, tolga wrote: 21.02.2011 01:41, Richard Quadling yazmış: On 20 February 2011 23:34, Richard Quadlingrquadl...@gmail.com wrote: On 18 February 2011 19:03, Pete Woodheadpete.woodhea...@gmail.com wrote: Hi I'm Pete Woodhead. I'm new to the list and to PHP. To

Re: [PHP] New to list and to PHP

2011-02-20 Thread tolga
21.02.2011 03:21, Tamara Temple yazmış: On Feb 20, 2011, at 5:51 PM, tolga wrote: 21.02.2011 01:41, Richard Quadling yazmış: On 20 February 2011 23:34, Richard Quadlingrquadl...@gmail.com wrote: On 18 February 2011 19:03, Pete Woodheadpete.woodhea...@gmail.com wrote: Hi I'm Pete Woodhead.

Re: [PHP] New to list and to PHP

2011-02-20 Thread Tamara Temple
On Feb 20, 2011, at 7:38 PM, tolga wrote: 21.02.2011 03:21, Tamara Temple yazmış: On Feb 20, 2011, at 5:51 PM, tolga wrote: i'm interested in php about 3 maybe 4 years but i still couldnt get the logic of classes. it makes no sense to me. i couldnt understand whats about classes good at

Re: [PHP] New to list and to PHP

2011-02-20 Thread Mujtaba Arshad
better yet: http://lmgtfy.com/?q=explanation+of+classes+in+php On Sun, Feb 20, 2011 at 9:39 PM, Tamara Temple tamouse.li...@gmail.comwrote: On Feb 20, 2011, at 7:38 PM, tolga wrote: 21.02.2011 03:21, Tamara Temple yazmış: On Feb 20, 2011, at 5:51 PM, tolga wrote: i'm interested in php

Re: [PHP] New to list and to PHP

2011-02-20 Thread tolga
ahaha lol. the point of my ask here is that i want to find a trusted source, not seo based web sites with no info inside. but thats cool. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New to list and to PHP

2011-02-20 Thread Eric Butera
On Sun, Feb 20, 2011 at 8:38 PM, tolga kacmazto...@gmail.com wrote: 21.02.2011 03:21, Tamara Temple yazmış: On Feb 20, 2011, at 5:51 PM, tolga wrote: 21.02.2011 01:41, Richard Quadling yazmış: On 20 February 2011 23:34, Richard Quadlingrquadl...@gmail.com  wrote: On 18 February 2011

[PHP] HTTP Authenticaion Query

2011-02-20 Thread Ashim Kapoor
?php if (!isset($_SERVER['PHP_AUTH_USER'])) { header('WWW-Authenticate: Basic realm=My Realm'); header('HTTP/1.0 401 Unauthorized'); echo 'Text to send if user hits Cancel button'; exit; } else { echo pHello {$_SERVER['PHP_AUTH_USER']}./p; echo pYou entered

Fwd: [PHP] HTTP Authenticaion Query

2011-02-20 Thread Ashim Kapoor
-- Forwarded message -- From: Ashim Kapoor ashimkap...@gmail.com Date: Mon, Feb 21, 2011 at 12:46 PM Subject: Re: [PHP] HTTP Authenticaion Query To: Peter Lind peter.e.l...@gmail.com You are tired and not thinking straight. HTTP is a stateless thing: 1. you request the page,