Re: [PHP] Problem with Regular expression

2004-10-27 Thread Curt Zirzow
* Thus wrote kioto: > Hi all. > I have a problem: i want subs any characters from a string but i don't > have fix the problem. > The string that i want to manipulate is the value from a text field of a > search engine. > The characters that i want to try substitute is &&, &, +, -, |, ||, or, > a

[PHP] required help on mail function

2004-10-27 Thread kunal Aggarwal
Dear friend, I am using PHP 4.3.4 version. Please tell how to unpload a mail function. Error comes on executing mail function is "mail(): SMTP server response: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] in C:\Program Files\Apache Group\Apache2\htdocs\testprodigious\MAIL\mail_enquiry.php on

Re: [PHP] output htmkl file as text

2004-10-27 Thread Curt Zirzow
* Thus wrote Jerry Swanson: > I want to output html file on the screen like text not like html file. > I want a program to read html file and output source code to the screen. > > Any ideas how to fake browser, so browser will print html tags on the screen? By default php will send a header: C

Re: [PHP] PHP Command Line Scripts 'Aborting' at end ...

2004-10-27 Thread Curt Zirzow
* Thus wrote Marc G. Fournier: > > Note that the following is based on php installed via the FreeBSD ports > system ... > > > > I'm getting a core file, but if I try: > > gdb /usr/local/bin/php php.core ... its definitely not looking good: > > s# gdb /usr/local/bin/php php.core > ... > > Co

RE: [PHP] Newbie again: get no $QUERY_STRING

2004-10-27 Thread Robby Russell
On Thu, 2004-10-28 at 09:28 +0530, Zareef Ahmed wrote: > Hi, >What are you trying to do? If you want to get the values of query > string they will be available in $_GET array. > > Try > > Print ""; > print_r ($_GET); > Print ""; > Yeah, as a habit I usually have a function called something

RE: [PHP] Newbie again: get no $QUERY_STRING

