Re: [PHP] Newbie - Can't get sessions to work

2003-10-22 Thread Jason Wong
On Wednesday 22 October 2003 22:08, Shaun Campbell wrote: I've got a problem getting sessions to work and I wondered if anyone could offer any advice. The example I am using is to get one page to set variables in a session and then use another page to retrieve them. I am using 4.3.4RC2 and

Re: [PHP] Re: (ANNOUNCE) codeSECURE 1.0 released - - Protecting PHP code

2003-10-22 Thread Jason Wong
On Wednesday 22 October 2003 21:38, Bas wrote: Is it free? For details, check us out at http://www.secureCents.com -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development *

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-22 Thread Richard Baskett
on 10/22/03 13:32, David T-G at [EMAIL PROTECTED] wrote: Richard, et al -- ...and then Richard Baskett said... % % on 10/21/03 16:40, David T-G at [EMAIL PROTECTED] wrote: % % ...and then Marco Tabini said... % % % % php.general for new messages and send back an e-mail to the list

[PHP] Screwing up my results...please help

2003-10-22 Thread Ryan A
Hi, I have a search form that queries the database and returns results in this order: company name1 1plan 1 1plan 2 etc company name2 2plan 1 2plan 2 etc company name3 3plan 1 3plan 2 etc etc etc This is my sql: $sqlle = select * from $table_namee where price =$max and spacee =$min order by

Re: [PHP] php with Interbase ?

2003-10-22 Thread Jordan S. Jones
It really depends on what you want compiled in. If you are not sure what options are available, you could try ./configure --help Jordan S. Jones Luiz Gustavo Sarubi Macchi wrote: Hi all, Please, I´d like to compile my php with interbase. I know that i should put --with-interbase[=DIR], but

note: [PHP] ob_get_length() returns uncompressed buffer length (after ob_start('ob_gzhandler'))

2003-10-22 Thread daniel hahler
Hallo daniel, am Mon, 20 Oct 2003 13:45:18 +0200 schrieb ich bereits: dh But I did not find an answer, how to correct this.. - using dh ob_implicit_flush(); did also not help. is there no way to put header('Content-Length: '.$sth) in when you use ob_gzhandler in output buffering? that would be

Re: [PHP] Screwing up my results...please help

2003-10-22 Thread Ray Hunter
You can always query the database and store the results as arrays in the session and sort the arrays...this would limit how many times that you are querying the database (if you are just sorting the results). -- ray On Wed, 2003-10-22 at 15:02, Ryan A wrote: Hi, I have a search form that

Re: note: [PHP] ob_get_length() returns uncompressed buffer length (after ob_start('ob_gzhandler'))

2003-10-22 Thread daniel hahler
Hallo PHP-general list, on Wed, 22 Oct 2003 23:07:06 +0200 I already wrote: dh Hallo daniel, don't want to talk only to myself.. this is for everyone.. :) -- shinE! http://www.thequod.de ICQ#152282665 PGP 8.0 key: http://thequod.de/danielhahler.asc -- PHP General Mailing List

Re: [PHP] Screwing up my results...please help

2003-10-22 Thread Marek Kilimajer
I hope you check all user inputs for validity. Your order clause should be order by custno, $TheOrder. Ryan A wrote: Hi, I have a search form that queries the database and returns results in this order: company name1 1plan 1 1plan 2 etc company name2 2plan 1 2plan 2 etc company name3 3plan 1

Re: [PHP] Re: (ANNOUNCE) codeSECURE 1.0 released - - Protecting PHP code

2003-10-22 Thread John Black
Hi Jason, Did I say something wrong? A bit puzzled as you just copied what I wrote to the other guy and reposted Cheers, -JB On Wednesday 22 October 2003 21:38, Bas wrote: Is it free? For details, check us out at http://www.secureCents.com -- Jason Wong - Gremlins Associates -

Re: [PHP] (ANNOUNCE) New PHP mailing list *searchable* archives

2003-10-22 Thread Marco Tabini
Hello All-- I'd have to agree with Richard in that there doesn't seem to be a good way to make this idea fly--at the very least, it would be annoying (also because there really is no way to guarantee that the results would be entirely relevant to the contents of the message). I've sent an

Re: [PHP] Screwing up my results...please help

