simple?
| From: | Jason | Date: | Wed, 05 Nov 2003 19:21:12 +0000 |
| Subject: | simple? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-168610@lists.php.net to get a copy of this message | ||
Hello all,
I have written a script for the purpose of uploading an image and block of
text for a site. Real simple stuff but I can't get the form to write? code
looks like this...
<?php
function is_upload_file($filename)
{if (!$tmp_file = get_cfg_var('upload_tmp_dir')) {
$tmp_file = dirname(tempnam(","));
}
$tmp_file .= '/' . basename($filename);
/*User might have trailing slash in php.ini...*/
return (ereg_replace(,/+, '/', $tmp_file ==$filename);
}
?>
I have some error checking above this but the meat of it still doesn't work.
I get:
Parse error: parse error in
/var/www/html/site/directory/subdirectory/upload.php on line 68
in the upload.php file there are only 64 or so lines of code.
HELP!
Jason