Re: [PHP] scalable web gallery

2008-07-11 Thread tedd
At 8:51 AM +0800 7/12/08, paragasu wrote: > Why not use a hash table based upon the name of the file and distribute files that way? sorry tedd, i don't really get it. but i am interested to know more about the hash table concept. can you explain a little bit more.. paragasu: A hash table is

Re: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-11 Thread tedd
At 7:22 PM -0500 7/11/08, Shawn McKenzie wrote: Jim Lucas wrote: tedd wrote: The only downside of the classroom environment is that I can honestly learn more from this group et al than I can in a classroom. I just don't see academia keeping up with technology. By time the instructors prepare

Re: [PHP] Most popular per month

2008-07-11 Thread Wolf
Ryan S wrote: Hey! The client has a set of 50 images that keep rotating everyday and when a user clicks one of those images he is taken to that images site, in the background (database) i maintain a counter _for the day_ and then display the top ten images everyday in this format: 1-10 befor

[PHP] Most popular per month

2008-07-11 Thread Ryan S
Hey! The client has a set of 50 images that keep rotating everyday and when a user clicks one of those images he is taken to that images site, in the background (database) i maintain a counter _for the day_ and then display the top ten images everyday in this format: 1-10 before the next days

Re: [PHP] scalable web gallery

2008-07-11 Thread paragasu
> Why not use a hash table based upon the name of the file and distribute files > that way? sorry tedd, i don't really get it. but i am interested to know more about the hash table concept. can you explain a little bit more.. thanks.. On 7/11/08, tedd <[EMAIL PROTECTED]> wrote: > At 10:41 AM -0

Re: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-11 Thread Jim Lucas
Shawn McKenzie wrote: Jim Lucas wrote: tedd wrote: The only downside of the classroom environment is that I can honestly learn more from this group et al than I can in a classroom. I just don't see academia keeping up with technology. By time the instructors prepare their class-notes, their c

Re: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-11 Thread Shawn McKenzie
Jim Lucas wrote: tedd wrote: The only downside of the classroom environment is that I can honestly learn more from this group et al than I can in a classroom. I just don't see academia keeping up with technology. By time the instructors prepare their class-notes, their class-notes are outdated

Re: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-11 Thread Jim Lucas
tedd wrote: The only downside of the classroom environment is that I can honestly learn more from this group et al than I can in a classroom. I just don't see academia keeping up with technology. By time the instructors prepare their class-notes, their class-notes are outdated -- or so is my p

RE: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-11 Thread tedd
At 5:01 PM -0500 7/11/08, Boyd, Todd M. wrote: Don't get me wrong--I enjoyed the class very much. I had never seen sorting algorithms outside of the Bubble Sort, so learning Pivot, Shell, etc. was quite a blast. I used to hang with a bunch of Macintosh software developers. It was brought to di

RE: [PHP] Question regarding OO

