Re: [PHP-WIN] Re: Why doesn't php have a 'date' variable type?

2004-05-20 Thread Ross Honniball
Thanks Walter and also Justin Patrin for pointing out the Pear Date class. I just had a quick look and it looks very promising. I still think this sort of thing would be considerably more efficient and accessable to have in native php code in some manner, but it looks like this pear class will c

RE: [PHP-WIN] Why doesn't php have a 'date' variable type?

2004-05-20 Thread Ross Honniball
php isn't typeless. It has types of int, string, array, object etc. Refer to the GetType() builtin function for more info. It can be easy to think of it as typeless because, at any time you deem appropriate, you can change the type of a variable simply by assigning a new value to it of a differ

[PHP-WIN] Re: Why doesn't php have a 'date' variable type?

2004-05-20 Thread \[php\]Walter
PEAR:Date Walter "Ross Honniball" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I accidently sent this to php-db mailing list earlier today. Apologies to > people who get it twice. > > Why doesn't php offer a standard class or variable type to help process > dates in a standard m

[PHP-WIN] Hello World - was (RE: [PHP-WIN] Passing +, =, - at post and get)

2004-05-20 Thread Gryffyn, Trevor
Ok, not terribly appropos to the mailing list, but I have to share: http://www2.latech.edu/~acm/HelloWorld.shtml http://c2.com/cgi/wiki?HelloWorldInManyProgrammingLanguages http://www.roesler-ac.de/wolfram/hello.htm For those interested in arcanum. -TG > -Original Message- > From: Char

RE: [PHP-WIN] Why doesn't php have a 'date' variable type?

2004-05-20 Thread Gryffyn, Trevor
But it's not a bad point he's trying to make though. I mean, you could store the mktime value of a date into a variable and that's sort of the same as having a date type, but still not quite the same. I work in PHP as well as VBA on a fairly daily basis and it's kind of nice in VBA to have a date

RE: [PHP-WIN] Passing +, =, - at post and get

2004-05-20 Thread Charles P. Killmer
You may appreciate this then. Its been floating around for a while so you may have seen it but I think it is funny and strangely true. The Evolution of a Programmer High School/Jr.High 10 PRINT "HELLO WORLD" 20 END First year in College program Hello(input, output) begin wri

RE: [PHP-WIN] Passing +, =, - at post and get

