On Friday 25 August 2006 04:39, Bigmark wrote: > Can anyone tell me if it is relatively an easy process for an experienced > coder (not me) to convert a php script to mainly functions/classes. > I have my own script that i would like to make more streamlined as it is > becoming very difficult to work with.
That really depends on the nature of the code. I've some code I have to work with now that is built around dumping all kinds of stuff into the global namespace, even from functions. If I ever manage convince the author what an insanely bad idea that is, it will still be hell to fix because of the way it's built. Most code probably isn't quite that bad, though. Your code could already break down into functions quite nicely, or it could be easier to just start from scratch. No way to tell without seeing the code. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php