Re: [PHP] HTTP HEAD request using curl??

2003-09-30 Thread Chris Shiflett
--- Marc Richards <[EMAIL PROTECTED]> wrote: > I need to do a whole bunch of url calls but all I need is the > headers, I don't have curl support compiled in and I probably won't > bother compiling in if it can't do HEAD (I'll just use fopen). cURL is great for handling all of the details for you,

Re: [PHP] HTTP HEAD request using curl??

2003-09-30 Thread Marc Richards
"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > cURL is great for handling all of the details for you, but if all you are > wanting to do is send a HEAD request and read the headers, are you sure that > using fopen() isn't a good solution? > Well that is plan b, it

Re: [PHP] arrays and php

2003-09-30 Thread Jason Wong
On Wednesday 01 October 2003 02:32, Chris W. Parker wrote: > Jason Wong > > on Tuesday, September 30, 2003 11:27 AM said: > echo "".print_r($chk).""; > > It will not work. > > > > Actually, the above *does* work! > > Not for me. (Although we may be test

Re: [PHP] Making a Session Longer

2003-09-30 Thread CPT John W. Holmes
From: "Free Grafton" <[EMAIL PROTECTED]> > The problem we are experiencing is that we are starting to have so many > users on at one time that they are getting bumped off faster and faster. We > have increased the MaxUsers in apache up to 1000, but that doesn¹t seem to > make any difference. Our s

RE: [PHP] Making a Session Longer

2003-09-30 Thread Vail, Warren
Free, I am assuming you are using PHP sessions. If you are storing sessions using the your own save handler routines (this is quite common when saving session in the MySQL database), you have the ability to establish your own session timeout and "Garbage Cleanup" routines. This means you can c

Re: [PHP] date() is hours behind

2003-09-30 Thread Jon Kriek
putenv('TZ=Europe/London'); OR putenv('TZ=GMT'); -- Jon Kriek http://phpfreaks.com "Php Webmaster" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm in London and and my timezone is GMT, so what should I use? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] Does the AOL browser break any standards?

2003-09-30 Thread Becoming Digital
As can I. Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: "Joe Pemberton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, 30 September, 2003 00:15 Subject: RE: [PHP] Does the AOL browser break any standards? Fyi, I can read the site fine i

Re: [PHP] Making a Session Longer

2003-09-30 Thread Burhan Khalid
Free Grafton wrote: This mail is probably spam. The original message has been attached along with this report, so you can recognize or block similar unwanted mail in future. See http://spamassassin.org/tag/ for more details. Content preview: We offer an application for our customers which allows

RE: [PHP] Making a Session Longer

2003-09-30 Thread Roger B.A. Klorese
> > RCVD_IN_OSIRUSOFT_COM (0.6 points) RBL: Received via a > relay in relays.osirusoft.com > >[RBL check: found > 4.131.92.216.relays.osirusoft.com.] > > X_OSIRU_OPEN_RELAY (2.9 points) RBL: DNSBL: sender is > Confirmed Open Relay > > You might want to check your email ser

Re: [PHP] arrays and php

2003-09-30 Thread Eugene Lee
On Tue, Sep 30, 2003 at 09:10:44AM -0700, Chris W. Parker wrote: : : Angelo Zanetti : on Tuesday, September 30, 2003 5:43 AM said: : : > hi I have a table with rows and each row contains a checkbox ( array) : > and a record. TD of the checkbox: : > echo(" value=". $

[PHP] retrieving information about state of a function

2003-09-30 Thread Dennis Sterzenbach
Hello all, Wouldn't it be nice having a function which tells you whether you are restricted to call a function or not? I think of something like: if (function_enabled("shell_exec")) { $info = shell_exec("dig myname.com"); } telling if it was defined as disabled function in php.ini (disable_f

[PHP] Re: retrieving information about state of a function

2003-09-30 Thread Jon Kriek
get_defined_functions() http://www.php.net/get_defined_functions function_exists() http://www.php.net/function_exists -- Jon Kriek http://phpfreaks.com "Dennis Sterzenbach" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello all, > > Wouldn't it be nice having a function which t

RE: [PHP] arrays and php

2003-09-30 Thread Chris W. Parker
Eugene Lee on Tuesday, September 30, 2003 2:12 PM said: > A heredoc is more readable: > > echo << value="{$chkSessionF[$i]}"> > HTMLTAG; Yeah, but I don't like those. :P chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

[PHP] Re: retrieving information about state of a function

2003-09-30 Thread Dennis Sterzenbach
"Jon Kriek" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > get_defined_functions() > http://www.php.net/get_defined_functions > > function_exists() > http://www.php.net/function_exists > I'm talking about disabled and enabled functions. You posted about (non-)existance / definition

Re: [PHP] IIS Ports

2003-09-30 Thread Jas
Well what version of Windows are you running? NT, 2K, XP etc. Have you looked at what ports are open? What services do you need to run? Obviously IIS to serve up web pages, but what else is running? SMTP, FTP etc? Do you need those other services? If not turn them off... NT :: Administrative t

Re: [PHP] Re: retrieving information about state of a function

2003-09-30 Thread John W. Holmes
Dennis Sterzenbach wrote: "Jon Kriek" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] get_defined_functions() http://www.php.net/get_defined_functions function_exists() http://www.php.net/function_exists I'm talking about disabled and enabled functions. You posted about (non-)existanc

Re: [PHP] Re: retrieving information about state of a function

2003-09-30 Thread Dennis Sterzenbach
> > I'm talking about disabled and enabled functions. > > You posted about (non-)existance / definition of functions. > > I already looked through this, and saw function still is defined but no > > longer enabled. > > How about using ini_get() to get the disabled functions, then parse that > for

Re: [PHP] captcha WAS Please visit my php program

2003-09-30 Thread Manuel Lemos
Hello, On 09/30/2003 06:47 AM, Veniamin Goldin wrote: Do somebody has any snipet for this stuff ? Here you may find a couple of classes ready to use to implement a captcha system: Class: CAPTCHA http://www.phpclasses.org/captcha Class: Verification Image http://www.phpclasses.org/vimage -- Rega

[PHP] dba_open cannot write

2003-09-30 Thread Robert Covell
I am trying to write data to a db3 alias file that sendmail uses (made a copy for testing). When I read the file using: $id = dba_open ("aliaseswww.db", "r", "db3"); It works. But when I try to change it to: $id = dba_open ("aliaseswww.db", "w", "db3"); I get: dba_open(aliaseswww.db,w): Driv

Re: [PHP] date() is hours behind

2003-09-30 Thread PHP Webmaster
"Jon Kriek" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > putenv('TZ=Europe/London'); > > OR > > putenv('TZ=GMT'); > > -- > Jon Kriek > http://phpfreaks.com > > "Php Webmaster" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I'm in London and and my timezone is GM

Re: [PHP] date() is hours behind

2003-09-30 Thread Curt Zirzow
* Thus wrote PHP Webmaster ([EMAIL PROTECTED]): > > "Jon Kriek" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > putenv('TZ=Europe/London'); > > > > OR > > > > putenv('TZ=GMT'); > > > > -- > > Jon Kriek > > http://phpfreaks.com > > > > "Php Webmaster" <[EMAIL PROTECTED]> wrote in

Re: [PHP] dba_open cannot write

2003-09-30 Thread Curt Zirzow
* Thus wrote Robert Covell ([EMAIL PROTECTED]): > I am trying to write data to a db3 alias file that sendmail uses (made a > copy for testing). When I read the file using: > > $id = dba_open ("aliaseswww.db", "r", "db3"); > > It works. But when I try to change it to: > > $id = dba_open ("alias

Re: [PHP] Re: retrieving information about state of a function

2003-09-30 Thread Jon Kriek
So why not subscribe to the php.dev list and propose it there? -- Jon Kriek http://phpfreaks.com "Dennis Sterzenbach" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Well I already do so, but I think it would be more smooth having a > function > provided by PHP for that purpose, b

Re: [PHP] Submit button

2003-09-30 Thread - Edwin -
Hi, "Nitin" <[EMAIL PROTECTED]> wrote: > Never mind, but could you state the reason? Just guessing here... ...[snip]... > > > --- Nitin <[EMAIL PROTECTED]> wrote: > > > > > > > This is a great example of what not to do. ...because it relies on Javascript (so it's unreliable because of some

Re: [PHP] storing japanese in mysql (or pgsql)

2003-09-30 Thread - Edwin -
Hi, "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > (I posted this to another list yesterday without response, so if it > looks familiar, that's why.) > > Hi. > > I'm working on a small study aid for myself (and anyone else that wants > to use it) and I could really use the ability to store Japa

Re: [PHP] PNGs & PHP feedback

2003-09-30 Thread - Edwin -
Hi, Eugene Lee <[EMAIL PROTECTED]> wrote: > On Tue, Sep 30, 2003 at 02:40:42AM -0400, Joe Harman wrote: > : > : I am looking for some guidance... I am using PHP to make dynamic > : buttons... Is the PNG image format a pretty safe thing to go with... > : Standard wise? > > PNG support in M$ IE i

Re: [PHP] PNGs & PHP feedback

2003-09-30 Thread Curt Zirzow
* Thus wrote - Edwin - ([EMAIL PROTECTED]): > Hi, > > Eugene Lee <[EMAIL PROTECTED]> wrote: > > > On Tue, Sep 30, 2003 at 02:40:42AM -0400, Joe Harman wrote: > > : > > : I am looking for some guidance... I am using PHP to make dynamic > > : buttons... Is the PNG image format a pretty safe thing

Re: [PHP] PNGs & PHP feedback

2003-09-30 Thread - Edwin -
Hi, Curt Zirzow <[EMAIL PROTECTED]> wrote: [snip] > It does have a problem reading alpha channels in the pngs > though. [/snip] Quite true. (I "forgot" that part...) Though it seems like it's not a problem for the IE on Macs... ...and then I thought IE's problems were all about security and

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

2003-09-30 Thread tech
= 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. ===

[PHP] fork and childs

2003-09-30 Thread Thomas Weber
Hi, I'm writing a network-server in PHP, using pcntl_fork() to fork childs (errr... jep). My problem is, than when i shutdown the parent-process, all childs are killed automatically. Does anyone know a way to avoid this behaviour? Thanks, Thomas 'Neo' Weber --- [EMAIL PROTECTED] [EMAIL PROTECTED]

Re: [PHP] PNGs & PHP feedback

2003-09-30 Thread Eugene Lee
(about M$IE and PNG) On Wed, Oct 01, 2003 at 11:31:46AM +0900, - Edwin - wrote: : : Curt Zirzow <[EMAIL PROTECTED]> wrote: : > : > It does have a problem reading alpha channels in the pngs though. : : Quite true. (I "forgot" that part...) Though it seems like it's not a : problem for the IE on M

[PHP] $MySQLver[0]

2003-09-30 Thread John Taylor-Johnston
$MySQLver[0] doesn't seem to echo anything. Code used to work, on another server. Problem with php version? PHP Version 4.1.2 Just updated to MySQL version MySQL 4.0.15-standard Can't find "MySQLver" in phpinfo. if($MySQLver[0] >= 4){ $sql = 'SELECT * FROM '.$table.' WHERE MATCH (KW,AUS,GEO) AGA

Re: [PHP] $MySQLver[0]

2003-09-30 Thread John W. Holmes
John Taylor-Johnston wrote: $MySQLver[0] doesn't seem to echo anything. Code used to work, on another server. Problem with php version? PHP Version 4.1.2 Just updated to MySQL version MySQL 4.0.15-standard Can't find "MySQLver" in phpinfo. if($MySQLver[0] >= 4){ $sql = 'SELECT * FROM '.$table.'

[PHP] Generate Receipt Number

2003-09-30 Thread irinchiang
Hi all, I am doing a receipt system whereby it can auto generate a unique receipt number for each receipt. It will be an increment of number eg.01, 02, 03, and so on.Wonder how should I go about doing this using PHP? Do need some help here..technologies used are:PHP and MySQ

Re: [PHP] $MySQLver[0]

2003-09-30 Thread John Taylor-Johnston
John, Thanks! Actually, I just did a bit of reading. http://www.phpbuilder.com/mail/php-general/2001071/1540.php MySQLver was implemented in PHP 4.0.5. My fault. Sorry. Thanks for the read. John "John W. Holmes" wrote: > John Taylor-Johnston wrote: > > > $MySQLver[0] doesn't seem to echo anything

Re: [PHP] Generate Receipt Number

2003-09-30 Thread Larry E . Ullman
I am doing a receipt system whereby it can auto generate a unique receipt number for each receipt. It will be an increment of number eg.01, 02, 03, and so on.Wonder how should I go about doing this using PHP? Do need some help here..technologies used are:PHP and MySQL... S

[PHP] Attempt at putting greedy htmlspecialchars on a diet

2003-09-30 Thread Gerard Samuel
Got a problem with htmlspecialchars being too greedy, where for example, it converts &foo; to &foo; Yes it displays correctly in the browser for some content, but not all. (an example is posted below) So I came up with this example code, but not sure if there is an easier/better way to get the c

Re: [PHP] Attempt at putting greedy htmlspecialchars on a diet

2003-09-30 Thread Eugene Lee
On Wed, Oct 01, 2003 at 01:12:16AM -0400, Gerard Samuel wrote: : : Got a problem with htmlspecialchars being too greedy, where : for example, it converts : &foo; : to : &foo; : : Yes it displays correctly in the browser for some content, but not all. : (an example is posted below) : So I came u

Re: [PHP] nonblocking socket causes 100% cpu usage

2003-09-30 Thread Raditha Dissanayake
Hi, I don't think i saw your mail getting answered. This is unusual cause sockets taking up processor is something that i normaly associate with windows. Maybe if you could post a bit of your code we might be able to get a better idea about what's happening. Joe wrote: I have a commandline p

[PHP] Accumulated Information in DB??

2003-09-30 Thread irinchiang
Hi all, I am having some doubts here and hope to hear some advices/solutions from all of you out there. Right now, I have a daily, weekly, monthly and yearly reports which stores information on all my customers. These info will of course, be stored in the DB.(MySQL). As all these reports

[PHP] Select multiple payment mode

2003-09-30 Thread irinchiang
Hi all, I am working on a receipt payment system whereby there is a "select" box with a list of payment mode: eg.By cash, By Nets, By Cheque etc...for customers to select the kinda payment mode they going to make their payment. How ever, there is cases in which instead of selecting only

RE: [PHP] Accumulated Information in DB??

2003-09-30 Thread Cody Phanekham
> -Original Message- > From: [EMAIL PROTECTED] > Can the MySQL DB hold > all this big chunk of info? > I'm no authority on MySQL but i dont see any problems with holding 'big chucks' of info, The only limiting factor would be the size of your hard drive. You might get a more accurate a

[PHP] File question

2003-09-30 Thread ketvin
Dear geniuses,     A simple question here, i have a file, says, list.txt   it is a simple text file and simple field like:   aa , bb , cc , dd       now i want to use php script to read that list.txt file, and put the data in an array, is there any simple way i could do that

<    1   2