php-general Digest 25 Nov 2009 20:31:08 -0000 Issue 6460

2009-11-25 Thread php-general-digest-help
php-general Digest 25 Nov 2009 20:31:08 - Issue 6460 Topics (messages 300088 through 300099): Class not returning value 300088 by: Pieter du Toit 300089 by: Peter Ford 300090 by: Pieter du Toit 300091 by: Pieter du Toit Re: function not returning query

[PHP] Class not returning value

2009-11-25 Thread Pieter du Toit
Hi This is my first class and it does not work, i do a return $this-responseArray; with the public function getResult() method, but get nothing. Can someone please help me. Thsi is how i create the object $number = new Smsgate($cell_numbers, $message, 27823361602, 27); $result =

[PHP] Re: Class not returning value

2009-11-25 Thread Peter Ford
Pieter du Toit wrote: Hi This is my first class and it does not work, i do a return $this-responseArray; with the public function getResult() method, but get nothing. Can someone please help me. Thsi is how i create the object $number = new Smsgate($cell_numbers, $message, 27823361602,

[PHP] Re: Class not returning value

2009-11-25 Thread Pieter du Toit
Sorry i found the problem, need to do this: public function getResult() { $this-processRequest(); return $this-responseArray; } Pieter du Toit pie...@lpwebdesign.co.za wrote in message news:57.90.5.88fec...@pb1.pair.com... Hi This is my first class and it does not

[PHP] Re: Class not returning value

2009-11-25 Thread Pieter du Toit
Thanks for th reply Peter i call this method on success $this-sendSMS(); But i sorted the problem with this: public function getResult() { $this-processRequest(); return $this-responseArray; } Peter Ford p...@justcroft.com wrote in message

Re: [PHP] function not returning query

2009-11-25 Thread Ashley Sheridan
On Tue, 2009-11-24 at 23:27 -0800, Allen McCabe wrote: If I were to loop through my inputs, I could just exclude any problematic names, eg.: foreach ($_POST as $var = $val) { if ($var != filter.x || $var != filter.y) { $var = $val; } } Like that? On Tue, Nov 24, 2009

Re: [PHP] processing html forms and keeping the values

2009-11-25 Thread Raymond Irving
There are a couple of ways that you can do this: 1. Store the post values in the $_SESSION variable then echo them back to the screen. Be careful with this as it can lead to XSS. Strip html, etc 2. Send the post values back to the form as part of the query sting. This solution is limited to the

Re: [PHP] processing html forms and keeping the values

2009-11-25 Thread Merlin Morgenstern
Hello Raymond, thank you for your hint. I will go with sessions. Thanx for the note regarding XSS. Kind regards, merlin Raymond Irving wrote: There are a couple of ways that you can do this: 1. Store the post values in the $_SESSION variable then echo them back to the screen. Be careful

Re: [PHP] Create client certificate with openssl

2009-11-25 Thread Ryan Sun
check these options *-pass arg, -passin arg* the PKCS#12 file (i.e. input file) password source. For more information about the format of *arg* see the *PASS PHRASE ARGUMENTS* section in * openssl*(1) http://www.openssl.org/docs/apps/openssl.html#. *-passout arg* pass phrase source to encrypt

Re: [PHP] php mail() function

2009-11-25 Thread James Prentice
After a long delay, I've finally got mail working. I had decided to move on in the book that I'm working through (Head First PHP MySQL) but doubled back to address the mail issue again. This is how I finally got it to work: 1. Switched to XAMPP for linux rather than using my existing versions of

Re: [PHP] processing html forms and keeping the values

2009-11-25 Thread Kim Madsen
Merlin Morgenstern wrote on 2009-11-24 18:38: This is not so easy. I am doing some checking with php on the values and if one failes php returns via GET to the form with the help of header location: $parameter = demo=this; HEADER(Location:/test.html?error=1.$parameter);

Re: [PHP] php mail() function

2009-11-25 Thread James Prentice
It looks like using XAMPP wasn't strictly necessary. I tried running this example again using my previous versions of mysql and apache and it worked fine. So the key is to configure Sendmail as described at the URL I gave. On Wed, Nov 25, 2009 at 10:58 AM, James Prentice prentice@gmail.com

[PHP] Detecting The Encoding Of A Text File

2009-11-25 Thread Nitsan Bin-Nun
Hi, I have been trying for the last couple of hours to determine the encoding of a text file (.txt in windowz). I have this code: $contents = file_get_contents($config['txt_dir'] . $file); $encoding = mb_detect_encoding($contents, UTF-8,ISO-8859-1,WINDOWS-1252); //,Windows-1255

[PHP] how to prevent a mild DOSS attack?

2009-11-25 Thread LAMP
hi guys, this morning I got complains from website owner and tons of visitors - nobody was able to access the website. it will just timeout. I contacted hosting company for more info but they said the virtual privet server, where the website is, has a lot of traffic and 512MB of RAM is not

Re: [PHP] function not returning query

2009-11-25 Thread Philip Thompson
On Nov 25, 2009, at 4:32 AM, Ashley Sheridan wrote: On Tue, 2009-11-24 at 23:27 -0800, Allen McCabe wrote: If I were to loop through my inputs, I could just exclude any problematic names, eg.: foreach ($_POST as $var = $val) { if ($var != filter.x || $var != filter.y) { $var =

[PHP] Wiki recommendation?

2009-11-25 Thread Skip Evans
Hey all, I'm looking for a good Wiki to maintain documentation on a large commercial web site that is always growing. DokuWiki is the only one I've installed and used at any length, so before I just use that one again I'd like to hear from the peanut gallery what other suggestions you'd

Re: [PHP] how to prevent a mild DOSS attack?

2009-11-25 Thread Ashley Sheridan
On Wed, 2009-11-25 at 16:38 -0600, LAMP wrote: hi guys, this morning I got complains from website owner and tons of visitors - nobody was able to access the website. it will just timeout. I contacted hosting company for more info but they said the virtual privet server, where the website

[PHP] register_globals and sessions

2009-11-25 Thread Allen McCabe
LPAC - Arts for Youth - Seat OrdersI am getting the following error message, but ONLY on a page where I am querying multiple tables, and I don't see the correlation: * * *Warning*: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that

[PHP] Re: Create client certificate with openssl

2009-11-25 Thread Manuel Lemos
Hello, on 11/25/2009 05:53 AM Tanveer Chowdhury said the following: Hi all, I have an apache server and for that I created CA as the signing authority using openssl. Now I created a php page which will generate client certificates with key and will sign by CA. Now the output is in .pem

Re: [PHP] Wiki recommendation?

2009-11-25 Thread aurfalien
On Nov 25, 2009, at 2:42 PM, Skip Evans wrote: Hey all, I'm looking for a good Wiki to maintain documentation on a large commercial web site that is always growing. DokuWiki is the only one I've installed and used at any length, so before I just use that one again I'd like to hear from

Re: [PHP] how to prevent a mild DOSS attack?

2009-11-25 Thread LinuxManMikeC
Or DoS back at em. :-D On Wed, Nov 25, 2009 at 3:57 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Wed, 2009-11-25 at 16:38 -0600, LAMP wrote: hi guys, this morning I got complains from website owner and tons of visitors - nobody was able to access the website. it will just timeout.

Re: [PHP] how to prevent a mild DOSS attack?

2009-11-25 Thread LinuxManMikeC
On Wed, Nov 25, 2009 at 3:57 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Wed, 2009-11-25 at 16:38 -0600, LAMP wrote: hi guys, this morning I got complains from website owner and tons of visitors - nobody was able to access the website. it will just timeout. I contacted hosting

[PHP] Detecting The Encoding Of A Text File

2009-11-25 Thread Nitsan Bin-Nun
Hi, I have been trying for the last couple of hours to determine the encoding of a text file (.txt in windowz). I have this code: $contents = file_get_contents($config[' txt_dir'] . $file); $encoding = mb_detect_encoding($contents, UTF-8,ISO-8859-1,WINDOWS-1252); //,Windows-1255

Re: [PHP] Wiki recommendation?

2009-11-25 Thread TG
Well, if you want to get really extreme, you could use TiddlyWiki: http://www.tiddlywiki.com/ It's a wiki contained in a single HTML file. No database. No server side scripting. No server! hah -TG - Original Message - From: Skip Evans s...@bigskypenguin.com To: TG