Re[4]: [PHP] It's Sunday, and I'm bored...

2008-11-24 Thread ANR Daemon
Greetings, Richard Heyes. In reply to Your message dated Tuesday, November 18, 2008, 18:34:27, In looking at the manual regarding tagging, it seems an awful chore compared to CVS. It only seems. In fact, the copy command only creating a reference to the specific revision. So, nothing, at all,

Re: [PHP] how can I make an email bounce

2008-11-24 Thread Ashley Sheridan
On Sun, 2008-11-23 at 16:01 -0800, Richard Kurth wrote: I need to make a bunch of emails bounce in different ways so I can check to see if my script to read a mail box full of bounced emails will work properly. Does any body know how I can do this. Send some flubber as an attachment and...

Re: [PHP] how can I make an email bounce

2008-11-24 Thread [EMAIL PROTECTED]
On Nov 23, 2008, at 7:01 PM, Richard Kurth wrote: I need to make a bunch of emails bounce in different ways so I can check to see if my script to read a mail box full of bounced emails will work properly. Does any body know how I can do this. If you have access to a Mac, in Apples

Re: [PHP] how can I make an email bounce

2008-11-24 Thread Richard Heyes
Hi, I need to make a bunch of emails bounce in different ways Carve them into some rubber and throw them at the flloor at different angles... :-) -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.rgraph.org (Updated November 15th) -- PHP General Mailing List

Re: [PHP] how can I make an email bounce

2008-11-24 Thread Ashley Sheridan
On Mon, 2008-11-24 at 12:53 +, Richard Heyes wrote: Hi, I need to make a bunch of emails bounce in different ways Carve them into some rubber and throw them at the flloor at different angles... :-) -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari:

Re: [PHP] how can I make an email bounce

2008-11-24 Thread Michael Kubler
If you have a previous bounce message then something like Mail Redirect https://addons.mozilla.org/en-US/thunderbird/addon/550 extension in thunderbird might work. You simply bounce the email to yourself, or from one account to another. I've used it quite often to test procmail rules, and the

[PHP] Re: file_Exists() and case

2008-11-24 Thread Stan
Stut, Shouting is something that happens when people are actually speaking and listening. In a medium where there is no other way to emphasize salient points in a message, capitalization is all that works. I'm sorry it offended your sensabilities. realpath() fails, just like file_exists()

Re: [PHP] Re: file_Exists() and case

2008-11-24 Thread Stut
On 24 Nov 2008, at 14:41, Stan wrote: Shouting is something that happens when people are actually speaking and listening. In a medium where there is no other way to emphasize salient points in a message, capitalization is all that works. I'm sorry it offended your sensabilities. It's

Re: [PHP] Re: PHP causing Script: '/usr/www/...' in httpd-error.log?

2008-11-24 Thread Jochem Maas
robert arnesson schreef: A. There is no more to the log B. There are no calls to error_log() PHP is installed as CGI, I will check the ScriptLog dir (good tip!). I forgot to mention that this occurres on a few php-files only.. the rest is working fine. And there are no major differences

Re: [PHP] Re: PHP causing Script: '/usr/www/...' in httpd-error.log?

2008-11-24 Thread robert arnesson
There are no calls to error_log in the files, however, I took care of some notices in the code (with error_reporting to E_ALL - there where only notices - no errors or warnings) and suddenly the number of entries in the error log dropped. Getting rid of all notices will probably solve the problem.

[PHP] Help with understanding an error

2008-11-24 Thread Terion Miller
Can anyone help explain what I need to do to fix this: Error: *Warning*: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in * C:\Inetpub\wwwroot\WorkOrderSystem\ViewWorkOrder.php* on line *57* *Warning*: mysql_num_rows(): supplied argument is not a valid MySQL result

Re: [PHP] Help with understanding an error

2008-11-24 Thread Wolf
Terion Miller [EMAIL PROTECTED] wrote: Can anyone help explain what I need to do to fix this: Error: *Warning*: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in * C:\Inetpub\wwwroot\WorkOrderSystem\ViewWorkOrder.php* on line *57* *Warning*:

Re: [PHP] Help with understanding an error

2008-11-24 Thread Terion Miller
I added an echo and got this: Query failed: Unknown column 'WorkOrderNumber' in 'field list' Actual query: but the actual query is blank and as I have stated before when I have had questions on this list, I am NOT a php programmer, just learning and inherited a job with tons of php already in

Re: [PHP] Help with understanding an error

2008-11-24 Thread Stut
On 24 Nov 2008, at 17:28, Terion Miller wrote: Can anyone help explain what I need to do to fix this: Error: *Warning*: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in * C:\Inetpub\wwwroot\WorkOrderSystem\ViewWorkOrder.php* on line *57* *Warning*:

Re: [PHP] Help with understanding an error

