Re: [PHP] Command Line Script

2004-10-29 Thread Chris Shiflett
--- Steve Douville <[EMAIL PROTECTED]> wrote: > I'm trying to write something to run as a cron job that will > perform an sftp command and then run a batch file. I was trying > to use: > > system("sftp [EMAIL PROTECTED]") > > But that stalls and waits for a password before continuing with > the s

[PHP] Command Line Script

2004-10-29 Thread Steve Douville
I'm trying to write something to run as a cron job that will perform an sftp command and then run a batch file. I was trying to use: system("sftp [EMAIL PROTECTED]") But that stalls and waits for a password before continuing with the script. Any ideas on how to pass the password when it's prompte

[PHP] Re: SNMP causing Apache to leave ports open?

2004-10-29 Thread Brad Stockdale
Greetings all, I ran into an interesting issue with PHP recently. I recompiled it to support SNMP. Once I did this, I ran into an issue where now every time an SNMP related command is used in a PHP script, Apache is leaving a UDP port open. Eventually this causes the system to run out of han

RE: [PHP] Session and validation

2004-10-29 Thread Vail, Warren
You might consider another approach, if you are using php5. It's called PRADO, I believe it was overall winner of the PHP programming contest sponsored by ZEND. http://www.zend.com/php5/contest/contest.php?id=36&single=1 This is how the product is described; sni

RE: [PHP] Session and validation

2004-10-29 Thread Pablo Gosse
[snip] I had this thread going yesterday. Then basically think it reached a stalemate. I'm wondering has anyone setup forms using session variables and validation. Validation where the validating is done on the same page, and the redirected on success ? [/snip] You need a class which will gener

Re: [PHP] Emulation of Application object

2004-10-29 Thread Robby Russell
On Sat, 2004-10-30 at 00:55 +0300, Anakreon wrote: > Hello all. > > How could I emulate the functionality provided by the Application object in ASP > with PHP? > > Anakreon > Rebuild it in PHP? You can try asp2php...but don't expect much out of it. -- /**

[PHP] (Regex) not working, take a quick look at it plz?

2004-10-29 Thread Ryan A
Hi, I totally suck at RegEx (but am trying to learn), I got the following from the web, but its not working for me... can anyone spot what I am doing wrong or whats wrong please? Its a small script and just around 8 lines are actually important (I think). Its basically something like a "template"

[PHP] Emulation of Application object

2004-10-29 Thread Anakreon
Hello all. How could I emulate the functionality provided by the Application object in ASP with PHP? Anakreon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: getting screen resolution

2004-10-29 Thread Matthew Sims
> Sorry sorry sorry guys... first time here and I didn't look at the before > postings... > extremely sorry... :) > We'll excuse the first time. Second time...that's a paddling. Talking out of turn...that's a paddling. Looking out the window...that's a paddling. Staring at my sandals...that's a pa

[PHP] Re: getting screen resolution

2004-10-29 Thread Louis O'Carroll
Sorry sorry sorry guys... first time here and I didn't look at the before postings... extremely sorry... :) "Louis O'Carroll" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Hi, > is there a function that gets the screen resolution of the user? > you can also reply directly to me

Re: [PHP] stripping text from a string

2004-10-29 Thread sylikc
Adam, > Hi, I use a piece of proprietary software at work that uses weird session > ID strings in the URL. A sample URL looks like: > > http://zed2.mdah.state.ms.us/F/CC8V7H1JF4LNBVP5KARL4KGE8AHIKP1I72JSBG6AYQSMK8YF4Y-01471?func=find-b-0 > > The weird session ID string changes each time you lo

Re: [PHP] getting screen resolution

2004-10-29 Thread Jennifer Goodie
-- Original message -- From: "Louis O'Carroll" <[EMAIL PROTECTED]> > Hi, > is there a function that gets the screen resolution of the user? > you can also reply directly to me... [EMAIL PROTECTED] > > Thanks, > Louis Search the archives before posting. This was d

Re: [PHP] getting screen resolution

2004-10-29 Thread Matthew Sims
> Hi, > is there a function that gets the screen resolution of the user? > you can also reply directly to me... [EMAIL PROTECTED] > > Thanks, > Louis > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Hey! Look what I found in the arc

