php-general Digest 27 Jan 2009 13:05:57 -0000 Issue 5925

2009-01-27 Thread php-general-digest-help
php-general Digest 27 Jan 2009 13:05:57 - Issue 5925 Topics (messages 287193 through 287209): Variable formatting problem using sessions... 287193 by: Rick Duval 287198 by: Chris Re: Coding for email response forms 287194 by: Edmund Hertle Re: Multiple queries in

Re: [PHP] Make New-Age Money Online with Google

2009-01-27 Thread Stuart
2009/1/27 clive clive_li...@immigrationunit.com: Ashley Sheridan wrote: On Sat, 2009-01-24 at 10:14 +0200, Dora Elless wrote: That's why I am sending this email only to people I know and care about. And they send to a mailing list. Come again? So Funny, they went through all the

Re: [PHP] Get Money Fast with the Government Grants

2009-01-27 Thread clive
Dora Gaskins wrote: If you have received this email, take a time to really read it carefully! American Gov Money More spam, can't we have the maillist software require people to register before posting? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Get Money Fast with the Government Grants

2009-01-27 Thread Andrew Williams
Hi, Beware of he spam mailer so do not let them spam your money away. Andrew On Tue, Jan 27, 2009 at 9:18 AM, clive clive_li...@immigrationunit.comwrote: Dora Gaskins wrote: If you have received this email, take a time to really read it carefully! American Gov Money More spam, can't we

