Re: [PHP] $i++, incrementing by 10's

2004-09-16 Thread Andrew Kreps
On Fri, 17 Sep 2004 14:07:08 +0800, Louie Miranda <[EMAIL PROTECTED]> wrote: > is it possible to increment by 10's? or 20's? > > i have this piece of code, but it selects from 1 to 1000 and counts by 1's. > for($i = 1; $i <= 1000; $i++) > Yep, just change that last part from $i++ to $i += 10, or

[PHP] $i++, incrementing by 10's

2004-09-16 Thread Louie Miranda
is it possible to increment by 10's? or 20's? i have this piece of code, but it selects from 1 to 1000 and counts by 1's. for($i = 1; $i <= 1000; $i++) -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: A native Windows binding for PHP - released

2004-09-16 Thread Manuel Lemos
Hello, On 09/16/2004 09:01 PM, Rubem Pechansky wrote: I have designed and successfully prototyped a native Windows binding for PHP. This binding is very lightweight and it is already capable of doing dialogs, controls, and a lot more with a few dozen lines of code. PHP can thus be used as a tool fo

[PHP] Auth class & /usr/share/pear

2004-09-16 Thread Pahlevanzadeh Mohsen
Deras,I have deleted /usr/share/pear/* Also i have downloaded PEAR.1.3.5.Then i copy content of PEAR.1.3.5 directory to /usr/share/pear But now i recv following message: Warning: _factory(Auth/DB.php): failed to open stream: No such file or directory in /var/www/html/forum/Auth/Auth.php on line 218

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread Jack Gates
This is just to say that I never sent that to the list. I sent it privately. So for you to send this to the list to say that I probably should not was not good either. Because now the whole list has been bothered instead of just one. On Thursday 16 September 2004 03:15 pm, Kristopher Spencer

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread Jack Gates
> Out of respect for everyone on the list, it is probably best to not use > this mailing list as a sales tool. Many of us here on the list are in > the same business of developing and hosting. It is wise to assume > everyone on the list is in the same business (even if it is untrue). > Just kno

[PHP] Re: search query

2004-09-16 Thread David Robley
On Thu, 16 Sep 2004 16:47, you wrote: > Thank you for response > and what if user choose for 300.000 than the query should bee > SELECT fields FROM table WHERE something BETWEEN 250.000 AND 300.000 > But I don'n know what the user will choose do I need to make a if statement > If($prijsklasse=='2')

Re: [PHP] Secret Codes in Spam and PHP

2004-09-16 Thread Jason Paschal
didn't realize how much i've been waiting for this post until you sent it. of course, the replies are correct. they're avoiding the spam filters. however, i also read 'thongs' instead of 'thugs'. good to know you're not alone. however, might be an interesting project. just to see what you com

[PHP] Host for Mod PHP5

2004-09-16 Thread php-list
Hello everyone, I know this is going to be tough but I need a hosting company that supports PHP5, has unlimited disk space and a good amount of bandwidth with a decently fast connection for a decent price. I realize that this might be rare, but is anyone offering such a package like this anywhe

Re: [PHP] Novice PHP Variable/Link Question

2004-09-16 Thread revDAVE
On 9/16/04 3:01 PM, "Greg Donald" <[EMAIL PROTECTED]> wrote: > > > > It worked great - thanks a lot. -- Thanks - RevDave [EMAIL PROTECTED] [db-lists] Check out some great Domain Names at: http://www.domains4days.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Secret Codes in Spam and PHP

2004-09-16 Thread Robert Cummings
On Thu, 2004-09-16 at 18:33, Matthew Sims wrote: > I'm immune from assassins. > > Gunslingers, hatchet men and thugs, on the other hand, still present a > problem. When I first read this I read "thongs" instead of "thugs". It still made sense though :) Cheers, Rob. -- .-

RE: [PHP] Secret Codes in Spam and PHP

2004-09-16 Thread Dustin Wish with INDCO Networks
We should make that the new X-files movie. "When good mail goes SPAM!" Dustin Wish System Engineer & Programmer INDCO Networks Pres. OSSRI Pres. WTA Arkansas "Do not go where the path may lead, go instead where there is no path and leave a

Re: [PHP] Secret Codes in Spam and PHP

2004-09-16 Thread Matthew Sims
>> As many of you may have noticed, A friend and I have noticed the odd >> text at the bottom of spam. My friend once stated "What if this is some >> secret code.. they send it to everyone to hide that it is code.. but the >> person it is intended for knows how to decipher?" Hmm.. interesting. > >

Re: [PHP] Secret Codes in Spam and PHP

2004-09-16 Thread Jennifer Goodie
-- Original message from Kristopher Spencer-Yates : -- > As many of you may have noticed, A friend and I have noticed the odd > text at the bottom of spam. My friend once stated "What if this is some > secret code.. they send it to everyone to hide that it is code.. bu

Re: [PHP] Secret Codes in Spam and PHP

2004-09-16 Thread Jason Wong
On Friday 17 September 2004 04:14, Kristopher Spencer-Yates wrote: > As many of you may have noticed, A friend and I have noticed the odd > text at the bottom of spam. My friend once stated "What if this is some > secret code.. they send it to everyone to hide that it is code.. but the > person it

Re: [PHP] How can I have a PHP-CLI script which uses stdin open another PHP-CLI that uses stdin.....

2004-09-16 Thread Don Myers
Well that certainly runs them one after the other but it doesn't stop for text input. It Just stops all together? Filename: tester.php #!/usr/local/bin/php -q Filename: hello.php #!/usr/local/bin/php -q Is my input function no good? Don Myers on 9/16/04 5:39 PM, Greg Donald at [EMAIL PROTEC

Re: [PHP] Novice PHP Variable/Link Question

2004-09-16 Thread Greg Donald
On Thu, 16 Sep 2004 14:54:34 -0700, revDAVE <[EMAIL PROTECTED]> wrote: > How can I use a PHP variable as the destination for a link? > > > go here > > With var...? How do I write this? > > go here -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing

[PHP] Novice PHP Variable/Link Question

2004-09-16 Thread revDAVE
How can I use a PHP variable as the destination for a link? go here With var...? How do I write this? go here ?> -- Thanks - RevDave [EMAIL PROTECTED] [db-lists] Check out some great Domain Names at: http://www.domains4days.com -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] How can I have a PHP-CLI script which uses stdin open another PHP-CLI that uses stdin.....

2004-09-16 Thread Greg Donald
On Thu, 16 Sep 2004 16:40:13 -0400, Don Myers <[EMAIL PROTECTED]> wrote: > All, I have a PHP Command Line Interface (CLI) script which uses stdin and > stdout for reading and writing to/from the terminal. Now I need to have > that script open another PHP-CLI script which ALSO needs to uses stdin a

Re: [PHP] checking multiple URL parameters

2004-09-16 Thread Andrew Kreps
On Thu, 16 Sep 2004 16:25:31 -0500, Greg Donald <[EMAIL PROTECTED]> wrote: > On Thu, 16 Sep 2004 13:31:08 -0700, Andrew Kreps <[EMAIL PROTECTED]> wrote: > > PHP can be run from the command line, in which case the GET and POST > > arrays wouldn't exist. > > $_GET and $_POST exist in CLI php, they a

Re: [PHP] checking multiple URL parameters

2004-09-16 Thread Greg Donald
On Thu, 16 Sep 2004 13:31:08 -0700, Andrew Kreps <[EMAIL PROTECTED]> wrote: > PHP can be run from the command line, in which case the GET and POST > arrays wouldn't exist. $_GET and $_POST exist in CLI php, they are just empty initially: #!/usr/bin/php Array ( ) Array ( ) Array ( [x] => 1 )

Re: [PHP] checking multiple URL parameters

2004-09-16 Thread John Holmes
From: "Gryffyn, Trevor" <[EMAIL PROTECTED]> Regardless of how this script is called, is there, or is there not a function that will take that string and pull the values after the "?" and toss them into an associative array? Yes, parse_url() to get the query string and then parse_str() to put it int

RE: [PHP] checking multiple URL parameters

2004-09-16 Thread Gryffyn, Trevor
Ahh.. Andrew has read my confused mind. Yeah, that's what I was getting at. Solution Accepted or something. :) Ok, I'm going to go home now before I cause any more problems. -TG > -Original Message- > From: Andrew Kreps [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 16, 2004 4:

Re: [PHP] checking multiple URL parameters

2004-09-16 Thread John Holmes
From: "Andrew Kreps" <[EMAIL PROTECTED]> Also, imagine if you had a database of URL's that you wanted to dissect for it's component information? That being said, I'm not aware of a PHP function that performs this operation for you. parse_url() and parse_str() ---John Holmes... -- PHP General Maili

[PHP] How can I have a PHP-CLI script which uses stdin open another PHP-CLI that uses stdin.....

2004-09-16 Thread Don Myers
All, I have a PHP Command Line Interface (CLI) script which uses stdin and stdout for reading and writing to/from the terminal. Now I need to have that script open another PHP-CLI script which ALSO needs to uses stdin and stdout for reading and writing to/from the terminal. This script may in turn

RE: [PHP] checking multiple URL parameters

2004-09-16 Thread Gryffyn, Trevor
> This makes absolutely no sense to me. What do you mean by > submitted? How > would a PHP script be executed at all if the browser never sends a > request? Hah.. I should just let this all go, go home, get some sleep, and start confusing people again tomorrow, but I want to clarify a little bit.

RE: [PHP] MySQL query for average records per day OT

2004-09-16 Thread Jay Blanchard
[snip] mysql> desc dates; +--+-+--+-+-+---+ | Field| Type| Null | Key | Default | Extra | +--+-+--+-+-+---+ | the_date | date| YES | | NULL| | | number | int(11) | | | 0 | | +--

Re: [PHP] Secret Codes in Spam and PHP

2004-09-16 Thread John Holmes
From: "Kristopher Spencer-Yates" <[EMAIL PROTECTED]> I was wondering if anyone else has wondered the same thing about the wierd text at the bottom of a lot of the spam, and if anyone has ever used PHP to create any cipher tools in an attempt to crack the following: The text is simply there to get

Re: [PHP] checking multiple URL parameters

2004-09-16 Thread Andrew Kreps
On Thu, 16 Sep 2004 12:47:26 -0700 (PDT), Chris Shiflett <[EMAIL PROTECTED]> wrote: > > This makes absolutely no sense to me. What do you mean by submitted? How > would a PHP script be executed at all if the browser never sends a > request? > PHP can be run from the command line, in which case t

Re: [PHP] MySQL query for average records per day

2004-09-16 Thread John Holmes
From: "Greg Donald" <[EMAIL PROTECTED]> mysql> select the_date, count(number), avg(number) from dates group by the_date; ++---+-+ | the_date | count(number) | avg(number) | ++---+-+ | 2004-01-01 | 3 | 2.

Re: [PHP] MySQL query for average records per day

2004-09-16 Thread Jeff Oien
John Holmes wrote: From: "Greg Donald" <[EMAIL PROTECTED]> You can't get the average and a count in the same query Sure you can. mysql> select count(number), avg(number) from numbers; Depends how you interpret his request, I guess. I took it as a request for the count of records per day and then

[PHP] Secret Codes in Spam and PHP

2004-09-16 Thread Kristopher Spencer-Yates
As many of you may have noticed, A friend and I have noticed the odd text at the bottom of spam. My friend once stated "What if this is some secret code.. they send it to everyone to hide that it is code.. but the person it is intended for knows how to decipher?" Hmm.. interesting. So that

Re: [PHP] MySQL query for average records per day

2004-09-16 Thread Greg Donald
On Thu, 16 Sep 2004 16:08:45 -0400, John Holmes <[EMAIL PROTECTED]> wrote: > Depends how you interpret his request, I guess. I took it as a request for > the count of records per day and then the average of those counts. > > So, if you had > > D1 > D1 > D1 > D1 > D2 > D2 > D3 > > The count would

Re: [PHP] MySQL query for average records per day

2004-09-16 Thread John Holmes
From: "Greg Donald" <[EMAIL PROTECTED]> You can't get the average and a count in the same query Sure you can. mysql> select count(number), avg(number) from numbers; Depends how you interpret his request, I guess. I took it as a request for the count of records per day and then the average of those

RE: [PHP] MySQL query for average records per day OT

2004-09-16 Thread Jay Blanchard
[snip] > You can't get the average and a count in the same query Sure you can. mysql> select count(number), avg(number) from numbers; +---+-+ | count(number) | avg(number) | +---+-+ |18 | 2.3889 | +---+-+ 1 r

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread John Nichel
John Holmes wrote: From: "John Nichel" <[EMAIL PROTECTED]> Just so we're clear, and all on the same page, can you give us that time in GMT? I mean, we don't want to have an unorganized laugh-off again, now do we? Man... why do you have to be such as ass John? Can't you just ignore people...err

AW: [PHP] checking multiple URL parameters

2004-09-16 Thread Mario Micklisch
> I know you could write a short script that would do it, but I > think I saw a built-in function that did it as well. I think parse_str is what you're looking for: http://www.php.net/manual/en/function.parse-str.php i.e. parse_str(getenv('QUERY_STRING')) -- Mario > -Ursprünglic

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread Greg Donald
> >http://www.morningstarcom.net/hosting.php Need sunglasses to view the t50.com graphics. Heh. -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] checking multiple URL parameters

2004-09-16 Thread Chris Shiflett
--- "Gryffyn, Trevor" <[EMAIL PROTECTED]> wrote: > You're right though, $_GET and $_POST and such are already an > associative array. I actually think I was thinking of a function > that parsed a URL itself, regardless of whether it was submitted > or not. This makes absolutely no sense to me. Wha

Re: [PHP] MySQL query for average records per day

2004-09-16 Thread Greg Donald
On Thu, 16 Sep 2004 15:15:01 -0400, John Holmes <[EMAIL PROTECTED]> wrote: > You can't get the average and a count in the same query Sure you can. > desc numbers; ++-+--+-+-+---+ | Field | Type| Null | Key | Default | Extra | ++-+--+---

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread John Holmes
From: "John Nichel" <[EMAIL PROTECTED]> Just so we're clear, and all on the same page, can you give us that time in GMT? I mean, we don't want to have an unorganized laugh-off again, now do we? Man... why do you have to be such as ass John? Can't you just ignore people...err.. wait.. wrong disc

RE: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread Jay Blanchard
[snip] Just so we're clear, and all on the same page, can you give us that time in GMT? I mean, we don't want to have an unorganized laugh-off again, now do we? [/snip] -1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread John Nichel
John Holmes wrote: From: "Kristopher Spencer-Yates" <[EMAIL PROTECTED]> Please join in laughing at me because I have been slinging PHP since early 99 and should have caught that immediately!! I was already planning to do a lot of laughing at you tonight, anyhow, from around 2100 - 2130, so, I ho

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread John Holmes
From: "Kristopher Spencer-Yates" <[EMAIL PROTECTED]> Please join in laughing at me because I have been slinging PHP since early 99 and should have caught that immediately!! I was already planning to do a lot of laughing at you tonight, anyhow, from around 2100 - 2130, so, I hope it helps and ever

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread Kristopher Spencer-Yates
John H & John N, Thanks again. I am sure that is it, without a doubt. Laughing at myself - ridiculous oversight on my part! :) LMAO cant beleive I didnt see that earlier and posted to the list. Please join in laughing at me because I have been slinging PHP since early 99 and should have cau

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread Kristopher Spencer-Yates
Jack Gates wrote: I would do this in PHP5 but the admin won't upgrade, so I am stuck in PHP4 land w/ this project I am on. Thanks for any advise, We are setting up another web hosting server and we are planning to install PHP5. You might consider moving your site to our servers. http://www

RE: [PHP] MySQL query for average records per day

2004-09-16 Thread Jay Blanchard
[snip] I have a database with a date field in this format 20041016 I'd like to count how many records were made on each day (except today) and average them. Can I do this in one query or will I need to do some more PHP stuff after I get some results? Thanks. Bare bones so far: $sql = "select dat

Re: [PHP] MySQL query for average records per day

2004-09-16 Thread John Holmes
From: "Jeff Oien" <[EMAIL PROTECTED]> I have a database with a date field in this format 20041016 I'd like to count how many records were made on each day (except today) and average them. Can I do this in one query or will I need to do some more PHP stuff after I get some results? Thanks. Bare b

RE: [PHP] MySQL query for average records per day

2004-09-16 Thread Gryffyn, Trevor
Select date1,count(date1) group by date1 where date1 <> '$today' That'll get you the count of how many records were done on each day (excluding today). I don't know what you're trying to average, but you can probably figure it out from there. -TG > -Original Message- > From: Jeff Oien [

RE: [PHP] checking multiple URL parameters

2004-09-16 Thread Gryffyn, Trevor
You're right though, $_GET and $_POST and such are already an associative array. I actually think I was thinking of a function that parsed a URL itself, regardless of whether it was submitted or not. I'm all kinds of mixed up today, so I apologize for being kind of scrambled in the brain. Is the

[PHP] MySQL query for average records per day

2004-09-16 Thread Jeff Oien
I have a database with a date field in this format 20041016 I'd like to count how many records were made on each day (except today) and average them. Can I do this in one query or will I need to do some more PHP stuff after I get some results? Thanks. Bare bones so far: $sql = "select date1 from

Re: [PHP] split behaviour differences in perl and php

2004-09-16 Thread Matthew Sims
> * Thus wrote Sandip Bhattacharya: >> This stumped me badly in my present project. Is this a bug or a feature >> in >> PHP? I am trying to split a string into two, where only one half (and >> the >> delimiter) is present. >> >> >> IN PERL >> == >> [EMAIL PROTECTED

Re: [PHP] syntax questoin

2004-09-16 Thread John Nichel
Victor C. wrote: Hi, I just started with PHP. (I used to work on ASP a lot) What does the syntax ".=" do? i see a line of code that says $Msg .= "Test is complete" I'm thinking it means concatenate $Msg with "Test is complete" and then store the new string into $Msg Am I right? Thanks. It does co

Re: [PHP] syntax questoin

2004-09-16 Thread Matt M.
> $Msg .= "Test is complete" > > I'm thinking it means concatenate $Msg with "Test is complete" and then > store the new string into $Msg > > Am I right? you are correct, same as: $Msg = $Msg."Test is complete" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

RE: [PHP] syntax questoin

2004-09-16 Thread Jay Blanchard
[snip] $Msg .= "Test is complete" I'm thinking it means concatenate $Msg with "Test is complete" and then store the new string into $Msg Am I right? [/snip] Yes. You might see $Msg = (no concatenator) somewhere above it in the code...we code long SQL statements and things like e-mail bodies usin

[PHP] syntax questoin

2004-09-16 Thread Victor C.
Hi, I just started with PHP. (I used to work on ASP a lot) What does the syntax ".=" do? i see a line of code that says $Msg .= "Test is complete" I'm thinking it means concatenate $Msg with "Test is complete" and then store the new string into $Msg Am I right? Thanks. -- PHP General Mail

Re: [PHP] checking multiple URL parameters

2004-09-16 Thread Chris Shiflett
--- Andrew Kreps <[EMAIL PROTECTED]> wrote: > --- Trevor Gryffyn <[EMAIL PROTECTED]> wrote: > > I could have sworn that there was a function that dropped ALL > > GET values into an associative array. Kind of the inverse of > > "http_build_query". > > I believe you're thinking of import_request_var

RE: [PHP] checking multiple URL parameters

2004-09-16 Thread Gryffyn, Trevor
That's it! Thanks! Beautiful! :) Worth noting is the "extract()" function mentioned at the bottom of that page too, used for importing any array into the global space. Thank you very much, Andrew. I knew I had seen that somewhere. -TG > -Original Message- > From: Andrew Kreps [mailt

Re: [PHP] checking multiple URL parameters

2004-09-16 Thread Andrew Kreps
On Thu, 16 Sep 2004 11:15:13 -0400, Gryffyn, Trevor <[EMAIL PROTECTED]> wrote: > I could have sworn that there was a function that dropped ALL GET values > into an associative array. Kind of the inverse of "http_build_query". > I believe you're thinking of import_request_variables (). http://us2.

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread John Nichel
Kristopher Spencer-Yates wrote: //PHP4 $dir_to_scan = "website.com/htdocs"; $dir_handle = opendir($dir_to_scan); while($filename = readdir($dir_handle)){ if(is_dir($filename)){ $files_in_scan[] = $filename; } else{ echo"$filename is not a directory.\n"; }

[PHP] Problems with internationalization

2004-09-16 Thread Aaron Gould
I am having an issue with 'setlocale'. I have created a proper messages.po (and compiled .mo) file in the following directory: $_SERVER['DOCUMENT_ROOT']/locale/fr_FR/LC_MESSAGES There are only two languages -- English and French. Here's the snippit of code that handles the langage change. I

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread John Holmes
- Original Message - From: "Kristopher Spencer-Yates" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 16, 2004 12:55 PM Subject: [PHP] PHP4 readdir is_dir working incorrectly? //PHP4 $dir_to_scan = "website.com/htdocs"; $dir_handle = opendir($dir_to_scan); while($fi

[PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread Kristopher Spencer-Yates
//PHP4 $dir_to_scan = "website.com/htdocs"; $dir_handle = opendir($dir_to_scan); while($filename = readdir($dir_handle)){ if(is_dir($filename)){ $files_in_scan[] = $filename; } else{ echo"$filename is not a directory.\n"; } } sort($files_in_scan);

RE: [PHP] PHP accelerators

2004-09-16 Thread Dan Joseph
Hi, > http://www.php-accelerator.co.uk/ > > http://pecl.php.net/package-info.php?package=APC > > http://turck-mmcache.sourceforge.net/ Oh wow, I had no idea. -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP accelerators

2004-09-16 Thread Brad Pauly
On Thu, 16 Sep 2004 12:08:50 -0400, Dan Joseph <[EMAIL PROTECTED]> wrote: > > There are others? http://www.php-accelerator.co.uk/ http://pecl.php.net/package-info.php?package=APC http://turck-mmcache.sourceforge.net/ - Brad -- PHP General Mailing List (http://www.php.net/) To unsubsc

RE: [PHP] PHP accelerators

2004-09-16 Thread Dan Joseph
Hi, > Besides Zend, has anyone successfully used and know of any PHP > accelerators > that work with PHP 5.x? There are others? -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] disabling php info in http headers

2004-09-16 Thread Chris Shiflett
--- Merlin <[EMAIL PROTECTED]> wrote: > I am wondering how to disable the php info inside the response > header info. This page discusses that sort of thing: http://www.php.net/manual/security.hiding.php Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reill

Re: [PHP] problems with different results on count() and select

2004-09-16 Thread Chris Shiflett
--- Merlin <[EMAIL PROTECTED]> wrote: > I am having difficulties to order user into a ranking table. In > the listing of the users I use a select statement, where I order > after points and registration date. Then I print out thre results > counting the rows. 1,2,3... > > SELECT > u.user_nam

Re: [PHP] Re: mysql_connect does not connect

2004-09-16 Thread John Nichel
Jason Davidson wrote: woah, full functionality.. it has will still connect, at least, it will still connect for me. Where the functionality is missing, im not sure. But sinse the error is cant connect to localhost, i would say that it strying to connect to localhost, and not being allowed. The

Re: [PHP] mysql_connect does not connect

2004-09-16 Thread Jason Davidson
i am in total agreeance of this post. Sinse the 'flame' war is primarily between me and everyone else, especially sam hobbes, (not the first time either), no more contributiuons to this thread from me. I hope it gets resolved, and i hope it gets posted as much so others can search the archive of

RE: [PHP] checking multiple URL parameters

2004-09-16 Thread Gryffyn, Trevor
I could have sworn that there was a function that dropped ALL GET values into an associative array. Kind of the inverse of "http_build_query". At any rate, you can keep doing (isset($_REQUEST['mov']) AND isset($_REQUEST['year'])) and such. Is that your question? How do you do AND and OR operatio

[PHP] Re: iguanahost - anyone else being plagued?

2004-09-16 Thread Dennis Gearon
Or better yet, the mail list could be reconfigured to match every other mail list on the web, so that sender to the list doesn't get these. Nick Wilson wrote: Anyone else getting these infuriating italian messages about some muppet that doesnt exist? 'desintione non existente'? I've written to [E

Re: [PHP] Re: mysql_connect does not connect

2004-09-16 Thread Jason Davidson
woah, full functionality.. it has will still connect, at least, it will still connect for me. Where the functionality is missing, im not sure. But sinse the error is cant connect to localhost, i would say that it strying to connect to localhost, and not being allowed. That said, im fully open

Re: [PHP] download pdf using php script

2004-09-16 Thread Tom Rogers
Hi, Thursday, September 16, 2004, 4:51:51 PM, you wrote: a> Hello PHP Users, a> I have files (that protected from direct download) and I put it a> outside public_html/ directory (outside web server directory). a> and the people from outside could access the file by typing: a> www.myweb.com/downl

Re: [PHP] mysql_connect does not connect

2004-09-16 Thread John Nichel
Chris Dowell wrote: All this is irrelevant; while you're still trying to use MySQL 5 with mysql_connect() instead of mysqli_connect(), it WILL NEVER WORK Sort that out first before you start worrying about firewalls - you can't test the firewall if you can't ever have a successful test case. Ch

RE: [PHP] split behaviour differences in perl and php

2004-09-16 Thread Andrew Martinez
PHP's string manipulation functions (such as split()) are not guaranteed to behave exactly like in PERL. The functions that are prefixed by 'preg_' are (PERL REG (EX)) guaranteed to some extent and well documented where preg_ functions are not PERL compliant. So, its not a bug, its just PHP being

Re: [PHP] Splitting 12345 -> 1,2,3,4,5

2004-09-16 Thread Greg Beaver
Martin Holm wrote: Michael Mao wrote: Thanks John. Found what I'm looking for: Function str_split() to make it php4 compatible you can use this function: | if (!function_exists('str_split')) { function str_split ($str, $size = 1) { $arr = array(); for ($i = 0 ; $i < strlen($str) ; $i +=

[PHP] PHP accelerators

2004-09-16 Thread Don
Hi, Besides Zend, has anyone successfully used and know of any PHP accelerators that work with PHP 5.x? Thanks, Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] split behaviour differences in perl and php

2004-09-16 Thread Curt Zirzow
* Thus wrote Sandip Bhattacharya: > This stumped me badly in my present project. Is this a bug or a feature in > PHP? I am trying to split a string into two, where only one half (and the > delimiter) is present. > > > IN PERL > == > [EMAIL PROTECTED] ~]$ cat s1.p

Re: [PHP] find null character in php

2004-09-16 Thread Curt Zirzow
* Thus wrote T UmaShankari: > > Hello, > > I am having one string variable which has the value fetched from the > mysql table. Is it possible to find '\0' character in that string ? http://php.net/strstr http://php.net/strpos strstr($nulledstring, "\0"); strpos($nulledstring, "\0"); Curt --

Re: [PHP] Re: mysql_connect does not connect

2004-09-16 Thread Curt Zirzow
* Thus wrote Sam Hobbs: > "Janbro" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi I connect to a MySQL 4.1 with the following String: > > > > > > if > > ($db_verbin=mysqli_connect("$mysql_host","$mysql_user","$mysql_passw","$DB_n > > ame")) > > > > watch the i in mysqli_conne

[PHP] PHP5.0.1 with MySql4.0.2

2004-09-16 Thread yusamv
#For PHP5.0.1 with Apavhe2.050 with Windows XP Home eddition S. Pack2 as a SAPI module. #In Apache config file httpd add following: AddType application/x-httpd-php .php LoadModule php5_module c:/php/php5apache2.dll PHPIniDir = "C:/php" #Then go to control panel, Prformance and Maintenance, System,

[PHP] PHP5.0.1 with MySql4.0.2

2004-09-16 Thread yusamv
#For PHP5.0.1 with Apavhe2.050 with Windows XP Home eddition S. Pack2 as a SAPI module. #In Apache config file httpd add following: AddType application/x-httpd-php .php LoadModule php5_module c:/php/php5apache2.dll PHPIniDir = "C:/php" #Then go to control panel, Prformance and Maintenance, System,

Re: [PHP] File Download Problems

2004-09-16 Thread Marek Kilimajer
John Holmes wrote: From: "PHP Junkie" <[EMAIL PROTECTED]> As my link to the download file, I changed it to And changed the code in the download file to How are you validating $F and ensuring it's not a path to any file on your server? imsafm_user_dl.php?F=/home/path/to/secret/file.txt It's a F

Re: [PHP] File Download Problems

2004-09-16 Thread John Holmes
From: "PHP Junkie" <[EMAIL PROTECTED]> As my link to the download file, I changed it to And changed the code in the download file to How are you validating $F and ensuring it's not a path to any file on your server? imsafm_user_dl.php?F=/home/path/to/secret/file.txt ---John Holmes... -- PHP G

RE: [PHP] MySQL to OO

2004-09-16 Thread Jay Blanchard
[snip] I am looking for a absolute transparent interface to access each field a s a object. So if i would have a table like this: tablename: namedtable -- | id | foo | bar | -- | 01 | aaa | uuu | -- | 02 | bbb | mmm | -- I could ac

Re: [PHP] File Download Problems

2004-09-16 Thread PHP Junkie
Ave, I made a change last evening, and since the change.. It seems to be working fine. Thus far I haven't had the 1 KB downloaded file problem. I have been trying all evening and this morning, from different places, and somehow right now it seems to be working fine. What I simply did was this:

Re: [PHP] MySQL to OO

2004-09-16 Thread John Holmes
From: "Neo Theone" <[EMAIL PROTECTED]> I am searching for a MySQl to Object abstraction class. I am thinking something like WebObjects does in Java (it is just a part) in PHP. I had one for Ruby but now I have to use a DB in MySQL and such a class would make it alot easier. Are you talking about

Re: [PHP] MySQL to OO

2004-09-16 Thread Neo Theone
John Holmes wrote: From: "Neo Theone" <[EMAIL PROTECTED]> I am searching for a MySQl to Object abstraction class. I am thinking something like WebObjects does in Java (it is just a part) in PHP. I had one for Ruby but now I have to use a DB in MySQL and such a class would make it alot easier. Ar

Re: [PHP] Re: problems with different results on count() and select

2004-09-16 Thread Jason Wong
On Thursday 16 September 2004 17:19, Merlin wrote: > the where clause is a replacement for the order by clause in the first > statement. Inside this first select statement I am showing 20 results on > each page with the limit command as shown here: > > SELECT > u.user_name, > FROM > user

Re: [PHP] How I can create....

2004-09-16 Thread Yusdaniel Rodriguez Espinosa
Hello Jason Thanks I understand now, but tell me someting, PHP don't have any function that create a button??? When I want to clean a DB I have to call another page always tell me you don't have any code for example that do the same thing that I want to do??? Thanks again Yusda

Re: [PHP] mysql_connect does not connect

2004-09-16 Thread Jason Wong
On Thursday 16 September 2004 17:52, Chris Dowell wrote: > All this is irrelevant; while you're still trying to use MySQL 5 with > mysql_connect() instead of mysqli_connect(), it WILL NEVER WORK > > Sort that out first before you start worrying about firewalls - you > can't test the firewall if you

[PHP] Re: iguanahost - anyone else being plagued?

2004-09-16 Thread Daniel Schierbeck
Nick Wilson wrote: Anyone else getting these infuriating italian messages about some muppet that doesnt exist? 'desintione non existente'? I've written to [EMAIL PROTECTED] but no joy, everytime i post on the php list i get half a dozen of the damn things... Yup, guess some Italian 1337 h4x0r has s

Re: [PHP] split behaviour differences in perl and php

2004-09-16 Thread Burhan Khalid
Sandip Bhattacharya wrote: This stumped me badly in my present project. Is this a bug or a feature in PHP? I am trying to split a string into two, where only one half (and the delimiter) is present. [ trim ] IN PHP === [EMAIL PROTECTED] ~]$ cat s1.php [EMAIL PROTECTED] sql]$ p

[PHP] split behaviour differences in perl and php

2004-09-16 Thread Sandip Bhattacharya
This stumped me badly in my present project. Is this a bug or a feature in PHP? I am trying to split a string into two, where only one half (and the delimiter) is present. IN PERL == [EMAIL PROTECTED] ~]$ cat s1.pl @t = split(/,/ , "a,b"); $len = $#t + 1; print "

Re: [PHP] mysql_connect does not connect

2004-09-16 Thread Chris Dowell
All this is irrelevant; while you're still trying to use MySQL 5 with mysql_connect() instead of mysqli_connect(), it WILL NEVER WORK Sort that out first before you start worrying about firewalls - you can't test the firewall if you can't ever have a successful test case. Cheers Chris Markus Ma

[PHP] Re: disabling php info in http headers

2004-09-16 Thread David Robley
On Thu, 16 Sep 2004 18:45, Merlin wrote: > Hi there, > > I am wondering how to disable the php info inside the response header > info. This might be possible since this info is not for other people. > Hackers might find all versions to searching for security weaknes. > > Here is an example: > X-

Re: [PHP] mysql_connect does not connect

2004-09-16 Thread Markus Mayer
On Thursday 16 September 2004 05:06, Sam Hobbs wrote: > It is my understanding that the firewall is not supposed to be relevant. I It is our experience at my employer that the firewall in XP-SP2, as well as other firewalls that are available, are very relevant. > have not seen anything saying it

[PHP] Re: download pdf using php script

2004-09-16 Thread David Robley
On Thu, 16 Sep 2004 16:21, Adwinwijaya wrote: > Hello PHP Users, > > I have files (that protected from direct download) and I put it > outside public_html/ directory (outside web server directory). > > and the people from outside could access the file by typing: > www.myweb.com/download.php?file

[PHP] Re: problems with different results on count() and select

2004-09-16 Thread Merlin
Thomas Seifert wrote: On Thu, 16 Sep 2004 10:43:46 +0200, Merlin wrote: Theoreticly the result number of the first select statement should be identical with the count statement, but it is not. Has anybody an idea how to fix that? It can't be the same number as you are using a where clause in th

  1   2   >