php.ini

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
andym01480
Forum Contributor
Posts: 390
Joined: Wed Apr 19, 2006 5:01 pm

php.ini

Post by andym01480 »

Tried having a php.ini in my xampp public html directory

Code: Select all

 
magic_quotes_gpc=0
magic_quotes_runtime=0
magic_quotes_sybase=0
and then a little test script

Code: Select all

 
<?php
if($_POST['submit']=='Submit')
{
echo $_POST['text'];
}
?>
<form action="" method="post">
<input type="text" name="text"/>
<input type="submit" name="submit" value="Submit"/>
</form>
 
and it has no effect! Tried stopping and restarting apache

What am I doing wrong?
It works on my web host - which is a relief!
Post Reply