RE: [PHP] Re: Doing an HTML POST using header()

2002-07-22 Thread Andrew Braund
> Forging a POST is a complicated task when compared to its GET cousin, > and there is no 'easy' way > > You must either use CURL, or write your own mini web client... > > Francis wrote: > > > > using NT? all I need it for is so the user can skip a registration step put > > its all coded using

RE: [PHP] base64_encode

2002-06-26 Thread Andrew Braund
26+10+2=64 sounds right. HTH Andrew Braund > -Original Message- > From: Gerard Samuel [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 27 June 2002 11:15 > To: php-gen > Subject: [PHP] base64_encode > > > What other characters are possible from the output of ba

[PHP] Using COM to generate excel file - php version of vb Sheets("Report First page").Copy After:=Sheets(1)

2002-06-26 Thread Andrew Braund
ot;).Select Sheets("Report First page (2)").Name = "new Sheet" My problem is that I can't work out the php version of Sheets("Report First page").Copy After:=Sheets(1) ie there is a space between Copy and After and how do I get the := operator? Any suggestion much a

RE: [PHP] Week of month

2001-11-01 Thread Andrew Braund
How about; echo "It is week ".((int)(date("j")/7)+1)." of the month."; > -Original Message- > From: Jon Farmer [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 1 November 2001 20:14 > To: PHP Masters; Sheni R. Meledath > Subject: Re: [PHP] Week of month > > > > Is there any way to find out

RE: [PHP] how can I do this !!

2001-10-25 Thread Andrew Braund
show_source(basename($PHP_SELF)); > At 02:26 PM 10/25/2001, Alawi wrote: > >i have txt file have this words > > > >-- > >bla bla bla > > > >[phpcode] > > >echo 'hello word'; > >?> > >[/phpcode] > > > >bla bla bla > >--- > > > >now I want to convert the code that are between [phpco

RE: [PHP] Create Array?? More

2001-09-23 Thread Andrew Braund
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Sunday, 23 September 2001 16:46 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] Create Array?? More > > > Ok, > > Thanks for the input, unfortunately it didn't help me solve my overall >

RE: [PHP] Create Array??

2001-09-22 Thread Andrew Braund
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Sunday, 23 September 2001 15:39 > To: [EMAIL PROTECTED] > Subject: [PHP] Create Array?? > > > Hi, > > If I have a value $num = 32; based on this how can I create an Array of > numbers 1 - 32, something li

RE: [PHP] comparing

2001-09-15 Thread Andrew Braund
How about; SELECT product, count(*) AS Total FROM table GROUP BY product ORDER BY total DESC > -Original Message- > From: Teqila MAN [mailto:[EMAIL PROTECTED]] > Sent: Saturday, 15 September 2001 16:43 > To: [EMAIL PROTECTED] > Subject: [PHP] comparing > > > Hello, > > What is the simple

RE: [PHP] Loop error?

2001-08-14 Thread Andrew Braund
> -Original Message- > From: PHP List [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 15 August 2001 09:20 > To: php > Subject: [PHP] Loop error? > > > Hi, > Can anyone tell me why this is a never ending loop? > > $i=0; > $count = 1; > while ($count > $i); ^ > { >

RE: [PHP] date HELP !!!!!

2001-07-23 Thread Andrew Braund
I thought this might do it... if( date("d") == date("d",mktime (0,0,0,date("n"),0,0)) ){ echo "last day"; } But it doesn't seem to handle February in non leap years; 8<== $testMktimeArray = array( "7/23/2001", "1/1/2001", "12/31/2001", "2/28/1999", "2/29/1999", "2/28/1

RE: [PHP] Sort an array by its values

2001-07-08 Thread Andrew Braund
} } if($nfiles>1){ usort($files, create_function( '$a,$b', 'return $a["date"]==$b["date"]?0:($a["date"]<$b["date"]?1:-1);') ); } closedir($handle); } } HTH Andrew Braund >

RE: [PHP] [Apache] Win32 Virtual Host - Sub Domain

2001-04-21 Thread Andrew Braund
lhost ErrorLog logs/test.localhost-error_log CustomLog logs/test.localhost-access_log common HTH Andrew Braund > > I am trying to setup Apache with PHP on Win32 (don't ask > why). Anyhow, PHP > is working great but virtual hosting is not going so well. > When the browser >

RE: [PHP] Output HTML Compression

2001-04-19 Thread Andrew Braund
you might want to look at mod_gzip http://www.remotecommunications.com/apache/mod_gzip/ Regards Andrew Braund > -Original Message- > From: Floyd Piedad [mailto:[EMAIL PROTECTED]] > Sent: Friday, 20 April 2001 13:33 > Cc: [EMAIL PROTECTED] > Subject: [PHP] Output H

RE: [PHP] Regular Expression

2001-04-18 Thread Andrew Braund
LinuxSA http://www.linuxsa.org.au/ meeting a couple of days ago was on regex, some notes are at; http://www.fornax.net/regex2/ or part 1 at; http://www.fornax.net/regex/ HTH Andrew Braund > -Original Message- > From: Jeroen Geusebroek [mailto:[EMAIL PROTECTED]] > Sent: Thu

RE: [PHP] read headers.

2001-04-04 Thread Andrew Braund
wget -s apache.org works on *nix or windows, puts all headers and content to a file eg saves to index.html which contains; ==8< HTTP/1.1 200 OK Date: Wed, 04 Apr 2001 09:13:58 GMT Server: Apache/2.0.16 (Unix) Cache-Control: max-age=0 ===8<=== etc then content PS Apach

RE: [PHP] Java applet can't read PHP output !!

2001-04-03 Thread Andrew Braund
Works for me! I don't think PHP is the problem. I first tried this with PHP as cgi and it worked fine, then retested with PHP as module and still worked fine. Platform; NT4 SP6 Server Version: Apache/1.3.19(Win32) mod_jk PHP/4.0.4pl1 DAV/1.0.2 applet code; ==8<===

RE: [PHP] Java applet can't read PHP output !!

2001-04-03 Thread Andrew Braund
Try putting \n at the end of each line of your php print, your applet is using readline() so waiting for newline character (\n). hth Andrew Braund > -Original Message- > From: Peter Choynowski [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 4 April 2001 06:08 > To: [EMA

RE: [PHP] Delaying Printed Output

2001-03-25 Thread Andrew Braund
RandomString"); but it makes no difference, the behaviour is identical. IE5 does not seem to understand multipart. The multipart mime boundary does not seem to be working properly in Netscape4.6. Regards Andrew Braund > -Original Message- > From: Greg Scott [mailto:[EMAIL PRO

RE: [PHP] Directory Listing with PHP

2001-01-31 Thread Andrew Braund
You might like to try WebExplorer, may do what you want. http://suneworld.com/programs/ hth Regards Andrew Braund > -Original Message- > From: Chris Aitken [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 1 February 2001 15:35 > To: PHP User Group > Subject: [PHP] Directory L