2008-11-24 Thread Terion Miller
this was the code I posted that accidentally only went to Wolf: what does STFW mean? ?php include(inc/dbconn_open.php); if (empty($_SESSION['AdminLogin']) OR $_SESSION['AdminLogin'] 'OK' ){ ? script language=javascript window.close(); /script ?php exit(); } if

Re: [PHP] Help with understanding an error

2008-11-24 Thread Wolf
Bottom POST when mailing the list. My responses inline and at the bottom Terion Miller [EMAIL PROTECTED] wrote: this was the code I posted that accidentally only went to Wolf: what does STFW mean?

[PHP] PostTrack Reminder

2008-11-24 Thread Daniel Brown
Folks; Just as a reminder, the PostTrack/ListWatch system is back to recording and reporting data on the list for the Friday summary reports and list metrics. If you do not want your email address to show up in the reports and have not already told me, please let me know ASAP and I will

Re: [PHP] PostTrack Reminder

2008-11-24 Thread Wolf
Daniel Brown [EMAIL PROTECTED] wrote: Folks; Just as a reminder, the PostTrack/ListWatch system is back to recording and reporting data on the list for the Friday summary reports and list metrics. If you do not want your email address to show up in the reports and have not

Re: [PHP] PostTrack Reminder

2008-11-24 Thread Daniel P. Brown
On Mon, Nov 24, 2008 at 2:49 PM, Wolf [EMAIL PROTECTED] wrote: Sure Dan, just pad your metrics with yet another post... :) Much like you just did. ;-P Have a good Thanksgiving as well! Make sure to eat lots of turkey so you sleep through the list emails! I'll actually be

Re: [PHP] Re: file_Exists() and case

2008-11-24 Thread Bastien Koert
On Mon, Nov 24, 2008 at 10:02 AM, Stut [EMAIL PROTECTED] wrote: On 24 Nov 2008, at 14:41, Stan wrote: Shouting is something that happens when people are actually speaking and listening. In a medium where there is no other way to emphasize salient points in a message, capitalization is all

Re: [PHP] PostTrack Reminder

2008-11-24 Thread Daniel Brown
On Mon, Nov 24, 2008 at 3:00 PM, Ashley Sheridan [EMAIL PROTECTED] wrote: What exactly are these metrics? Are they part of the mailing list? Yes, last year and earlier this year, before you began contributing to the list, there was a tracking system that displayed a simple report[1] each

Re: [PHP] PostTrack Reminder

2008-11-24 Thread [EMAIL PROTECTED]
On Nov 24, 2008, at 3:00 PM, Daniel P. Brown wrote: On Mon, Nov 24, 2008 at 2:49 PM, Wolf [EMAIL PROTECTED] wrote: Sure Dan, just pad your metrics with yet another post... :) Much like you just did. ;-P Nahhh If we was going for that he would just get it stuck in an endless

[PHP] Memcached is driving me nuts

2008-11-24 Thread Rico Secada
Hi. This post has also been posted on the Debian list. I have two different Debian Etch machines running with the exact same packages installed, when I use PHP memcached with compression (zlib) it works at one machine but not the other. No errors are thrown. I need to know why it is only

[PHP] Re: Memcached is driving me nuts

2008-11-24 Thread Al
Try debug_backtrace() Rico Secada wrote: Hi. This post has also been posted on the Debian list. I have two different Debian Etch machines running with the exact same packages installed, when I use PHP memcached with compression (zlib) it works at one machine but not the other. No errors are

Re: [PHP] PostTrack Reminder

2008-11-24 Thread Ashley Sheridan
On Mon, 2008-11-24 at 15:04 -0500, Daniel Brown wrote: On Mon, Nov 24, 2008 at 3:00 PM, Ashley Sheridan [EMAIL PROTECTED] wrote: What exactly are these metrics? Are they part of the mailing list? Yes, last year and earlier this year, before you began contributing to the list, there

Re: [PHP] PostTrack Reminder

2008-11-24 Thread Stut
On 24 Nov 2008, at 20:21, Ashley Sheridan wrote: On Mon, 2008-11-24 at 15:04 -0500, Daniel Brown wrote: On Mon, Nov 24, 2008 at 3:00 PM, Ashley Sheridan [EMAIL PROTECTED] wrote: What exactly are these metrics? Are they part of the mailing list? Yes, last year and earlier this year,

Re: [PHP] PostTrack Reminder

2008-11-24 Thread Ashley Sheridan
On Mon, 2008-11-24 at 20:30 +, Stut wrote: On 24 Nov 2008, at 20:21, Ashley Sheridan wrote: On Mon, 2008-11-24 at 15:04 -0500, Daniel Brown wrote: On Mon, Nov 24, 2008 at 3:00 PM, Ashley Sheridan [EMAIL PROTECTED] wrote: What exactly are these metrics? Are they part of the mailing

