[PHP] Transitioning from php3 to php4
Hi, I'm not sure if this is the proper forum for this question, if it is not, please let me know! I have several sites that need to be upgraded from php3 to php4. In order to test compliance of the php3 code on php4, I need to know exactly which functions have different usage / results 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. Thanks, Chana Black -- 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] Include " quotes inside textbox
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 >and paste it elsewhere), however my textbox is being parsed incorrectly by >the browser because of the " quotes which happen in the link I'm passing - >basically the HTML for the text box is getting parsed together with the HTML >for the passed link and the results are messed up. > >How do you pass quotes to a textbox? > >Thanks! > > >-- >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] -- 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: AW: [PHP] gethostbyaddr timeout
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 lines take a > > long time to > > timeout. Is there a way I can decrease this timeout period > > to one or two > > seconds? > >i don't know about any function that does that, what i did with something >simmilar is to >automaticly generate a frames page that calls the script which then only >performs 10 or so >of the tasks. you can easyly have that page open 10 or so browserwindows. >if you generate a framesmatrix 10*10 open 10 pages at least the time it >takes will >be devided by 1000 ( in avg.) >( and of cause you will need something threadsafe/stable to safe the >results.) > >sebastian > >-- >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] -- 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] similar to shuffle()
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=0;$iDoes anyone know of a function in version 3.0.7 that does the same thing to >shuffle(), which was implemented in 3.0.8? I'm trying to run a banner >script I found, and I guess we were 1 one-hundredth of a version off for >this thing... > >Or, how painless is it to upgrade to the latest version? I'm assuming that >PHP is backwards compatible... > >Thanks. >Jason > > >-- >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] Pricing for PHP programming???
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 joe off the street can make an >ugly sculpture. It takes talent and skill to make art... >:p > >Chris -- 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]