Re: [PHP] Writing Regular Expressions...

2001-02-17 Thread Bojan Gajic
'So What's A $#!%% Regular Expression, Anyway?!' http://www.devshed.com/Server_Side/Administration/RegExp/ HTH, bojan gajic Dhaval Desai wrote: > Hi! > > Can somebody enlighten me with regular expressions... > like [^\-*] something like that. To me it appears as

Re: [PHP] HTTP Request - First line

2001-02-17 Thread Bojan Gajic
Try with: $HTTP_SERVER_VARS['SERVER_PROTOCOL'] $HTTP_SERVER_VARS['REQUEST_METHOD'] $HTTP_SERVER_VARS['REQUEST_URI'] HTH, bojan Javier Gil wrote: > I want to obtain the first line of the header of the HTTP Request > (the request line). Is there a function to obtain this line. > Thanks > > --

[PHP] what is quicker...

2001-02-15 Thread Bojan Gajic
I have to detect wheater some number can be divided with 100. About 4M times per day. So, what is quicker: 1. if($num==fun($num/100)), where fun is round/ceil/floor, or 2. if($num%100), or 3. something else... $num is int, of course TIA bojan -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] Sending Download Header

2001-01-29 Thread Bojan Gajic
URL as an argument. HTH, Bojan Gajic WreckRman2 wrote: > When doing this does the $file_name have to be in the current directory or > can it be a URL? > > - Original Message - > From: Bojan Gajic <[EMAIL PROTECTED]> > To: Natasha <[EMAIL PROTECTED]> > Cc: &

Re: [PHP] Sending Download Header

2001-01-27 Thread Bojan Gajic
header("Content-Disposition: attachment; filename=$file_name"); header("Content-Type: application/octet-stream"); //or any other MIME type echo "Content"; HTH, Bojan Gajic Natasha wrote: > Hi, > > I'm making a small thing, that sends down