Re: [PHP] is_uploaded_file() emulation?

2002-02-26 Thread Stewart Gateley
$owner = fileowner ($file); returns a string containing the owner or false. see http://www.php.net/manual/en/ref.filesystem.php -- Stewart --- Bogdan Stancescu <[EMAIL PROTECTED]> wrote: > Hello all! > > How do I find out if a file was actually uploaded /without/ using > is_uploaded_file()?

Re: [PHP] Valid characters for filenames. List available?

2002-02-26 Thread Stewart Gateley
Im not the best at writing regex, but this could be represented as $filename = ereg_replace ("[^a-zA-Z0-9.-_]", "_", $filename); Someone correct me if I am wrong (this is what im using to rename uploaded files, seems to work). -- Stewart --- Erik Price <[EMAIL PROTECTED]> wrote: > > On Tuesda

Re: [PHP] is there an "in" qualifier in PHP?

2002-02-26 Thread Stewart Gateley
I'm tired :) -- Stewart --- J Smith <[EMAIL PROTECTED]> wrote: > > That will result in a parse error. I think you mean > > if (in_array($row['id'], $selected_users)) { /* execute */ } > > J > > > > Stewart G. wrote: > > > if ($row['id'] in_array ($selected_users)) { // execute } > > > >

Re: [PHP] another GD question

2002-02-26 Thread Stewart Gateley
Conor, This works for me I even tried 6000 pixels and did not fill it. The stripping of tags doesnt work so well but im sure youve already got that covered so just replace it with your code. ]|\n)*>", "", $buffer)); } fclose ($fh); header ("Content-type: image/png"); $im = ImageCreate (640, 300