this pretty basic question...but i'm trying create basic php survey in eclipse xampp inputs data database. works fine on localhost, whenever upload website using filezilla, displays php text.
what tried create database , table on actual website (the code of works on localhost), "the page cannot found" error (the website www.digitalcowboyrepair.com , link entered www.digitalcowboyrepair/createdatabase.php" here's code
createdatabase.php
<?php ini_set('display_errors',1); ini_set('display_startup_erros',1); error_reporting(e_all); $con=mysqli_connect("localhost","root","password"); // check connection if (mysqli_connect_errno()) { echo "failed connect mysql: " . mysqli_connect_error(); } // create database $sql="create database testdb1"; if (mysqli_query($con,$sql)) { echo "database testdb1 created successfully"; } else { echo "error creating database: " . mysqli_error($con); } ?>
your production server server:microsoft-iis/6.0
the instructions installing php on iis 6 @ http://php.net/manual/en/install.windows.iis6.php
here headers server response:
http/1.0 304 not modified content-location: http://www.digitalcowboyrepair.com/index.html last-modified: mon, 15 jul 2013 17:15:42 gmt accept-ranges: bytes server: microsoft-iis/6.0 microsoftofficewebserver: 5.0_pub x-powered-by: asp.net date: mon, 15 jul 2013 17:57:35 gmt
if not have mysql
installed on server, can find instructions @ http://dev.mysql.com/doc/refman/5.7/en/windows-installation.html
Comments
Post a Comment