paddymull Posted November 25, 2009 Share Posted November 25, 2009 Hi i have a big problem, i was running php files that sent info from a form the customer filled in to another php file. but this does not work on my dedicated server, i fort it may have been the file permission but Ive checked this and they have the correct file permission. does anyone know why this is happening??? and how can i fix it??? here is a working example http://ebayshopdesign.com/example.php when the files are uploaded to a shared hosting package it works, but if i upload the same files to my dedicated server they dont work (see link below) http://9zz.co.uk/example.php some one said it may be because the shared hosting is using php4 and the dedicated server is running php5, Could this be the problem?? and if so how do i fix this?? here is the coding for the first php file example.php <form name="example1" action="example1.php" method="POST" target="_blank"> <textarea cols=68 rows=27 name="message"></textarea></font></p> </p> <p align="center"><img height="5" src="http://www.ebayshopdesign.com/images/dotline.gif" width="168"><img height="5" src="http://www.ebayshopdesign.com/images/dotline.gif" width="168"><img height="5" src="http://www.ebayshopdesign.com/images/dotline.gif" width="168"><p align="center"> <font face="Arial"> <input type="submit" value=" Create Listing "> </form></body></html></td> </tr> </table> </div> and here is an example of the php file the info is sent to example1.php <?php /* All form fields are automatically passed to the PHP script through the array $HTTP_POST_VARS. */ $message = $HTTP_POST_VARS['message']; //magic quotes fix $message= (get_magic_quotes_gpc())?stripslashes($message):$message; ?> <head> </head> <?php echo $message ?> as you can see its a simple code but its just not working for me on my dedicated server, Please can some one help thanks Link to comment https://forums.phpfreaks.com/topic/182880-php-script-works-on-shared-hosting-but-not-dedicated-server/ Share on other sites More sharing options...
paddymull Posted November 25, 2009 Author Share Posted November 25, 2009 Hi looks like i have fixed this my self, the problem was i needed to change the PHP Variables to yes, thanks Link to comment https://forums.phpfreaks.com/topic/182880-php-script-works-on-shared-hosting-but-not-dedicated-server/#findComment-965284 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.