473,406 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

php uploader not work in localhost

123 100+
I download several .php file(uploader, etc) from internet and it works in ftp.

however, it not work in "local host". WHy? is it because of the folder
permission?i using apache...anything need to set there?

how to set?

thanks.
Sep 24 '08 #1
9 4592
bnashenas1984
258 100+
It might be because of permissions on the folder youre trying to upload your files in.

I can help you fix this problem with Windows XP. But if you have any other OS then check CHMOD command on www.php.net

Here is what you have to do to fix the permissions on your folders (Windows XP).
1- Open My Computer
2- Go to Tools --> Folder options
3- Go to the View tab and find this option on the list : Use simple file sharing (recommended)
4- Uncheck the box and click OK
5- Now go to the folder which needs to be changed for permissions
6- Right click on the folder and go to properties.
7- Go to the Security tab .. in the top list , choose the username you are using to log in to your windows and then change permissions for the specified user in the bottom list

If you allow this user to read and write to this folder then your php uploader should work fine

Good luck
Sep 24 '08 #2
Atli
5,058 Expert 4TB
however, it not work in "local host". WHy?[...]
How is it not working?
Are you getting any error messages?

There could be a lot of reasons why your server isn't doing what you want it to be doing. If you want us to be able to help, we need to know what it is you are trying to do and how it is not working.

We need details, or we are forced to guess, and we don't like guessing :)
Sep 24 '08 #3
perhapscwk
123 100+
no error message.

for premission things, i tried already for still not working.

that php uploader..i tried in ftp and it works..

thinking i may need some extension .dll for php or change some setting for apache....any suggestion?

thanks.
Sep 25 '08 #4
Atli
5,058 Expert 4TB
Have you tried turning on the debug messages?

You still haven't given us enough info on the problem.
What is this supposed to be doing and how is it failing to do so?
We need details!

Showing us the code that isn't working would also be a big help.
Sep 25 '08 #5
perhapscwk
123 100+
there are 2 files,....the upload.php..which we can upload pictures, and all the uploader.php will return a $uploaded_files which will output in upload.php, so
after pic upload...the page will add the filename to the bottom of the page.

Please see below for some code in upload.php

Expand|Select|Wrap|Line Numbers
  1. <?
  2.     include("uploader.php"); 
  3. ?>
  4.  
  5. ...upload pic form here......
  6.  
  7.  
  8. <? 
  9.  
  10. if($uploaded_files == "") echo "    
  11. <tr>
  12. <td colspan=\"2\" style=\"background: #fff; color: #000; text-align: center\"><br /><strong>There are no uploaded files.
  13. </strong><br /><br /></td>
  14. </tr>
  15. "; else echo $uploaded_files; ?>
  16. </table>
  17.  
  18.  
Above page works if it is run on website, however, not work in localhost(Apache
+ php5)....don;t know why...but in local host.....on upload.php...it always show
below the end of the page. but in website....it only show There are no uploaded files if no file is save in folder "files"...

below 2 sentence show if run display upload.php on localhost
There are no uploaded files.

"; else echo $uploaded_files; ?>
Sep 30 '08 #6
perhapscwk
123 100+
anyone can help?


thanks/
Oct 23 '08 #7
bnashenas1984
258 100+
It might be because of (upload_max_filesize) in your PHP.INI

Try to upload files smaller than 1MB and see if it works
Oct 23 '08 #8
perhapscwk
123 100+
not work as well............
Oct 24 '08 #9
bnashenas1984
258 100+
As Atli said before there could be alot of reasons why your code is not working.
I could come up with some reasons

1- Permissions on the specified folder
2- Having upload size limit in your PHP.INI
3- Using direct variables to uploaded file without $_files[] in a server with register_globals off

I'm sure there are more reasons I don't think of.

So, I think posting the actual code here might help. Show us your code to see what's wrong
Oct 24 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Andy | last post by:
Hi I have recently developed a few sites with an uploader facility for images and all has worked perfectly, until now??? I re-installed .NET due to an unrelated problem and since then if I...
19
by: Michael | last post by:
Hi, I'm trying to do something which should be very simple - connect to the MySQL database. Here is the call, followed by the error msg. $conn = mysql_connect("localhost", "root", ""); ...
8
by: Robert Dufour | last post by:
Dim message As New MailMessage("mymail@mydomain.com", "mymail@mydomain.com", "Test", "Test") Dim emailClient As New SmtpClient("localhost") emailClient.Send(message) The IIS server is...
2
by: harikrishnan4u | last post by:
How can we check the image size in rad uploader this file uploader is in the rad editor??any one Know
5
by: Good Man | last post by:
Hi everyone I was wondering if some people could comment on the new Flickr uploader at http://www.flickr.com/photos/upload/ I find a couple of things very intriguing, particuarly some things...
1
by: groupie | last post by:
Hi, I'm using the excellent Multiple file uploader ( http://the-stickman.com/web-development/javascript/multiple-file-uploader-mootools-version/ ) After selecting the files (as per the Defaults...
8
by: geert | last post by:
Hi all, I have a mac mini running maocosx 10.5 leopard I want to deploy a django project on. My backend is MySQL, and I have it running as a 64- bit app. Of course, apache2 is also running as...
7
Curtis Rutland
by: Curtis Rutland | last post by:
Building A Silverlight (2.0) Multi-File Uploader All source code is C#. VB.NET source is coming soon. Note: This project requires Visual Studio 2008 SP1 or Visual Web Developer 2008 SP1 and...
6
by: neovantage | last post by:
Hey all, i have installed Uber uploader on my server. and it is working perfectly. It shows progress bar after submitting form. I want that when i upload an image or a file it shows the progress in...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.