[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

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

[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

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

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

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

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

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

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

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

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

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

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

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

[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

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=". $

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

[PHP] Making a Session Longer

2003-09-30 Thread Free Grafton
We offer an application for our customers which allows them to log into their organization and participate in discussions, register for events and build their websites. We are using Apache 2.0.47, PHP 4.3.3 and MySQL 4.0.15 for the application. We use session cookies with PHP to establish their per

RE: [PHP] arrays and php

2003-09-30 Thread Chris W. Parker
Chris Shiflett on Tuesday, September 30, 2003 11:39 AM said: > The comma isn't concatenation; echo can take multiple arguments. Oh ok, I get it. > I've heard statements about passing multiple arguments to echo being > faster than using concatenation, but every benc

[PHP] HTTP HEAD request using curl??

2003-09-30 Thread Marc Richards
Is it possible to do a http HEAD (instead of GET, POST or PUT) request using the php curl extension? I know that curl itself can do it, but I wasn't able to find the appropriate CURLOPT constant in the documentation for the php extension. I need to do a whole bunch of url calls but all I need is

[PHP] Re: PHP Imagemagick

2003-09-30 Thread Cameron Metzke
Ok i finally got the script going :) If anyones curious heres the code. exec($path_imagemagick."convert $path_picture -crop $height"."x$width+$x+$y $path_picture2"); "Cameron Metzke" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > i have a script where people upload an image it is th

Re: [PHP] arrays and php

2003-09-30 Thread CPT John W. Holmes
From: "Chris W. Parker" <[EMAIL PROTECTED]> > CPT John W. Holmes > on Tuesday, September 30, 2003 11:32 AM said: > > > Note that print_r() will (by default) return a 1 (TRUE) upon success, > > so you end up with a "1" being printed at the end of your data. > > [snip]

RE: [PHP] arrays and php

2003-09-30 Thread Chris Shiflett
--- "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > What's the difference between using , or . for concatenation? (I > thought they were the same.) The comma isn't concatenation; echo can take multiple arguments. I've heard statements about passing multiple arguments to echo being faster than usin

RE: [PHP] arrays and php

2003-09-30 Thread Chris W. Parker
CPT John W. Holmes on Tuesday, September 30, 2003 11:32 AM said: > Note that print_r() will (by default) return a 1 (TRUE) upon success, > so you end up with a "1" being printed at the end of your data. [snip] That answers it! c. -- PHP General Mailing List (h

RE: [PHP] arrays and php

2003-09-30 Thread Chris W. Parker
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 testing different things.) ".print_r($pageTitle).""; ?> Gives me: Checkout S

Re: [PHP] arrays and php

2003-09-30 Thread CPT John W. Holmes
From: "Jason Wong" <[EMAIL PROTECTED]> > On Wednesday 01 October 2003 02:14, Chris W. Parker wrote: > > Jason Wong > > > > on Tuesday, September 30, 2003 11:06 AM said: > > >> echo "".print_r($chk).""; > > >> > > >> It will not work. > > Actually, the above *does* wo

Re: [PHP] arrays and php

2003-09-30 Thread CPT John W. Holmes
From: "Chris W. Parker" <[EMAIL PROTECTED]> >>> echo "".print_r($chk).""; >>> >>> It will not work. >> >> You can do this though: >> >> echo "", print_r($chk), ""; > >Well heck, that makes things easier! > >What's the difference between using , or . for concatenation? (I thought >they were the s

Re: [PHP] arrays and php

2003-09-30 Thread Jason Wong
On Wednesday 01 October 2003 02:14, Chris W. Parker wrote: > Jason Wong > > on Tuesday, September 30, 2003 11:06 AM said: > >> echo "".print_r($chk).""; > >> > >> It will not work. Actually, the above *does* work! -- Jason Wong -> Gremlins Associates -> www.gremlin

Re: Re: [PHP] __clone() questions ???

2003-09-30 Thread --
Forwarded Message Date: Wed, 24 Sep 2003 07:17:05 -0700 (PDT) From: "--" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: __clone() questions ??? Plain Text Attachment [ Save to my Yahoo! Briefcase | Download File ] Hello srs, Q 1. Will the methode __clone() have the posibility

RE: [PHP] arrays and php

2003-09-30 Thread Chris W. Parker
Jason Wong on Tuesday, September 30, 2003 11:06 AM said: >> echo "".print_r($chk).""; >> >> It will not work. > > You can do this though: > > echo "", print_r($chk), ""; Well heck, that makes things easier! What's the difference between using , or . for concat

Re: [PHP] Session data is lost

2003-09-30 Thread Chris Shiflett
--- "CPT John W. Holmes" <[EMAIL PROTECTED]> wrote: > From: "Harald Kürsten" <[EMAIL PROTECTED]> > > In my script I start a session, register certain variables and > > redirect to the next page. The session file is written to /tmp, > > but contains no data ! > > Does a simple session example from

Re: [PHP] arrays and php

2003-09-30 Thread Jason Wong
On Wednesday 01 October 2003 00:10, Chris W. Parker wrote: [snip] > If you're not sure what a value is use print_r() to determine it. > > echo ""; > print_r($chk); > echo ""; > > Quick side note on the above code: > > You cannot write it like: > > echo "".print_r($chk).""; > > It will not work.

Re: [PHP] Setting cookies

2003-09-30 Thread Chris Shiflett
--- Chris Boget <[EMAIL PROTECTED]> wrote: > We have 2 servers, one for development and one for production. The > development server is "dev.change.wild.net" while the production server > is "change.wild.net". We are using the following code to set the cookie > > $expire_time = time()+60*60*24*3

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

2003-09-30 Thread Gerard Samuel
Not sure about mysql, but with pgsql, if you create your database with utf-8 or equivalent japanese encoding, you should be able to store japanese characters in the db... Chris W. Parker wrote: (I posted this to another list yesterday without response, so if it looks familiar, that's why.) Hi.

Re: [PHP] Setting cookies

2003-09-30 Thread Brad Pauly
Chris Boget wrote: We are accessing the cookie values using $_COOKIE. What appears to be happening is that when we echo the values of the above cookies on "dev.change.wild.net", it is displaying the values set for on "change.wild.net". Why is that? Because "change.wild.net" is the primary domain

Re: [PHP] Session data is lost

2003-09-30 Thread CPT John W. Holmes
From: "Harald Kürsten" <[EMAIL PROTECTED]> > In my script I start a session, register certain variables and redirect to > the next page. > The session file is written to /tmp, but contains no data ! Does a simple session example from the Manual work? Some actual code would help here, but try usin

[PHP] Setting cookies

2003-09-30 Thread Chris Boget
We have 2 servers, one for development and one for production. The development server is "dev.change.wild.net" while the production server is "change.wild.net". We are using the following code to set the cookie $expire_time = time()+60*60*24*30; // 30 days setcookie( 'this', $this, $expire_time

Re: [PHP] if statement

2003-09-30 Thread Steve Buehler
To Brad, Marek and Curt (and anybody who responds after this) Thank you so much for your help. This is going to help me out so much in a lot of my scripts. It will sure make them a little.Noa LOT more portable now. Thanks Steve At 11:26 AM 9/30/2003, you wrote: Steve Buehler wr

Re[4]: [PHP] Q on setlocale...

2003-09-30 Thread Tom Rogers
Hi, Wednesday, October 1, 2003, 2:15:10 AM, you wrote: j> "Tom Rogers" <[EMAIL PROTECTED]> wrote in message j> news:[EMAIL PROTECTED] >> Those locales actually have to be available or they will be ignored and j> that >> will depend on what type of system your running on. j> OK, I'm on Windows 2k

Re: [PHP] if statement

2003-09-30 Thread Curt Zirzow
* Thus wrote Steve Buehler ([EMAIL PROTECTED]): > > What I would like to do is to have an array earlier in the script of just > the items that it is checking for so that it can be more easily changed if > I put this out as free or shareware software. Here is what it might look > like, but I kn

Re: [PHP] if statement

2003-09-30 Thread Marek Kilimajer
if(in_array($k2b, $array)) { ... Steve Buehler wrote: I have an "if" statement that I would like to make a little bit more generic. This is how the statement looks now. if($k2b=="/etc/bind/options.conf.wp" || $k2b=="/etc/bind/rndc.conf.wp" || $k2b=="/etc/bind/keys.conf.wp"){ do this1 }els

Re: [PHP] if statement

2003-09-30 Thread Brad Pauly
Steve Buehler wrote: [snip] $array=("/etc/bind/options.conf.wp","/etc/bind/rndc.conf.wp","/etc/bind/keys.conf.wp"); if($k2b==$array){ do this1 }else{ do this2 } You are close. Check out in_array(). http://us4.php.net/in_array if (in_array($kb2, $array)) - Brad -- PHP General Mailing

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

2003-09-30 Thread Chris Shiflett
--- David T-G <[EMAIL PROTECTED]> wrote: > 1) No, not right now. > > 2) Let's clarify the example we're considering, since I don't think > that the approach will necessarily be the same for all forms. > > 3) Once that's done, let me think about it :-) The challenge is to create a form that canno

[PHP] Php snmp Version

2003-09-30 Thread Lucas Lain
Hi everybody, i was googled a long time looking how to pass the snmp version to the snmpget or snmpwalk functions. The only response was from a guy who proposed to change the source code. I don't fully understand, the code is ready to do snmp v2c querys but it doesn't exists the parameters... i

[PHP] storing japanese in mysql (or pgsql)

2003-09-30 Thread Chris W. Parker
(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 Japanese characters in a MySQL or pgsql db. Right now I've created a

[PHP] if statement

2003-09-30 Thread Steve Buehler
I have an "if" statement that I would like to make a little bit more generic. This is how the statement looks now. if($k2b=="/etc/bind/options.conf.wp" || $k2b=="/etc/bind/rndc.conf.wp" || $k2b=="/etc/bind/keys.conf.wp"){ do this1 }else{ do this2 } What I would like to do is to have an array

Re: Re[2]: [PHP] Q on setlocale...

2003-09-30 Thread jsWalter
"Tom Rogers" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Those locales actually have to be available or they will be ignored and that > will depend on what type of system your running on. OK, I'm on Windows 2k, and after reading Microsofts docs, I thought it was all there. Mayb

RE: [PHP] arrays and php

2003-09-30 Thread Chris W. Parker
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=". $chkSessionF[$i] .">"); Firstly you should be putting double quotes around every

[PHP] Re: Session data is lost

2003-09-30 Thread Gal
please paste an example of the 2 pages Harald Kürsten wrote: Hi. In my script I start a session, register certain variables and redirect to the next page. The session file is written to /tmp, but contains no data ! Any idea ? Thanx for help, Harald -- PHP General Mailing List (http://www.php.net

[PHP] Session data is lost

2003-09-30 Thread Harald Kürsten
Hi. In my script I start a session, register certain variables and redirect to the next page. The session file is written to /tmp, but contains no data ! Any idea ? Thanx for help, Harald -- NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-

Re: [PHP] PHP coders spare time [OT}

2003-09-30 Thread Chris Shiflett
--- Curt Zirzow <[EMAIL PROTECTED]> wrote: > I'm on message 163194 and counting down to zero at this point :) > > Added a little person-> month summary too. Awesome. I think this is the best aggregation of this mailing list anyone has bothered to make. Nice job. I've posted more than the two lea

RE: [PHP] fsockopen()

2003-09-30 Thread Phil Ewington - 43 Plc
Sorry Jason, I did read the article but must have been away with the fairies for a moment. I was testing domains that are complete rubbish but they were all .com and .net so yes you were right and I am a complete fool ;o). Now getting an error message 'No such file or directory' when testing on ano

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

2003-09-30 Thread David T-G
Chris, et al -- ...and then Chris Shiflett said... % % --- David T-G <[EMAIL PROTECTED]> wrote: % > A hassle is right. What about your visitors who use a text-only ... % > The form should be designed correctly and safely in the first % > place. % % That's a valid complaint, but I fail to see how

Re[2]: [PHP] Q on setlocale...

2003-09-30 Thread Tom Rogers
Hi, Wednesday, October 1, 2003, 1:25:09 AM, you wrote: j> returns the current setting j> Thanks Tom... j> Now, if I understand this properly, j> This should return French_France... j>setlocale (LC_ALL, 'fr_FR'); j>echo setlocale (LC_ALL, ''); j> and this English_ Great Britain j>

RE: [PHP] Cleaning up my messy code

2003-09-30 Thread Didier McGillis
I can understand that. When I was a young coder, just fresh out of high school going to school for Sport Management, btw I believe and have stress to the education board that I sit on for high school and trade school tech programs that they not teach specifics about a certain language but that

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

2003-09-30 Thread Chris Shiflett
--- David T-G <[EMAIL PROTECTED]> wrote: > A hassle is right. What about your visitors who use a text-only > browser (or surf with images turned off) or who depend on > text-to-speech readers? > > This sort of thing is, IMNSHO, unnecessary and the wrong approach; > it makes the web harder to use w

Re: [PHP] Q on setlocale...

2003-09-30 Thread jsWalter
"Tom Rogers" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > Sunday, September 28, 2003, 5:39:53 PM, you wrote: > j> I found this function, setlocale... > > j> now, is there a way to GET the LOCALE setting of a machine? > > j> Walter > > > call setlocale with 0 (zero or NULL)

Re: [PHP] Change cell colour with selection from a drop down menu

2003-09-30 Thread Marek Kilimajer
David T-G wrote: Hmmm... Sounds like I'll have to have a div definition for each of my tabs (about nine), right? Still, it might be worth it if I managed to avoid javascript :-) It does not have to be a div, it can be almost any element. -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Change cell colour with selection from a drop down menu

2003-09-30 Thread David T-G
Ray, et al -- ...and then Ray Hunter said... % % > a good javascript list or resource, particularly for someone who doesn't % > want to learn a lot of javascript? % % I have not found a great website however, i have tons of success with % group comp.lang.javascript. They have anwser all of my qu

Re: [PHP] Change cell colour with selection from a drop down menu

2003-09-30 Thread David T-G
Marek, et al -- ...and then Marek Kilimajer said... % % If both images have the same size you don't even need javascript: Ooooh! Yay! That's what I *really* wanted, but I was told it couldn't be done! %

Re: [PHP] fsockopen()

2003-09-30 Thread Jason Wong
On Tuesday 30 September 2003 20:39, Phil Ewington - 43 Plc wrote: > Positive, I am deliberately using invalid domains to test how to catch > errors when users misspell their domain. Did you read that article (or are you aware of what it is about)? And what "invalid domains" have you tried? -- J

[PHP] pdf question

2003-09-30 Thread Floyd Baker
Hello... I have created a routine which outputs a pdf file of 'data only'. It is to be printed onto a pdf form which I obtain elsewhere. At present we are printing the blank form. Then placing it into the paper tray in order to print the data file to it. I would like to cause the data and for

Re: [PHP] Change cell colour with selection from a drop down menu

2003-09-30 Thread Marek Kilimajer
If both images have the same size you don't even need javascript: #mydiv { background-image : url(http://domain.org/image1.jpg); background-repeat : no-repeat; width : 200px; height : 120px; } #mydiv:hover { backgr

Re: [PHP] Change cell colour with selection from a drop down menu

2003-09-30 Thread Ray Hunter
> I am putting together a web site with graphics from the artist and I need > to learn how to change the image when I hover over it. Can you recommend > a good javascript list or resource, particularly for someone who doesn't > want to learn a lot of javascript? I have not found a great website

Re: [PHP] Avoiding "Warning - Page Expired"

2003-09-30 Thread Tom Rogers
Hi, Wednesday, October 1, 2003, 12:10:10 AM, you wrote: EC> Is there any way to avoid having this happen using php if someone sits EC> on a page too long and clicks the back button to go back to a form they EC> have filled out and not having the values in a session? EC> Thanks, EC> Ed To avoi

Re: [PHP] Change cell colour with selection from a drop down menu

2003-09-30 Thread David T-G
Marek, et al -- Please excuse this off-topic post. I've tried to ask with a fresh message but it never seems to appear... ...and then Marek Kilimajer said... % ... % If you don't want your users to wait for server responce each time they % touch something, use javascript. % % ... I am putti

[PHP] Avoiding "Warning - Page Expired"

2003-09-30 Thread Ed Curtis
Is there any way to avoid having this happen using php if someone sits on a page too long and clicks the back button to go back to a form they have filled out and not having the values in a session? Thanks, Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP] Re: Cleaning up my messy code

2003-09-30 Thread rush
"Chris" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm not looking for an IDE or code generator so much as some practical > advice for organization and framework when developing a larger app. I know > of PHP Fusebox, having programmed with Cold Fusion fusebox for a while, but > i

Re: [PHP] file_exists on different server...

2003-09-30 Thread David T-G
Tristan -- ...and then [EMAIL PROTECTED] said... % % RTFM? % (Sorry, very newbie question) Sort of, yes :-) See The Jargon File at http://catb.org/esr/jargon/ or jump straight to How To Ask Questions The Smart Way http://www.catb.org/~esr/faqs/smart-questions.html for not only a definit