2003-10-22 Thread Ryan A
Hi Marek, Thanks for replying. If I do that I get the companies neatly but the not sorted according to the $TheOrder...:-( Yep, am checkign user inputs. Cheers, -Ryan I hope you check all user inputs for validity. Your order clause should be order by custno, $TheOrder. Ryan A wrote: Hi,

Re: [PHP] Re: (ANNOUNCE) codeSECURE 1.0 released - - Protecting PHP code

2003-10-22 Thread Thomas Seifert
I think he just answered the other guy's question with your answer to another one ;-). btw. http://www.securecents.com/secureCode_features.php only returns a 404. thomas On Wed, 22 Oct 2003 23:20:13 +0200 [EMAIL PROTECTED] (John Black) wrote: Hi Jason, Did I say something wrong? A bit

Re: [PHP] Screwing up my results...please help

2003-10-22 Thread Ryan A
Hi Ray, Thanks for replying. Can you give me a small code example please? This is what I am using to get the companies in order: if(empty($Tcompany)) { $Tcompany = $row[4]; } elseif($Tcompany != $row[4]) { //echo plan and html here $Tcompany = $row[4]; } (I think the above

Re: [PHP] Screwing up my results...please help

2003-10-22 Thread Marek Kilimajer
How do you mean it? Order by both at once as if they were on the first place? Is this logicaly possible? You should post your desired output. Marek Ryan A wrote: Hi Marek, Thanks for replying. If I do that I get the companies neatly but the not sorted according to the $TheOrder...:-( Yep, am

Re: [PHP] Re: (ANNOUNCE) codeSECURE 1.0 released - - Protecting PHP code

2003-10-22 Thread John Black
Hey, I think he just answered the other guy's question with your answer to another one ;-). Oh, ok. btw. http://www.securecents.com/secureCode_features.php only returns a 404. DAMN! we changed the name from SecureCode to CodeSecure and I guess forgot to make the change on the site :-( anyway,

Re: [PHP] Screwing up my results...please help

2003-10-22 Thread Ryan A
Hi, Thanks for replying. Yes, i know ordering by both at once as if they were on the first place is illogical, thats why I need a php answer to wangle thisI want the desired output to be the same when the sort by was by default price..eg: company1 1plan1 1plan2 company2 2plan1 2plan2

Re: [PHP] Age from birthdate?

2003-10-22 Thread Jason Wong
On Thursday 23 October 2003 00:31, DvDmanDT wrote: How would I get the age of someone if I store the birthdate in a date field? I just realized FLOOR((UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(birthdate))/60/60/24/365.25) wont work for persons born before 1970... :p I must get the current age in

[PHP] fsock sending bad request

2003-10-22 Thread daniel
Hi there the following code doesnt seem to work, i am getting a bad request sent back from the server, what could be the problem of something so simple ? $header .= POST test.php HTTP/1.0\r\n; $header.= Host: host\r\n; $header .= Content-Type: application/x-www-form-urlencoded\r\n; $header .=

Re: [PHP] Screwing up my results...please help

2003-10-22 Thread Marek Kilimajer
Hi again, I cannot spot any difference from the original that you already have. Marek Ryan A wrote: Hi, Thanks for replying. Yes, i know ordering by both at once as if they were on the first place is illogical, thats why I need a php answer to wangle thisI want the desired output to be

Re: [PHP] there has to be a better way...

2003-10-22 Thread jsWalter
- Edwin - [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 22 Oct 2003 03:10:44 -0500 jsWalter [EMAIL PROTECTED] wrote: [snip] There must be a better way to do this. [/snip] http://www.php.net/manual/en/function.parse-ini-file.php ? thanks. But, my concern with that

Re: [PHP] there has to be a better way...

2003-10-22 Thread jsWalter
Daevid Vincent [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Here is a snippet from my dhcp web page found on my site below... Not exactly what you want, but could help you start... thanks! // read in the dhcp_map.ini file to map MAC addresses to images $mapFile =

Re: [PHP] Screwing up my results...please help

2003-10-22 Thread Ryan A
Hi Marek, Sorry about the confusion, let me explain. With default sorting (without $TheOrder) I am getting this: (using $sqlle = select * from $table_namee where price =$max and spacee =$min order by custno,price LIMIT $limitvalue1, $limit; ) company1 1plan1 1plan2 company2 2plan1 2plan2

RE: [PHP] there has to be a better way...

2003-10-22 Thread Daevid Vincent
-Original Message- From: Walter Torres [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 22, 2003 3:27 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] there has to be a better way... Daevid Vincent [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Here is a snippet from

[PHP] Email Body

2003-10-22 Thread micro brew
I am sending an email using mail() and it works fine. But the formatting of the body of the email is wrong. I want to format part of it in columns sort of like this: Name Quantity Price Can this be done neatly without using an html email? Also what is the trick to making line

Re: [PHP] Email Body

2003-10-22 Thread Rolf Brusletto
yo - \n should work, but it depends on which type of quotes you use... see the following.. $content = 'this is the first line\n this is the second line\n this is the third line'; would return this is the first line\n this is the second line\n this is the third line as opposed to $content =

Re: [PHP] Email Body

2003-10-22 Thread Rolf Brusletto
didn't mention this before, but the difference between the two examples if you hadn't noticed already is that the first is single quoted, and the second, double quoted. Rolf micro brew wrote: I am sending an email using mail() and it works fine. But the formatting of the body of the email is

[PHP] Check mysq_field_type, display appropriate FORM element

2003-10-22 Thread René Fournier
Hello everyone, I'm upgrading my simple CMS app, and would like to add a [simple] function to itwhich I'm finding is no so simple (at least for me). To illustrate: The user clicks Edit on a particular table row. The CMS then fetches that row from the table and begins displaying the value of

[PHP] Re: Check mysq_field_type, display appropriate FORM element

2003-10-22 Thread Justin Patrin
I'm working on a general purpose database data editor in PHP which can allow users to edit what you want and also knows about linked record with no extra coding. I was planning on putting this kind of field typing and type checking in my code, but haven't gotten around to it yet. If you're

Re: [PHP] Screwing up my results...please help

2003-10-22 Thread Marek Kilimajer
Still you have shown only how you didn't want the results ordered but how you want them. Ryan A wrote: Hi Marek, Sorry about the confusion, let me explain. With default sorting (without $TheOrder) I am getting this: (using $sqlle = select * from $table_namee where price =$max and spacee =$min

Re: [PHP] Email Body

2003-10-22 Thread John W. Holmes
micro brew wrote: I am sending an email using mail() and it works fine. But the formatting of the body of the email is wrong. I want to format part of it in columns sort of like this: Name Quantity Price Can this be done neatly without using an html email? \t is a tab. You can

Re: [PHP] there has to be a better way...

2003-10-22 Thread John W. Holmes
jsWalter wrote: I need to read (write comes later) from a config file that we used to handle manually. I'm getting lazy, so I'm writing a web interface for this. Don't know if someone said this or not, but why not just use parse_ini_file() ? -- ---John Holmes... Amazon Wishlist:

Re: [PHP] Simple array question

2003-10-22 Thread David Otton
On Thu, 23 Oct 2003 14:01:59 -0500, you wrote: Is there a simple way to return the key (name) of one element in an array? I looked up key() in the docs, but there are no examples or notes... Ok, to make sure I understand you: given an array ('apple' = 'red', 'banana' = 'yellow') you want a

Re: [PHP] Age from birthdate?

2003-10-22 Thread Ashley M. Kirchner
Curt Zirzow wrote: I do wonder what the rule for those born on Feb 29'th. Do they celebrate they're birthday before or after it on non leap years? Neither. They celebrate it on Feb 29th. So while we age every year, they only age once every four. Make sense? -- H| I haven't lost my

Re: [PHP] Screwing up my results...please help

2003-10-22 Thread Ryan A
Hi again Marek, I want the results like this: company1 1plan1 // this is the important one as its the least/most (depending on DESC or ASC) 1plan2 // this is all the other plans company1 offers (which meet the sql parameters) company2 2plan1 // this again is important as its the

[PHP] Q on preg_split

2003-10-22 Thread jsWalter
I have an array... [ sample of contents below] [0] = [1] = # words are recognized ceaselessly: true, yes, on, false, no, off. [2] = # --- [3] = [4] = [5] = # The mailing address of the list. [6] = # If empty,

RE: [PHP] PHP JavaScript

2003-10-22 Thread Martin Towell
Hi everybody! Have somebody any idea how I could do something like that? ? settype($phpScreenWidth, string); settype($phpScreenHeight, string); ? script language=javascript var phpScreenWidth, phpScreenHight;

Re: [PHP] Age from birthdate?

2003-10-22 Thread Curt Zirzow
* Thus wrote Ashley M. Kirchner ([EMAIL PROTECTED]): Curt Zirzow wrote: I do wonder what the rule for those born on Feb 29'th. Do they celebrate they're birthday before or after it on non leap years? Neither. They celebrate it on Feb 29th. So while we age every year, they only

RE: [PHP] Age from birthdate?

2003-10-22 Thread Martin Towell
* Thus wrote Ashley M. Kirchner ([EMAIL PROTECTED]): Curt Zirzow wrote: I do wonder what the rule for those born on Feb 29'th. Do they celebrate they're birthday before or after it on non leap years? Neither. They celebrate it on Feb 29th. So while we age every year,

RE: [PHP] PHP JavaScript

2003-10-22 Thread BQ777
Exactly. but it should be only with one step. That means, just running the file once and get the vars. cbq -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 23. Oktober 2003 03:00 To: 'BQ777'; [EMAIL PROTECTED] Subject: RE: [PHP] PHP JavaScript Hi

Re: [PHP] Age from birthdate?

2003-10-22 Thread Mike Migurski
I do wonder what the rule for those born on Feb 29'th. Do they celebrate they're birthday before or after it on non leap years? Neither. They celebrate it on Feb 29th. So while we age every year, they only age once every four. Make sense? So their life expectancy is only ~19 years?

Re: [PHP] Images being uploaded in ASCII format

2003-10-22 Thread Tom Rogers
Hi, Thursday, October 23, 2003, 4:05:13 AM, you wrote: PG Hi all. I'd like to take a brief sentence to introduce myself first. PG My name is Pablo Gosse, and I've just recently joined the php-general PG list. I've been using PHP since early 2000, and work as webmaster PG at the University of

Re: [PHP] fsock sending bad request

2003-10-22 Thread Tom Rogers
Hi, Thursday, October 23, 2003, 7:58:19 AM, you wrote: deo Hi there the following code doesnt seem to work, i am getting a bad request deo sent back from the server, what could be the problem of something so deo simple ? deo $header .= POST test.php HTTP/1.0\r\n; deo $header.= Host: host\r\n;

[PHP] Php and Fortune

2003-10-22 Thread Chuck PUP Payne
Hi, Is there a way I can get php to call the program fortune then print that a web page. Thanks. Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Php and Fortune

2003-10-22 Thread Mykroft Holmes IV
Chuck PUP Payne wrote: Hi, Is there a way I can get php to call the program fortune then print that a web page. Thanks. Payne echo 'pre'; passthru(fortune); echo '/pre'; Should do it. I use this for a nice little Server Status page that iterates through an array of unix commands, works like

Re: [PHP] Php and Fortune

2003-10-22 Thread Marco Tabini
Hello Chuck-- You can use a number of PHP functions, such as shell_exec and passthru, which will run an external app and return its result either in a variable or directly to the output. Some more info regarding this specific problem (and a script) here:

Re: [PHP] Php and Fortune

2003-10-22 Thread Mykroft Holmes IV
Mykroft Holmes IV wrote: Chuck PUP Payne wrote: Hi, Is there a way I can get php to call the program fortune then print that a web page. Thanks. Payne echo 'pre'; passthru(fortune); echo '/pre'; Should do it. I use this for a nice little Server Status page that iterates through an

RE: [PHP] Php and Fortune

2003-10-22 Thread Martin Towell
Chuck PUP Payne wrote: Hi, Is there a way I can get php to call the program fortune then print that a web page. Thanks. Payne echo 'pre'; passthru(fortune); echo '/pre'; Should do it. I use this for a nice little Server Status page that iterates through an array

Re: [PHP] Php and Fortune

2003-10-22 Thread David Otton
On Wed, 22 Oct 2003 22:54:55 -0400, you wrote: Is there a way I can get php to call the program fortune then print that a web page. http://uk2.php.net/system -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Php and Fortune

2003-10-22 Thread Chuck PUP Payne
Thanks Everyone. This is so cool!!! :) On 10/22/03 11:15 PM, Mykroft Holmes IV [EMAIL PROTECTED] wrote: Mykroft Holmes IV wrote: Chuck PUP Payne wrote: Hi, Is there a way I can get php to call the program fortune then print that a web page. Thanks. Payne echo

Re: [PHP] there has to be a better way...

2003-10-22 Thread Curt Zirzow
* Thus wrote jsWalter ([EMAIL PROTECTED]): I need to read (write comes later) from a config file that we used to handle manually. I'm getting lazy, so I'm writing a web interface for this. What I have does this... - open a given file - dump entire file into a string - explode

[PHP] using mail() - what is max number of email addresses I can specify in To field?

2003-10-22 Thread John Christopher
I am writing a script that will query a database table for some statistical information, and then email it (daily, weekly, and monthly) to a list of subscribers. I don't know ahead of time how many persons will be subscribed to receive the info (it could be 20 persons or 2000 or more). Email

Re: [PHP] using mail() - what is max number of email addresses I can specify in To field?

2003-10-22 Thread Marco Tabini
I'm not sure if you've considered this possibility--but can't you send the messages to one recipient at a time? This way, the problem wouldn't present itself, and the end result would be quite the same (with the added bonus of not having to disclose your entire mailing list to each recipient).

Re: [PHP] using mail() - what is max number of email addresses I can specify in To field?

2003-10-22 Thread Rolf Brusletto
It really depends on the mta you use... if your going to use mail(); the I would put the list of addresses in an array and the do foreach($addressArray as $address) { mail($address,'Here is your subject','Here is your content'); } Rolf Brusletto http://www.phpexamples.net John Christopher wrote:

Re: [PHP] PHP JavaScript

2003-10-22 Thread jsWalter
Martin Towell [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi everybody! Have somebody any idea how I could do something like that? ? settype($phpScreenWidth, string); settype($phpScreenHeight, string); ? This is a serverside process This

[PHP] Re: using mail() - what is max number of email addresses I can specify in To field?

2003-10-22 Thread Manuel Lemos
Hello, On 10/23/2003 01:35 AM, John Christopher wrote: I am writing a script that will query a database table for some statistical information, and then email it (daily, weekly, and monthly) to a list of subscribers. I don't know ahead of time how many persons will be subscribed to receive the

[PHP] setlocale Q

2003-10-22 Thread jsWalter
Why does... // assume October... setlocale(LC_TIME, de_GR); echo strftime(%d. %B %Y); gives me 'October'? and this... // assume October... setlocale(LC_TIME, de); echo strftime(%d. %B %Y); gives me 'October'? and this... // assume October... setlocale(LC_TIME, d);

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

2003-10-22 Thread Ma Siva Kumar
= This message is for the benefit of new subscribers and those new to PHP. Those who do not want to be bothered just filter out the [Newbie Guide] mails. Please feel free to add more points and send to the list.

Re: [PHP] there has to be a better way...

2003-10-22 Thread Colin Kettenacker
Hi Walter, You may want to look into PEAR's config package. It does pretty much all you have listed here and a lot more. I just started looking into it today. I haven't looked closely at the code so I don't know how efficiently it handles everything it does but it may give you some ideas. As far

Re: [PHP] Age from birthdate?

2003-10-22 Thread John W. Holmes
DvDmanDT wrote: How would I get the age of someone if I store the birthdate in a date field? I just realized FLOOR((UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(birthdate))/60/60/24/365.25) wont work for persons born before 1970... :p I must get the current age in years, and I must be able to select

[PHP] PHP JavaScript

2003-10-22 Thread BQ777
Hi everybody! Have somebody any idea how I could do something like that? ? settype($phpScreenWidth, string); settype($phpScreenHeight, string); ? script language=javascript var phpScreenWidth, phpScreenHight; phpScreenWidth

Re: [PHP] PHP JavaScript

2003-10-22 Thread Mike Migurski
Have somebody any idea how I could do something like that? snip javascript and PHP You're somewhat out of luck, as the chain of events in your typical HTTP transaction looks something like this... [time]- client request received from browser

[PHP] RE: [PHP-WIN] Re: [PHP] PHP JavaScript

2003-10-22 Thread BQ777
Oh I see. Well I thought that, but I wasn't sure. Ok I will do this way. No I have an direction :) Thanks a lot. -Original Message- From: Mike Migurski [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 23. Oktober 2003 03:11 To: BQ777 Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject:

<    1   2