Re: [PHP] getting screen resolution

2004-10-29 Thread Larry E . Ullman
is there a function that gets the screen resolution of the user? you can also reply directly to me... [EMAIL PROTECTED] No, you cannot get the screen resolution using PHP. You must use JavaScript. Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

[PHP] getting screen resolution

2004-10-29 Thread Louis O'Carroll
Hi, is there a function that gets the screen resolution of the user? you can also reply directly to me... [EMAIL PROTECTED] Thanks, Louis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] stripping text from a string

2004-10-29 Thread Adam Williams
Hi, I use a piece of proprietary software at work that uses weird session ID strings in the URL. A sample URL looks like: http://zed2.mdah.state.ms.us/F/CC8V7H1JF4LNBVP5KARL4KGE8AHIKP1I72JSBG6AYQSMK8YF4Y-01471?func=find-b-0 The weird session ID string changes each time you login. Anyway, how c

Re: [PHP] PHP in CGI ....php.in

2004-10-29 Thread Greg Donald
On Fri, 29 Oct 2004 21:45:24 +0200, Christian Ista <[EMAIL PROTECTED]> wrote: > > php -c /path/to/php.ini > > Could you explain ?? This is how you specify which php.ini file to use with a cgi binary php. Is that not what you asked? When you use php as a cgi binary (not as mod_php) you can run p

[PHP] Session and validation

2004-10-29 Thread Stuart Felenstein
I had this thread going yesterday. Then basically think it reached a stalemate. I'm wondering has anyone setup forms using session variables and validation. Validation where the validating is done on the same page, and the redirected on success ? Maybe that is my problem , that session variable

Re: [PHP] PHP in CGI ....php.in

2004-10-29 Thread Christian Ista
> php -c /path/to/php.ini Could you explain ?? My php pages are in /home/mysite/www Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] FOSDEM 2005

2004-10-29 Thread Christophe Gesché
I need a Schedule, speaker and public. That must be request this month. I think to 2 themes. 1° PHP5 (real use of new feature and first feedback) 2° PEAR to a stability and an better reputation. http://www.fosdem.org/2004/index/news/fosdem The FOSDEM (Free and Open Source Developers' European Mee

[PHP] FOSDEM 2005

2004-10-29 Thread Christophe Gesché
I need a Schedule, speaker and public. That must be request this month. I think to 2 themes. 1° PHP5 (real use of new feature and first feedback) 2° PEAR to a stability and an better reputation. http://www.fosdem.org/2004/index/news/fosdem The FOSDEM (Free and Open Source Developers' European Mee

Re: [PHP] PHP in CGI ....php.in

2004-10-29 Thread Greg Donald
On Fri, 29 Oct 2004 21:14:27 +0200, Christian Ista <[EMAIL PROTECTED]> wrote: > Someone else told me it's possible to have a php.ini by website. Could you > tell me where put in and what in ? php -c /path/to/php.ini -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destine

[PHP] PHP in CGI ....php.in

2004-10-29 Thread Christian Ista
Hello, On a server with linux redhat and apache 1.3 I have PHP4 and 5 installed in CGI. In the php.ini, register_globals is set to off. I'd like for a website have this flag set to on,. I tried with a .htaccess file with this value in : php_flag register_globals on but that's not work. Some

Re: [PHP] Code help on a multi select list

2004-10-29 Thread Stuart Felenstein
--- Greg Donald <[EMAIL PROTECTED]> wrote: > Bah.. Mountain Dew and a couple of Sudafed is where > it's at. :) > > That just doesn't sound right. Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Re: Bug-Tracking-System in PHP ?

2004-10-29 Thread Robby Russell
On Fri, 2004-10-29 at 12:04 -0500, Greg Donald wrote: > On Fri, 29 Oct 2004 18:25:54 +0200, Michelle Konzack > <[EMAIL PROTECTED]> wrote: > > I have tools for postgresql installed which drives mysql crazy... > > I must admit my curiosity here.. What tools? > > Seems pretty impossible since both

Re: [PHP] Learning PHP5