2008-07-11 Thread Boyd, Todd M.
> -Original Message- > From: Jay Blanchard [mailto:[EMAIL PROTECTED] > Sent: Friday, July 11, 2008 1:51 PM > To: Eric Butera; php php > Subject: RE: [PHP] Question regarding OO > > [snip] > I understand my error in thinking now. > > Apple can't extend Tree. > > Oak, Evergreen or Willow e

RE: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-11 Thread Boyd, Todd M.
> -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 10, 2008 11:31 PM > To: Boyd, Todd M. > Cc: php-general@lists.php.net > Subject: RE: [PHP] OT - RE: [PHP] scalable web gallery > > On Thu, 2008-07-10 at 12:06 -0500, Boyd, Todd M. wrote: > > > ---

Re: [PHP] Relocating and POSTing

2008-07-11 Thread tedd
At 1:19 PM -0400 7/11/08, Daniel Brown wrote: On Fri, Jul 11, 2008 at 1:07 PM, tedd <[EMAIL PROTECTED]> wrote: Incidentally, I did some minor testing on this a few years ago and found the lengths vary greatly between servers. and browsers. If I remember correctly, on Winblows alon

RE: [PHP] cookie encoding/decoding

2008-07-11 Thread Jeff Demel
Anyone have any ideas on this at all? -Original Message- From: Jeff Demel [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2008 10:50 AM To: php-general@lists.php.net Subject: [PHP] cookie encoding/decoding I have a situation where a cookie is being set elsewhere on a site by ASP.NET,

RE: [PHP] Question regarding OO

2008-07-11 Thread Jay Blanchard
[snip] I understand my error in thinking now. Apple can't extend Tree. Oak, Evergreen or Willow extend Tree. I thank you all for helping me to understand. [/snip] By jove, I think he's got it! Parking space could be a member variable of parking lot, that would make sense. -- PHP General Maili

Fwd: [PHP] Question regarding OO

2008-07-11 Thread Eric Butera
-- Forwarded message -- From: Yeti <[EMAIL PROTECTED]> Date: Fri, Jul 11, 2008 at 2:08 PM Subject: Re: [PHP] Question regarding OO To: Eric Butera <[EMAIL PROTECTED]> I understand my error in thinking now. Apple can't extend Tree. Oak, Evergreen or Willow extend Tree. I thank y

Re: [PHP] Relocating and POSTing

2008-07-11 Thread Daniel Brown
On Fri, Jul 11, 2008 at 1:07 PM, tedd <[EMAIL PROTECTED]> wrote: > > Incidentally, I did some minor testing on this a few years ago and found the > lengths vary greatly between servers. and browsers. If I remember correctly, on Winblows alone, Opera is capable of somewhere in the 4,500 c

Re: [PHP] Relocating and POSTing

2008-07-11 Thread tedd
At 12:37 PM -0400 7/11/08, Daniel Brown wrote: On Fri, Jul 11, 2008 at 12:26 PM, Alex Chamberlain <[EMAIL PROTECTED]> wrote: Ahh, but they are on different webservers That's why I mentioned cURL at the very beginning, if it had to be done as a POST request. At the moment, I am just

Re: [PHP] Question regarding OO

2008-07-11 Thread Eric Butera
On Fri, Jul 11, 2008 at 12:03 PM, Yeti <[EMAIL PROTECTED]> wrote: > > /* > > I have a question here regarding object orientation in PHP and any other > language. > > Let's start with some hypothetical code: > > */ > > // <--- 1st CLASS > > class ParkingLot { > > var size; // size in sq feet > > va

Re: [PHP] Re: What font/size do you use for programming?

2008-07-11 Thread Eric Butera
On Thu, Jul 10, 2008 at 5:29 PM, Philip Thompson <[EMAIL PROTECTED]> wrote: > On Jul 10, 2008, at 3:35 PM, Omar Noppe wrote: > >> Is there any reason to pick a black background en white fonts in your >> editor (for example writability)? > > I think a black background is much easier on the eyes

Re: [PHP] Relocating and POSTing

2008-07-11 Thread Daniel Brown
On Fri, Jul 11, 2008 at 12:26 PM, Alex Chamberlain <[EMAIL PROTECTED]> wrote: > Ahh, but they are on different webservers That's why I mentioned cURL at the very beginning, if it had to be done as a POST request. > At the moment, I am just using a query string. How long is the limit of th

RE: [PHP] Relocating and POSTing

2008-07-11 Thread Alex Chamberlain
Ahh, but they are on different webservers At the moment, I am just using a query string. How long is the limit of the query string?? Alex > -Original Message- > From: tedd [mailto:[EMAIL PROTECTED] > Sent: 11 July 2008 17:12 > To: Alex Chamberlain; PHP General list > Subject: Re: [PH

Re: [PHP] Question regarding OO

2008-07-11 Thread Ted Wood
Corrected code example: (too early in the morning to think) In the above class definition, simply populate the $spaces array with instances of the ParkingSpace class. ~Ted -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question regarding OO

2008-07-11 Thread Ted Wood
Object-oriented programming, with it's "class" and "object" approach, is meant to model real life more closely than functional programming. In, a "parking space" is physically inside a "parking lot", but a parking space is not a subclass of a parking lot. It's not a variation or mini park

Re: [PHP] Relocating and POSTing

2008-07-11 Thread tedd
At 7:20 PM +0100 7/10/08, Alex Chamberlain wrote: I need to send a header('Location:') and send some data along with it - how would I do this?? Thanks, Alex Alext: Or you could just: ob_clean(); include('theNextScript.php'); exit(); The variable in your parent script will be "

Re: [PHP] Question regarding OO

2008-07-11 Thread Robert Cummings
On Fri, 2008-07-11 at 18:03 +0200, Yeti wrote: > > /* > > I have a question here regarding object orientation in PHP and any other > language. > > Let's start with some hypothetical code: > > */ > > // <--- 1st CLASS > > class ParkingLot { > > var size; // size in sq feet > > var max_numbe

[PHP] Question regarding OO

2008-07-11 Thread Yeti
size = $size; $this->max_number_of_cars = $max_cars; } }; cpark = new ParkingLot(5, 17); // <--- 2nd CLASS class ParkingSpace extends ParkingLot { var ps_ID; // ID of the parking space ( 1 .. max_number_of_cars ) var occupied_by; // ID of the car on the parking space var st_time; // Uni

Re: [PHP] scalable web gallery

2008-07-11 Thread tedd
At 10:41 AM -0400 7/10/08, Daniel Brown wrote: Still, I'd create 16 subdirectories under the images directory: 0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f. Then name the file as an MD5 hash of the image uploaded, and place it in the directory matching the first character of the new file name. Why not

RE: [PHP] OT - RE: [PHP] scalable web gallery

2008-07-11 Thread tedd
At 12:31 AM -0400 7/11/08, Robert Cummings wrote: On Thu, 2008-07-10 at 12:06 -0500, Boyd, Todd M. wrote: > tedd also sent me an e-mail that sparked a memory of mine... the b-trees, regardless of their efficiency, still assign each dir/file INode an identifying number. This number, obviously,

Re: [PHP] apache/vhosts wuestion...

2008-07-11 Thread Daniel Brown
On Fri, Jul 11, 2008 at 8:55 AM, bruce <[EMAIL PROTECTED]> wrote: > Hi.. > > I recognize that this might be off base!! I've got an apache/vhosts question > that i'm grappling with. I've got a linux/apache system, and I'm trying to > get multiple vhosts to work. If this is an appropriate place, I'll

Re: [PHP] date() and strtotime()

2008-07-11 Thread Bastien Koert
On Fri, Jul 11, 2008 at 9:03 AM, Fabian Frei <[EMAIL PROTECTED]> wrote: > Hello everybody, > > I hope you all have a nice day, mines not that good 'cause i have > encountered a strange problem. > > i have a few functions to work with dates. they are all very simple, a few > lines of code. > this f

Re: [PHP] apache/vhosts wuestion...

2008-07-11 Thread Wolf
bruce wrote: Hi.. I recognize that this might be off base!! I've got an apache/vhosts question that i'm grappling with. I've got a linux/apache system, and I'm trying to get multiple vhosts to work. If this is an appropriate place, I'll provide additional information on the issue. I've looked/r

[PHP] date() and strtotime()

2008-07-11 Thread Fabian Frei
Hello everybody, I hope you all have a nice day, mines not that good 'cause i have encountered a strange problem. i have a few functions to work with dates. they are all very simple, a few lines of code. this first one does just gives you the monday of the current week: function get_monday($da

[PHP] apache/vhosts wuestion...

2008-07-11 Thread bruce
Hi.. I recognize that this might be off base!! I've got an apache/vhosts question that i'm grappling with. I've got a linux/apache system, and I'm trying to get multiple vhosts to work. If this is an appropriate place, I'll provide additional information on the issue. I've looked/researched via t