Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache PHP file uploading 1

Status
Not open for further replies.

ggggus

Programmer
Jul 5, 2003
114
I'm setting up a new server, and in testing a site that I plan on moving over, I've run into a bit of snag.

On the old server, my LAMP scripts work fine for uploading and resizing images, but on the new server I'm setting up, when I try to upload a file, I get a blank screen after hitting the submit button.

Where to I start? Unfortunately, I'm moving from a large hosting company to a dedicated server, so I don't have access to the php.ini or httpd.conf files on the old host to compare against.

Code:
; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = /tmp/http

; Maximum allowed size for uploaded files.
upload_max_filesize = 20M
That's the relevant code from my php.ini.


***************************************
J. Jacobs
 
You can see how they have php and apache cofigured with this simple code:

Code:
<?php
phpinfo()
?>

Save this as a plain text file and call it phpinfo.php or whatever you want then upload it to your website's root directory. Then call it like this:

 
Thanks, you get a star for thinking of the obvious that I should have thought of. And of course, as soon as I did that I saw that GD was not installed....curious that with all errors turn on in php, I wasn't even getting a notice about that when I was trying to use image manipulation functions.

***************************************
J. Jacobs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top