2004-10-29 Thread Matthew Sims
> On Thu, 28 Oct 2004 19:12:12 -0400, Michael Lauzon <[EMAIL PROTECTED]> > wrote: >> Unfortunately the PHP.net are not really for beginners, you have to >> have some programming knowledge to get started using their >> tutorials...this is just my opinion. > > Well you're certainly entitled to your o

FW: [PHP] Using Google's API with PHP

2004-10-29 Thread Rahul S. Johari
Ave, Yes indeed I did register with Google and I have the Key. Rahul S. Johari Coordinator, Internet & Administration Informed Marketing Services Inc. (518) 266-0909 x154 http://www.informed-sources.com On 10/29/04 12:45 PM, "Greg Donald" <[EMAIL PROTECTED]> wrote: > On Fri, 29 Oct 2004 1

Re: [PHP] Gawd I hate those useless error messages...

2004-10-29 Thread -{ Rene Brehmer }-
At 17:00 29-10-2004, Robby Russell wrote: On Fri, 2004-10-29 at 16:28 +0200, -{ Rene Brehmer }- wrote: > Hi gang > > I do realise that this error means I've forgotten a curly brace or > semi-colon somewhere, but seriously ... > > Parse error: parse error, unexpected $end in E:\web\Metalbunny\addgu

Re: [PHP] Friday afternoon - being thick

2004-10-29 Thread John Nichel
Aaron Wolski wrote: Is this what you are looking for: /r/n? Aaron That would be... \r\n -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Friday afternoon - being thick

2004-10-29 Thread Greg Donald
On Fri, 29 Oct 2004 12:29:29 -0400, Aaron Wolski <[EMAIL PROTECTED]> wrote: > Is this what you are looking for: > > /r/n? You mean \r\n ? -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] Re: Re: Bug-Tracking-System in PHP ?

2004-10-29 Thread Greg Donald
On Fri, 29 Oct 2004 18:25:54 +0200, Michelle Konzack <[EMAIL PROTECTED]> wrote: > I have tools for postgresql installed which drives mysql crazy... I must admit my curiosity here.. What tools? Seems pretty impossible since both Postgres and MySQL are stand-alone databases and have nothing to do

Re: [PHP] RE: Friday afternoon - being thick

