RE: [PHP] Re: hellllppp my php kills the browser
| From: | Bob Eldred | Date: | Sun, 20 Jun 2004 03:27:29 +0000 |
| Subject: | RE: [PHP] Re: hellllppp my php kills the browser | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-188680@lists.php.net to get a copy of this message | ||
However, those newbies who stick around will learn how to research and
find most of the answers themselves. Not a bad result, if you ask me.
Education often sounds "Holier than Thou", but there's usually a good
reason for it.
Bob
-----Original Message-----
From: Michael Lauzon [mailto:mlauzon@gmail.com]
Sent: Saturday, June 19, 2004 8:20 PM
To: Aidan Lister
Cc: php-general@lists.php.net
Subject: Re: [PHP] Re: hellllppp my php kills the browser
I see enough of this "Holier Than Thou" attitude on the OCLUG list, I
don't need to see it here as well, and if you keep it up people like
me...the newbies will shy away from PHP!
On Sun, 20 Jun 2004 12:39:26 +1000, Aidan Lister <aidan@php.net> wrote:
>
> Please read:
>
> http://www.catb.org/~esr/faqs/smart-questions.html
>
> "Water_foul" <phpdbnews@aaron.aichlmayr.net> wrote in message
> news:20040619234223.89485.qmail@pb1.pair.com...
> > i fixed it i had an endless loop oops :)
> > "Water_foul" <phpdbnews@aaron.aichlmayr.net> wrote in message
> > news:20040619233812.71716.qmail@pb1.pair.com...
> > > i dont know why but the following code "kills" the browser: <?php
> > > //the function for adding new addresses
> > > function loop_new_address($loopnum,$url,$name){
> > > //the ${'link' . $loopnum} says put $link and add $loopnum to the
end
> > > if(isset($_COOKIE['link' . $loopnum . ''])){
> > > loop_new_address_help($loopnum+1,$url,$name);
> > > }
> > > else{
> > > setcookie('link' . $loopnum . '',$url,time()+3600,'/');
> > > setcookie('name' . $loopnum .
> > > '',$name,time()+3600,'/');
> > > setcookie('link' . $loopnum . '',$url,time()+3600);
> > > setcookie('name' . $loopnum . '',$name,time()+3600);
> > > print('<a href=$url>' . $name . '</a> was added');
> > > };
> > > };
> > > //A function to let loop_new_address loop
> > > function loop_new_address_help($loopnum,$url,$name){
> > > loop_new_address($loopnum,$url,$name);
> > > };
> > > if(isset($_GET['new'])) {
> > > loop_new_address(1,$_GET['url'],$_GET['name']);
> > > };
> > > print('<table>');
> > > print('<tr><td><form Method="GET"
> > > action="module/personal/delete.php">delete</td></tr>');
> > > //write code
> > > $writenum=1;
> > > while(isset($_COOKIE['link' . $writenum . ''])==true){
> > > print('<a href=' . $_COOKIE['link' . $writenum . '']
> > > . '>' .
> > $_COOKIE['name'
> > > . $writenum . ''] . '</a>');
> > > };
> > > include('links.htm')
> > > ?>
> > > <tr><td><input type=submit value="Delete
> > > Checked"></form></td></tr> </table> <table>
> > > <tr><td><form METHOD="GET"
ACTION="module/personal/links.php"><input
> > > type=hidden name=new value=1></td><td></td></tr>
> > > <tr><td>Site name</td><td><INPUT TYPE=text
> > > NAME="name"
> VALUE=""></td></tr>
> > > <tr><td>site url (if it is not on this site it MUST contain
> > > "http://")</td><td><INPUT
> > > TYPE=text NAME="url" VALUE=""></td></tr>
> > > <tr><td></td><td><INPUT TYPE="SUBMIT"
> > > VALUE="Continue"></form></td></tr>
> > > </table>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Michael Lauzon, Founder
The Quill Society
http://www.quillsociety.org/
mlauzon@quillsociety.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php