[PHP] Get value between 2 strings

2003-11-16 Thread Matt Palermo
Hello. I was wondering if anyone knew of a function to get the value between 2 strings. For example, lets say I have the following line: $line = "I want the value between word ONE and word TWO. Please return it..."; Now, I want to get everything between "ONE" and "TWO". In this example it sho

[PHP] [Newbie Guide] For the benefit of new members

2003-11-16 Thread tech
= This message is for the benefit of new subscribers and those new to PHP. Please feel free to add more points and send to the list. == 1. If you have any queries/problems about PHP try

Re: [PHP] Limiting repetitive file access

2003-11-16 Thread Andre Dubuc
On Sunday 16 November 2003 10:45 pm, David Otton wrote: > On Sat, 15 Nov 2003 23:52:31 -0500, you wrote: > >Recently, a 'user' attempted to access a restricted area of my site > >repetitively (spanning five hours) entering the same url repetitively > >[probably by script]. A massive log file was ge

[PHP] GD question

2003-11-16 Thread René Fournier
I want to write a function the creates a new image composited from a 3x3 tile. The idea is that the center tile will be a photo, and the surrounding eight images will constitute a border and shadow to the composited image. So... The eight "border/shadow" images will always be the same, but the

Re: [PHP] _SESSION, _POST, and _GET

2003-11-16 Thread David T-G
John, et al -- ...and then John W. Holmes said... % % David T-G wrote: % % >...and then John W. Holmes said... % >% % >% This whole question revolves around the reason you're even extract()ing % >% anything to begin with... Why not just use the $_SESSION, $_POST, etc % >% arrays where you nee

Re: [PHP] Unzip a file.

2003-11-16 Thread Vincent M.
Kim Steinhaug wrote: on phpclasses.org there is a ZIP class that does all you need to do. Havnt got the time to give you the url right now, but look there. All I found are classes to extract tar/gzip files: http://www.phpclasses.org/search.html?words=zip&go_search=1&restrict=&method=and&sort=score

Re: [PHP] _SESSION, _POST, and _GET

2003-11-16 Thread John W. Holmes
David T-G wrote: John, et al -- ...and then John W. Holmes said... % % David T-G wrote: % % >I have successfully used extract() to % >pull the data out of _SESSION each time; yay. % % This whole question revolves around the reason you're even extract()ing % anything to begin with... Why not j

Re: [PHP] Limiting repetitive file access

2003-11-16 Thread David Otton
On Sat, 15 Nov 2003 23:52:31 -0500, you wrote: >Recently, a 'user' attempted to access a restricted area of my site >repetitively (spanning five hours) entering the same url repetitively >[probably by script]. A massive log file was generated. I would like to ban >such behavior by limiting the

Re: [PHP] Explanation for php.net front page???

2003-11-16 Thread David T-G
Chris, et al -- ...and then Chris W. Parker said... % ... % -- % Don't like reformatting your Outlook replies? Now there's relief! There sure is. Uninstall Outhouse and use mutt, now available for win :-) HAND :-D -- David T-G * There is too much animal courage in (pla

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-16 Thread David T-G
Ivan -- ...and then Ivan Marenic said... % % Solved all my problems with PERL. Perl can be handy that way sometimes :-) Care to tell us what the fix was, though, so that 1) future surfers can know and 2) interested folks here might suggest how PHP can do it? % % Cheers. TIA & HTH & HAND :

Re: [PHP] Storing images for photo album?

2003-11-16 Thread David T-G
Leif -- ...and then Leif K-Brooks said... % % I'm writing a photo album in PHP. The idea is to convert user-uploaded % images to PNGs with unique IDs (1.png, 5.png, etc.), and cache them at OK. % certain sizes as needed. Now I'm running into an out-of-memory Right. % converting user imag

Re: [PHP] SSH and php

2003-11-16 Thread David T-G
Ryan -- ...and then Ryan A said... % % Hi guys, Hi! % Is it possible to run a SSH command from php? Sure; it's possible to run any command from php. It may not work all that well, though :-) % coming from a windows background I have no idea about shell/SSH and am % pretty lost. % Doing a q

Re: [PHP] _SESSION, _POST, and _GET

2003-11-16 Thread David T-G
John, et al -- ...and then John W. Holmes said... % % David T-G wrote: % % >I have successfully used extract() to % >pull the data out of _SESSION each time; yay. % % This whole question revolves around the reason you're even extract()ing % anything to begin with... Why not just use the $_SESS