Re: [PHP] PostTrack Reminder

2008-11-24 Thread Ashley Sheridan
On Mon, 2008-11-24 at 14:45 -0500, Daniel Brown wrote: Folks; Just as a reminder, the PostTrack/ListWatch system is back to recording and reporting data on the list for the Friday summary reports and list metrics. If you do not want your email address to show up in the reports and have

Re: [PHP] PostTrack Reminder

2008-11-24 Thread Stut
On 24 Nov 2008, at 20:35, Ashley Sheridan wrote: On Mon, 2008-11-24 at 20:30 +, Stut wrote: On 24 Nov 2008, at 20:21, Ashley Sheridan wrote: On Mon, 2008-11-24 at 15:04 -0500, Daniel Brown wrote: On Mon, Nov 24, 2008 at 3:00 PM, Ashley Sheridan [EMAIL PROTECTED] wrote: What exactly are

Re: [PHP] PostTrack Reminder

2008-11-24 Thread Dan Joseph
On Mon, Nov 24, 2008 at 3:05 PM, [EMAIL PROTECTED] [EMAIL PROTECTED]wrote: On Nov 24, 2008, at 3:00 PM, Daniel P. Brown wrote: On Mon, Nov 24, 2008 at 2:49 PM, Wolf [EMAIL PROTECTED] wrote: Sure Dan, just pad your metrics with yet another post... :) Much like you just did. ;-P

Re: [PHP] PostTrack Reminder

2008-11-24 Thread Ashley Sheridan
On Mon, 2008-11-24 at 20:45 +, Stut wrote: On 24 Nov 2008, at 20:35, Ashley Sheridan wrote: On Mon, 2008-11-24 at 20:30 +, Stut wrote: On 24 Nov 2008, at 20:21, Ashley Sheridan wrote: On Mon, 2008-11-24 at 15:04 -0500, Daniel Brown wrote: On Mon, Nov 24, 2008 at 3:00 PM, Ashley

Re: [PHP] PostTrack Reminder

2008-11-24 Thread Daniel P. Brown
On Mon, Nov 24, 2008 at 3:45 PM, Stut [EMAIL PROTECTED] wrote: I didn't write it, but I'd say it receives the emails sent to the list as a subscriber just like you and I do, logs the statistics and sends a weekly report to the list indicating the most active users. Sorry, had to run away

[PHP] Re: PostTrack Reminder

2008-11-24 Thread Nathan Rixham
Daniel Brown wrote: Folks; Just as a reminder, the PostTrack/ListWatch system is back to recording and reporting data on the list for the Friday summary reports and list metrics. If you do not want your email address to show up in the reports and have not already told me, please let me

Re: [PHP] Re: Memcached is driving me nuts

2008-11-24 Thread Rico Secada
On Mon, 24 Nov 2008 15:13:32 -0500 Al [EMAIL PROTECTED] wrote: Try debug_backtrace() Thanks for your reply. I get an empty array: array(0) { } Rico Secada wrote: Hi. This post has also been posted on the Debian list. I have two different Debian Etch machines running with the

[PHP] SQL - RANDOM

2008-11-24 Thread Korgan
Hi, i would ask what is the best method for random select from database. I have table with 20k items.. - If i use ,,select * from table order by rand() limit 3, the query took 0.0524 sec ... its slightly enough - but if i generate rand id and then i use ,,select where id

Re: [PHP] SQL - RANDOM

2008-11-24 Thread Chris
Korgan wrote: Hi, i would ask what is the best method for random select from database. I have table with 20k items.. - If i use ,,select * from table order by rand() limit 3, the query took 0.0524 sec ... its slightly enough and as your table grows in size, it gets slower and slower.

Re: [PHP] SQL - RANDOM

2008-11-24 Thread ceo
For large tables, I generally create a static_rand column, and pre-populated it with random numbers and create an index on it. Then, after using up the records, I have application logic to reset those records (and only those records) to new random numbers. This provides MUCH better

Re: [PHP] SQL - RANDOM

2008-11-24 Thread Korgan
thx it looks good [EMAIL PROTECTED] napsal(a): For large tables, I generally create a static_rand column, and pre-populated it with random numbers and create an index on it. Then, after using up the records, I have application logic to reset those records (and only those records) to new

[PHP] getStatic

2008-11-24 Thread Craige Leeder
Hey guys, So, I was working on my framework today, and noticed unfortunately that PHP does not allow using the magic method __get for static variables. There is a patch available, but I'm not sure how long it will be before it makes it into the stable PHP release. Anyway, my question is

Re: [PHP] getStatic

2008-11-24 Thread Yeti
What would you do? I think PHP's string functions are pretty fast and even with large documents we are talking about a couple of extra microseconds on a modern machine. I once saw someone do pretty much the same as you are trying to do with strtr() [1], but I don't know if that function is