RE: [PHP-DB] Am I doing This Right?
| From: | Snijders, Mark | Date: | Fri, 01 Nov 2002 10:15:52 +0000 |
| Subject: | RE: [PHP-DB] Am I doing This Right? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-22882@lists.php.net to get a copy of this message | ||
or just do
phpinfo(); en check all the vars
cause in the latest php versions it could be that you have to use
$_POST[...... etc..
_______________________________
Mark Snijders, Developer
Atos Origin
Groenewoudeseweg 1, Room VN-515
5621 BA Eindhoven, The Netherlands
* : Mark.Snijders@atosorigin.com
* :+31 (0)40 - 2785992 (tel)
* : +31 (0)40 - 2788729 (fax)
The information in this mail is intended only for use of the individual or
entity to which it is addressed and may contain information that is
privileged, confidential and exempt from disclosure under applicable law.
Access to this mail by anyone else than the addressee is unauthorized. If
you are not the intended recipient, any disclosure, copying, distribution or
any action taken omitted to be taken in reliance of it, is prohibited and
may be unlawful.
-----Original Message-----
From: Mohammad Saad [mailto:m_saad@khi.comsats.net.pk]
Sent: vrijdag 1 november 2002 11:11
To: php-db@lists.php.net
Subject: Re: [PHP-DB] Am I doing This Right?
check the values of these variables
$rTemp = $HTTP_POST_FILES['replay_file']['tmp_name'];
$rName = $HTTP_POST_FILES['replay_file']['name'];
$rSize = $HTTP_POST_FILES['replay_file']['size'];
// Define Replay Upload DIR and FILE name
$rFile =
$db_nextid."_".$HTTP_POST_FILES['replay_file']['name'];
$rLoc = "files/war3-replays/$rFile";
they should contain some value , one more thing , mite be the case that
$HTTP_POST_FILES['replay_file']['tmp_name'] should be
$HTTP_POST_FILES['REPLAY_FILE']['TMP_NAME]
do one thing, print_r($HTTP_POST_FILES); this should show you what that
array contains
Good Luck
----- Original Message -----
From: <Tony72284@aol.com>
To: <php-db@lists.php.net>
Sent: Friday, November 01, 2002 2:45 PM
Subject: Re: [PHP-DB] Am I doing This Right?
>
> After I submit the file, it goes back to the form, even though in
the
> script, it says to go to the database and move the uploaded file to a new
> DIR.
>
> It ignores it as if the file wasn't uploaded.
>
> As for printing out the variables. All my important variables are
> $HTTP_POST_FILES and those are all null.
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php