HostNode.com :: HostSeeker's Talk
Home Register FAQ Members List Calendar Mark Forums Read
Go Back   HostNode.com :: HostSeeker's Talk > Design Talk > Programming Pool > mod_rewrite? how?
Reply
 
LinkBack Thread Tools Rate Thread Display Modes
(#1 (permalink))
Old
Intex Intex is offline
Registered User
Intex is on a distinguished road
 
Posts: 1
Join Date: Nov 2004
mod_rewrite? how? - 11-18-2004, 08:36 PM

Hi.

I've been using & looking at http://hostmyfile.net/ for a little bit now.

I plan on starting my own file / image hosting site soon. But I'm not to sure on how this stuff works.

#1 - I've created the upload script. But I don't get how you rename the image after it's been upload. Like on host my file I upload an image to the server. Then it spits out a hostmyfile.net/files/36789.gif ? Hmhm. Any idea's? Maybe mod_rewrite does this.

#2 - When you upload a non image file on host my file it spits out weird a url (like above). Then when you click it. It brings you BACK to the site before you can download it! This I find very important. How is this possible? I assume that it uses mod_rewrite.

#3 - Is it possible to have the upload script insert some information to a database, file name, date, time, size, etc...

#4 - Keeping everything masked so they will never see the real location of the file. That way people can't just hot link to the file, acception for image files. Once again, I assume that mod_rewrite does this.

Thanks in advance for all of your help!

:)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
(#2 (permalink))
Old
u2mike u2mike is offline
Registered User
u2mike is on a distinguished road
 
Posts: 15
Join Date: Oct 2004
Location: Ft. McMurray, Canada
11-22-2004, 05:06 AM

What code are you using to upload the file? If the upload script was in php it would be fairly easy to accomplish all that. I have a script that renames, dates, checks the filetypes, checks for remote urls etc. You would need to combine it with a database though to store all that stuff. There should be some material on how to create a php based upload script, if you need some more help I can probally create something in a few minutes to get you started.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
(#3 (permalink))
Old
iwonder iwonder is offline
Registered User
iwonder is on a distinguished road
 
Posts: 11
Join Date: Feb 2005
03-01-2005, 05:55 PM

I donno for sure but try this http://hotscripts.com/PHP/Scripts_an...ols/index.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +2. The time now is 11:10 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0
vB.Sponsors
© 2003 - 2007 HostSeeker.com - All rights reserved