Re: [PHP] PostTrack Updates

2008-04-06 Thread Zoltán Németh
Jason Pruim írta: On Apr 5, 2008, at 1:48 AM, Robert Cummings wrote: On Fri, 2008-04-04 at 22:39 -0700, Jim Lucas wrote: Robert Cummings wrote: wrote:\n" ?> Some changes take effect with the PostTrack metrics\n" ?> system with this week (will show up in next week's\n" ?> report). There's

Re: [PHP] Posting Summary for Week Ending 4 April, 2008: php-general@lists.php.net

2008-04-06 Thread Zoltán Németh
PostTrack [Dan Brown] írta: > 10 (3.4%) 33529 (8.5%) Zoltán Németh alterationx dot hu> > 1 (0.3%) 2502(0.6%) Zoltán Németh alterationx dot hu> what's the difference? they should be added up, no? greets, Zoltán Németh -- PHP General Mailing List (http://www

Re: [PHP] PostTrack Updates

2008-04-06 Thread Zoltán Németh
Daniel Brown írta: Some changes take effect with the PostTrack metrics system with this week (will show up in next week's report). There's one bug fix and a new feature added, in which some of you may be really interested. CHANGELOG Fixed a bug that would (seemingly random) spli

Re: [PHP] PostTrack Updates

2008-04-06 Thread Daniel Brown
On Sat, Apr 5, 2008 at 10:54 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > $stfu = true; > if($stfu == true) { >stop_posting( ); > }else{ >post( ); > } > ?> Fatal Error: Undefined function stop_posting(). -- Ask me about: Dedicated servers starting @ $59.99/mo., VPS start

Re: [PHP] Posting Summary for Week Ending 4 April, 2008: php-general@lists.php.net

2008-04-06 Thread Daniel Brown
On Sun, Apr 6, 2008 at 7:31 AM, Zoltán Németh <[EMAIL PROTECTED]> wrote: > PostTrack [Dan Brown] írta: > > 10 (3.4%) 33529 (8.5%) Zoltán Németh alterationx dot hu> > > 1 (0.3%) 2502(0.6%) Zoltán Németh alterationx dot hu> > > > what's the differen

Re: [PHP] Dynamic dropdown lists (select)

2008-04-06 Thread tedd
At 12:51 PM +0200 4/4/08, Angelo Zanetti wrote: Hi all, I am looking at options for creating a dynamic dropdown list. Angelo Try this: http://webbytedd.com/cc/dynamic-option/index.php The javascript is there: http://webbytedd.com/cc/dynamic-option/a.js Cheers, tedd -- --- http://sp

[PHP] objects stored in sessions

2008-04-06 Thread Mark Weaver
Hi All, I've got something on my little mind, and please keep in mind I'm still somewhat new to PHP Oop, so please excuse my silly ass if I ask something that should be obvious. I've got an application that I'm re-writing from PERL to PHP Oop. At the beginning of the application, at log in,

Re: [PHP] Posting Summary for Week Ending 4 April, 2008: php-general@lists.php.net

2008-04-06 Thread Zoltán Németh
Daniel Brown írta: On Sun, Apr 6, 2008 at 7:31 AM, Zoltán Németh <[EMAIL PROTECTED]> wrote: PostTrack [Dan Brown] írta: > 10 (3.4%) 33529 (8.5%) Zoltán Németh > 1 (0.3%) 2502(0.6%) Zoltán Németh what's the difference? they should be added up,

Re: [PHP] objects stored in sessions

2008-04-06 Thread Mark Weaver
Richard Heyes wrote: So, if I create a user object, set the properties of said user object and store that object in the user session will that object be available throughout the application from the session? Yes. Just remember to include the class definition before you start the session on su

Re: [PHP] objects stored in sessions

2008-04-06 Thread Richard Heyes
So, if I create a user object, set the properties of said user object and store that object in the user session will that object be available throughout the application from the session? Yes. Just remember to include the class definition before you start the session on subsequent pages, otherw

Re: [PHP] Posting Summary for Week Ending 4 April, 2008: php-general@lists.php.net

2008-04-06 Thread Daniel Brown
On Sun, Apr 6, 2008 at 11:27 AM, Zoltán Németh <[EMAIL PROTECTED]> wrote: > > maybe the problem didn't appear before, or I just didn't notice it... It was the first time I'd noticed it myself, so it's possible that it's the first time it happened. I really only noticed it because I was speci

Re: [PHP] Posting Summary for Week Ending 4 April, 2008: php-general@lists.php.net

2008-04-06 Thread Zoltán Németh
Daniel Brown írta: On Sun, Apr 6, 2008 at 11:27 AM, Zoltán Németh <[EMAIL PROTECTED]> wrote: maybe the problem didn't appear before, or I just didn't notice it... It was the first time I'd noticed it myself, so it's possible that it's the first time it happened. I really only noticed it

[PHP] Include fails when "./" is in front of file name

2008-04-06 Thread Noah Spitzer-Williams
This works: include("file.inc.php"); This doesn't: include("./file.inc.php"); I can't figure it out! PHPMyAdmin uses "./" so it's obviously not working. Here's my environment: Win2003 Server w/ IIS 6 PHP 5.2.5 setup as ISAPI All PHP and httpdoc directories have read, write, and

Re: [PHP] Include fails when "./" is in front of file name

2008-04-06 Thread Casey
On Sun, Apr 6, 2008 at 2:17 PM, Noah Spitzer-Williams <[EMAIL PROTECTED]> wrote: > This works: >include("file.inc.php"); > > This doesn't: >include("./file.inc.php"); > > I can't figure it out! PHPMyAdmin uses "./" so it's obviously not working. > > Here's my environment: >Win2003 S

[PHP] Arbitrary mathematical relations, not just hashes

2008-04-06 Thread Kelly Jones
Many programming languages (including Perl, Ruby, and PHP) support hashes: $color['apple'] = 'red'; $color['ruby'] = 'red'; $type['apple'] = 'fruit'; $type['ruby'] = 'gem'; This quickly lets me find the color or type of a given item. In this sense, color() and type() are like mathematical funct

Re: [PHP] Dynamic dropdown lists (select)

2008-04-06 Thread Kevin Waterson
On Fri, 2008-04-04 at 12:51 +0200, Angelo Zanetti wrote: > So there will be 2 dropdown lists. First one say gets (for example) a list > of cars, > > Then once the car is choosen the second list is populated with the list of > models for the car choosen. Try something like this-> http://phpro.o

Re: [PHP] Arbitrary mathematical relations, not just hashes

2008-04-06 Thread Casey
On Sun, Apr 6, 2008 at 4:52 PM, Kelly Jones <[EMAIL PROTECTED]> wrote: > Many programming languages (including Perl, Ruby, and PHP) support hashes: > > $color['apple'] = 'red'; > $color['ruby'] = 'red'; > > $type['apple'] = 'fruit'; > $type['ruby'] = 'gem'; > > This quickly lets me find the co

Re: [PHP] Arbitrary mathematical relations, not just hashes

2008-04-06 Thread Mark J. Reed
As far as languages with two-way relation go, there are many; perhaps the most prototypical is Lisp, in that either member of a pair within an alist can be used to look the pair up, with no extra function or second map definition required. But PHP has pretty good support, too, actually. If you ha

Re: [PHP] Arbitrary mathematical relations, not just hashes

2008-04-06 Thread Greg Bowser
On Sun, Apr 6, 2008 at 7:52 PM, Kelly Jones <[EMAIL PROTECTED]> wrote: > Many programming languages (including Perl, Ruby, and PHP) support hashes: > > $color['apple'] = 'red'; > $color['ruby'] = 'red'; > > $type['apple'] = 'fruit'; > $type['ruby'] = 'gem'; > > This quickly lets me find the color

Re: [PHP] Arbitrary mathematical relations, not just hashes

2008-04-06 Thread Greg Bowser
(sorry I just hit send on a blank email; I'm absent-minded) First, in the strictest mathematical sense, a relation from a set $a to a set $b is a subset of the cross-product $a x $b. (obviously, the mathematical notation is not a great way to represent this in a program.) Hence, a relation is a

[PHP] Re: Dynamic dropdown lists (select)

2008-04-06 Thread Manuel Lemos
Hello, on 04/04/2008 07:51 AM Angelo Zanetti said the following: > I am looking at options for creating a dynamic dropdown list. > > Ok here is the scenario: > > All values in the dropdown list (select/option field) are coming from the > database. > > So there will be 2 dropdown lists. First o

Re: [PHP] Include fails when "./" is in front of file name

2008-04-06 Thread Noah Spitzer-Williams
Casey -- nope. the include statement is being issues from the parent page. both files are in the same directory. Nitsan -- the problem is apps like phpMyAdmin are littered with include("./file.inc.php"); i'd have to replace all those to use full paths. it's not a good idea from a servicability

[PHP] opening a big file

2008-04-06 Thread Richard Lee
I am trying to open a big file and go through line by line while limiting the resource on the system. What is the best way to do it? Does below read the entire file and store them in memory(not good if that's the case).. open(SOURCE, "/tmp/file") || die "not there: $!\n"; while () { ## do som

Re: [PHP] objects stored in sessions

2008-04-06 Thread Kevin Waterson
On Sun, 2008-04-06 at 11:02 -0400, Mark Weaver wrote: > So, if I create a user object, set the properties of said user object > and store that object in the user session will that object be available > throughout the application from the session? http://phpro.org/tutorials/Introduction-To-PHP-

[PHP] Re: Arbitrary mathematical relations, not just hashes

2008-04-06 Thread Mr. Shawn H. Corey
On Sun, 2008-04-06 at 16:52 -0700, Kelly Jones wrote: > Many programming languages (including Perl, Ruby, and PHP) support hashes: > > $color['apple'] = 'red'; > $color['ruby'] = 'red'; > > $type['apple'] = 'fruit'; > $type['ruby'] = 'gem'; > > This quickly lets me find the color or type of a gi

[PHP] Re: opening a big file

2008-04-06 Thread Mr. Shawn H. Corey
On Sun, 2008-04-06 at 22:36 -0400, Richard Lee wrote: > I am trying to open a big file and go through line by line while > limiting the resource on the system. > What is the best way to do it? > > Does below read the entire file and store them in memory(not good if > that's the case).. > > open

Re: [PHP] Arbitrary mathematical relations, not just hashes

2008-04-06 Thread Casey
On Sun, Apr 6, 2008 at 4:52 PM, Kelly Jones <[EMAIL PROTECTED]> wrote: > Many programming languages (including Perl, Ruby, and PHP) support hashes: > > $color['apple'] = 'red'; > $color['ruby'] = 'red'; > > $type['apple'] = 'fruit'; > $type['ruby'] = 'gem'; > > This quickly lets me find the co

[PHP] php application send mouse click

2008-04-06 Thread Daniel Kolbo
hello, I am mostly familiar with php for serving up web pages; however, recently i have been writing a local command line script on my WinXP machine. I have spent the better part of this last week and all of today trying to figure out a way to send a mouse click to a particular window on the

Re: [PHP] Arbitrary mathematical relations, not just hashes

2008-04-06 Thread Mark J. Reed
On Sun, Apr 6, 2008 at 11:51 PM, Casey <[EMAIL PROTECTED]> wrote: > I hit reply-all... now am I suddenly subscribed to Perl and Ruby lists!?! Huh, didn't notice the cross-posting. But no, you're not subscribed to any new lists. Since we're cross-posting, the translation of my sample would be ap