[PHP] Re: naughty words / filter

2003-08-21 Thread Chris Kranz
> // example #1: in the script the text in the variable $guestbook does not > get replaced. > $dirty_words = array("badword1","badword2","badword3"); > $guestbook = stripslashes($message); > foreach ($dirty_words as $word){ > $message = str_replace($word, "", $guestbook); > } > echo $mes

[PHP] cookies under php 4.06

2003-09-04 Thread Chris Kranz
okay, i know this is stupid, and i'm gonna kick myself when someone points out the obvious... i've just put a site online, and found the server's running an older version of php (4.06). it's virtual hosting, so i have no control over this... also can't tell you what OS it's running, but it is wind

[PHP] Re: cookies under php 4.06

2003-09-04 Thread Chris Kranz
>setcookie("UserName", $HTTP_POST_VARS['UserName'], time()+(60*10), "/", > $HTTP_SERVER_VARS['SERVER_NAME']); >setcookie("Password", $password, time()+(60*10), "/", > $HTTP_SERVER_VARS['SERVER_NAME']); >print "login - set cookie"; sorry for kinda answering my own post... but anyway..

[PHP] Re: reverse lookup/domain lookup in PHP

2003-09-11 Thread Chris Kranz
> Is it possible to reverse lookup (like here http://www.whatismyipaddress.com/reverse.asp) to find the domain with PHP? I assume a DNS lookup requires an external server somewhere? > you can use exec or similar and to a reverse lookup like that... a traceroute should cover it. please don't copy

[PHP] Re: Edit a String

2003-09-17 Thread Chris Kranz
> format ', x, x, xxx' how can I edit it so that the comma's are > replaced with line breaks i.e. /n. This will enable me to display the str_replace ( ",", "\n", $address ); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] set_time_limit() on Mac

2003-10-07 Thread Chris Kranz
i gotta wierd one, maybe it's just me being daft... i'm under the impression that max execution time / set_time_limit() is server specific, and completely independant of what computer is being served the pages? my server is apache 1.3 running php 4.3 on win 2k... when i run the script from a win