Re: [PHP] Unzip a file.

2003-11-16 Thread David T-G
Vincent -- ...and then Vincent M. said... % % Hello, Hi! % % Is there an easy way to unzip a zipped file which contains files % (images), using a function from the zlib or any. Absolutely. I love pclzip from phpconcept.net. % To something like that: % % exec("unzip zipfile.zip -d /path/

[PHP] Storing images for photo album?

2003-11-16 Thread Leif K-Brooks
I'm writing a photo album in PHP. The idea is to convert user-uploaded images to PNGs with unique IDs (1.png, 5.png, etc.), and cache them at certain sizes as needed. Now I'm running into an out-of-memory converting user images to PNGs, and I'm not sure what to do: copy them in whatever format

Re: [PHP] Re: Limiting repetitive file access

2003-11-16 Thread Manuel Lemos
Hello, On 11/16/2003 04:32 PM, Andre Dubuc wrote: Sometimes I have that problem because some users of my site think they can use site sucking programs to get all its content. What was done is to have a script monitoring the Web server logs and if the same user of the same IP makes an excessive amo

[PHP] SSH and php

2003-11-16 Thread Ryan A
Hi guys, Is it possible to run a SSH command from php? coming from a windows background I have no idea about shell/SSH and am pretty lost. Doing a quick search on google for "SSH commands" and "SSH help" returned quite a lot of crap that really didnt help me learn. Now I know a few (very very few)

Re: [PHP] Help with exec syntax

2003-11-16 Thread Mark
John W. Holmes wrote: Mark wrote: The syntax I am using is this. system('cmd/c start notepad my.txt', $results); or exec('start notepad my.txt', $results); You shouldn't be using exe() or system() for this, use fopen() to open a file from within PHP for editing. Thanks for the reply. The fopen

Re: [PHP] strtotime bad logic or strtotime bug?

2003-11-16 Thread Eugene Lee
On Fri, Nov 14, 2003 at 08:53:41PM -0800, Gnik wrote: : : One of my servers required a PHP upgrade. Afterwards one of the PHP : projects stopped functioning. When it would run one section would : scroll endlessly. I can't figure out if it's a 'bug' or if it's bad : logic in the coding. Bad logic

Re: [PHP] Help with exec syntax

2003-11-16 Thread John W. Holmes
Mark wrote: The syntax I am using is this. system('cmd/c start notepad my.txt', $results); or exec('start notepad my.txt', $results); You shouldn't be using exe() or system() for this, use fopen() to open a file from within PHP for editing. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/

Re: [PHP] Include an encoder into PHP distribution?

2003-11-16 Thread Manuel Lemos
On 11/16/2003 09:50 PM, John Smith wrote: However, I think that an encoder should not be part of the default php distribution, because it would *force* people to use the encoder supplied and Also, it would seem that PHP was endorsing one product over another, and such things are never good. Y

Re: [PHP] Include an encoder into PHP distribution?

2003-11-16 Thread Manuel Lemos
Hello, On 11/16/2003 08:44 PM, Burhan Khalid wrote: IMHO, if you really want to start some political debate or push your warped ideas on everyone, you can do it on another list. I am not pushing anything. I am just explaining why GPL extensions and libraries will not be accepted by the PHP grou

[PHP] Help with exec syntax

2003-11-16 Thread Mark
Php 4.3.4 Win 2000 I am attempting to have the exec function open a file for editing. The file opens, however php hangs until I close the file that was orginally opened. I read in the php manual that states: "If you start a program using this function and want to leave it running in the backgro

Re: [PHP] _SESSION, _POST, and _GET

2003-11-16 Thread John W. Holmes
David T-G wrote: I have successfully used extract() to pull the data out of _SESSION each time; yay. This whole question revolves around the reason you're even extract()ing anything to begin with... Why not just use the $_SESSION, $_POST, etc arrays where you need them. There's no reason to extr

Re: [PHP] corrupted attachvent by base64_encode

2003-11-16 Thread Raditha Dissanayake
Hi, It's not a problem with the base64 encoding. When sending messages of this nature you have to create a certain set of headers. I am sorry i cannot remembers the exact RFC numbers involved (there are several) by 822 is a good place to start i think. Or if you like short cuts, you can send y

Re: [PHP] Good php WebMail Clients thru apache

2003-11-16 Thread David T-G
Jerry -- ...and then Jerry Alan Braga said... % % Any suggestions ? Squirrel is common, but I agree that, as far as webmail (ick) goes, IMP is excellent. HTH & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not suffici

[PHP] _SESSION, _POST, and _GET

2003-11-16 Thread David T-G
Hi, all -- I am storing some variables such as a password, email address, working dir, and so on in a session. I receive the password, for instance, via POST. I get a few vars via GET. I have successfully used extract() to pull the data out of _SESSION each time; yay. So now I wonder how I sho

[PHP] Re: Good php WebMail Clients thru apache

2003-11-16 Thread Al
"Jerry Alan Braga" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Any suggestions ? The best I've seen (by a long shot) is IMP, which is part of the open source Horde project. Product homepage is at: http://www.horde.org/imp/ Hope it helps, Al -- PHP General Mailing List (http:/

Re: [PHP] Include an encoder into PHP distribution?

2003-11-16 Thread David T-G
John, et al -- ...and then John Smith said... % % > I was not saying or implying that Zend controls PHP alone. In practice % > they have the "knife and the cheese" in their hands, meaning currently % > PHP programs depend on Zend Engine to run. Maybe when somebody develops % > real PHP compilers

Re: [PHP] Include an encoder into PHP distribution?

2003-11-16 Thread John Smith
> However, I think that an encoder > should not be part of the default php distribution, because it would > *force* people to use the encoder supplied and > Also, it would seem that PHP was endorsing one product over another, and > such things are never good. Yes. The problem that you are descr

[PHP] Good php WebMail Clients thru apache

2003-11-16 Thread Jerry Alan Braga
Any suggestions ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Moving to php

2003-11-16 Thread Jim Van Heule
> I'm seriously considering moving to php from a competing 3rd party > application. I have a few basic questions. > > 1. What is the predominate OS platform php runs on? Recommended? > 2. I'm currently well versed in Win 2000 & OS X. Are both "Well" supported? So far the consensus seems to say st

Re: [PHP] Using $_SERVER

2003-11-16 Thread Burhan Khalid
Gerard Samuel wrote: Whats your take on adding your own data in the $_SERVER array? For example, if I wanted to add a value to the $_SERVER array like -> $_SERVER['foo'] = 'bar'; Yes its possible, but Im looking for "legality" issues with this frame of thought. There are no "laws" against doing t

Re: [PHP] Include an encoder into PHP distribution?

2003-11-16 Thread Burhan Khalid
Manuel Lemos wrote, in reply to Chris Shiflett: IMHO, if you really want to start some political debate or push your warped ideas on everyone, you can do it on another list. I am not pushing anything. I am just explaining why GPL extensions and libraries will not be accepted by the PHP group.

Re: [PHP] giving variable value in URL problem

2003-11-16 Thread Burhan Khalid
Chris Shiflett wrote: --- Burak Delice <[EMAIL PROTECTED]> wrote: http://localhost/menu.php?status=0 php return [snip] if ($status==0) echo '"trying"; if (!$_GET['status']) { echo '"trying"; } Firstly, !$_GET['status'] means "if status is not equal to or greater than zero" -- which of

Re: [PHP] MySQL Connection Help

2003-11-16 Thread Burhan Khalid
Robb Kerr wrote: Ok, I feel like a complete bonehead because I can't seem to figure this thing out. But, I readily welcome someone making me feel worse by pointing out my simple mistake. I can't get DW to connect to a MySQL database on a new server with which I'm working. I've worked with other se

Re: [PHP] Set time zone

2003-11-16 Thread Burhan Khalid
Dave G wrote: GoLive Gurus, GoLive? This is PHP :P I've been hunting around the net and PHP online manual for a while, and I haven't found a clear description of how to make it so my PHP scripts return values for times and dates that are consistent with my time zone. http://www.php.net/pu

Re: [PHP] PEAR error

2003-11-16 Thread Burhan Khalid
Joao Andrade wrote: Hey people, I know there's a list for PEAR also, but it seem there's nobody there... in 2 days only two messages, so I'll post this here and if there's a better place for this message, you tell me, alright? That's the deal: I've just got into pear, looking for

[PHP] corrupted attachvent by base64_encode

2003-11-16 Thread Oleg Borzenkov
Hi, All! I have a problem with sending binary attachment with mail() function. To do so I use standart scheme: chunk_split(base64_encode(fread($f,filesize($filename. The system is FreeBSD4.7, Apache2, PHP 4.3.4 When the attachment is plain text file , it passes well. By when I use excell, zip

Re: [PHP] fgetcsv

2003-11-16 Thread Derek Ford
zhuravlev alexander wrote: Hello. I wonder if PHP has fgetcsv() function why doesn't PHP has fputcsv ? -- zhuravlev alexander u l s t u n o c ([EMAIL PROTECT

[PHP] PEAR error

2003-11-16 Thread Joao Andrade
Hey people, I know there's a list for PEAR also, but it seem there's nobody there... in 2 days only two messages, so I'll post this here and if there's a better place for this message, you tell me, alright? That's the deal: I've just got into pear, looking for a mail function wit

[PHP] fgetcsv

2003-11-16 Thread zhuravlev alexander
Hello. I wonder if PHP has fgetcsv() function why doesn't PHP has fputcsv ? -- zhuravlev alexander u l s t u n o c ([EMAIL PROTECTED]) -- PHP Gen

Re: [PHP] Sessions and AOL?

2003-11-16 Thread Andre Dubuc
On Sunday 16 November 2003 01:54 pm, R. Van Tassel wrote: > Hi everyone. I have a problem with a website that I don't understand. It > seems that people using AOL can't see certain sections of this website. > > It is a directory section where a drop-down menu exists, you select the > section you wa

[PHP] Sessions and AOL?

2003-11-16 Thread R. Van Tassel
Hi everyone. I have a problem with a website that I don't understand. It seems that people using AOL can't see certain sections of this website. It is a directory section where a drop-down menu exists, you select the section you want to see and the page reloads with the information. The only probl

Re: [PHP] Re: Limiting repetitive file access

2003-11-16 Thread Andre Dubuc
On Sunday 16 November 2003 06:40 am, Manuel Lemos wrote: > Hello, > > On 11/16/2003 02:52 AM, Andre Dubuc wrote: > > Recently, a 'user' attempted to access a restricted area of my site > > repetitively (spanning five hours) entering the same url repetitively > > [probably by script]. A massive lo

Re: [PHP] create dropdown menu from returned $result

2003-11-16 Thread PAUL FERRIE
I am trying to create a drop down menu to set varaible $tablrname Cheers paul "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > PAUL FERRIE wrote: > > > What am i overlooking? > > The part where you tell us what you're actually trying to achieve... > > > > include('

Re: [PHP] create dropdown menu from returned $result

2003-11-16 Thread John W. Holmes
PAUL FERRIE wrote: What am i overlooking? The part where you tell us what you're actually trying to achieve... "; echo "". $tb_names[$i]." "; echo $tb_names[$i] . ""; Why are you echoing data and displaying between and ... That's bad HTML. $i++; } echo ""; ?> When tested he

Re: [PHP] create dropdown menu from returned $result

2003-11-16 Thread Duncan
Currently you create 1 selectbox for each loop through the while loop (leaving aside that the is in and the outside the very same). By taking a quick look at it I recommend that you put the echo ""; line outside & above the while loop. ...Hendrik PAUL FERRIE wrote: What am i overlooking?

[PHP] create dropdown menu from returned $result

2003-11-16 Thread PAUL FERRIE
What am i overlooking? "; echo "". $tb_names[$i]." "; echo $tb_names[$i] . ""; $i++; } echo ""; ?> When tested heres what i get http://thor.ancilenetworks.co.uk/~pferrie/vinrev/adm/table_list.php There are 2 tables within the DB 'reviews', 'albums' Cheers Paul -- PHP Gener

[PHP] MySQL Connection Help

2003-11-16 Thread Robb Kerr
Ok, I feel like a complete bonehead because I can't seem to figure this thing out. But, I readily welcome someone making me feel worse by pointing out my simple mistake. I can't get DW to connect to a MySQL database on a new server with which I'm working. I've worked with other servers and haven't

Re: [PHP] Table statistics

2003-11-16 Thread John W. Holmes
Daniel Harik wrote: I have table with messages, and i have users table, the are linked via PK UserID -> UserID, what i need is to select Messages for current month and calculate top 5 posters list for current month. I have create following query but it's not complete: SELECT Handle, Screen_Name f

[PHP] Set time zone

2003-11-16 Thread Dave G
GoLive Gurus, I've been hunting around the net and PHP online manual for a while, and I haven't found a clear description of how to make it so my PHP scripts return values for times and dates that are consistent with my time zone. All the web pages I'm working on are intended for us

Re: [PHP] newbie stuck again

2003-11-16 Thread PAUL FERRIE
Cheers "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sunday 16 November 2003 23:17, PAUL FERRIE wrote: > > Please spend a little time to think up a descriptive and relevant subject > heading. "newbie stuck again" does nothing to inform people of what your > problem

Re: [PHP] newbie stuck again

2003-11-16 Thread Jason Wong
On Sunday 16 November 2003 23:17, PAUL FERRIE wrote: Please spend a little time to think up a descriptive and relevant subject heading. "newbie stuck again" does nothing to inform people of what your problem is. > Here's what i have done. i have downloaded a very simple database manager > from

Re: [PHP] newbie stuck again

2003-11-16 Thread PAUL FERRIE
Yeh cheers derek i dint think it would be something like that :P Can u ilabirate more on the $query structure? cheers Paul "Derek Ford" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > PAUL FERRIE wrote: > > >Here's what i have done. i have downloaded a very simple database manager

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-16 Thread Ivan Marenic
Solved all my problems with PERL. Cheers. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie stuck again

2003-11-16 Thread Derek Ford
PAUL FERRIE wrote: Here's what i have done. i have downloaded a very simple database manager from www.hotscripts.com. It allows me to edit, delete and add new information to the database. i have a couple of problems. 1. form field dont fill with all the data senback from the db to be edited, a

[PHP] newbie stuck again

2003-11-16 Thread PAUL FERRIE
Here's what i have done. i have downloaded a very simple database manager from www.hotscripts.com. It allows me to edit, delete and add new information to the database. i have a couple of problems. 1. form field dont fill with all the data senback from the db to be edited, as fars as i am awar

Re: [PHP] shell_exec with pipes

2003-11-16 Thread Jason Wong
On Thursday 13 November 2003 16:51, Mario Ohnewald wrote: [snip] > == > Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit... > AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int > AF_pre:

Re: [PHP] Explanation for php.net front page???

2003-11-16 Thread Jason Wong
On Friday 14 November 2003 01:27, Scott Fletcher wrote: > Thanks... Yep, using the Outlook QuoteFix and it work like a charm. I > noticed by default is by bottom-posting, so I checked the option to make it > be a top-posting option. Chris, I think you can scratch him off your list of converts :-

Re: [PHP] Re: Newbie scope revisited

2003-11-16 Thread Jason Wong
On Friday 14 November 2003 05:36, Matthew Morvant wrote: > > it. Still investigating I run phpinfo(), it turns out that > > register_globals > > > is set to ON (both places). However the server does not act this way. I > > searched for an htaccess file, which I belive (not sure) can override >

Re: [PHP] Re: Moving to php

2003-11-16 Thread DvDmanDT
Cool.. Weird.. I've used PHP since 4.1.0, on windows ME/Apache 1.3, using streams, sockets, w32api, gd, classes, printers and more, never ran into any other problems that w32api and bcompiler combined with Zend stuff.. :s -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com #

Re: [PHP] giving variable value in URL problem

2003-11-16 Thread Jason Wong
On Sunday 16 November 2003 13:31, Burak Delice wrote: Please do not top-post, it makes replying in a coherent fashion *much* harder. I've corrected it for you. > "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > --- Burak Delice <[EMAIL PROTECTED]> wrote: > > >

Re: [PHP] Re: Moving to php

2003-11-16 Thread Derek Ford
DvDmanDT wrote: Well, yes.. But chanses aren't all that big you'll find any bugs (at least not windows specific), unless you try the w32api extension or bcompiler combined with zend optimizer... I've ran into many. The ones that really take the cake are the streams bugs, which have been around

Re: [PHP] Re: Moving to php

2003-11-16 Thread DvDmanDT
Well, yes.. But chanses aren't all that big you'll find any bugs (at least not windows specific), unless you try the w32api extension or bcompiler combined with zend optimizer... -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com ## Please, if you are using

Re: [PHP] Re: Moving to php

2003-11-16 Thread Derek Ford
DvDmanDT wrote: PHP is 99% (if not 100%) backwards compitable... PHP is even stable on WinME, and on XP.. Lots of ppl use it on 2k as well... Works fine.. And fast (well, depending on your installation and configuration)... Oh, and about support.. PHP on windows accutually have it's own official l

Re: [PHP] File permissions on Windows, IIS

2003-11-16 Thread Jason Wong
On Saturday 15 November 2003 00:47, Chris Shiflett wrote: > I would recommend, however, taking the time to figure out exactly what > permissions are necessary and not grant anymore than that. While many > developers use "chmod 777" while trying to debug a problem, it is a very > bad idea to leave

[PHP] Re: Moving to php

2003-11-16 Thread DvDmanDT
PHP is 99% (if not 100%) backwards compitable... PHP is even stable on WinME, and on XP.. Lots of ppl use it on 2k as well... Works fine.. And fast (well, depending on your installation and configuration)... Oh, and about support.. PHP on windows accutually have it's own official list/newsgroup (ph

Re: [PHP] Random Function

2003-11-16 Thread Jason Wong
On Saturday 15 November 2003 02:38, Teren wrote: > Sorry, i copied a little extra stuff from console. This is what it is, > Anyways, it works fine if I put 0 in for 1 on line 9 where it uses the > rand(), but it include 0 and I can't have 0. Is there some way to fix that? > If you need to see the d

Re: [PHP] upload file size

2003-11-16 Thread Jason Wong
On Saturday 15 November 2003 02:40, Johnson, Kirk wrote: > > this could really kill my bandwidth. is there a way to check > > the file size > > without fully uploading the file? > > Although it has been called an "urban legend" :), you could try the old > MAX_FILE_SIZE trick. I think you may be r

Re: [PHP] Moving to php

2003-11-16 Thread Gareth Williams
hi there, I suppose that technically PHP is built to run on Linux, but does work on many other platforms. I do all of my development on OS X and have never had any problems, I've also had it running on Linux and FreeBSD without any trouble. I think there is no problem with Win2000, but I do

[PHP] Moving to php

2003-11-16 Thread Jim Van Heule
I'm seriously considering moving to php from a competing 3rd party application. I have a few basic questions. 1. What is the predominate OS platform php runs on? Recommended? 2. I'm currently well versed in Win 2000 & OS X. Are both "Well" supported? 3. When php comes out with a new major versio

Re: [PHP] Unzip a file.

2003-11-16 Thread Kim Steinhaug
on phpclasses.org there is a ZIP class that does all you need to do. Havnt got the time to give you the url right now, but look there. -- Kim Steinhaug --- There are 10 types of people when it comes to binary numbers: those who understan

[PHP] Re: Table statistics

2003-11-16 Thread Kim Steinhaug
By the way, while I write the message I forgot to correct the "2 dimentional array" to "array"... Context is everything, :) -- Kim Steinhaug --- There are 10 types of people when it comes to binary numbers: those who understand them, an

[PHP] Re: Table statistics

2003-11-16 Thread Kim Steinhaug
Well, Im about to create some statistics systems myself and havnt really starter thinking of the "optimal" way of doing such calculations so this thread will be much interesting. I would suggest the following : As you have already pulled out all the data from that month, we need to prosess this.

[PHP] Table statistics

2003-11-16 Thread Daniel Harik
Hello, I have table with messages, and i have users table, the are linked via PK UserID -> UserID, what i need is to select Messages for current month and calculate top 5 posters list for current month. I have create following query but it's not complete: SELECT Handle, Screen_Name from MBoard

Re: [PHP] Re: Alternet row colors

2003-11-16 Thread Kim Steinhaug
Thanks for this tip, i used to use this when I programmed Perl. But I didnt know it worked here aswell, hehe. Absolutely true that this is much better code practise, and it eases up the lines in the code. Great tip! -- Kim Steinhaug --

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-16 Thread Arne Rusek
Hello. On Sat, Nov 15, 2003 at 05:31:01PM -0800, Chris Shiflett wrote: > That does seem strange. I glanced at this page of yours: > > > http://zonk.matfyz.cz/php_post_problem > > And I saw this: > > REQUEST_METHOD => GET > So, why was the request a GET request rather than a POST request? There

[PHP] Re: Limiting repetitive file access

2003-11-16 Thread Manuel Lemos
Hello, On 11/16/2003 02:52 AM, Andre Dubuc wrote: Recently, a 'user' attempted to access a restricted area of my site repetitively (spanning five hours) entering the same url repetitively [probably by script]. A massive log file was generated. I would like to ban such behavior by limiting the n

Re: [PHP] Include an encoder into PHP distribution?

2003-11-16 Thread John Smith
> I was not saying or implying that Zend controls PHP alone. In practice > they have the "knife and the cheese" in their hands, meaning currently > PHP programs depend on Zend Engine to run. Maybe when somebody develops > real PHP compilers things will be different. I know that you were not implyi

[PHP] Feature or Bug: Omission of closing PHP tag...

2003-11-16 Thread Robert Cummings
The word from internals is that this is a feature. Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework