[PHP] auto converting a $string to ALL Upper Case.

2004-09-16 Thread Louie Miranda
Is there a PHP syntax that can convert a $string result to all UPPER CASE? -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Coding Blues - Parse Error

2004-09-16 Thread Oliver Kurz
Hello Yusuf, ? Class fl_SQL { var $server; var $user; var $pass; var $connection; var $db; var $query; var $record; var $tlist; } The bracket is wrong. Your class only has properties but no methods. Function fl_SQL($server, $user, $pass, $db = NULL) { $this-server

Re: [PHP] auto converting a $string to ALL Upper Case.

2004-09-16 Thread - Edwin -
On Thursday 16 September 2004 15:36, Louie Miranda wrote: Is there a PHP syntax that can convert a $string result to all UPPER CASE? php.net - manual - strings - strtoupper ? -- - E - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] download pdf using php script

2004-09-16 Thread adwinwijaya
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?filename=xzy.pdf can someone give me hint how to do this ?

[PHP] problem compailing php-4.3.6 please help !!!!! CAn someone PLEA SE HELP !!!!

2004-09-16 Thread Juan Fernandez
Hi, I am installing php-4.3.6 on Fedora, When I am compiling I receive the following error : [EMAIL PROTECTED] php-4.3.6]# make install Installing PHP SAPI module: apache2handler /www/build/instdso.sh SH_LIBTOOL='/www/build/libtool' libphp4.la /www/modules

[PHP] find null character in php

2004-09-16 Thread 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 ? Regards, Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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

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

2004-09-16 Thread Merlin
Hi there, 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_name, FROM usertable ORDER BY

Re: [PHP] Re: mysql_connect does not connect

2004-09-16 Thread Jason Wong
On Thursday 16 September 2004 10:53, Sam Hobbs wrote: Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] So now are you fully convinced it's your firewall that's the root of your problem? No, not really. At the moment I am assuming it is a bug in something somewhere.

Re: [PHP] fopen problem, 5 line script

2004-09-16 Thread Chris Dowell
Irrelevant, Warren Mag, the point is that you're trying to use a function (filesize) that uses the stat() system call. This function is not supported using the http wrapper to fopen (because HTTP doesn't support it at all) So regardless of whether you should be using the file name or the handle

Re: [PHP] File Download Problems

2004-09-16 Thread Chris Dowell
Chances are your 1KB file contains an error message - try changing the Content-Type to text/plain or text/html to see what PHP is throwing at you Cheers Chris Marek Kilimajer wrote: PHP Junkie wrote: Ave, I've been having a very nagging and frustrating problem for a while and I hope someone can

Re: [PHP] mysql_connect does not connect

2004-09-16 Thread Jason Wong
On Thursday 16 September 2004 11:06, Sam Hobbs wrote: It is my understanding that the firewall is not supposed to be relevant. I have not seen anything saying it is supposed to be. If it is true that it is not supposed to be relevant, then simply saying it is just causes confusion. If you had

Re: [PHP] Re: mysql_connect does not connect

2004-09-16 Thread Jason Wong
On Thursday 16 September 2004 11:51, raditha dissanayake wrote: me thinks it's time to look very closely at http://www.postgresql.org Not just you sam, all of us. If everyone subscribes to your reasoning then nobody would be using Windows (yay!). Anyway FWIW I found postgresql's system of

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

2004-09-16 Thread Thomas Seifert
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 the second

Re: [PHP] Re: mysql_connect does not connect

2004-09-16 Thread raditha dissanayake
Jason Wong wrote: On Thursday 16 September 2004 11:51, raditha dissanayake wrote: me thinks it's time to look very closely at http://www.postgresql.org Not just you sam, all of us. If everyone subscribes to your reasoning then nobody would be using Windows (yay!). I am a recent convert

[PHP] disabling php info in http headers

2004-09-16 Thread Merlin
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-Powered-By: PHP/4.3.5 X-Accelerated-By: PHPA/1.3.3r2

[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

[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:

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: 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:

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

[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] 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 ?php print

[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

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

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] 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 usertable

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. Are

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] 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 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

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 a href=\imsafm_user_dl.php?F=imsafm/$user/$myrow[filename]\img src=b_newtbl.png border=0/a And changed the code in the download file to ?php header(Content-Description: File Transfer); header(Content-Type:

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 a href=\imsafm_user_dl.php?F=imsafm/$user/$myrow[filename]\img src=b_newtbl.png border=0/a And changed the code in the download file to ?php header(Content-Description: File Transfer);

[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] 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_connect! I think I've read

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 -- The

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.pl @t =

[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] 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: |?php if (!function_exists('str_split')) { function str_split ($str, $size = 1) { $arr = array(); for ($i = 0 ; $i strlen($str) ;

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] 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.

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

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

[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

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

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] 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] 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_name, FROM

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'Reilly

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] 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

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

[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.br\n; } } sort($files_in_scan);

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($filename

[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.

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.br\n; }

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 ().

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

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_variables That

[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 Mailing

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 using

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:

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

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] ~]$ cat s1.pl @t

[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] 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

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] 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

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

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.

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

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

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 hope

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 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

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] 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. What do

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

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üngliche

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..

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

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

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 be D1 - 4

[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 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 the

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] 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 the GET

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] 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] 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.

[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

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 Mailing

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:31

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 into an

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 ?php print_r($_GET); print_r($_POST);

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 are just

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 and

[PHP] Novice PHP Variable/Link Question

2004-09-16 Thread revDAVE
How can I use a PHP variable as the destination for a link? ? $mylink = 'thispage.htm' a href=thispage.htmgo here/a With var...? How do I write this? a href=??? $mylink ???go here/a ? -- Thanks - RevDave [EMAIL PROTECTED] [db-lists] Check out some great Domain Names at:

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? ? $mylink = 'thispage.htm' a href=thispage.htmgo here/a With var...? How do I write this? a href=??? $mylink ???go here/a a href=?php echo $url;??php

  1   2   >