Click here to Skip to main content
15,887,962 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
GeneralRe: php and mysql related firefox problem Pin
doitnow114711-Aug-11 19:23
doitnow114711-Aug-11 19:23 
GeneralRe: php and mysql related firefox problem Pin
doitnow114711-Aug-11 20:54
doitnow114711-Aug-11 20:54 
GeneralRe: php and mysql related firefox problem Pin
Mohibur Rashid12-Aug-11 19:58
professionalMohibur Rashid12-Aug-11 19:58 
GeneralRe: php and mysql related firefox problem Pin
doitnow114712-Aug-11 20:10
doitnow114712-Aug-11 20:10 
GeneralRe: php and mysql related firefox problem Pin
doitnow114712-Aug-11 21:42
doitnow114712-Aug-11 21:42 
QuestionI need help in learning php Pin
binngokute10-Aug-11 5:48
binngokute10-Aug-11 5:48 
AnswerRe: I need help in learning php Pin
Dr.Walt Fair, PE10-Aug-11 8:28
professionalDr.Walt Fair, PE10-Aug-11 8:28 
QuestionIs Windows Server Support File Uploads? [modified] Pin
Arunkumar.Koloth3-Aug-11 21:37
Arunkumar.Koloth3-Aug-11 21:37 
Hi All

Now Iam In A Problem Is it possible to upload file to a windows server?

i used this code for uploading file i got this code from w3schools.com

HTML
<form action="upload_file.php" method="post"
enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file" />
<br />
<input type="submit" name="submit" value="Submit" />
</form>


PHP
if ((($_FILES["file"]["type"] == "image/gif")
|| ($_FILES["file"]["type"] == "image/jpeg")
|| ($_FILES["file"]["type"] == "image/pjpeg"))
&& ($_FILES["file"]["size"] < 20000))
  {
  if ($_FILES["file"]["error"] > 0)
    {
    echo "Return Code: " . $_FILES["file"]["error"] . "<br />";
    }
  else
    {
    echo "Upload: " . $_FILES["file"]["name"] . "<br />";
    echo "Type: " . $_FILES["file"]["type"] . "<br />";
    echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
    echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br />";

    if (file_exists("upload/" . $_FILES["file"]["name"]))
      {
      echo $_FILES["file"]["name"] . " already exists. ";
      }
    else
      {
      move_uploaded_file($_FILES["file"]["tmp_name"],
      "upload/" . $_FILES["file"]["name"]);
      echo "Stored in: " . "upload/" . $_FILES["file"]["name"];
      }
    }
  }
else
  {
  echo "Invalid file";
  }


This Script is Working Good On My Local wamp server and also working fine in my linux server

i checked phpinfo() of my windows server

fileupload is on
and max_upload size is 32 mb
Thease Are My Server informations

OS/Hosting Type: Windows / 4GH Web Hosting
Hosting Configuration:
.Net Runtime Version: ASP.Net 2.0/3.0/3.5
PHP Version: PHP 5.3
IIS Version: IIS 7.0



Please Help Me To Do This

Arunkumar.T
Cry | :((

modified on Thursday, August 4, 2011 7:02 AM

AnswerRe: Is Windows Server Support File Uploads? Pin
cjoki4-Aug-11 4:29
cjoki4-Aug-11 4:29 
GeneralRe: Is Windows Server Support File Uploads? Pin
Arunkumar.Koloth5-Aug-11 6:45
Arunkumar.Koloth5-Aug-11 6:45 
GeneralRe: Is Windows Server Support File Uploads? Pin
cjoki5-Aug-11 8:38
cjoki5-Aug-11 8:38 
GeneralRe: Is Windows Server Support File Uploads? Pin
Arunkumar.Koloth5-Aug-11 18:13
Arunkumar.Koloth5-Aug-11 18:13 
Questionsoap vs nusoap Pin
PHP Rocks2-Aug-11 22:22
PHP Rocks2-Aug-11 22:22 
QuestionWeb service: PHP SoapClient Pin
PHP Rocks31-Jul-11 21:09
PHP Rocks31-Jul-11 21:09 
QuestionPhp Sessions Pin
nishinilu27-Jul-11 5:40
nishinilu27-Jul-11 5:40 
AnswerRe: Php Sessions Pin
Gerben Jongerius27-Jul-11 20:33
Gerben Jongerius27-Jul-11 20:33 
AnswerRe: Php Sessions Pin
Claudio Ludovico Panetta29-Jul-11 6:05
Claudio Ludovico Panetta29-Jul-11 6:05 
AnswerRe: Php Sessions Pin
Arunkumar.Koloth15-Jan-12 1:31
Arunkumar.Koloth15-Jan-12 1:31 
Questionhow to preg_replace the last comma? Pin
mabrahao26-Jul-11 4:01
mabrahao26-Jul-11 4:01 
AnswerRe: how to preg_replace the last comma? Pin
Peter_in_278026-Jul-11 14:58
professionalPeter_in_278026-Jul-11 14:58 
QuestionUpdate multiple rows in a dynamic table Dreamweaver CS5.5 Pin
sir_amin16-Jul-11 22:32
sir_amin16-Jul-11 22:32 
AnswerRe: Update multiple rows in a dynamic table Dreamweaver CS5.5 Pin
Gerben Jongerius17-Jul-11 3:17
Gerben Jongerius17-Jul-11 3:17 
GeneralRe: Update multiple rows in a dynamic table Dreamweaver CS5.5 Pin
sir_amin17-Jul-11 3:44
sir_amin17-Jul-11 3:44 
Questionsamba question... Pin
Albert Holguin8-Jul-11 9:27
professionalAlbert Holguin8-Jul-11 9:27 
AnswerRe: samba question... Pin
Albert Holguin8-Jul-11 11:06
professionalAlbert Holguin8-Jul-11 11:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.