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
Solved

haven problem uploading files from a client

Posted on 2001-08-11
6
218 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
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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 …

856 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