|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Wap Id
hi,
I'm wondering if it's possible to assign WAP IDs to files... For example, when I upload a file manually into folder/directory, would I be able to assign a WAP ID to that file, so that when I want to download that file via WAP, I just need to enter the number to initiate the file to be downloaded via a script. If it's possible, it would save me much time because at the moment, after I've uploaded a file via Web to my website, I would have to manually edit the WAPsite using a wap editor. Thanks in advance! |
|
#2
|
||||
|
||||
|
Not without using some server-side technology. Are you using PHP or ASP or similar?
Are you using a database too?
__________________
Cheers, Jamie # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure # Any form of employment is strictly prohibited ...... __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. __________________ |
|
#3
|
|||
|
|||
|
Quote:
yes, using php and mysql |
|
#4
|
|||||
|
|||||
|
OK, well it is easy enough then. I will give theory & pseudo code, not working code. If you get get stuck then post your code and I / someone will try to help.
There are multiple ways of doing this. One way, & possibly the easier method, could be: Without database Upload you file manually to the directory... In the directory you have and index page(php). If a $_GET parameter (say $_GET[id'] for example) is not set then list all the files in the directory using glob. Print out the all files off the file extension of your choice making the list into hyperlinks. If the $_GET[id'] is set, check that the file exists and download.... pseudo Code:
Good luck. Jamie Last edited by jabba_29 : February 8th, 2006 at 07:52 PM. Reason: Fix code tags |
|
#5
|
|||
|
|||
|
thanks for the reply once again, Jamie.
I've used WAPbuddy before in the past. However, this time, I was hoping for something different due to the large database of files that i have, it's quite impossible for users to go through each pages to find the file on WAP. I need something like this: For example, when I upload something using an uploader, once it's uploaded, it issues a ID for the file uploaded. Once that happens, the WAP script is able to retrieve the file using that ID. When the user wish to download that particular file, he/she just needs to key in that ID to retrieve and download that file via WAP. |
|
#6
|
||||
|
||||
|
Quote:
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > Wap Id |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|