Jump to content

PHP Script works on shared hosting but not dedicated server


paddymull

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.