Re: [PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-27 Thread Per Jessen
Bastien Koert wrote: No, as all of our users have to authorized to use the app, we store the desired language in a field in the user record. However, we also supply functionality via a drop down to allow the user to change the language if desired. Okay, that's very similar to my approach.

Re: [PHP] Make New-Age Money Online with Google

2009-01-27 Thread Martin Zvarík
Ashley Sheridan napsal(a): On Sat, 2009-01-24 at 10:14 +0200, Dora Elless wrote: That's why I am sending this email only to people I know and care about. And they send to a mailing list. Come again? Ash www.ashleysheridan.co.uk The sad thing though is that there will be always people who

Re: [PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-27 Thread Jan Kaštánek
Per Jessen: The gettext db doesn't support UTF8??? Uh oh, that's a show-stopper. It supports. We use it. But only in MsgStr (translation), not in MsgId (original strings). -- toby http://toby.cz/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-27 Thread Per Jessen
Jan Kaštánek wrote: Per Jessen: The gettext db doesn't support UTF8??? Uh oh, that's a show-stopper. It supports. We use it. But only in MsgStr (translation), not in MsgId (original strings). Yeah, I found out too. (from the GNU gettext docu). /Per Jessen, Zürich -- PHP General

Re: [PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-27 Thread Phpster
Sorry guys, I meant that the current application database is not configured for utf-8 Bastien Sent from my iPod On Jan 27, 2009, at 6:04, Per Jessen p...@computer.org wrote: Jan Kaštánek wrote: Per Jessen: The gettext db doesn't support UTF8??? Uh oh, that's a show-stopper. It

[PHP] Re: Doc standard for methods?

2009-01-27 Thread Nathan Rixham
Larry Garfield wrote: Greetings, all. I am looking for feedback on a documentation question, in the hopes that someone else has found a good solution to an abnormal situation. We're in the process of introducing OOP syntax to a large procedural code base. Our developer base is a mixture of

Re: [PHP] Re: Doc standard for methods?

2009-01-27 Thread Eric Butera
On Tue, Jan 27, 2009 at 10:00 AM, Kyle Terry k...@kyleterry.com wrote: On Tue, Jan 27, 2009 at 5:56 AM, Nathan Rixham nrix...@gmail.com wrote: Larry Garfield wrote: Greetings, all. I am looking for feedback on a documentation question, in the hopes that someone else has found a good solution

Re: [PHP] Make New-Age Money Online with Google

2009-01-27 Thread Eric Butera
On Tue, Jan 27, 2009 at 2:42 AM, clive clive_li...@immigrationunit.com wrote: So Funny, they went through all the trouble of signing up, unless hey have bots now that can sign up to mailing lists? Could be a virus that is spamming all contacts in a real persons email client. -- PHP General

Re: [PHP] Make New-Age Money Online with Google

2009-01-27 Thread Matty Sarro
OMG THIS IS SO AWESOME! Dear Bot/Advertiser: Please find a fire, and die in it. Thank you. -Matthew On Tue, Jan 27, 2009 at 10:08 AM, Eric Butera eric.but...@gmail.com wrote: On Tue, Jan 27, 2009 at 2:42 AM, clive clive_li...@immigrationunit.com wrote: So Funny, they went through all the

Re: [PHP] Re: Doc standard for methods?

2009-01-27 Thread Kyle Terry
On Tue, Jan 27, 2009 at 5:56 AM, Nathan Rixham nrix...@gmail.com wrote: Larry Garfield wrote: Greetings, all. I am looking for feedback on a documentation question, in the hopes that someone else has found a good solution to an abnormal situation. We're in the process of introducing OOP

Re: [PHP] Re: Doc standard for methods?

2009-01-27 Thread Kyle Terry
On Tue, Jan 27, 2009 at 7:06 AM, Eric Butera eric.but...@gmail.com wrote: On Tue, Jan 27, 2009 at 10:00 AM, Kyle Terry k...@kyleterry.com wrote: On Tue, Jan 27, 2009 at 5:56 AM, Nathan Rixham nrix...@gmail.com wrote: Larry Garfield wrote: Greetings, all. I am looking for feedback on a

Re: [PHP] Coding for email response forms

2009-01-27 Thread Tom
Edmund Hertle edmund.her...@student.kit.edu wrote in message news:f7ed91b20901261644y125f71aer3e0b70735c949...@mail.gmail.com... 2009/1/26 Tom obeli...@comcast.net Shawn McKenzie sh...@mckenzies.net wrote in message news:497e3ab9.2060...@mckenzies.net... Shawn McKenzie wrote: Tom

RE: [PHP] Coding for email response forms

2009-01-27 Thread Boyd, Todd M.
-Original Message- From: Tom [mailto:obeli...@comcast.net] Sent: Tuesday, January 27, 2009 9:58 AM To: php-general@lists.php.net Subject: Re: [PHP] Coding for email response forms Edmund Hertle edmund.her...@student.kit.edu wrote in message

[PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread revDAVE
Hi Folks, Newbie question I have a mysql table with 100 fields, currently all do not allow nulls. Rather than hand typing in phpMyAdmin, I would like a way to loop through all fields and update them to allow nulls My Beginning attempt needs help... $i = 1; while ($i = 100): // how do

[PHP] Re: Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread Jay Moore
revDAVE wrote: Hi Folks, Newbie question I have a mysql table with 100 fields, currently all do not allow nulls. Rather than hand typing in phpMyAdmin, I would like a way to loop through all fields and update them to allow nulls First I would DESCRIBE the table so you get a list of

Re: [PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread Ian
On 27 Jan 2009 at 8:53, revDAVE wrote: Hi Folks, Newbie question I have a mysql table with 100 fields, currently all do not allow nulls. Rather than hand typing in phpMyAdmin, I would like a way to loop through all fields and update them to allow nulls My Beginning attempt needs

Re: [PHP] Re: Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread Mattias Thorslund
Jay Moore wrote: revDAVE wrote: Hi Folks, Newbie question I have a mysql table with 100 fields, currently all do not allow nulls. Rather than hand typing in phpMyAdmin, I would like a way to loop through all fields and update them to allow nulls First I would DESCRIBE the table so

RE: [PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread Chris Scott
Hi Folks, Newbie question I have a mysql table with 100 fields, currently all do not allow nulls. Rather than hand typing in phpMyAdmin, I would like a way to loop through all fields and update them to allow nulls My Beginning attempt needs help... $i = 1; while ($i =

Re: [PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread Andrew Ballard
On Tue, Jan 27, 2009 at 11:53 AM, revDAVE c...@hosting4days.com wrote: Hi Folks, Newbie question I have a mysql table with 100 fields, currently all do not allow nulls. Rather than hand typing in phpMyAdmin, I would like a way to loop through all fields and update them to allow

RE: [PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread Boyd, Todd M.
-Original Message- From: Andrew Ballard [mailto:aball...@gmail.com] Sent: Tuesday, January 27, 2009 11:39 AM To: revDAVE Cc: php-general@lists.php.net Subject: Re: [PHP] Global Changes With Loop To Allow Nulls In A Table... On Tue, Jan 27, 2009 at 11:53 AM, revDAVE

[PHP] Empty $_REQUEST

2009-01-27 Thread Robert Paulsen
Hi, I have a apache2/php app written for php version 4 and have moved it to a system running php version 5: Old: PHP 4.3.10 New: PHP 5.2.6 with Suhosin-Patch 0.9.6.2 When I run the app I find that $_REQUEST is almost empty. it contains PHPSESSID but none of the data submitted through an

Re: [PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread Andrew Ballard
On Tue, Jan 27, 2009 at 12:58 PM, Boyd, Todd M. tmbo...@ccis.edu wrote: -Original Message- From: Andrew Ballard [mailto:aball...@gmail.com] Sent: Tuesday, January 27, 2009 11:39 AM To: revDAVE Cc: php-general@lists.php.net Subject: Re: [PHP] Global Changes With Loop To Allow Nulls In

Re: [PHP] Empty $_REQUEST

2009-01-27 Thread Daniel Brown
On Tue, Jan 27, 2009 at 13:12, Robert Paulsen rob...@paulsenonline.net wrote: When I run the app I find that $_REQUEST is almost empty. it contains PHPSESSID but none of the data submitted through an html form. Bring on the code, Rob. -- /Daniel P. Brown daniel.br...@parasane.net ||

Re: [PHP] Coding for email response forms

2009-01-27 Thread Shawn McKenzie
Tom wrote: Edmund Hertle edmund.her...@student.kit.edu wrote in message news:f7ed91b20901261644y125f71aer3e0b70735c949...@mail.gmail.com... 2009/1/26 Tom obeli...@comcast.net Shawn McKenzie sh...@mckenzies.net wrote in message news:497e3ab9.2060...@mckenzies.net... Shawn McKenzie wrote:

[PHP] Need Help resolving the undefined variable and getting property of non-object errors

2009-01-27 Thread Terion Miller
Hello All, I am having problems resolving errors with some images causing the Undefined variable and getting property of non-object errors, I am trying to make a copy function so that an order can be viewed then resubmitted as a new order with minimal changes if needed. Here's my code: --could it

Re: [PHP] Need Help resolving the undefined variable and getting property of non-object errors

2009-01-27 Thread Stuart
2009/1/27 Terion Miller webdev.ter...@gmail.com: I am having problems resolving errors with some images causing the Undefined variable and getting property of non-object errors, I am trying to make a copy function so that an order can be viewed then resubmitted as a new order with minimal

[PHP] Re: Need Help resolving the undefined variable and getting property of non-object errors

2009-01-27 Thread Shawn McKenzie
Terion Miller wrote: Hello All, I am having problems resolving errors with some images causing the Undefined variable and getting property of non-object errors, I am trying to make a copy function so that an order can be viewed then resubmitted as a new order with minimal changes if needed.

Re: [PHP] Empty $_REQUEST

2009-01-27 Thread Robert Paulsen
On Tuesday 27 January 2009 12:16 pm, Daniel Brown wrote: On Tue, Jan 27, 2009 at 13:12, Robert Paulsen rob...@paulsenonline.net wrote: When I run the app I find that $_REQUEST is almost empty. it contains PHPSESSID but none of the data submitted through an html form. Bring on the code,

Re: [PHP] Empty $_REQUEST

2009-01-27 Thread Alpár Török
2009/1/27 Robert Paulsen rob...@paulsenonline.net On Tuesday 27 January 2009 12:16 pm, Daniel Brown wrote: On Tue, Jan 27, 2009 at 13:12, Robert Paulsen rob...@paulsenonline.net wrote: When I run the app I find that $_REQUEST is almost empty. it contains PHPSESSID but none of the data

Re: [PHP] Empty $_REQUEST

2009-01-27 Thread Robert Paulsen
On Tuesday 27 January 2009 2:13 pm, Alpár Török wrote: why don't you just use phps md5() function ? you might mess up something in that process of hashing that you use and you create another, probably useless trip to the db. I just don't know any better! I'll look it up. Thanks, Bob --

[PHP] Re: Re : [PHP] profiler web server

2009-01-27 Thread Jim Lucas
djamel boussebha wrote: Hi Jim; My question is : if you have a server where is installed : apache2 + PHP5 and if you execute of load/stress tests on this server = Except the system resources of the server (CPU, RAM, ..), which are other component to watch (for example the size of the

Re: [PHP] Empty $_REQUEST

2009-01-27 Thread Alpár Török
2009/1/27 Robert Paulsen rob...@paulsenonline.net On Tuesday 27 January 2009 2:13 pm, Alpár Török wrote: why don't you just use phps md5() function ? you might mess up something in that process of hashing that you use and you create another, probably useless trip to the db. I just

[PHP] php forking/spawning question...

2009-01-27 Thread bruce
Hi... got the follwoing example... basically, when i call the function spawn_ i get the passed vars for appname/args... the $appname,$args are valid when the spawn_ function is initially invoked. however, when the app does the fork, the $appname, $args get lost. when the function gets to the

Re: [PHP] Empty $_REQUEST

2009-01-27 Thread Jim Lucas
Robert Paulsen wrote: On Tuesday 27 January 2009 12:16 pm, Daniel Brown wrote: On Tue, Jan 27, 2009 at 13:12, Robert Paulsen rob...@paulsenonline.net wrote: When I run the app I find that $_REQUEST is almost empty. it contains PHPSESSID but none of the data submitted through an html form.

Re: [PHP] Empty $_REQUEST

2009-01-27 Thread Robert Paulsen
On Tuesday 27 January 2009 2:25 pm, Alpár Török wrote: php has an md5 function built in. so you can jsut do $hash = md5($passwd); Works like a champ. Thanks. Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Make New-Age Money Online with Google

2009-01-27 Thread Frank Stanovcak
Martin Zvarík mzva...@gmail.com wrote in message news:66.93.12464.913ee...@pb1.pair.com... Ashley Sheridan napsal(a): On Sat, 2009-01-24 at 10:14 +0200, Dora Elless wrote: That's why I am sending this email only to people I know and care about. And they send to a mailing list. Come again?

Re: [PHP] Re: New PHP User with a simple question

2009-01-27 Thread Frank Stanovcak
Paul M Foster pa...@quillandmouse.com wrote in message news:20090126222404.gc18...@quillandmouse.com... On Mon, Jan 19, 2009 at 04:45:08PM -0500, Christopher W wrote: Dear responders, I was not sure which post was the best to respond to all of you so I chose the original. I wanted to

Re: [PHP] Get Money Fast with the Government Grants

2009-01-27 Thread Frank Stanovcak
Andrew Williams andrew4willi...@gmail.com wrote in message news:1adf0c280901270134o2f06d0f9kaf3fce2fb4b6c...@mail.gmail.com... Hi, Beware of he spam mailer so do not let them spam your money away. Andrew On Tue, Jan 27, 2009 at 9:18 AM, clive clive_li...@immigrationunit.comwrote: Dora

Re: [PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread Chris
The other responses should get you started if this is something you really want to do. However, I'll play devil's advocate here and just raise the question why you would want to make this change in the first place. I'm not quite as anti-NULL as a lot of arguments I've read against them, but I

RE: [PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread Boyd, Todd M.
-Original Message- From: Chris [mailto:dmag...@gmail.com] Sent: Tuesday, January 27, 2009 4:04 PM To: Boyd, Todd M. Cc: php-general@lists.php.net Subject: Re: [PHP] Global Changes With Loop To Allow Nulls In A Table... The other responses should get you started if this is

Re: [PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread Chris
Boyd, Todd M. wrote: -Original Message- From: Chris [mailto:dmag...@gmail.com] Sent: Tuesday, January 27, 2009 4:04 PM To: Boyd, Todd M. Cc: php-general@lists.php.net Subject: Re: [PHP] Global Changes With Loop To Allow Nulls In A Table... The other responses should get you started if

Re: [PHP] php forking/spawning question...

2009-01-27 Thread Chris
bruce wrote: Hi... got the follwoing example... basically, when i call the function spawn_ i get the passed vars for appname/args... the $appname,$args are valid when the spawn_ function is initially invoked. however, when the app does the fork, the $appname, $args get lost. when the function

[PHP] Programming general question

2009-01-27 Thread Terion Miller
I googled this and didn't find an answer my question is how do you know when to use an object or array would an object just be 1 instance, and array is several things together ( I know infantile coder language I use..but I'm a baby still in this) Can someone explain objects and arrays in

[PHP] [PROJECT HELP] - JotBug - A Project Management Issue Tracker written 100% with Zend Framework

2009-01-27 Thread rcastley
Hi, I am looking (begging!) for help/testing/feedback etc etc etc on my JotBug project http://jotbug.googlecode.com So far, I have the following implemented: Wiki - Syntax is Textile - Add - Edit - Preview - Delete - Attachments (upload/view) - Code highlighting using Geshi -

[PHP] Hidden costs of PHP arrays?

2009-01-27 Thread Clancy
PHP arrays permit extremely concise programming; for example if I have all my contacts in an array $contacts, I can write: $my_phone_no = $contacts['clancy']['phone']; However it is clear that there must be a lot going on behind the scenes to achieve this simple result, as it requires some

Re: [PHP] Programming general question

2009-01-27 Thread Edmund Hertle
2009/1/28 Terion Miller webdev.ter...@gmail.com I googled this and didn't find an answer my question is how do you know when to use an object or array would an object just be 1 instance, and array is several things together ( I know infantile coder language I use..but I'm a baby still

Re: [PHP] Re: Doc standard for methods?

2009-01-27 Thread Nathan Rixham
Kyle Terry wrote: On Tue, Jan 27, 2009 at 7:06 AM, Eric Butera eric.but...@gmail.com wrote: On Tue, Jan 27, 2009 at 10:00 AM, Kyle Terry k...@kyleterry.com wrote: On Tue, Jan 27, 2009 at 5:56 AM, Nathan Rixham nrix...@gmail.com wrote: Larry Garfield wrote: Greetings, all. I am looking for

Re: [PHP] Hidden costs of PHP arrays?

2009-01-27 Thread Edmund Hertle
2009/1/28 Clancy clanc...@cybec.com.au PHP arrays permit extremely concise programming; for example if I have all my contacts in an array $contacts, I can write: $my_phone_no = $contacts['clancy']['phone']; However it is clear that there must be a lot going on behind the scenes to achieve

[PHP] Re: Hidden costs of PHP arrays?

2009-01-27 Thread Nathan Rixham
Clancy wrote: Also what the relative virtues of defining the same set of fields for every contact, as against either defining only the fields which actually hold values, as in the following examples? a: $contacts['clancy']['home_address'] = 'jkjkjk'; $contacts['clancy']['home_phone'] = 0123

Re: [PHP] Programming general question

2009-01-27 Thread Robert Cummings
On Wed, 2009-01-28 at 01:07 +0100, Edmund Hertle wrote: 2009/1/28 Terion Miller webdev.ter...@gmail.com I googled this and didn't find an answer my question is how do you know when to use an object or array would an object just be 1 instance, and array is several things together (

Re: [PHP] Hidden costs of PHP arrays?

2009-01-27 Thread Robert Cummings
On Wed, 2009-01-28 at 10:38 +1100, Clancy wrote: PHP arrays permit extremely concise programming; for example if I have all my contacts in an array $contacts, I can write: $my_phone_no = $contacts['clancy']['phone']; However it is clear that there must be a lot going on behind the scenes

Re: [PHP] Programming general question

2009-01-27 Thread Nathan Rixham
Robert Cummings wrote: On Wed, 2009-01-28 at 01:07 +0100, Edmund Hertle wrote: 2009/1/28 Terion Miller webdev.ter...@gmail.com I googled this and didn't find an answer my question is how do you know when to use an object or array would an object just be 1 instance, and array is several

Re: [PHP] Hidden costs of PHP arrays?

2009-01-27 Thread Nathan Rixham
Robert Cummings wrote: On Wed, 2009-01-28 at 10:38 +1100, Clancy wrote: PHP arrays permit extremely concise programming; for example if I have all my contacts in an array $contacts, I can write: $my_phone_no = $contacts['clancy']['phone']; However it is clear that there must be a lot going

[PHP] Installation of php-5.2.8-win32-installer.msi

2009-01-27 Thread Jerry Foote
Tried to install PHP using this installer and about 2/3 of the way through the installation I get an error message: I am trying to install the IIS ISAPI module and MySQL to the hard drive under c:\Program Files\PHP on an XP Professional SP2 machine. Any help on this problem?

Re: [PHP] Installation of php-5.2.8-win32-installer.msi

2009-01-27 Thread Chris
Jerry Foote wrote: Tried to install PHP using this installer and about 2/3 of the way through the installation I get an error message: I am trying to install the IIS ISAPI module and MySQL to the hard drive under c:\Program Files\PHP on an XP Professional SP2 machine. The mailing list

Re: [PHP] Programming general question

2009-01-27 Thread Paul M Foster
On Tue, Jan 27, 2009 at 05:18:35PM -0600, Terion Miller wrote: I googled this and didn't find an answer my question is how do you know when to use an object or array would an object just be 1 instance, and array is several things together ( I know infantile coder language I use..but

Re: [PHP] Installation of php-5.2.8-win32-installer.msi

2009-01-27 Thread Chris
Always cc the mailing list so others can offer suggestions/advice and so it will also show up in the archives later on. Jerry Foote wrote: The error message is: There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact

Re: [PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread revDAVE
Thanks so much for everyone's help! I fooled with this and it was cool... In the mysql client, do a SHOW CREATE TABLE tableName\G And ultimately got it working with: - The MySQL syntax to alter a column is: ALTER TABLE `table` MODIFY `column` BIGINT NOT NULL; [

Re: [PHP] Installation of php-5.2.8-win32-installer.msi

2009-01-27 Thread Ashley Sheridan
On Wed, 2009-01-28 at 12:52 +1100, Chris wrote: Jerry Foote wrote: Tried to install PHP using this installer and about 2/3 of the way through the installation I get an error message: I am trying to install the IIS ISAPI module and MySQL to the hard drive under