Window size (not PHP?)

From: Date: Wed, 25 Jul 2001 23:27:12 +0000
Subject: Window size (not PHP?)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59638@lists.php.net to get a copy of this message
I must confess I think this can't be done with PHP because of it being server-side but hell you seem like a friendly and helpful enough bunch of guys anyway so I thought I'd ask you knowledgable ones. So what should I be using? Javascript? I want the size of the window, not the screen resolution. Also is it possible to change the page layout if the user resizes his window whilst looking at the page? Basically I want to create a table of photos from my database. And I want there to be enough columns to fill the viewable size. - seb -----Original Message----- From: Matthew Loff [mailto:matt@willetts.com] Sent: 25 July 2001 23:41 To: 'Seb Frost'; jeff@webdesigns1.com; 'PHP' Subject: RE: [PHP] Regular Expression Question http://www.php.net/manual/en/function.substr.php string substr (string string, int start [, int length]) Substr returns the portion of string specified by the start and length parameters. If start is positive, the returned string will start at the start'th position in string, counting from zero. For instance, in the string 'abcdef', the character at position 0 is 'a', the character at position 2 is 'c', and so forth. Examples: $rest = substr ("abcdef", 1); // returns "bcdef" $rest = substr ("abcdef", 1, 3); // returns "bcd" -----Original Message----- From: Seb Frost [mailto:seb@raceshoot.com] Sent: Wednesday, July 25, 2001 5:09 PM To: jeff@webdesigns1.com; PHP Subject: RE: [PHP] Regular Expression Question I hope my later message clarifys what I mean. - seb -----Original Message----- From: Jeff Oien [mailto:jeff@webdesigns1.com] Sent: 25 July 2001 22:05 To: PHP Subject: RE: [PHP] Regular Expression Question Aren't the trims just for white space? Jeff Oien > since you know exactly which 4 characters you want to keep you can use > a simple string trimming routine. I forget the name of the function > in php but it's there and it'll be something like > > trimstring($string,1,5); > > or something like that. No need for complicated regular expressions either > way. > > - seb > > -----Original Message----- > From: Jeff Oien [mailto:jeff@webdesigns1.com] > Sent: 25 July 2001 21:47 > To: PHP > Subject: [PHP] Regular Expression Question > > > I want to replace a string like this 1B335-2G with this B335. So for > all the > strings I want to remove the first character and the last three characters. > I'm not sure which replace function to use or how to go about it. > Thanks. Jeff Oien > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net To > contact the list administrators, e-mail: php-list-admin@lists.php.net > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#59638) next »