...

View Full Version : wap & php



urgido
12-20-2006, 04:23 AM
Hello,

I have a page made in php but I have a directory with some files. So, I want to give access to my users to that files for download to his/her wap cellphones. My idea is the following:

I want to put in the index.wml a form that consists in one text box and one submit button, so the users need to enter a name with the name of the file with the extension and if the file exists the file begin download other way an alert is showing with echo php tag.

The files are stored in a directory called "sms-wap".

Regards :thumbsup:

rafiki
12-20-2006, 11:34 AM
if (!file_exists($dir/$filename))
{ echo "File does not exist"; }
else {
header("Location:http://$dir/$filename");
}

ofcourse you should have an if statement to see if data has been submitted

urgido
12-21-2006, 05:53 AM
I know how to implement using php I asked about in format wml.

Regards

rafiki
12-21-2006, 11:06 AM
try setting your server up 2 parse wap pages as PHP pages, then whack some php in your wap pages, all is well?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum