Jump to content

Cemetery

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Cemetery's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. by this php.ini-recommended now copy this to the Windows folder and rename it to just php.ini. do u mean cop it to windows/system 32?
  2. ok that is what i thought but it is still not working
  3. Nope still not working. Quick question am i suppose to edit the php.ini or the php.ini.INI-recommended?
  4. Well that is in my folder is this a file Php INI-Recommended Then PHP.ini INI-Recommended
  5. Still not working properly. I have: In the php.ini-recommended file changed extension_dir = "C:\php\ext" uncommented extension=php_mysql.dll, extension=php_mysql.dll I also deleted all instances of libmysql.dll except the one in c:\PHP and then copy and pasted the one from the php folder and placed it into C:\Windows\System32 And i'm still getting the same errors. I've also been searching the web about this issue and i found alot of cases with this issue. Has there been any more updates for this problem?
  6. Im an building a simple login page and when i hit submit i get this Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\loginck.php on line 5 this is the code i have to far <?php $username = "root"; $password = "test"; $hostname = "localhost"; $dbh = mysql_connect($hostname, $username, $password) or die("Unable to connect to MySQL"); $selected = mysql_select_db("first_test",$dbh) or die("Could not select first_test"); $result = mysql_query("SELECT id, first_name,surname FROM people"); while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) { print "ID:".$row{'id'}." Name:".$row{'first_name'}." ".$row{'surname'}."<br>"; } mysql_close($dbh); ?>
  7. AH installing the binary of php worked perfectly TY so much. Now I can dive into learning php.
  8. Where should i add that? I put it in with the other php information like this #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL PHPIniDir "C:/PHP/" LoadModule php5_module "C:/PHP/php5apache2_2.dll" AddType application/x-httpd-php .php #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL When i stop Apache it crashes but it still turns off. When i start apache again it seems ok. So i go to the my localhost/Home.php and it still is a blank page.
  9. I've tried this a few times now and can't seem to get this to work. I installed Apache 2.2 and then installed PHP 5. In the installation process of PHP it asked me which web server i want to configure php for so i choose Apache 2.2 and the instalation finished. The httpd.conf file for appache was altered like this #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL PHPIniDir "C:/PHP/" LoadModule php5_module "C:/PHP/php5apache2_2.dll" #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL Also ive tried to manually configure the Using the directions PHP gives but that doesnt seem to work either. I'm using a program called ConTEXT to write my php files. I create a new doccument and i copy pasted the code form this tutorial into the text editor <html> <head> <title>My First PHP Page</title> </head> <body> <?php echo "Hello World!"; ?> </body> </html> Then i save the file as Test.php into the apache htdocs. When i open localhost/test.php all i get is a blank page. Can someone tell me why?
×
×
  • 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.