Forums

PHP

This topic is locked

Rename Uploaded Files Add-on

Posted 21 Nov 2003 22:46:58
1
has voted
21 Nov 2003 22:46:58 John Lotito posted:
Hi,
I used the extension to rename the uploaded files using a form variable. However when I run this line of code I receive this error:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/john/public_html/neaus/cms/agents/add_listing2.php on line 55

the code on line 55 is:
$ruf->renameMask = "$HTTP_POST_VARS['mls_id']_##name##.##ext##";

Please help! Thanks
John

Edited by - jlotito on 21 Nov 2003 22:50:39

Edited by - jlotito on 21 Nov 2003 22:50:58

Edited by - jlotito on 21 Nov 2003 22:51:36

Replies

Replied 24 Nov 2003 12:50:54
24 Nov 2003 12:50:54 Patrick Woldberg replied:
Make the line as:

$ruf->renameMask = $HTTP_POST_VARS['mls_id']."_##name##.##ext##";

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Manager at DMXzone.com
--------------------------------------------------
Replied 01 Dec 2003 03:22:59
01 Dec 2003 03:22:59 John Lotito replied:
THANKS SO MUCH!!!!

IT WORKED!

Reply to this topic