PHP form and server troubles

This is a discussion on "PHP form and server troubles" within the PHP Forum section. This forum, and the thread "PHP form and server troubles are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old May 1st, 2007, 08:28
New Member
Join Date: May 2007
Location: London
Age: 24
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
PHP form and server troubles

I have two identical 'submit CV' php forms, one sits on our server and works perfect...


And this one sits on our clients server and is a disaster...


Does anyone know what is going on? Im assuming is the a server side problem, however are there ways I can tweak the code so that it works???

Thanks!!

Neil
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old May 1st, 2007, 08:48
Reputable Member
Join Date: Apr 2007
Location: Scotland
Age: 17
Posts: 233
Thanks: 0
Thanked 0 Times in 0 Posts
Re: PHP form and server troubles

I'm not sure but i'm guessing it's because your client server doesn't support PHP, or at least the version your trying to use. So that's why its getting served up as plain text.

All the other pages on that site appear to be plain .html files and thats why they work fine. You should check your server compatibility with PHP.

Hope this helped

-Blake-
www.theloop.org.uk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old May 1st, 2007, 11:42
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: PHP form and server troubles

One of the first things I do is to make and bookmark the following simple file in a password-protected administrative directory (inside
/public_html).
PHP: Select all

<?php
 phpinfo
(); 
?>
I very cleverly name it "phpinfo.php".

This might be a big help for you -- just put it on both servers and compare the result. The most likely culprits are 1) Different PHP versions, and 2) Different PHP settings.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old May 1st, 2007, 12:21
New Member
Join Date: May 2007
Location: London
Age: 24
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: PHP form and server troubles

thanks for your help guys.

funny thing is I also have a copy of phpinfo.php, I tried it before you posted and rather than showing the php info on the clients server as it should (and does work on our server) it comes up with the "do you want to save to file or open" window...which is obviously not good!

The funny thing is that I have other more simple php contact forms running on the server which work perfectly, it's just this on with the 'attach file' script that seems to not work.

My guess is that the php isn't installed correctly on the server or it is running a very old version of php.

The search continues for a solution...other than a rebuild of the server (as we are not in control of it). I am always having problems with servers that arn't set up as they should be - they should be universally built the same, it's a royal pain in the arse!

Thanks anyway guys!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
submit, server, form

Thread Tools

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
IE Troubles MotorManiac Web Page Design 0 May 11th, 2008 00:01
Server-side form validation strategy.... ginzotech ASP.NET Forum 0 Jun 1st, 2007 15:25
Secure E-mail form troubles BGarner PHP Forum 2 Mar 15th, 2007 20:22
URGENT!!!! Send HTTP request from one web server to another server chandra.nowduri ASP.NET Forum 1 Aug 7th, 2006 19:18
Need to process data on one server, utilize it on another server ... can it be done? jaobrien Classic ASP 1 Dec 6th, 2005 00:58


All times are GMT. The time now is 02:25.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42