> // 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
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
>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..
> 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
> 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
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
6 matches
Mail list logo