UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Web Hosting and Domains > PHP Hosting

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-05-2007, 08:32
new member
 
Join Date: May 2007
Posts: 3
Default newbie PHP problem?

I hope you can help me - I'm a novice when it comes to scripts and php!
I've successfully installed a HTML form mailer to my website hosted by eukhost- it all works fine but for one exception. The form I created has a field where people can attach a file to send to me.
When the HTML form is sent to me in mail format, it only captures the file's name, but does not actually attach it to the mail.
I'm pretty confident I've done everything I should as far as the script instructions go - but in the script manual it quotes "Most PHP installations allow file uploads by default. You may, however, need to contact your hosting provider and ask them to enable file uploads. The setting is in the server's php.ini file and is called upload_tmp_dir."
- any suggestions?
Reply With Quote
  #2 (permalink)  
Old 04-05-2007, 21:29
System Administrator
 
Join Date: Dec 2006
Posts: 583
Lightbulb

Hi,

Quote:
The setting is in the server's php.ini file and is called upload_tmp_dir.
Yes, the setting you mentioned above is enabled on all of our servers. I'd recommend you to send us a support ticket through : http://support.eukhost.com along with the specific URL. Also, better consult your web developer & get your php code inspected. This looks more like a coding problem to me.
__________________

Rock _a.k.a._ Jack L.

http://www.eUKhost.com
Windows Hosting || Windows Reseller Hosting
Reply With Quote
  #3 (permalink)  
Old 04-05-2007, 21:36
new member
 
Join Date: May 2007
Posts: 3
Red face

Thanks. Yep, already going down this route. Fingers crossed
Reply With Quote
  #4 (permalink)  
Old 04-05-2007, 21:47
DavidAllen's Avatar
Premium Member
 
Join Date: Jan 2007
Location: Amersham
Posts: 334
Send a message via MSN to DavidAllen Send a message via Skype™ to DavidAllen
Default A couple of things

Check these as well:

In the html form tag - make sure it has the enctype set eg
Code:
form action="your_php_file.php" enctype="multipart/form-data" method="post" name="my_form" >
also in the php file you should have something like

Code:
if ($_FILES['attachment1']['name']<>"") {
	$mail->AddAttachment($attachment1,$_FILES['attachment1']['name']); // add attachment from form field called attachment1
}
Hope this helps
__________________
David Allen - www.serina.co.uk
Reply With Quote
  #5 (permalink)  
Old 05-05-2007, 10:19
new member
 
Join Date: May 2007
Posts: 3
Default

Hi DavidAllen,

My html tag reads correct.
Cant find a line similar to the php code - but will keep looking

Thanks
Reply With Quote
  #6 (permalink)  
Old 05-05-2007, 15:41
Premium Member
 
Join Date: Jan 2007
Posts: 209
Default

Hi iseng,

Check if the temp folder you mentioned is there and has read write permissions. Usually you get a ready made script which assumes you can read write to such folders. check the variable, create a new folder with 777 permision and change your temp folder variable to reflect the same. Keep the folder outside the public_html folder otherwise it may cause some nasty problems for everyone.

Regds
IJ
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 11:18.

 

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

Business Web Hosting
100% uptime Hosting

Cpanel Hosting
cPanel Shared Hosting

Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

Customer Testimonials
eUK Customer Testimonials


knowledgebase articles

eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting


popular blog categories


Web Hosting
Website Hosting articles

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles