Hi to all, i want to make a question.
I have installed WAMP server etc newer version without seeing the newer version of php, now it has 5.4.3 and as i run the php, the apache server error log states multiple [WAMP v.2.2 with Apache v.2.4.2, MySQL v.5.5.24 and php v.5.4.3]
AH01630: client denied by server configuration: C:/wamp/www/phpNoobTest.php
I suspect that the reason is the $_GET that makes the problem and the data is not written to my SQL database.
Any help/thoughts would be greatly appreciated. Little experience with php unfortunately..
That is becouse in the apache server error log it states:
PHP Fatal error: Directive 'register_globals' is no longer available in PHP in Unknown on line 0
ALSO I HAVE MADE THIS CHANGE TO PHP.INI:
register_globals = on
PHP CODE :
<?php var_dump($_GET); $val = @$_GET['temperature']; if(empty($_GET)) echo "No GET variables"; else print_r($_GET); //Connect to database $con = mysql_connect("localhost", "root", ""); if(!$con) die('Could not connect: ' .mysql_error()); mysql_select_db("test", $con); $result = mysql_query("INSERT INTO tempinputs(idinput) VALUES ($val)"); mysql_close($con); ?>
Edited by OD_php, 17 May 2013 - 11:06 AM.