Re: [PHP] Upload wont work, OS X

2002-11-29 Thread Beth Gore
skal havne i (husk den siste '/') Don't set $MAX_FILE_SIZE using $_POST variables for security reasons - someone could very easily alter it in the HTML file!!! Beth Gore magnus nilsson wrote: I have trouble using upload scripts - none of them work on my current config. I'

Re: [PHP] test for ascii or binary string

2002-11-30 Thread Beth Gore
ntrol characters other than LF, CR and Horizontal Tab. b) You're expecting strings with european charater's with umlouts and stuff like that. You can add these characters to the list of exclusions on line 16 of this code. Hope this helps!!! Beth Gore function isbinary($input) { /* This

Re: [PHP] last updated ?

2002-11-30 Thread Beth Gore
otime($sitedata["LastUpdate"]); echo date("G:i, D \T\h\e jS of M, Y ",$timestamp); ?> This then shows the last update time on the browser, and I also set the page to expire at that time, so in that way (I understand) browsers know if the page has been updated sinc

Re: [PHP] Test links?

2002-11-30 Thread Beth Gore
an deleting the link, it's probably better to set a flag to show it was invalid last time you checked, but check it again next time. Or you could keep a count of the number of failed attempts, and delete if it goes beyond 3 or so. Not sure how to supress the warning message that PHP auto

Re: [PHP] Test links?

2002-12-02 Thread Beth Gore
s, but it turns out that fopen completely fails UNLESS it gets that 200, so it wasn't necessary. Beth Gore -- http://bethanoia.dyndns.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Validating get and post data

2002-12-02 Thread Beth Gore
and even though I found a better way to do it, it's annoying me that this didn't work!!! Beth Gore -- http://bethanoia.dyndns.org/ rss feed: http://bethanoia.dyndns.org/bethanoia.rss -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Comment Threading

2002-12-02 Thread Beth Gore
ead2(reply to comment1) ---comment3/thread3(reply to comment 2) comment3/thread4(reply to comment 3) --comment5/thread1(reply to comment1) ---comment3/thread5(reply to comment 2) --comment6/thread2(reply to comment1) -coment7/thread1(reply to post) Thanks for any help/examples. I really ju

[PHP] Sessions on a shared server

2002-12-21 Thread Beth Gore
if that's set? Or, do I need to override the server's session variables each time I start sessions in every page that uses them? I imagine the former would mean that other sites would be able to potentially get my session variables, which isn't great. Probably very simple, s

[PHP] objects within arrays

2002-12-24 Thread Beth Gore
I did a print_r on that, and I got.. Array ([0] = StdClass Object([personal] = "blah" ); etc... so how do I access the data within the Object bit? a simple $header->from['personal'] refuses to output anything. Sorry to be a pain again, I know this is simple language stuf

Re: [PHP] objects within arrays

2002-12-24 Thread Beth Gore
This didn't work. Apparently from[] returns an array of objects, however I have no idea how to access the object within the array. print_r gives this: Array ( [0] => stdClass Object ( [personal] => Beth Gore [mailbox] => bethanoia [host] => habitformer.co.uk ) ) I've tri

[PHP] Sendmail Security

2002-12-28 Thread Beth Gore
easier way!!! I've already made sure it's not possible to abuse sendmail with the user's email address, but I'm still nervous. Thanks! -- Beth Gore http://www.habitformer.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php