2004-05-20 Thread Gryffyn, Trevor
Rube Goldberg would appreciate it. > -Original Message- > From: Charles P. Killmer [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 20, 2004 11:01 AM > To: [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] Passing +, =, - at post and get > > > How is this > $String = implode(explode($String,

RE: [PHP-WIN] Passing +, =, - at post and get

2004-05-20 Thread Charles P. Killmer
How is this $String = implode(explode($String, $OldChar), $NewChar); different than $String = str_replace($OldChar, $NewChar, $String); Charles Killmer -Original Message- From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 9:48 AM To: '[EMAIL PROTEC

RE: [PHP-WIN] Passing +, =, - at post and get

2004-05-20 Thread George Pitcher
Anders, Thanks for the tips. I've resolved the post/get problem. Cheers George > -Original Message- > From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED] > Sent: 20 May 2004 3:48 pm > To: '[EMAIL PROTECTED] ' > Subject: RE: [PHP-WIN] Passing +, =, - at post and get > > > In your se

RE: [PHP-WIN] Passing +, =, - at post and get

2004-05-20 Thread Gryffyn, Trevor
That's gotta be one of the more creative ways around using a regular expression I've ever seen.. Hah.. Good job Svennson. A regex or string replace would probably work better, or at least be more direct though. -TG > -Original Message- > From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTEC

RE: [PHP-WIN] Passing +, =, - at post and get

2004-05-20 Thread Svensson, B.A.T. (HKG)
In your second if you do a count on the occurence of a character, but don't use the result, why not use strpos() directly? Also if you just want to replace a single char with another single char, then you might like to do like this: $String = implode(explode($String, $OldChar), $NewChar); -

RE: [PHP-WIN] Passing +, =, - at post and get

2004-05-20 Thread Gryffyn, Trevor
Sorry, don't have time to go through your code or to look up the regex way of doing this, but you can translate then decode the plus sign fairly easily. One really basic example: $plussign = "+"; echo "Plus: $plussign\n"; $plussign = "&#" . ord($plussign) .";"; echo "HTML Entity Plus: $plussign\n

RE: [PHP-WIN] Passing +, =, - at post and get

2004-05-20 Thread Svensson, B.A.T. (HKG)
In such case GRANT is a nice command to prevent droping tables in the first place. -Original Message- From: Charles P. Killmer To: [EMAIL PROTECTED] Sent: 20-5-2004 15:31 Subject: RE: [PHP-WIN] Passing +, =, - at post and get I hope you are not allowing the client to send T-SQL through

RE: [PHP-WIN] Passing +, =, - at post and get

2004-05-20 Thread George Pitcher
And doing a bit more, I find that '=' and '-' are passing through OK so I'll need to train my users to use an alternative to '+'. The choking seems to be with my parsing function, which I have pasted in below: = function sql_fltr($sql,$field,$input){

RE: [PHP-WIN] Passing +, =, - at post and get

2004-05-20 Thread George Pitcher
Charles, No way! This site will only have about 3-4 users as its an intranet and I'll be parsing everything at the server end. George > -Original Message- > From: Charles P. Killmer [mailto:[EMAIL PROTECTED] > Sent: 20 May 2004 2:31 pm > To: [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] Pa

RE: [PHP-WIN] Passing +, =, - at post and get

2004-05-20 Thread Charles P. Killmer
I hope you are not allowing the client to send T-SQL through the query string. Consider them sending something like File.php?Query='; drop table XXX; -- Charles Killmer -Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED] Sent: Thursday, May 20, 2004 8:25 AM To: [EMAIL PR

[PHP-WIN] Passing +, =, - at post and get

2004-05-20 Thread George Pitcher
Hi, I want to be able to pass the '=', '+' and '-' characters both from a web form and as part of a url, to enable a better way of searching. However, these characters are choking my IIS webserver and not getting through to the script. Can anyone suggest a better way of achieving this? Cheers G

Re: [PHP-WIN] help!! can not find php_printer.dll

2004-05-20 Thread Frank M. Kromann
You can download it from my site http://kromann.info/php4.php - Frank > Can someone help me find a copy of the extension of php_printer.dll > preferably for the latest version of PHP but I will not be picky I have > installed 4.3.2 on my win2k server and if I have to upgrade well that's > great.

RE: [PHP-WIN] Windows speed issue

2004-05-20 Thread Mike Booth
I believe this is the same problem I found a fix for in thread "php performance on IIS 6" (23749) If you're running in isapi mode turn on output-buffering, I haven't looked into this fully, and its weird that it works fast from the local machine (had the same issue) -- PHP Windows Mailing List

RE: [PHP-WIN] Why doesn't php have a 'date' variable type?

2004-05-20 Thread Svensson, B.A.T. (HKG)
> Why doesn't php offer a standard class or variable > type to help process dates in a standard manner? Maybe because PHP is typeless(?). -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] help!! can not find php_printer.dll

2004-05-20 Thread Luis Moreira
Jeffrey D. Means wrote: Can someone help me find a copy of the extension of php_printer.dll preferably for the latest version of PHP but I will not be picky I have installed 4.3.2 on my win2k server and if I have to upgrade well that's great. Thanks in advance. --- Jeffrey D. Means CIO for Mea

[PHP-WIN] Why doesn't php have a 'date' variable type?

2004-05-20 Thread Ross Honniball
I accidently sent this to php-db mailing list earlier today. Apologies to people who get it twice. Why doesn't php offer a standard class or variable type to help process dates in a standard manner? Php should offer a DATE variable type (in addition to string, int, array, object etc.). Date v

[PHP-WIN] help!! can not find php_printer.dll

2004-05-20 Thread Jeffrey D. Means
Can someone help me find a copy of the extension of php_printer.dll preferably for the latest version of PHP but I will not be picky I have installed 4.3.2 on my win2k server and if I have to upgrade well that's great. Thanks in advance. --- Jeffrey D. Means CIO for MeansPC [EMAIL PROTECTED] w