[PHP] Securing Use of PHP site

2010-11-17 Thread Don Wieland
Hello all, I have recently built a site using PHP. I was a little loose with GET and POST methods because I was using it for personal/private use. Now I am thinking of going public and allow different companies to use the site. I want to secure and hide as much data as possible to guard

Re: [PHP] Securing Use of PHP site

2010-11-17 Thread Nicholas Kell
On Nov 17, 2010, at 6:51 AM, Don Wieland d...@dwdataconcepts.com wrote: Hello all, I have recently built a site using PHP. I was a little loose with GET and POST methods because I was using it for personal/private use. Now I am thinking of going public and allow different companies to

[PHP] database design in a survey/poll system

2010-11-17 Thread 肖晗
I plan to design a small survey/poll system similar to polldaddyhttp://polldaddy.com/ . And I have some confusion in designing the database for the multiple/single choice questions. Of course, it is possible to use one table to store the question title and another table to store the choice

Re: [PHP] Securing Use of PHP site

2010-11-17 Thread Bastien Koert
On Wed, Nov 17, 2010 at 8:21 AM, Nicholas Kell n...@monkeyknight.com wrote: On Nov 17, 2010, at 6:51 AM, Don Wieland d...@dwdataconcepts.com wrote: Hello all, I have recently built a site using PHP. I was a little loose with GET and POST methods because I was using it for personal/private

Re: [PHP] Updating a GET variable

2010-11-17 Thread Marc Guay
A bit late in the thread.  However, IMO, I don't think session is necessary, unless you intend to save it for later use, during that same visit from the user.  If it's just a 1 time request, you can just use (example) $_GET['lang']=en,de,fr,... Then just split up individual languages, process

Re: [PHP] database design in a survey/poll system

2010-11-17 Thread Adam Richardson
On Wed, Nov 17, 2010 at 8:42 AM, 肖晗 xiaohan2...@gmail.com wrote: I plan to design a small survey/poll system similar to polldaddyhttp://polldaddy.com/ . And I have some confusion in designing the database for the multiple/single choice questions. Of course, it is possible to use one table

RE: [PHP] Updating a GET variable

2010-11-17 Thread Tommy Pham
-Original Message- From: Marc Guay [mailto:marc.g...@gmail.com] Sent: Wednesday, November 17, 2010 6:30 AM To: PHP General Subject: Re: [PHP] Updating a GET variable A bit late in the thread.  However, IMO, I don't think session is necessary, unless you intend to save it for

Re: [PHP] Updating a GET variable

2010-11-17 Thread Marc Guay
Nathan previously mention what if instead of a language specific request, you have request for multiple languages. I get it now, multiple _simultaneous_ languages. Cheers, Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] database design in a survey/poll system

2010-11-17 Thread Tamara Temple
On Nov 17, 2010, at 7:42 AM, 肖晗 wrote: I plan to design a small survey/poll system similar to polldaddyhttp://polldaddy.com/ . And I have some confusion in designing the database for the multiple/ single choice questions. Of course, it is possible to use one table to store the question

Re: [PHP] DOMDocument/DOMElement problem

2010-11-17 Thread Peter Lind
On 16 November 2010 21:30, Adam Richardson simples...@gmail.com wrote: Hmmm... Nothing really stands out to me, but as my wife would attest, I'm often less than observant. I would probably try sifting through fixes/upgrades in the change logs for possible conflicts and/or changes in

Re: [PHP] DOMDocument/DOMElement problem

2010-11-17 Thread David Harkness
On Wed, Nov 17, 2010 at 10:27 AM, Peter Lind peter.e.l...@gmail.com wrote: Quick note, in case anyone has similar problems: make sure that the data you feed into DOMDocument is UTF8 encoded I can attest to this as well. I just fixed a bug in our sitemap-building code that was producing some

RE: [PHP] Updating a GET variable

2010-11-17 Thread Tommy Pham
-Original Message- From: Marc Guay [mailto:marc.g...@gmail.com] Sent: Wednesday, November 17, 2010 8:59 AM To: PHP General Subject: Re: [PHP] Updating a GET variable Nathan previously mention what if instead of a language specific request, you have request for multiple

Re: [PHP] Stripslashes

2010-11-17 Thread Gary
ESET Smart Security, version of virus signature database 5627 (20101117) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Stripslashes

2010-11-17 Thread Adam Richardson
Adam Thanks for your reply. So if I disable magic_quotes, and I assume I can do that a script, then the stripslashes would work as the manuel said it would, meaning G\\a//r\y\\ becomes G\a//r'y\ I also assume that until php 6 is out and or I upgrade to it, I will have to deal with