Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Jan 16th, 2006, 11:38 PM   #1
Obtruse_Man4
Programmer
 
Obtruse_Man4's Avatar
 
Join Date: Sep 2005
Location: PA, USA
Posts: 49
Rep Power: 0 Obtruse_Man4 is on a distinguished road
variable in url

I'm trying to incorporate a secure download script into an already coded file management system. I want the url path to be download.php?file=, and then the file name. The file name is taken from the variable .$file. How do I add the variable onto the end of the url? What I currently have below doesn't seem to work. It passed the error:

Quote:
Parse error: parse error, unexpected T_STRING in /home/.anabel/mecabe/farsideofthegalaxy.com/downloads/codebase.inc.php on line 57
[PHP]$file_string = "<li>Get file: <a href="download.php?file=.$file."> ".$file."</a> (".human_file_size(filesize($file)).")</li>";[/PHP]
__________________
"I have many layer-eight problems in my life, including myself."
Obtruse_Man4 is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:46 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC