Re: [PHP] Functions

2006-07-13 Thread Amit Arora
you will have to use something like this. $var = cleaner($var); Regards, Amit Arora www.digitalamit.com [EMAIL PROTECTED] wrote: I was able to get the return to work but not the pass in the reference. One last question, what if I want to have each item on a separate line like: function

[PHP] Re: Scrubbing URL's

2006-07-13 Thread Amit Arora
Hi, You can also do this using the following code: $fh = @fopen($url, r); if ($fh) { fclose($fh); } else { echo URL ($url) doesn't exists; } This does work for the HTTP code 200 and 400. I am not sure how it handles the redirects Code 302. Regards, Amit Arora www.digitalamit.com

[PHP] Re: Using PHP4 or PHP5

2004-10-02 Thread Amit Arora
If you are going to develop the application on a Object Oriented Programming, then I would advice you go with PHP 5. If it is going to a healthy mix of procedural coding and OOP, then I recommend using PHP 4 right now but gradually upgrade to PHP 5. Whatever you choose, keep in mind that PHP 5

[PHP] Re: I don't want to use include

2004-06-22 Thread Amit Arora
You may want to use the exec() function. Please refer www.php.net/exec for more information Regards, Amit www.digitalamit.com Qt wrote: Dear Sirs, When I use include, my script is waiting included script results. But I just want to run another local script without wait result. Which command I

[PHP] Re: is there any application ,

2004-06-21 Thread Amit Arora
Hi Ravi, I did hear about a PHP compiler a while back But I am not sure whether that project is still around ? I think it was on sf.net ... Regards, Amit www.digitalamit.com Ravi wrote: HI, is there any windows application , by using we can produce standalone php ..exe files ? --- knowledge

[PHP] SafeExtract() ... extract securily

2002-04-17 Thread Amit Arora
... Any comments, suggestion or error reports would be helpful ... Amit Arora (http://www.digitalamit.com/) Earn Money by reading short emails ... http://hits4pay.com/members/index.cgi?digitalamit