RE: [PHP] Pricing for PHP programming???

2001-02-01 Thread Chana Black
I agree 100%. It looks simple, but to write really good code you need to know your stuff. CB At 01:56 PM 2/1/01 -0600, Boget, Chris wrote: > > Besides, sometimes I think that PHP is so easy to learn > > that we should be considered unskilled labor ;-) > >The skill is in the shaping. Any jo

Re: [PHP] similar to shuffle()

2001-02-01 Thread Chana Black
I had the same problem... I wrote a function that does this: function scramble(&$array) { // scrambles the elements of a one dimentional array // written by cblack ([EMAIL PROTECTED]) // in php3 >= 3.0.8, there's a function called shuffle that does this for ($i

Re: AW: [PHP] gethostbyaddr timeout

2001-02-01 Thread Chana Black
set_time_limit() ? Read the docs - this may be the solution. CB At 07:43 PM 2/1/01 +0100, Sebastian Stadtlich wrote: > > I'm at the end of my rope here... > > > > I have a 100,000+ line file containing IP addresses. For > > each line, I need > > to run a "gethostbyaddr" command. However, some

Re: [PHP] Include " quotes inside textbox

2001-02-01 Thread Chana Black
If you want to put a " in an echo statement, you need to escape it first by putting the / before it, like /" The function addslashes does this for you. CB At 11:07 AM 2/1/01 -0700, Karl J. Stubsjoen wrote: >Hello, > >I'm trying to pass back a link to the user in a textbox (so they can copy >an

[PHP] Transitioning from php3 to php4

2001-02-01 Thread Chana Black
ts on php4. I know that include() and rand() work differently, any others? Does anyone know of an article / page in docs that explains this? There was a page like this on php.net when php4 was first released, but I can't find it anymore. The faq on this does not have any useful info. Tha