Re: [PHP] HTTP AUTH in PHP5

2004-10-27 Thread Christophe Chisogne
Nunners wrote: I'm having some problems with using HTTP Auth in PHP5 IIRC, php 5.0 had a bug related to HTTP auth, corrected in php 5.0.1: [1] "Fixed bug #29132 [http://bugs.php.net/29132] ($_SERVER["PHP_AUTH_USER"] isn't defined). (Stefan)" Note, I cant access bugs.php.net right now. If you use P

[PHP] Re: Sessions problem bug

2004-10-27 Thread Jason Barnett
Are you using cookie-based sessions? Thus sayeth the manual: Note: When using session cookies, specifying an id for session_id() will always send a new cookie when session_start() is called, regardless if the current session id is identical to the one being set. Thanks google. Reinhart Viane w

[PHP] Re: Classes and Interface tool

2004-10-27 Thread Jason Barnett
Jonel Rienton wrote: hi again guys, is there a tool that can allow you view the available interfaces of a class, like an object/class browser that can help you view the signatures of those interfaces? thanks and regards, Jonel You should be able to use the Reflection API to find out what you want

[PHP] Re: Parsing

2004-10-27 Thread Jason Barnett
Jerry Swanson wrote: I have huge html file. I want to parse the data and get everything between and What function is good for this purpose? TH preg_match() is a good choice. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [SOLUTION] Re: [PHP] Convert an array in an object instance

2004-10-27 Thread Francisco M. Marzoa Alonso
Ok, I've write a function that emulates the Perl's bless one. It works pretty well. The idea comes to me when Rob suggest to parse the serialized data. I think this is better -or at least faster- than parsing all serialized data to modify object values: Just convert the object to an array, mod

[PHP] Re: Serializing objects with protected members

2004-10-27 Thread Jason Barnett
Francisco M. Marzoa Alonso wrote: Hi, I'm trying to wrote my own serialization routines and I've found a previsible problem: protected members are not visible to my serialization routine. This is ok and it should be as is, but I've seen that PHP's serialize function have access to that members a

[PHP] Newbie: get no $QUERY_STRING

2004-10-27 Thread Horst Jäger
Hi, I'm afraid this might be a stupid question but this is my first PHP-day. 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: I get: NULL I copy my phpinfo below in case someone wants to have a look at it. Tha

[PHP] file upload

2004-10-27 Thread Akshay
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 the files in th

[PHP] Re: relative paths with "require"

2004-10-27 Thread Jason Barnett
If you need relative require's, I have always found the constant __FILE__ to be useful. Just something like: require_once (__FILE__ . "../b/b.php"); If you go this route, be sure to check out the user notes on the page here: http://us2.php.net/constants Joey Morwick wrote: Hello, I'm experiencin

Re: [PHP] Newbie: get no $QUERY_STRING

2004-10-27 Thread John Holmes
Horst Jäger wrote: I get no $QUERY_STRING (and no GET- or POST-Params). $_SERVER['QUERY_STRING'], $_GET['param'], $_POST['param'], etc.. register_globals Off Off Or turn this on. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Profe

[PHP] Re: Extracting relevant text from a text file

2004-10-27 Thread Jason Barnett
Stuart Felenstein wrote: Best way for me to explain this is by example - I just applied for a job and cut and past my resume into a textarea. After submitting it had extracted all the information and placed them into textfields. So my first name was now in the first name textfield, city was in th

[PHP] Newbie again: get no $QUERY_STRING

2004-10-27 Thread Horst Jäger
Date: Wed, 27 Oct 2004 12:50:36 +0200 To: [EMAIL PROTECTED] From: Horst Jäger [EMAIL PROTECTED] Subject: Newbie: get no $QUERY_STRING Hi, when I received my own mail back from the list I found that my example page has been removed. Maybe my mail program thought I was sending styled text. So I'm u

[PHP] Newbie again: get no $QUERY_STRING

2004-10-27 Thread Horst Jäger
Date: Wed, 27 Oct 2004 12:50:36 +0200 To: [EMAIL PROTECTED] From: Horst Jäger [EMAIL PROTECTED] Subject: Newbie: get no $QUERY_STRING Hi, when I received my own Mail back from the list I found that my example page has been removed. Maybe my mail program thought I was sending styled text. So I'm u

Re: [PHP] [SOLUTION] Re: [PHP] Convert an array in an object instance

2004-10-27 Thread Francisco M. Marzoa Alonso
Erm... I've seen there're some aspects to perform... it fails because the name of the members is changed during conversion to the array. It puts the class name using '\0' (0 is a zero, not a caps 'o') character as separator before member name in private and an '*' in protected. It's not an unaff

[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

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

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

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

[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

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

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

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

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

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

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

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

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

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

[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

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.

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

[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

[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

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

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

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

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

[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

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

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

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

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

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

[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

[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

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

  1   2   >