Re: [PHP] fopen - warnings

2001-07-26 Thread david jarvis
try @fopen("categories.txt","r+"); - Original Message - From: Vanessa <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 26, 2001 12:05 PM Subject: [PHP] fopen - warnings Hello List, this is probably a very stupid question, but I dont know how to solve this little proble

[PHP] AOL messing up long links

2001-07-26 Thread david jarvis
This isn't so much PHP, but I bet it happens to lots of people. I have a PHP script which sends out an email to confirm that an email address is valid. In most cases this works fine, however, for AOL people, AOL adds a carriage return in the link, so that the variables passed in the link beco

[PHP] Hack Attempt Prevention with strip_tags()

2001-07-18 Thread david jarvis
I've been reading on php.net about the strip_tags function, and it seems that many people have been writing their own function. Is this because a malicious user could put something like Long message... or would strip_tags prevent this? What do you think of strip_tags() vs writing your own func

[PHP] Multiple Host's with setcookie

2001-07-13 Thread david jarvis
Hi, I was wondering if there was a way to set a cookie so that it would be accessible over multiple hosts, for instance, mail.webpage.com, forums.webpage.com, ect. I tried setting the domain to .webpage.com, but when I read the cookie it says the domain is w ww.webpage.com, thus not being acce

[PHP] Cookie Problems with Netscape

2001-07-11 Thread david jarvis
Hi all, I have a line that deletes a previously set cookie: setcookie("membership","",time()-86400); That line works fine in IE, but doesn't delete the cookie in Netscape (both Mac and Linux). On a side note, both IE and Netscape do not pop up a warning when the cookie is being sent. Since it

[PHP] Re: Wierd Cookies

2001-07-11 Thread david jarvis
to one second in the past, > which (in theory :) will delete the cookie ASAP. > > > > -Original Message- > > From: david jarvis [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, July 11, 2001 12:38 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] Wierd cookie behiavor > &g

[PHP] Wierd cookie behiavor

2001-07-11 Thread david jarvis
I have a logout page that sends this cookie setcookie("membership") So that "membership" shoud be empty. However, if you login so that the cookie membership is created, and then try to logout without restarting the browser, it wont delete the cookie. But if you restart the browser and try to