Solved

haven problem uploading files from a client

Posted on 2001-08-11
6
229 Views
Last Modified: 2006-11-17
hi

im using a free server for tesing my php page  which  takes a file from the clients directory and uploads it to my servers directory the code is working fine on my local machine but provides error like "NO SUCH FILE OR DIRECTORY EXSTS" when uploaded and runned on a php server

the code for this functionality is as

function UploadFile()
  {
   global $PathString;
   global $FileName;
   $files=explode("\\",$FileName);
   $file=array_pop($files);
   $file=trim($file);
   copy($FileName,"./".$PathString."test.htm");
 }

where $Filename is the file selected using form input type file .plz solev this problem and provide me with a sample code which provides the above functionality
0
Comment
Question by:kami1234
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 5

Expert Comment

by:harwantgrewal
ID: 6376760
What I think the uploading directory in not set on the PHP server..


Harry
0
 
LVL 8

Accepted Solution

by:
us111 earned 25 total points
ID: 6383088
0
 
LVL 40

Expert Comment

by:Richard Quadling
ID: 7176998
To see what settings your PHP has create a file info.php with ...

<?php phpinfo(); ?>

Regards,

Richard Quadling.
0
 
LVL 5

Expert Comment

by:LornaJane
ID: 9571543
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
deleted
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

LornaJane
EE Cleanup Volunteer
0
 
LVL 8

Expert Comment

by:us111
ID: 9571672
hmm I provide a link to learn how to upload a file
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question