2004-10-29 Thread Marek Kilimajer
Nunners wrote: Found it - went for a cup of tea and thought.. ! or nl2br(); Sorry _ From: Nunners [mailto:[EMAIL PROTECTED] Sent: 29 October 2004 16:52 To: '[EMAIL PROTECTED]' Subject: Friday afternoon - being thick Hi All, I'm having one of those Friday afternoon moments

Re: [PHP] Using Google's API with PHP

2004-10-29 Thread Jason Wong
On Friday 29 October 2004 15:56, Rahul S. Johari wrote: > Has anyone been able to successfully use the Google API with PHP here? I've > been trying different scripts and each one gives me a similar "Unexpected > T_Function" error. You're being economical with the details here so I have to rely on

RE: [PHP] Using Google's API with PHP

2004-10-29 Thread Jay Blanchard
[snip] Has anyone been able to successfully use the Google API with PHP here? I've been trying different scripts and each one gives me a similar "Unexpected T_Function" error. The other script from digitalpoint.com does run but it doesn't read my $q, basically it displays all results from google.

Re: [PHP] Code help on a multi select list

2004-10-29 Thread John Nichel
Greg Donald wrote: On Fri, 29 Oct 2004 10:15:57 -0500, Jay Blanchard <[EMAIL PROTECTED]> wrote: Make mine Communicty New Orleans Blend w/Chicory pleaseintravenously please... Bah.. Mountain Dew and a couple of Sudafed is where it's at. :) The blood running thru my veins is about 85% Mt. Dew,

Re: [PHP] Using Google's API with PHP

2004-10-29 Thread Greg Donald
On Fri, 29 Oct 2004 11:56:32 -0400, Rahul S. Johari <[EMAIL PROTECTED]> wrote: > Has anyone been able to successfully use the Google API with PHP here? I've > been trying different scripts and each one gives me a similar "Unexpected > T_Function" error. I've done it with Perl using the SOAP api.

RE: [PHP] Friday afternoon - being thick

2004-10-29 Thread Jay Blanchard
[snip] I've got some text that contains carriage returns, which are not . what tag do I need to use to display the text with the carriage returns? Can't even remember whether it's html or php. [/snip] ? or \n -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] Friday afternoon - being thick

2004-10-29 Thread Matt M.
> I've got some text that contains carriage returns, which are not . > what tag do I need to use to display the text with the carriage returns? > Can't even remember whether it's html or php. html, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

RE: [PHP] Friday afternoon - being thick

2004-10-29 Thread Aaron Wolski
Is this what you are looking for: /r/n? Aaron > -Original Message- > From: Nunners [mailto:[EMAIL PROTECTED] > Sent: October 29, 2004 11:52 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Friday afternoon - being thick > > Hi All, > > > > I'm having one of those Friday afternoon moments

[PHP] Re: Re: Bug-Tracking-System in PHP ?

2004-10-29 Thread Michelle Konzack
Am 2004-10-29 08:29:15, schrieb Robby Russell: > How do mysql and postgresql tools conflict? You should have no problem > running them side by side... or even several of each on the same > machine. They don't obsolete each other or cause dependancy issues. I have tools for postgresql installed wh

[PHP] Using Google's API with PHP

2004-10-29 Thread Rahul S. Johari
Ave, Has anyone been able to successfully use the Google API with PHP here? I've been trying different scripts and each one gives me a similar "Unexpected T_Function" error. The other script from digitalpoint.com does run but it doesn't read my $q, basically it displays all results from google..

Re: [PHP] Code help on a multi select list

2004-10-29 Thread Greg Donald
On Fri, 29 Oct 2004 10:15:57 -0500, Jay Blanchard <[EMAIL PROTECTED]> wrote: > Make mine Communicty New Orleans Blend w/Chicory pleaseintravenously > please... Bah.. Mountain Dew and a couple of Sudafed is where it's at. :) -- Greg Donald Zend Certified Engineer http://gdconsultants.com/

[PHP] RE: Friday afternoon - being thick

2004-10-29 Thread Nunners
Found it - went for a cup of tea and thought.. ! Sorry _ From: Nunners [mailto:[EMAIL PROTECTED] Sent: 29 October 2004 16:52 To: '[EMAIL PROTECTED]' Subject: Friday afternoon - being thick Hi All, I'm having one of those Friday afternoon moments - I can't remember what

[PHP] Friday afternoon - being thick

2004-10-29 Thread Nunners
Hi All, I'm having one of those Friday afternoon moments - I can't remember what tag to use. I've got some text that contains carriage returns, which are not . what tag do I need to use to display the text with the carriage returns? Can't even remember whether it's html or php. Chee

Re: [PHP] Gawd I hate those useless error messages...

2004-10-29 Thread Marek Kilimajer
-{ Rene Brehmer }- wrote: Hi gang I do realise that this error means I've forgotten a curly brace or semi-colon somewhere, but seriously ... Parse error: parse error, unexpected $end in E:\web\Metalbunny\addguest.php on line 274 where line 274 would be the last line, obviously (since it's alway

Re: [PHP] Re: Bug-Tracking-System in PHP ?

2004-10-29 Thread Greg Donald
On Fri, 29 Oct 2004 16:51:06 +0200, Michelle Konzack <[EMAIL PROTECTED]> wrote: > > http://www.mantisbt.org/ > > Nice features and 1.0 support postgresql > (can not use MySQL because some tools conflicts with postgresql) A database abstraction layer might be the solution to that. ADOdb is very g

Re: [PHP] Re: Bug-Tracking-System in PHP ?

2004-10-29 Thread Robby Russell
On Fri, 2004-10-29 at 16:51 +0200, Michelle Konzack wrote: > Am 2004-10-29 09:48:32, schrieb Reinhart Viane: > > Dunno if this is ok: > > http://www.mantisbt.org/ > > Nice features and 1.0 support postgresql > (can not use MySQL because some tools conflicts with postgresql) How do mysql and post

RE: [PHP] Code help on a multi select list

2004-10-29 Thread Jay Blanchard
[snip] It's Friday, and Jay probably needs coffee. ;) [/snip] Make mine Communicty New Orleans Blend w/Chicory pleaseintravenously please... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: SimpleXML: DOM, SAX or Other?

2004-10-29 Thread Bill McCuistion
Phpdiscuss - Php Newsgroups And Mailing Lists wrote: > Hi, > > Does anybody have any depthful knowledge of the SimpleXML extension in > PHP5?.. > > More accurately, do you know if the simpleXml->xpath() method uses DOM, > SAX or some other method of parsing a loaded XML document? > > I ask beca

Re: [PHP] Gawd I hate those useless error messages...

2004-10-29 Thread Robby Russell
On Fri, 2004-10-29 at 16:28 +0200, -{ Rene Brehmer }- wrote: > Hi gang > > I do realise that this error means I've forgotten a curly brace or > semi-colon somewhere, but seriously ... > > Parse error: parse error, unexpected $end in E:\web\Metalbunny\addguest.php > on line 274 > > where line 2

Re: [PHP] Gawd I hate those useless error messages...

2004-10-29 Thread Greg Donald
On Fri, 29 Oct 2004 16:28:39 +0200, -{ Rene Brehmer }- <[EMAIL PROTECTED]> wrote: > I do realise that this error means I've forgotten a curly brace or > semi-colon somewhere, but seriously ... I use vim. Shift-5 matches braces and parentheses easy enough. -- Greg Donald Zend Certified Engineer

Re: [PHP] Gawd I hate those useless error messages...

2004-10-29 Thread Richard Davey
Hello -{, Friday, October 29, 2004, 3:28:39 PM, you wrote: RB> since this is the test-server, I run with all errors, alerts, and messages RB> on, but isn't there someway to make PHP just a little more helpful when RB> this happens ??? Use an IDE that high-lights typos like this for you? Before i

[PHP] Re: Bug-Tracking-System in PHP ?

2004-10-29 Thread Michelle Konzack
Am 2004-10-29 09:48:32, schrieb Reinhart Viane: > Dunno if this is ok: > http://www.mantisbt.org/ Nice features and 1.0 support postgresql (can not use MySQL because some tools conflicts with postgresql) Unfortunatly no E-Mail support... :-( Greetings Michelle -- Linux-User #280138 with the Li

Re: [PHP] Re: SOAP w/PHP 4

2004-10-29 Thread Ben Ramsey
Dan Joseph wrote: Ahh ok. I actually thought about PEAR, but I don't think I have the option to install it on our web server I'm working with. If you need to, you can just download the appropriate PEAR packages and use the classes without needing to "install" anything. It's definitely easier jus

Re: [PHP] What is wrong with next code

2004-10-29 Thread Vladimir Shiray
I has noted specially: It works OK in PHP 4.3.6 or when line "$db2 = 0;" had been commented in all described versions of PHP. So next example works perfect: - error_reporting(E_ALL); $db1 = mysql_connect ('localhost', 'test', '1'); $db2 = mysql_

Re: [PHP] Code help on a multi select list

2004-10-29 Thread John Nichel
Jay Blanchard wrote: I don't understand this response. ;-) The OP said JavaScript, so I couched it in those terms. How do you respond to that response when the previous responder responded? :) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (htt

Re: [PHP] Re: SOAP w/PHP 4

2004-10-29 Thread Dan Joseph
> Check out these functions, which are listed as "experimental": > > Or this PEAR package, which is still in "beta" stage: > Ahh ok. I actually thought about PEAR, but I don't think I have the option to install it on our web server I'm

[PHP] Gawd I hate those useless error messages...

2004-10-29 Thread -{ Rene Brehmer }-
Hi gang I do realise that this error means I've forgotten a curly brace or semi-colon somewhere, but seriously ... Parse error: parse error, unexpected $end in E:\web\Metalbunny\addguest.php on line 274 where line 274 would be the last line, obviously (since it's always the last line when it d

Re: [PHP] Code help on a multi select list

2004-10-29 Thread John Nichel
Graham Cossey wrote: [snip] What is not to understand here...you are the one who said, "I want to do a server side trap". JavaScript would be the only way to do that. [snip] Jay, you may want to re-read what you typed as JavaScript, to the best of my knowledge, is actually client side... It's Frida

RE: [PHP] Code help on a multi select list

2004-10-29 Thread Jay Blanchard
[snip] [snip] > What is not to understand here...you are the one who said, "I want to do > a server side trap". JavaScript would be the only way to do that. [snip] Jay, you may want to re-read what you typed as JavaScript, to the best of my knowledge, is actually client side... [/snip] I was just

Re: [PHP] SOAP w/PHP 4

2004-10-29 Thread Steve Brown
> Does PHP 4 support SOAP, or does something have to be added to it?? We use the NuSOAP package in our SOAP apps: http://dietrich.ganx4.com/nusoap/index.php We had to use the latest CVS version of NuSOAP to get all of our apps working correctly, NOT the current "Stable" version however. -- PHP

RE: [PHP] Code help on a multi select list

2004-10-29 Thread Jay Blanchard
[snip] -Original Message- From: Ben Ramsey [mailto:[EMAIL PROTECTED] Sent: Friday, October 29, 2004 8:55 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Code help on a multi select list Jay Blanchard wrote: > [snip] >>I would choose javascript to to check this > > This response I don't und

[PHP] Re: SOAP w/PHP 4

2004-10-29 Thread Ben Ramsey
Dan Joseph wrote: Does PHP 4 support SOAP, or does something have to be added to it?? Check out these functions, which are listed as "experimental": Or this PEAR package, which is still in "beta" stage: -- Regards, Ben Ramsey http://benra

RE: [PHP] Code help on a multi select list

2004-10-29 Thread Graham Cossey
[snip] > What is not to understand here...you are the one who said, "I want to do > a server side trap". JavaScript would be the only way to do that. [snip] Jay, you may want to re-read what you typed as JavaScript, to the best of my knowledge, is actually client side... -- PHP General Mailing L

Re: [PHP] Code help on a multi select list

2004-10-29 Thread Greg Donald
On Fri, 29 Oct 2004 09:36:07 -0400, Ben Ramsey <[EMAIL PROTECTED]> wrote: > Precisely... you can't rely on the the client to do your checking. You > need to check from the server side to make sure no one's going to spoof > your code. With that in mind, you mind want to implement both > client-side

RE: [PHP] Code help on a multi select list

2004-10-29 Thread Stuart Felenstein
--- Jay Blanchard <[EMAIL PROTECTED]> wrote: > What is not to understand here...you are the one who > said, "I want to do > a server side trap". JavaScript would be the only > way to do that. Sorry, I used the wrong terminology. I think my statement was interpreted as using javascript at the s

[PHP] SOAP w/PHP 4

2004-10-29 Thread Dan Joseph
Hi All, Does PHP 4 support SOAP, or does something have to be added to it?? -Dan Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Code help on a multi select list

2004-10-29 Thread Ben Ramsey
Jay Blanchard wrote: [snip] I would choose javascript to to check this This response I don't understand. [/snip] What is not to understand here...you are the one who said, "I want to do a server side trap". JavaScript would be the only way to do that. I agree with Ben who said to do both. I don't

RE: [PHP] Code help on a multi select list

2004-10-29 Thread Jay Blanchard
[snip] --- Reinhart Viane <[EMAIL PROTECTED]> wrote: > I would choose javascript to to check this > This response I don't understand. [/snip] What is not to understand here...you are the one who said, "I want to do a server side trap". JavaScript would be the only way to do that. I agree with

Re: [PHP] Code help on a multi select list

2004-10-29 Thread Ben Ramsey
Stuart Felenstein wrote: I would choose javascript to to check this This response I don't understand. There are 50 options and the intent is to allow 3 of those 50. Then some "genius" comes along and turns off javascripting and chooses all 50. I KNOW it will happen. I wouldn't even dare to dre

RE: [PHP] Code help on a multi select list

2004-10-29 Thread Reinhart Viane
It is not my intention to start a discussion on this, however, some things, as you surely know, are better handled with javascript. If you turn it the way you say now, I can follow your idea and thus you are correct. It has te be very closed it seems. Will look into it :) -Original Message--

[PHP] Re: Code help on a multi select list

2004-10-29 Thread Ben Ramsey
Stuart Felenstein wrote: I want to do a server side trap if a user selects more from a mult select list then allowed. Just unsure and didn't find any examples. Seems people rely more on javascript these days. So here is how I grab the array: if ( is_array( $_REQUEST['LurkerIndustry'] ) ) { $_S

RE: [PHP] Code help on a multi select list

2004-10-29 Thread Stuart Felenstein
--- Reinhart Viane <[EMAIL PROTECTED]> wrote: > I would choose javascript to to check this > This response I don't understand. There are 50 options and the intent is to allow 3 of those 50. Then some "genius" comes along and turns off javascripting and chooses all 50. I KNOW it will happen.

RE: [PHP] Code help on a multi select list

2004-10-29 Thread Reinhart Viane
I would choose javascript to to check this -Original Message- From: Stuart Felenstein [mailto:[EMAIL PROTECTED] Sent: vrijdag 29 oktober 2004 15:13 To: [EMAIL PROTECTED] Subject: [PHP] Code help on a multi select list I want to do a server side trap if a user selects more from a mult se

Re: [PHP] File uploads and handling

2004-10-29 Thread Philip Thompson
[embarrassment] Thanks all. Of course it was a dumb thing I was doing. I didn't give the absolute path when "moving" the uploaded file. I got it to work though! [/embarrassment] ~Philip On Oct 28, 2004, at 9:40 PM, Robby Russell wrote: On Thu, 2004-10-28 at 19:04 -0500, Philip Thompson wrote:

RE: [PHP] Code help on a multi select list

2004-10-29 Thread Jay Blanchard
[snip] I want to do a server side trap Seems people rely more on javascript these days. [/snip] There is a reason for that. It is in the first chapter of the popular book Server Side is From Mars, Client Side is From Venus. "Make no mistake, people often confuse the two. You, being the sm

[PHP] Code help on a multi select list

2004-10-29 Thread Stuart Felenstein
I want to do a server side trap if a user selects more from a mult select list then allowed. Just unsure and didn't find any examples. Seems people rely more on javascript these days. So here is how I grab the array: if ( is_array( $_REQUEST['LurkerIndustry'] ) ) { $_SESSION['l_industry'] = a

Re: [PHP] exec() or system() to run *.exe and let php continue with code

2004-10-29 Thread Matt M.
> Hi all im new to PHP and im trying to let a process (*.exe file) to run in > background(localhost) and let php continue processing the script. But PHP > always stops and wait for the (*.exe) stops/close! > > Anyone here can help me by giving me an simply example to let PHP run the > exe file and

Re: [PHP] Date Calculation

2004-10-29 Thread Robert Sossomon
Wouldn't just making the script get 2 time stamps be more efficient, since you are creating the database calls anyways? Or am I over simplifying it? // current time at start of script $before = strtotime("now"); //All your DB stuff { } // current time at end of script $after = strtotime("

[PHP] exec() or system() to run *.exe and let php continue with code

2004-10-29 Thread lleoneye
Hi all im new to PHP and im trying to let a process (*.exe file) to run in background(localhost) and let php continue processing the script. But PHP always stops and wait for the (*.exe) stops/close! Anyone here can help me by giving me an simply example to let PHP run the exe file and continu

Re: [PHP] Splitting a webpage

2004-10-29 Thread Greg Donald
On Fri, 29 Oct 2004 11:52:46 +0100, Nunners <[EMAIL PROTECTED]> wrote: > Can someone suggest a way of going through the string to find the relevant > bits - is split the easiest way? I would use preg_match(). -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/

[PHP] Splitting a webpage

2004-10-29 Thread Nunners
I'm trying to create an application that stores details from another website. I've successfully downloaded the webpage - that was the easy bit - now I want to be able to pick out specific details from the page. Unfortunately, the designer of the page didn't do nice things like put summary bits

RE: [PHP] trying 2 pull data out table and populate a list box

2004-10-29 Thread Reinhart Viane
Try this: And then to populate the list: select one '.$rijladders["$x"]["laddername"].''); } ?> -Original Message- From: Garth Hapgood - Strickland [mailto:[EMAIL PROTECTED] Sent: vrijdag 29 oktober 2004 12:36 To: [EMAIL PROTECTED] Subject: Re: [PHP] trying

Re: [PHP] trying 2 pull data out table and populate a list box

2004-10-29 Thread Garth Hapgood - Strickland
Thanx so much Reinhart It works fine now. Ok so i have my list populated now. IF I want to diplay "select one" at the top of the list box, not as an option, but just so that the user knows to select an item. How will I put that in the code? Greets Garth -- PHP General Mailing List (http://www.

RE: [PHP] trying 2 pull data out table and populate a list box

2004-10-29 Thread Reinhart Viane
>if ( mysql_num_rows( $rsladders ) ) >{ >while ( $rijladders = mysql_fetch_array( $rsladders ) ) >{ >echo <<$rijladders[laddername] >EOF; >} >} >Like I wrote above, I tend to use heredoc syntax for stuff like this. This indeed seems to be a faster way. Can you point me out the <

Re: [PHP] trying 2 pull data out table and populate a list box

2004-10-29 Thread Greg Donald
On Fri, 29 Oct 2004 09:52:49 +0200, Reinhart Viane <[EMAIL PROTECTED]> wrote: > I always do this with a script like this: > > $sql="select * from ladders order by laddername"; > $rsladders=mysql_query($sql); > $aantal_ladders=mysql_num_rows($rsladders); > > for($x=0;$x<$aa

RE: [PHP] Help needed

2004-10-29 Thread Graham Cossey
> > Hi > I developed a html form in which I have text box and combo > box. Now my > problem is I have to pass the values of this page to another > page. How can i > pass the values/variables to next page using href > Kindly help me > Thanks > Suma As you've posted to a PHP list I will assume

Re: [PHP] Help needed

2004-10-29 Thread Greg Donald
On Fri, 29 Oct 2004 15:22:29 +0530, suma parakala <[EMAIL PROTECTED]> wrote: > I developed a html form in which I have text box and combo box. Now my > problem is I have to pass the values of this page to another page. How can i > pass the values/variables to next page using href > Kindly hel

[PHP] Help needed

2004-10-29 Thread suma parakala
Hi I developed a html form in which I have text box and combo box. Now my problem is I have to pass the values of this page to another page. How can i pass the values/variables to next page using href Kindly help me Thanks Suma ___

RE: [PHP] Parsing a concatenated variable and string?

2004-10-29 Thread Jack . van . Zanen
Hi Paul Try print $instrument."number"; jack -Original Message- From: Paul Evans [mailto:[EMAIL PROTECTED] Sent: Friday, October 29, 2004 9:45 AM To: [EMAIL PROTECTED] Subject: [PHP] Parsing a concatenated variable and string? Hi, I am new to PHP and cant seem to find a way to par

RE: [PHP] trying 2 pull data out table and populate a list box

2004-10-29 Thread Reinhart Viane
I always do this with a script like this: $sql="select * from ladders order by laddername"; $rsladders=mysql_query($sql); $aantal_ladders=mysql_num_rows($rsladders); for($x=0;$x<$aantal_ladders;$x++) { $rijladders["$x"]=mysql_fetch_array($rsladders)

RE: [PHP] Bug-Tracking-System in PHP ?

2004-10-29 Thread Reinhart Viane
Dunno if this is ok: http://www.mantisbt.org/ -Original Message- From: Michelle Konzack [mailto:[EMAIL PROTECTED] Sent: vrijdag 29 oktober 2004 5:31 To: [EMAIL PROTECTED] Subject: [PHP] Bug-Tracking-System in PHP ? Hello, Curently I create my website and I need for my development proj

[PHP] Parsing a concatenated variable and string?

2004-10-29 Thread Paul Evans
Hi, I am new to PHP and cant seem to find a way to parse a concatenated string and variable. To explain: I have a database to catalogue a composers works, one of the tables has a list of instruments which I then access to dynamically display on a wep page using checkboxes - if a particular in

Re: [PHP] About File Paths [unresolved]

2004-10-29 Thread Nick Wilson
* and then Matthew Sims declared > > If a script is to be called with cron *outside* of the http directory, > > how should file system paths be handled? > > > > Should I use > > > > fopen('a_path/relative_to/thescript.php'); > > > > or > > > > fopen('/usr/var/www/absolute_file_path/thescript.p