Re: [PHP] An Error Tracking System

2003-09-30 Thread Marek Kilimajer
debug_backtrace() generates a PHP backtrace and returns this information as an associative array. You can use it to find out where the error ocured. Daryl Meese wrote: Hi all, I have a series of library files written in PHP that other developers use by including them into their code. I have als

Re: [PHP] An Error Tracking System

2003-09-30 Thread Burhan Khalid
Daryl Meese wrote: [ snip ] The problem, I only want to receive an email if the problem occurred in one of my library files and want the other developer to see the error if it is in their file. You can use some php constants, such as __FILE__ and __FUNCTION__ to narrow down when an email is tri

[PHP] Re: arrays and php

2003-09-30 Thread pete M
echo " "); might solve the problem pete hi I have a table with rows and each row contains a checkbox ( array) and a record. TD of the checkbox: echo(""); as you can see the array of checkboxes is called chkR. When the user clicks a submit button it calls the same page and the value of the array i

[PHP] An Error Tracking System

2003-09-30 Thread Daryl Meese
Hi all, I have a series of library files written in PHP that other developers use by including them into their code. I have also written an error handling system that emails me if certain kinds of problems arise. The problem, I only want to receive an email if the problem occurred in one of my

[PHP] arrays and php

2003-09-30 Thread Angelo Zanetti
hi I have a table with rows and each row contains a checkbox ( array) and a record. TD of the checkbox: echo(""); as you can see the array of checkboxes is called chkR. When the user clicks a submit button it calls the same page and the value of the array is received using: $chkR=$_POST['chkR'];

  1   2   >