2004-10-27 Thread Zareef Ahmed
Hi, What are you trying to do? If you want to get the values of query string they will be available in $_GET array. Try Print ""; print_r ($_GET); Print ""; Zareef ahmed -- Zareef Ahmed :: A PHP develoepr in Delhi ( In

Re: [PHP] PHP & XML

2004-10-27 Thread Dan Joseph
> Look at the SOAP functions. There's a SOAP client & SOAP server. The > applications use SOAP calls to transfer their XML messages over the > Intenet, typically http/https, but could also use smtp for transport. oh... good idea, I didn't even think of SOAP. I'll check with our other developer

Re: [PHP] bless function: a better aproach

2004-10-27 Thread Curt Zirzow
* Thus wrote Francisco M. Marzoa Alonso: > Giving it a round, this seems to be a better aproach than the previous > one. It has the advantage of provide direct access to the original array > obtained from casting without boring about ___FAKE_KEYS_. > > ... > > > $Obj = new TestClass (); > //$C

Re: [PHP] PHP Command Line Scripts 'Aborting' at end ...

2004-10-27 Thread Marc G. Fournier
I just did a reinstall from ports, and it works now as well ... maybe a stale library for one of hte modules :( thanks ... On Wed, 27 Oct 2004, Greg Donald wrote: On Wed, 27 Oct 2004 13:44:54 -0300 (ADT), Marc G. Fournier <[EMAIL PROTECTED]> wrote: I have a really simple PHP script that, when you

Re: [PHP] Default value if parameter is not passed in

2004-10-27 Thread Curt Zirzow
* Thus wrote Quanah Gibson-Mount: > Right now, I'm tweaking a function that has a bunch of optional parameters. > I would like to be able to set a default value for the very last one if it > is not passed in. This essentially looks like: > > > if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_C

Re: [PHP] Q re: php-5.0.2 ./configure --with-soap --with-openssl --with-tidy (copy)

2004-10-27 Thread Curt Zirzow
* Thus wrote Bill McCuistion: > Q re: php-5.0.2 ./configure --with-soap --with-openssl --with-tidy > > Hello all. Hoping for some direction with the above step. > > Have PHP-5.0.2 and can configure the soap and openssl options, but when I > add the tidy option, the operation stops with the foll

RE: [PHP] __PHP_Incomplete_Class Errors...

2004-10-27 Thread Stephen Craton
Ok, thanks, that cleared up one problem, but now I've got a new one. I have a few functions that contact with the database from the separate classes. One function in particular has many, which is this code: function login($user, $pass) { $sql = 'SELECT * FROM '.PREFIX.'users WHERE

[PHP] Re: PHP Compiler?

2004-10-27 Thread Jason Barnett
Bill McCuistion wrote: Sorry if this is an old question: Yep, but I'll answer anyway :P Where can I find information on any plans to create a compiler for PHP, especially v5.x? There *are* some compilers out there, not sure where all of them are with respect to version of PHP. turck, zend, road

RE: [PHP] PHP Compiler?

2004-10-27 Thread Vail, Warren
Try; http://www.zend.com Warren Vail -Original Message- From: Bill McCuistion [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 5:27 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP Compiler? Sorry if this is an old question: Where can I find information on any plans to creat

Re: [PHP] PHP Compiler?

2004-10-27 Thread Robby Russell
On Wed, 2004-10-27 at 19:26 -0500, Bill McCuistion wrote: > Sorry if this is an old question: > > Where can I find information on any plans to create a compiler for PHP, > especially v5.x? > > Barring that, is there a PHP syntax checker that would enforce some of the > types of things that a co

[PHP] PHP Compiler?

2004-10-27 Thread Bill McCuistion
Sorry if this is an old question: Where can I find information on any plans to create a compiler for PHP, especially v5.x? Barring that, is there a PHP syntax checker that would enforce some of the types of things that a compiler would find? I remember from back in my MS-DOS days the very go

[PHP] Re: https://...

2004-10-27 Thread Bill McCuistion
Afan Pasalic wrote: > hi, > how can I check using php that I use SSL? > tried with > REQUEST_URI > HTTP_HOST > PATH_INFO > but any of these does show http:// > > Thanks! > > -afan from the command line... php -m should list openssl if ./configure --with-openssl option specified. -- PHP Genera

RE: [PHP] Default value if parameter is not passed in

2004-10-27 Thread Robby Russell
On Wed, 2004-10-27 at 16:56 -0700, Quanah Gibson-Mount wrote: > > --On Wednesday, October 27, 2004 4:53 PM -0700 "Vail, Warren" > <[EMAIL PROTECTED]> wrote: > > > I notice that none of your variables use the PHP convention of $ preceding > > the variable name, I also do not see you defining a va

RE: [PHP] Default value if parameter is not passed in

2004-10-27 Thread Vail, Warren
OK, so it was "C" code on a PHP list, isn't there a PHP developers list that would work better? Warren Vail -Original Message- From: Quanah Gibson-Mount [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 4:56 PM To: Vail, Warren; [EMAIL PROTECTED] Subject: RE: [PHP] Default valu

RE: [PHP] Default value if parameter is not passed in

2004-10-27 Thread Quanah Gibson-Mount
--On Wednesday, October 27, 2004 4:53 PM -0700 "Vail, Warren" <[EMAIL PROTECTED]> wrote: I notice that none of your variables use the PHP convention of $ preceding the variable name, I also do not see you defining a value for DEFAULT_VALUE, which by the upper case convention seems to be referrin

RE: [PHP] Default value if parameter is not passed in

2004-10-27 Thread Vail, Warren
I notice that none of your variables use the PHP convention of $ preceding the variable name, I also do not see you defining a value for DEFAULT_VALUE, which by the upper case convention seems to be referring to a global constant. Is it not true (no pun intended) that if a variable (or constant) h

RE: [PHP] User Screen Resolution

2004-10-27 Thread Vail, Warren
Good point, I suspect much of the desirability of having PHP on the client, is it seems almost cruel and unusual punishment to have to learn how to use a screwdriver, after having spent valuable time learning all about a hammer. I wonder if I would have been so enthusiastic about learning and using

[PHP] Default value if parameter is not passed in

2004-10-27 Thread Quanah Gibson-Mount
Right now, I'm tweaking a function that has a bunch of optional parameters. I would like to be able to set a default value for the very last one if it is not passed in. This essentially looks like: if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|ssl", &link, &arg1, &arg1_len, &arg2, &a

Re: [PHP] User Screen Resolution

2004-10-27 Thread Brad Bonkoski
There has been talk in the past about making a phpscript that would run on the client, but then there are all the problems with browser integration, and universal support. I say this is a good niche for javascript, so make use of it if you need it just like you don't use a hammer to tighten

RE: RE: [PHP] User Screen Resolution

2004-10-27 Thread Vail, Warren
One aspect of this list that I really enjoy is finding out that everyone but me is on vacation or out of the office. 8-b Warren Vail -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 4:22 PM To: Vail, Warren Subject: Re: RE: [PHP] U

RE: [PHP] User Screen Resolution

2004-10-27 Thread Vail, Warren
This is because there is no way for PHP to run in the browser. Wouldn't it be nice to have a plug-in that allowed PHP to run there, perhaps as a JavaScript replacement? Guess it would have to be a throttled back version of PHP to adhere to sandbox security concerns. Sigh Warren Vail -

Re: [PHP] User Screen Resolution

2004-10-27 Thread Robby Russell
On Wed, 2004-10-27 at 15:25 -0700, Web Guy wrote: > I am new to PHP and couldn't find any Globals for the User's Screen > Resolution. (don't laugh at me please) > > I used to use a Javascript function to pass the resolution using > screen.width and screen.height. > > What I am actually trying to

Re: [PHP] User Screen Resolution

2004-10-27 Thread Matthew Sims
> I am new to PHP and couldn't find any Globals for the User's Screen > Resolution. (don't laugh at me please) > > I used to use a Javascript function to pass the resolution using > screen.width and screen.height. > > What I am actually trying to do is make a page resize depending on screen > resol

Re: [PHP] User Screen Resolution

2004-10-27 Thread Larry E . Ullman
I am new to PHP and couldn't find any Globals for the User's Screen Resolution. (don't laugh at me please) I used to use a Javascript function to pass the resolution using screen.width and screen.height. What I am actually trying to do is make a page resize depending on screen resolution, in case

Re: [PHP] urlencode and google search query

2004-10-27 Thread Marek Kilimajer
Joel CARNAT wrote: On Wed, Oct 27 2004 - 23:41, Marek Kilimajer wrote: how comes urlencode generates "%E9" and google generates "%C3%A9" ? is google using some specific encoding ? any tweak to encode "the google way" ? you can specify your encoding to google using "ie" parameter. and output hum

Re: [PHP] PHP & XML

2004-10-27 Thread Bill McCuistion
Dan Joseph wrote: >> how is the xml being sent to you from the other place on the internet? is >> it being posted in a form, etc.? > > It won't be thru a form. I guess it'll be a direct send, he'll format > something like... > > >Jack >239048098324 > > > ... in a string and send it o

Re: Re: [PHP] urlencode and google search query

2004-10-27 Thread Joel CARNAT
On Wed, Oct 27 2004 - 23:41, Marek Kilimajer wrote: > >how comes urlencode generates "%E9" and google generates "%C3%A9" ? > >is google using some specific encoding ? any tweak to encode "the google > >way" ? > > you can specify your encoding to google using "ie" parameter. and output hum... I

[PHP] User Screen Resolution

2004-10-27 Thread Web Guy
I am new to PHP and couldn't find any Globals for the User's Screen Resolution. (don't laugh at me please) I used to use a Javascript function to pass the resolution using screen.width and screen.height. What I am actually trying to do is make a page resize depending on screen resolution, in case

[PHP] Q re: php-5.0.2 ./configure --with-soap --with-openssl --with-tidy (copy)

2004-10-27 Thread Bill McCuistion
Q re: php-5.0.2 ./configure --with-soap --with-openssl --with-tidy Hello all. Hoping for some direction with the above step. Have PHP-5.0.2 and can configure the soap and openssl options, but when I add the tidy option, the operation stops with the following message. --> checking for TIDY sup

[PHP] Re: simplexml question.

2004-10-27 Thread Bill McCuistion
[EMAIL PROTECTED] wrote: > > Hello, > > I looking to get the data out of this test.xml file but dont > know how to get the data out because of the "bo:" namespaces. > If I remove all "bo:" from the xml then it works fine... > Is anyone can tell me how to do it? > > > $file = "test.xml"; > $xm

RE: [PHP] https://...

2004-10-27 Thread Vail, Warren
Depends on the server and the release, but my apache shows If($_SERVER["HTTPS"] == "on") // if true is secure Lots of other information like cypher key size, etc. Look in the $_SERVER array. Keep in mind that lots of servers are setup to use the same htdocs base directory for both secure and in

Re: [PHP] https://...

2004-10-27 Thread Greg Donald
On Wed, 27 Oct 2004 16:35:14 -0500, Afan Pasalic <[EMAIL PROTECTED]> wrote: > hi, > how can I check using php that I use SSL? > tried with > REQUEST_URI > HTTP_HOST > PATH_INFO > but any of these does show http:// phpinfo() describes my SSL stuff pretty well if that's what you mean. And I also fo

Re: [PHP] https://...

2004-10-27 Thread Robby Russell
On Wed, 2004-10-27 at 16:35 -0500, Afan Pasalic wrote: > hi, > how can I check using php that I use SSL? > tried with > REQUEST_URI > HTTP_HOST > PATH_INFO > but any of these does show http:// > > Thanks! > > -afan > Have you looked at $_SERVER['SERVER_PORT'] and $_SERVER['SERVER_PROTOCOL'] ?

Re: [PHP] urlencode and google search query

2004-10-27 Thread Marek Kilimajer
Joel CARNAT wrote: Hi, I have a submit form from where I can search things to several sites (google, freshmeat, ...). I use PHP4/urlencode to generate the correct query. But it seems google does not use the right encoding :( example - query="programme télé": $engine = $_POST["e

[PHP] https://...

2004-10-27 Thread Afan Pasalic
hi, how can I check using php that I use SSL? tried with REQUEST_URI HTTP_HOST PATH_INFO but any of these does show http:// Thanks! -afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] @session_start generates a new session_id

2004-10-27 Thread Lizet Peña de Sola
session_id($username); session_start(); Solved the problem... Thank you all for the replies... -Original Message- From: Lizet Peña de Sola [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 3:55 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] @session_start generat

[PHP] Timezone

2004-10-27 Thread Victor C.
Is there a way to get PHP to display the full name of time zone? date(t) only displays in the format of 'EDT', 'PDT', etc.. But I need the full name of the timezone, ie. "Pacific daylight saving time". I know I can hard code all of these using switch statemetns. I'm just wondering if there is a fu

Re: [PHP] SOLVED - Validation and session variables

2004-10-27 Thread Stuart Felenstein
I guess this was the one thing I overlooked. Since the page had to return to itself if validation errors, it was already set in the validation script to do so. So, as I had shown in my original post the form action was blank ..well "" Simple solution to keeping my session vars, set action to pa

Re: [PHP] PHP & XML

2004-10-27 Thread Dan Joseph
> how is the xml being sent to you from the other place on the internet? is > it being posted in a form, etc.? It won't be thru a form. I guess it'll be a direct send, he'll format something like... Jack 239048098324 ... in a string and send it over. What methods are best suited for so

Re: [PHP] Millisecond in PHP

2004-10-27 Thread Victor C.
Thank you all for answering! Really appreciate it. "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Victor C. wrote: > > Hi, > > > > I'm trying to get PHP to display the millisecond of current time. I can't > > find that option in "Date()".. Any hints? > > > > Thanks a l

Re: [PHP] Millisecond in PHP

2004-10-27 Thread Marek Kilimajer
Victor C. wrote: Hi, I'm trying to get PHP to display the millisecond of current time. I can't find that option in "Date()".. Any hints? Thanks a lot microtime() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Millisecond in PHP

2004-10-27 Thread Jim Grill
> Hi, > > I'm trying to get PHP to display the millisecond of current time. I can't > find that option in "Date()".. Any hints? > > Thanks a lot > Take a look at http://us2.php.net/manual/en/function.microtime.php Jim Grill ZCE -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Millisecond in PHP

2004-10-27 Thread John Nichel
Victor C. wrote: Hi, I'm trying to get PHP to display the millisecond of current time. I can't find that option in "Date()".. Any hints? Thanks a lot http://us4.php.net/manual/en/function.microtime.php -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing Li

RE: [PHP] @session_start generates a new session_id

2004-10-27 Thread Lizet Peña de Sola
It still doesn't work :(... When I try to destroy the session without asking if there's a session_id, it gives me a warning, I fixed it with the if(session_id()) but still, when the user logs in again with a different profile, in the same browser window, the profile that is loaded is the previous

[PHP] Millisecond in PHP

2004-10-27 Thread Victor C.
Hi, I'm trying to get PHP to display the millisecond of current time. I can't find that option in "Date()".. Any hints? Thanks a lot -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] @session_start generates a new session_id

2004-10-27 Thread Lizet Peña de Sola
I'll try that, thanks a lot. -Original Message- From: Reinhart Viane [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 26, 2004 12:49 PM To: 'Lizet Peña de Sola'; [EMAIL PROTECTED] Subject: RE: [PHP] @session_start generates a new session_id Instead of: Try this: //unregister

[PHP] PHP & XML

2004-10-27 Thread Dan Joseph
Hi All, Just looking to be pointed in the right direction... I've googled and all that, but don't know what exactly I should be looking for. I am writing an XML application with PHP. Side one - send XML To side two and wait for a response: Side two - sit and wait for side one to send XML, th

[PHP] PHP4 PHP4ISAPI Extensions

2004-10-27 Thread George Hester
In Windows 2000 Server SP3 I tried to set up the php4isapi.dll redirector. I can get it to work as long as there are no extensions loaded. But if there are from my php.ini then I get ./extensions\php_gd2.dll not found for example. But if I run all the extensions I am using are found and enabl

RE: [PHP] Validation and session variables

2004-10-27 Thread Graham Cossey
> --- Chris Shiflett <[EMAIL PROTECTED]> wrote: > > > On each page, it might be good to add some debugging > > information near the > > top (where session_start() is): > > > > > session_start(); > > echo '' . htmlentities(print_r($_COOKIE, true)) > > . ''; > > echo '' . htmlentities(print_r($_GET

Re: [PHP] PHP Command Line Scripts 'Aborting' at end ...

2004-10-27 Thread Greg Donald
On Wed, 27 Oct 2004 13:44:54 -0300 (ADT), Marc G. Fournier <[EMAIL PROTECTED]> wrote: > > I have a really simple PHP script that, when you run it, generates an > Abort at the end of it: > > ams# /tmp/test.php > testAbort (core dumped) I just installed php4-cgi on a FreeBSD 4.10 system I have. T

Re: [PHP] DOM XML/XSL questions

2004-10-27 Thread Dusty Bin
Christian Stocker wrote: Use $dom->createProcessingInstruction($target, $data) ; and then append this to the document. that could maybe work see http://ch.php.net/manual/en/function.dom-domdocument-createprocessinginstruction.php for more details. Thank you Christian, the following code worked fi

Re: [PHP] output htmkl file as text

2004-10-27 Thread Greg Donald
On Wed, 27 Oct 2004 13:41:20 -0400, Jerry Swanson <[EMAIL PROTECTED]> wrote: > I want to output html file on the screen like text not like html file. > I want a program to read html file and output source code to the screen. > > Any ideas how to fake browser, so browser will print html tags on the

Re: [PHP] PHP Command Line Scripts 'Aborting' at end ...

2004-10-27 Thread Greg Donald
On Wed, 27 Oct 2004 13:44:54 -0300 (ADT), Marc G. Fournier <[EMAIL PROTECTED]> wrote: > > Not sure how to debug ... help? You said you installed in via ports, so did you happen to check the 'debug' option when you installed it? [ ] DEBUG Enable debug Just a question.. as that might help exp

Re: [PHP] Validation and session variables

2004-10-27 Thread Stuart Felenstein
--- Chris Shiflett <[EMAIL PROTECTED]> wrote: > This is most likely due to your malformed Location > header. It requires an > absolute URL, and some browsers (notably several > versions of IE, but there > may be others) do not send the proper Cookie header > when requesting the > new URL if you us

Re: [PHP] output htmkl file as text

2004-10-27 Thread John Nichel
Jerry Swanson wrote: I want to output html file on the screen like text not like html file. I want a program to read html file and output source code to the screen. Any ideas how to fake browser, so browser will print html tags on the screen? ASCII -- John C. Nichel ÜberGeek KegWorks.com 716.856.

[PHP] PHP Command Line Scripts 'Aborting' at end ...

2004-10-27 Thread Marc G. Fournier
Note that the following is based on php installed via the FreeBSD ports system ... I have a really simple PHP script that, when you run it, generates an Abort at the end of it: ams# /tmp/test.php testAbort (core dumped) ams# cat /tmp/test.php #!/usr/local/bin/php Even if I change the script sl

[PHP] output htmkl file as text

2004-10-27 Thread Jerry Swanson
I want to output html file on the screen like text not like html file. I want a program to read html file and output source code to the screen. Any ideas how to fake browser, so browser will print html tags on the screen? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Validation and session variables

2004-10-27 Thread Stuart Felenstein
--- Chris Shiflett <[EMAIL PROTECTED]> wrote: > On each page, it might be good to add some debugging > information near the > top (where session_start() is): > > session_start(); > echo '' . htmlentities(print_r($_COOKIE, true)) > . ''; > echo '' . htmlentities(print_r($_GET, true)) . > ''; > e

Re: [PHP] Validation and session variables

2004-10-27 Thread Greg Donald
On Wed, 27 Oct 2004 07:51:48 -0700 (PDT), Chris Shiflett <[EMAIL PROTECTED]> wrote: > It's > really not worth discussing the advantages of bottom posting, but I will > say that trimming your posts makes people not mind so much. :-) I love discussing the advantages of documented standards, and 'kno

Re: [PHP] Validation and session variables

2004-10-27 Thread Jason Wong
On Wednesday 27 October 2004 14:36, Chris Shiflett wrote: > --- Jason Wong <[EMAIL PROTECTED]> wrote: > > As I have pointed out in a previous thread and Mike has pointed > > out in this thread you MUST use > > > > session_write_close() > > > > before you do a redirect. > > Are you certain? If thi

[PHP] bless function: a better aproach

2004-10-27 Thread Francisco M. Marzoa Alonso
Giving it a round, this seems to be a better aproach than the previous one. It has the advantage of provide direct access to the original array obtained from casting without boring about ___FAKE_KEYS_. function obj2array ( &$Instance ) { $clone = (array) $Instance; $rtn = array (); $rt

Re: [PHP] PHP + Javascript, immediate database update

2004-10-27 Thread Matt M.
> I have a webform which my users are expecting to act like a Windows program, > they only need to check the box and it is automatically written to the > database. you could try this http://developer.apple.com/internet/webcontent/iframe.html or this http://jibbering.com/2002/4/httprequest.html

Re: [PHP] DOM XML/XSL questions

2004-10-27 Thread Christian Stocker
On Wed, 27 Oct 2004 13:52:13 +0100, Dusty Bin <[EMAIL PROTECTED]> wrote: > I have a requirement to create an XML file which looks approximately like: > > > > >Item Text >... > > > The file needs to be formatted. > > I built a dom using the Dom extension, creating a document, adding >

[PHP] PHP + Javascript, immediate database update

2004-10-27 Thread Steve McGill
Hi everyone, I have a webform which my users are expecting to act like a Windows program, they only need to check the box and it is automatically written to the database. So I'd like to use a combination of javascript, like this, but it isn't quite elegent enough: - Tick the box. - Javascript op

Re: [PHP] Validation and session variables

2004-10-27 Thread Chris Shiflett
--- Stuart Felenstein <[EMAIL PROTECTED]> wrote: > Okay, first, sorry, but what is top post? Writing > before the reply or after? Top posting is writing your reply above what you are replying to. It's really not worth discussing the advantages of bottom posting, but I will say that trimming your p

[PHP] urlencode and google search query

2004-10-27 Thread Joel CARNAT
Hi, I have a submit form from where I can search things to several sites (google, freshmeat, ...). I use PHP4/urlencode to generate the correct query. But it seems google does not use the right encoding :( example - query="programme télé": $engine = $_POST["engine"]; $query =

Re: [PHP] Validation and session variables

2004-10-27 Thread Chris Shiflett
--- Stuart Felenstein <[EMAIL PROTECTED]> wrote: > Thank Chris , but met with same behaviour. Well, it was certainly a problem, so at least it's one less thing to worry about. :-) > 2 Questions: > 1- Should I drop the $url line ? I tried both ways , > no change though. It doesn't matter. Your me

Re: [PHP] Validation and session variables

2004-10-27 Thread Chris Shiflett
--- Jason Wong <[EMAIL PROTECTED]> wrote: > As I have pointed out in a previous thread and Mike has pointed > out in this thread you MUST use > > session_write_close() > > before you do a redirect. Are you certain? If this is true, it is a bug in PHP, and we should fix it. Chris = Chris

Re: [PHP] Validation and session variables

2004-10-27 Thread Stuart Felenstein
Okay, first, sorry, but what is top post? Writing before the reply or after ? Second, I'm not entirely sure where the session_write_close() belongs, because here below, isn't this a redirect? back to page2 if there are validation errors: if ($WAFV_Errors != "") { PostResult($WAFV_Redirect,

Re: [PHP] Trying to Integrate PHP 4.3.4 w/ JDK 1.5.0

2004-10-27 Thread Andrew Hauger
Still having trouble with this. I have tried to compile the standard java extension in "ext/java", and I have tried to compile "php-java-bridge" v1.0.5. The 'phpize' script fails for the standard java extension with the following messages: > Can't locate object method "path" via package "Request

Re: [PHP] Validation and session variables

2004-10-27 Thread Jason Wong
On Wednesday 27 October 2004 11:31, Stuart Felenstein wrote: Please do not top post. > Yes I do have session_start on every page at the top. As I have pointed out in a previous thread and Mike has pointed out in this thread you MUST use session_write_close() before you do a redirect. -- J

[PHP] bless function

2004-10-27 Thread Francisco M. Marzoa Alonso
Ok, I think I've got it now. The code is autoexplicative, the only restriction is that the object must be converted to an array using the function obj2array instead of a direct cast. There's another ways to do this without the needless of that obj2array function, but I think this is not really

Re: [PHP] Validation and session variables

2004-10-27 Thread Philip Thompson
Stuart, On Oct 27, 2004, at 6:57 AM, Stuart Felenstein wrote: Not to be redundant but here is the code again:(I xxx'ed out some fields in the restrict access line so they are not public) Put session_start() here! //Connection statement require_once('Connections/MYSQLWH.php'); //Aditional Functions

Re: [PHP] Problem with Regular expression

2004-10-27 Thread Tom Rogers
Hi, Wednesday, October 27, 2004, 9:04:14 PM, you wrote: k> Hi all. k> I have a problem: i want subs any characters from a string but i don't k> have fix the problem. k> The string that i want to manipulate is the value from a text field of a k> search engine. k> The characters that i want to try

Re: [PHP] Validation and session variables

2004-10-27 Thread Stuart Felenstein
--- Chris Shiflett <[EMAIL PROTECTED]> wrote: > So, the first thing to try is using a proper > Location header: > > header('Location: http://example.org/success.php'); > > Hope that helps. > > Chris > Thank Chris , but met with same behaviour. 2 Questions: 1- Should I drop the $url line ? I tr

Re: [PHP] PHP5 on IBM PowerPC; good combination?

2004-10-27 Thread Brent Clements
This has nothing to do with packaging systems or your choice of distribution. His question was if it compiled on a linux-based ppc architecture. I answered his question. You told him to use a specific distribution with a specific packaging system. That was not his question. -Brent - Origina

Re: [PHP] PHP5 on IBM PowerPC; good combination?

2004-10-27 Thread Aaron Gould
Brent Clements wrote: >Just so we are all clear. It doesn't matter which linux >distribution you use as long as the distribution supports the >ppc architecture which most do. As long as you have the gnu >compiler suite and all associated tools and libraries, php will >compile fine. That makes sense

Re: [PHP] PHP5 on IBM PowerPC; good combination?

2004-10-27 Thread Pierre Ancelot
Yes and welcome troubles with rpm when you use suse or redhat... that's why i preconise debian, not have troubles this wise, when you need a lib On Wednesday 27 October 2004 15:15, Brent Clements wrote: > Just so we are all clear. It doesn't matter which linux distribution you > use as long as

Re: [PHP] Validation and session variables

2004-10-27 Thread Chris Shiflett
--- Stuart Felenstein <[EMAIL PROTECTED]> wrote: > Having some odd behaviour. > First , let me mention this is a multi page form using > session variables. (This might be important) > > So I am doing a page by page validation, and have > tried putting the code before session_start or after. > Ei

Re: [PHP] PHP5 on IBM PowerPC; good combination?

2004-10-27 Thread Brent Clements
Just so we are all clear. It doesn't matter which linux distribution you use as long as the distribution supports the ppc architecture which most do. As long as you have the gnu compiler suite and all associated tools and libraries, php will compile fine. It will also compile using the ibm compile

Re: [PHP] file upload

2004-10-27 Thread raditha dissanayake
Akshay wrote: I've been trying to come up with an algorithm that will allow me to upload all the files in a folder. The scheme I have in mind is to use a feedback form that will let me pick out a target folder on my local machine. Upon submitting the form, I'd like the script to upload all t

[PHP] Re: Newbie again: get no $QUERY_STRING

2004-10-27 Thread Ben Ramsey
Horst Jäger wrote: I get no $QUERY_STRING (and no GET- or POST-Params). I'm using PHP 4.3.3 on a SUSE LINUX 9.0 Machine. When I view the following page: [html][head][/head][body] [?php echo gettype($QUERY_STRING); ?] [/body][/html] register_globals Off Off You have register_globals turned off s

Re: [PHP] PHP5 on IBM PowerPC; good combination?

2004-10-27 Thread Pierre Ancelot
yes, use debian: http://www.debian.org and study the apt system you'll get no problem. (php 5 is not in "sarge" which is what you should use but compiling php5 on it gives no problem.) and debian supports very well ppc... On Wednesday 27 October 2004 15:25, Aaron Gould wrote: > My company is

[PHP] DOM XML/XSL questions

2004-10-27 Thread Dusty Bin
I have a requirement to create an XML file which looks approximately like: Item Text ... The file needs to be formatted. I built a dom using the Dom extension, creating a document, adding nodes, and I got a nicely formatted XML file from $dom->saveXML(); The only problem I had, was that I

[PHP] PHP5 on IBM PowerPC; good combination?

2004-10-27 Thread Aaron Gould
My company is considering the purchase of a fairly nice IBM PowerPC system, running SuSe Linux (presumably version 9.2 by the time we get it). This will be replacing our aging Compaq as our main server for our mission-critical apps. Does anyone here have experience compiling PHP 5.x on a Linux-

RE: [PHP] Re: Sessions problem bug

2004-10-27 Thread Reinhart Viane
On the server i use: Session.auto_start is off Session.use_cookie is on Session.use_trans_sid is 1 I do not set the session id myself All pages that requite the sessions have session_start() at the very first line -Original Message- From: Jason Barnett [mailto:[EMAIL PROTECTED] Sent: wo

RE: [PHP] Validation and session variables

2004-10-27 Thread Stuart Felenstein
Okay, I altered the code. Same thing, session variables gone. I then deleted the "session only" cookie. Also took the rule out in the browser , so browser is accepting all cookies from site. Still no change. Not to be redundant but here is the code again:(I xxx'ed out some fields in the restrict

Re: [PHP] alias a function

2004-10-27 Thread Justin French
On 27/10/2004, at 1:46 PM, Curt Zirzow wrote: Instead of aliasing, I would deprecate the function, so the old function would be: really hoping to alias rather than deprecate, but since it's not too easy, I'll just ditch the idea I think :) Thanks, Justin -- PHP General Mailing List (http://www.ph

RE: [PHP] Validation and session variables

2004-10-27 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm > -Original Message- > From: Stuart Felenstein [mailto:[EMAIL PROTECTED] > Sent: 27 October 2004 12:18 > > --- "Ford, Mike" <[EMAIL PROTECTED]> wrote: > >header("Locat

Re: [PHP] Problem with Regular expression

2004-10-27 Thread Francisco M. Marzoa Alonso
Try with \s instead of \b, I meant: $pattern = "/(\sand\s)|(\snot\s)|(\sor\s)|(\s&&\s)|(\s&\s)|(\s\.\s)|(\s\+\s)|(\s\|\|\s)|(\s\|\s)/i"; kioto wrote: Hi all. I have a problem: i want subs any characters from a string but i don't have fix the problem. The string that i want to manipulate is the v

Re: [PHP] Validation and session variables

2004-10-27 Thread Stuart Felenstein
Yes I do have session_start on every page at the top. Stuart --- Marek Kilimajer <[EMAIL PROTECTED]> wrote: > Stuart Felenstein wrote: > > Yes the session variables are set with > $SESSION[''}. > > The way it works is the variable gets set on the > > follwing pages: > > > > So, example on page 1

Re: [PHP] Validation and session variables

2004-10-27 Thread Marek Kilimajer
Stuart Felenstein wrote: Yes the session variables are set with $SESSION[''}. The way it works is the variable gets set on the follwing pages: So, example on page 1: I have this user input field: id="ListingName" maxlength="20" /> On the following page (page 2): $_SESSION['f1a'] = $_POST['Listin

RE: [PHP] Validation and session variables

2004-10-27 Thread Stuart Felenstein
See inline: --- "Ford, Mike" <[EMAIL PROTECTED]> wrote: > The only circumstance under which I can think this > might happen is if the > session id is not being propagated by cookie -- > either because they're > blocked in the browser, or because you have them > switched off in php.ini. They are

RE: [PHP] Validation and session variables

2004-10-27 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm > -Original Message- > From: Stuart Felenstein [mailto:[EMAIL PROTECTED] > Sent: 27 October 2004 00:01 > > Having some odd behaviour. > First , let me mention this is a mu

[PHP] Problem with Regular expression

2004-10-27 Thread kioto
Hi all. I have a problem: i want subs any characters from a string but i don't have fix the problem. The string that i want to manipulate is the value from a text field of a search engine. The characters that i want to try substitute is &&, &, +, -, |, ||, or, and, not in not case-sensitive mode

  1   2   >