Re: [PHP] security concern with curl

2002-08-10 Thread Daniel Tryba
rver from/to the rest of the world without using curl. Or are you (healthy) paranoied about oasis? -- Daniel Tryba -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OOP Question in PHP

2002-06-05 Thread Daniel Tryba
tly to the browser (echo/print...), IMHO you shouldn't do that at all but let retrieve() return a string/array/whatever. But that's up to you :) -- Daniel Tryba -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] converting C to PHP

2002-06-12 Thread Daniel Tryba
(preg_match("/^\s*(\+|-)?(\d+)/",$str,$match)) { return intval($match[1].$match[2],10); } else { return false; } } $format="012L20W2P"; $int=skipf($format); $int is 12 in this example. -- Daniel Tryba -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] converting C to PHP

2002-06-12 Thread Daniel Tryba
> > (Actually, to get the number, I could just do "$cp-0" or "$cp*1" - gotta > love variants) >From your example I got the impression you are only interested in multiplier -- Daniel Tryba -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTTP Compression

2002-06-14 Thread Daniel Tryba
On Fri, Jun 14, 2002 at 08:58:29AM +0100, Webmaster do Aborla.net wrote: > I would like to know how can I compress the output of PHP through Zlib. You mean like: http://www.php.net/manual/en/function.ob-gzhandler.php -- Daniel Tryba -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] saving a jpeg via HTTP

2002-06-15 Thread Daniel Tryba
7;t > viewable. Are you using the binary safe fread/fwrite()? Didn't forget to fclose() the output file? This works for me: -- Daniel Tryba -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] saving a jpeg via HTTP

2002-06-15 Thread Daniel Tryba
On Sat, Jun 15, 2002 at 06:02:58PM +0200, Daniel Tryba wrote: > This works for me: Hmmm, one while(!feof()) to many not that it really matters :) -- Daniel Tryba -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Advantage of CURL over using LYNX

2002-06-26 Thread Daniel Tryba
), depending if you just need the source from that cgi or need to mangle it a little? Using PHP build-ins will most likely be faster or at least nicer for your resources. IMHO (never used it) curl is only needed when you need to something fancy like post/put requests. -- Daniel Tryba -

Re: [PHP] Content-Length

2002-07-04 Thread Daniel Tryba
n of the response the php returns, but how do I reference > the result of a php page to get a strlen from it?? You didn't dig far enough, since there is an example of exactly what you want on: http://www.php.net/manual/en/function.ob-get-length.php Isn't the online reference need? :)

Re: [PHP] Revised [PHP] COM and PHP

2001-02-28 Thread Daniel Tryba
On Mon, Feb 05, 2001 at 03:05:24PM -0500, Conover, Ryan wrote: > I have been trying the following example from the PHP developer's cookbook > and it keeps giving me the following error. > > Parse error: parse error in c:\Inetpub\wwwroot/temp.php on line 5 > $excel_handle = new COM("excel.applica

Re: [PHP] Connection with a Palm

2001-04-19 Thread Daniel Tryba
On Wed, Apr 18, 2001 at 09:22:32AM -0500, Plutarck wrote: > Hm...can't say I've seen many subjects about this, but you might want to > look around for information on WAP/WML. > > Maybe someone else would know more though, because I have no experiance with > non-PC browsers. For Palm/PocketPC/bla

Re: [PHP] Get the string between custom delimiters

2001-05-01 Thread Daniel Tryba
abla blabla yada"; eregi("(.*)",$string,$result); echo "Before:\"$string\", after \"$result[1]\""; ?> -- Daniel Tryba -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Generating PINs

2002-05-13 Thread Daniel Tryba
-E59VB-7SX99 or similar)? Does md5() fit you needs? http://www.php.net/manual/en/function.md5.php -- Daniel Tryba -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] user auth

2002-05-30 Thread Daniel Tryba
what you yourself could do is keep track of eg. the IP adress of the user and check if it doesn't change... if it does then maybe someone is trying something fishy. -- Daniel Tryba -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Advice needed

2002-03-22 Thread Daniel Tryba
} } } $quant=array(1,2,3,5,10,15,20,25,50,100,300,500,600,1); $Quantity1=10; $Price1=1; $Quantity2=500; $Price2=40; $ppu=array(); for($i=0;$i 8<- Output: |1|2|3|5|10|15|20|25|50|100|300|500|600|10000 |0|0|0|0|0.1|0.1|0.1|0.1|0.1|0.1|0.1|0.08|0.08|0.08 -- Daniel Tryba PGP pub

Re: [PHP] Files only available via HTTPS

2001-02-08 Thread Daniel Tryba
or the php file. https is usually port 443 if ($SERVER_PORT!=443) header("Location: https://server/$PHP_SELF"); -- Daniel Tryba -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To c