Visit Our UNIX and Linux User Community

PHP Script Help - Making links to files Clickable

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting PHP Script Help - Making links to files Clickable
# 1  
Old 12-29-2010
PHP Script Help - Making links to files Clickable

Ok so I wrote a php script that outputs the below to users on a webpage.

# Download: /home/content/d/i/v/divine1234/eBookDownloads/

the php code that outputs the above is:

echo ("<li>Download:            $download_link</li>\n");

The thing is, I dont want users have to copy and paste the output of the above command before they can download the file.

is there anyway I can assign it a name and make it Clickable?


filename = "/home/content/d/i/v/divine1234/eBookDownloads/";

ClickHere = "$filename";

echo ("<li>Download:            ClickHere</li>\n");

# 2  
Old 12-30-2010
Make the zip file available under the website document root and then just create a hyperlink...
echo "<A HREF='/eBookDownloads/'>Click Here</A>";

Previous Thread | Next Thread
Test Your Knowledge in Computers #645
Difficulty: Easy
The first web browser, WorldWideWeb, was invented on the NeXTSTEP platform.
True or False?

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need script for making files based on some conditions.

Hi All, I have a text file (code_data.txt) with the followig data. AMAR AB123456 XYZ KIRAN CB789 ABC RAJ CS78890 XYZ KAMESH A33535335 ABC KUMAR MD678894 MAT RITESH SR3535355... (26 Replies)
Discussion started by: ROCK_PLSQL
26 Replies

2. Shell Programming and Scripting

Making a script to copy files not seen before (using md5sum)

Hello, I would like to make a script that searches through a SRC folder and copies only files it's never seen before to a DEST folder. SRC = /user/.phonesync/photos-backup DST = /usr/.phonesync/photos-new So basically, I'd start with a: md5sum /user/.phonesync/photos-backup/* >... (29 Replies)
Discussion started by: nbsparks
29 Replies

3. Shell Programming and Scripting

[PHP] Need help with making variables Global

I have made a script that requires another php script for functions. I need a way so that the required script can read and write the main script's variables. Best Regards, John Wei ---------- Post updated at 08:54 AM ---------- Previous update was at 08:40 AM ---------- Sorry Guys, EDIT: my... (1 Reply)
Discussion started by: johntzwei
1 Replies

4. Shell Programming and Scripting

delete links along with the files

Hi, I am new to unix I am removing some unwanted files from the directory by using the following command find . -name "*" -exec rm -f {} \; But i want the corresponding links also to be removed can one help me Thanks (1 Reply)
Discussion started by: Satyak
1 Replies

5. UNIX for Dummies Questions & Answers

One-time use files/links

Im in the process of developing a content based website in which people will be able to upload movies(which are then converted to flv format and displayed in a flash based player.) In order to protect the submitted content I would like to setup an offsite folder for the videos and create... (0 Replies)
Discussion started by: Airhead315
0 Replies

6. Shell Programming and Scripting

making url's clickable

here at work. we operate by making all of our unix systems alerts be sent to Microsoft Outlook for us to investigate. now, there are quite a number of url link alerts that are sent to our inboxes. problem is that we have to copy and paste each of those urls into our browser. i hate... (4 Replies)
Discussion started by: Terrible
4 Replies

Featured Tech Videos