Re: [PHP] Create .php file with php

2007-06-26 Thread Adam Schroeder
You might also consider looking at variable variables and dynamic PHP (writing and evaluating php expressions on the fly). http://us.php.net/variables.variable http://us.php.net/eval Writing the PHP to a file could be a potential security vulnerability. Especially if this was going to go int

Re: [PHP] Create .php file with php [POC CODE INCLUDED]

2007-06-26 Thread Adam Schroeder
... if you really couldn't write it as dynamic PHP -- you could also save it in a database. Edward Vermillion wrote: On Jun 26, 2007, at 3:31 PM, Crayon Shin Chan wrote: On Wednesday 27 June 2007 03:53, Daniel Brown wrote: On 6/26/07, Al Rider <[EMAIL PROTECTED]> wrote: I think most sy

Re: [PHP] Removing Spaces from Array Values

2007-07-02 Thread Adam Schroeder
The function str_replace() DOES NOT change the parameter. Rather, str_replace() returns the desired string. Try changing your code to: for($num = 0; $cntr < $num; $cntr++) { $someArray[$num] = str_replace(' ','',$someArray[$num]); echo "$someArray[$num]"; } http://us.php.net/manual/en/func

Re: [PHP] how PHP is batter?

2007-07-03 Thread Adam Schroeder
This is an important debate and I would hope to see a more lively discussion. Many of us have to validate our choices and our employers don't care about anti-microsoft and anti-corporation arguments (I do believe the open-source versus closed-source argument is a valid one to make to your emp

Re: [PHP] how PHP is batter?

2007-07-05 Thread Adam Schroeder
Crayon Shin Chan wrote: On Tuesday 03 July 2007 22:56, Stut wrote: I saw there is a free version of Studio, but I think it's for students... You cannot go build a corporate project with it I think... More FUD. Go read the licence before claiming to know what it says! Regardle