Jump to content

Droffo

New Members
  • Content count

    8
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Droffo

  • Rank
    Newbie
  1. Thanks, I attempted to enter the code on the second line and ended up with a parse error: Parse error: syntax error, unexpected '=' in C:\Apache24\htdocs\install\index.php on line 2
  2. Here is line 3: mysql_connect($_POST['dbhost'],$_POST['uname'],$_POST['pwd']) or die('Les informations de connexion vers la base de donnée sont incorrecte.');
  3. I now get this error: Deprecated : mysql_connect (): The mysql extension is deprecated and removed Will Be in the future: use mysqli or PDO INSTEAD in C: \ Apache24 \ htdocs \ install \ ajax-3 \ mysql.php on line 3 true
  4. Thank you very much to both of you for replying. I have set a new PATH by going into Environment Variables and adding ";C:\php" and have also edited the php.ini to resemble this: ;extension=php_bz2.dll ;extension=php_curl.dll ;extension=php_fileinfo.dll ;extension=php_gd2.dll ;extension=php_gettext.dll ;extension=php_gmp.dll ;extension=php_intl.dll ;extension=php_imap.dll ;extension=php_interbase.dll ;extension=php_ldap.dll ;extension=php_mbstring.dll ;extension=php_exif.dll ; Must be after mbstring as it depends on it extension=php_mysql.dll ;extension=php_mysqli.dll ;extension=php_oci8_12c.dll ; Use with Oracle Database 12c Instant Client ;extension=php_openssl.dll ;extension=php_pdo_firebird.dll extension=php_pdo_mysql.dll ;extension=php_pdo_oci.dll ;extension=php_pdo_odbc.dll ;extension=php_pdo_pgsql.dll ;extension=php_pdo_sqlite.dll ;extension=php_pgsql.dll ;extension=php_pspell.dll ;extension=php_shmop.dll I am still getting this error. Here is the script PHP is attempting to execute with MySQL (perhaps you could help me at working out which extension I need): class PoopDatabase { var $connection; var $error; var $lastquery; function PoopDatabase($conn){ switch($conn['server']){ case "mysql": $this->connection = mysql_connect($conn['host'].":".$conn['port'], $conn['username'], $conn['password'], true); Fatal error: Call to undefined function mysql_connect() in C:\Apache24\htdocs\includes\classes.php on line 378 This is the error line: $this->connection = mysql_connect($conn['host'].":".$conn['port'], $conn['username'], $conn['password'], true);
  5. Thank you very much to both of you. You are awesome and I wish I could best answer you both!
  6. Before reading, just know I am NOT a PHP programmer and have no experience with PHP. I am just trying to install a premade php based website. My questions is: How do I make .php pages connect to my database? I know the question is very broad and probably doesn't really make sense but I've been having errors trying to install/configure a php website. The php website has a config which I have filled out correctly and seems to work on my PC via localhost using XAMPP fine but it doesn't work on my Windows Server 2012 Apache machine whenever the .php configuration tries to alter or conenct to the MySQL database it displays errors like this: Fatal error: Call to undefined function mysql_connect() in C:\Apache24\htdocs\includes\classes.php on line 378 That's just an example of one predefined PHP website errors that I've received they are all very similar. What I think is happening is the PHP code is trying to connect to the database but there's some sort of configuration variable on Apache that I have not correctly filled out. I have tried this twice with two different CMS and searched google far and wide to find an answer to my problem. I hope the answer is something simple. If you need anything because you think you know what is happening then I will provide any information needed to fix this problem. Thank you.
  7. Droffo

    PHP LoadModules and Apache2.4

    Thank you very much! I had no idea that httpd.apache.org are incompatible! Insane! Thanks again.
  8. Greetings forum. I am attempting to configure loadmodules for PHP 5.6 in Apache 2.4 on Windows Server 2012. Here is the configuration I am attempting to add into httpd.conf: # For PHP 5 do something like this: LoadModule php5_module "c:/php/php5apache2_4.dll" AddType application/x-httpd-php .php # configure the path to php.ini PHPIniDir "C:/php I place it in the loadmodules section, right at the end of all of the modules. If I try to restart Apache it produces an error and will not run/restart, when I remove my added configuration the Apache server starts up again no worries at all. I believe my configuration to be wrong in this scenario and would like to ask how I should deal with this and/or if I am doing something wrong here. Thank you, Droffo.
×

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.