Share on Google+Share on Google+

syed mohamed ali
download
0 Answer(s)      6 years and 5 months ago
Posted in : PHP

how to download the file in server using php

code:

"<form method="post" action="">
enter the folder name<input type="text" name="t1" >
<input type="submit" value="search" name="s1">
</form>
<form method="post">
<?php
if(isset($_REQUEST['s1']))
{
$t=$_REQUEST['t1'];
$dir=opendir("c:/wamp/www");
while(($f=readdir($dir))!=false)
{
if($t==$f)
{
$s="c:/wamp/www/$t";
$dir=opendir($s);
?>
<select>
<?php
while(($f=readdir($dir))!=false)
{
?>
<option value="<?php echo $f;?>"><?php echo $f?></option>
<?php
}
?>
</select>
<input type="submit" name="s2">
<?php
goto end1;
}
}
closedir($dir);
echo "ur entered the wrong foldername";
end1:
}
?>
</form>`print("code sample");`

Ads

View Answers









Related Tutorials/Questions & Answers:
Download
Download JDK  How to Download the latest Version of JDK?   Download OST to PST converter from: http://www.osttopst.info
Download.
Download.  I need a swing program to download a file from the server
Advertisements
download
download  how to download the file in server using php code: "<form method="post" action=""> enter the folder name<input type="text" name="t1" > <input type="submit" value="search" name="s1"> </form> <
download excel
download excel  hi i create an excel file but i don't i know how to give download link to that excel file please give me any code or steps to give download link
Java download
Java download  Hi, Is it possible to download the Java for Linux Centos 6? From where it can be downloaded for Linux Centos 6? Thanks
file download
file download  I uploaded a file and saved the path in database. Now i want to download it can u plz provide code
Download Java
process of downloading and Installing Java  Hi, How easy is the process of downloading and Installing Java? I have windows 7 machines. Can anyone tell me how to download and install Java? Thanks
download - SQL
download  i want download the mysql server  Hi friend, The latest version of MySQL can be downloaded from http://www.mysql.com. Read for more information. http://www.roseindia.net/mysql/mysql5/Installing
FileUpload and Download
FileUpload and Download  Hello Sir/Madam, I have used the below coding for Upload and download file, but it is not stored in database and also it s not download the file with its content... just it download doc with 0 Bytes
FileUpload and Download
FileUpload and Download  Hello Sir/Madam, I have used the below coding for Upload and download file, but it is not stored in database and also it s not download the file with its content... just it download doc with 0 Bytes
FileUpload and Download
FileUpload and Download  Hello Sir/Madam, I have used the below coding for Upload and download file, but it is not stored in database and also it s not download the file with its content... just it download doc with 0 Bytes
FileUpload and Download
FileUpload and Download  Hello Sir/Madam, I have used the below coding for Upload and download file, but it is not stored in database and also it s not download the file with its content... just it download doc with 0 Bytes
FileUpload and Download
FileUpload and Download  Hello Sir/Madam, I have used the below coding for Upload and download file, but it is not stored in database and also it s not download the file with its content... just it download doc with 0 Bytes
FileUpload and Download
FileUpload and Download  Hello sir/madam, I need a simple code for File upload and Download in jsp using sql server,that uploaded file should... be download with its full content...can you please help me... im in urgent i have
how to download oracle 9i
how to download oracle 9i  how to download oracle 9i
download code from database
download code from database  how to download files from database
Download PDF file
Download PDF file  How to download PDF file with JSF
php download file script
php download file script  PHP script to download file in IE
php download free
php download free  From where i download php free
Free download java
Free download java  Hi, Where can I download java for absolutely free and quickly? Thanks
File Download in jsp
File Download in jsp  file upload code is working can u plz provide me file download
php download file code
php download file code  PHP code to download the files from the remote server
how to download file
how to download file  How do I let people download a file from my page
Download file - JSP-Servlet
Servlet download file from server  I am looking for a Servlet download file example
JAVA S/W download
JAVA S/W download  Hi I'm new to JAVA, I want to download JAVA S/W from where I need to download. Please help me with the link. Thank you,   Hi ! u can download JAVA from http://www.java.com/en/download/index.jsp
How to download Java
How to download Java  Hi, My windows 7 computer is ready. Now I want to download and install Java. Can anyone tell me How to download Java and then install on my computer. Thanks
Free Java Download
Free Java Download   Hi, I am beginner in Java and trying to find the url to download Java. Can anyone provide me the url of Free Java Download ? Is Java free? Thanks
Java 1.6 download
Java 1.6 download  Hi, Where can you download Java 1.6 download? Thanks   Hi, Please see the tutorial Download and Install Java. Thanks
xcode 6.1.1 download
xcode 6.1.1 download  Hi, I want to download the Xcode from my windows computer. What is the direct url to download Xcode 6.1.1? Thanks   Hi, Download Xcode 6.1.1. You will still need the Apple user name
Download free java
Download free java  Hi, How to get Java for free? It is possible to download and install java on windows 64bit system? Thanks
How to download and install Tomcat?
How to download and install Tomcat?  Hi, How to download and install Tomcat? Share me the url to learn Tomcat. Thanks   Hi, Please check the tutorial: Guide to download and install Tomcat 6. Thanks
Tutorials   
Java Spring Hibernate Struts Training I am Java programmer. Should I learn Java Script or Python? Delete multiple records with pagination by selecting checkboxes How to add one hour in php date? connection in php connection in php connection in php PHP magento how to make previous and next Button Display Data in php session written exam display database results question create a simple form Magento Strings in PHP Zend Framework Installation in xampp? How to prevent adding duplicate items to the shopping cart php problem maximum execution time of 30 seconds exceeded in php Call-time pass-by-reference has been removed in HTTP_POST_VARS is deprecated $_GET[] index is not defined Function mysql_db_query() is deprecated Function mysql_db_query() is deprecated Function split() is deprecated Fatal error: Call to undefined function session_register() in .php file php tag not working Error reporting in PHP Why are MySQL Routines and Views not used with PHP? How to add Click to copy function to my wordpres blog? connection of php to MySQL. loan calculator Datepicker not getting called through include function of php change url string integrate login in php Installation of wamp server Display PHP clock with user input date and time value in div from php, reloading form pre-populate form developing a system using php n mysql Configure apache Tomcat to work with Eclipse and PDT in php How to display a file for 24 hours? LOGIN ERROR LOGIN FAILED", $_SESSION['login fail']='0',}?> I GOT ERROR FOR MY PROJECT PHP Sending emails and insert into trable Tutorial college Student Admission System PLZ HELP ME. i need php code.

Ads

 
Advertisement null

Ads