mr02077 Posted January 26, 2007 Share Posted January 26, 2007 Hello, I'm Dusan from Serbia.I've installed PHP, MySQL and Apache on my XP.I've uncommented some extensions in php.ini and among them:extension=php_pdf.dll and extension=php_mysqli.dll, but when I start Apache I got the message:PHP Startup: Unable to load dynamic library 'c:\php\ext\php_mysqli.dll' - The specified module could not be foundBut I have that module in c:\php\ext\php_mysqli.dll.I appreciate any help.Dusan Quote Link to comment https://forums.phpfreaks.com/topic/35748-problem-with-installing-php-help-needed/ Share on other sites More sharing options...
wildteen88 Posted January 26, 2007 Share Posted January 26, 2007 The mysql or mysqli extension requires an extra file. This file is called libmysql.dll - should be located in C:/phpCopy this file to your WINDOWS directory (C:/WINDOWS ( or C:/WINNT if you don't have a WINDOWS folder)). Restart Apache server. Is the library now loaded? Quote Link to comment https://forums.phpfreaks.com/topic/35748-problem-with-installing-php-help-needed/#findComment-169895 Share on other sites More sharing options...
mr02077 Posted January 27, 2007 Author Share Posted January 27, 2007 Thanks. It did.But I still have a problem: when I open a html file that should call php one, when I click submit I only get the code of php file in my browser. And they are both in htdocs folder of my Apache server. I don't know what to do. Quote Link to comment https://forums.phpfreaks.com/topic/35748-problem-with-installing-php-help-needed/#findComment-170477 Share on other sites More sharing options...
wildteen88 Posted January 27, 2007 Share Posted January 27, 2007 Does the file (that has the PHP code in) have a file extension that ends in .php? Quote Link to comment https://forums.phpfreaks.com/topic/35748-problem-with-installing-php-help-needed/#findComment-170492 Share on other sites More sharing options...
mr02077 Posted January 27, 2007 Author Share Posted January 27, 2007 It has Quote Link to comment https://forums.phpfreaks.com/topic/35748-problem-with-installing-php-help-needed/#findComment-170600 Share on other sites More sharing options...
wildteen88 Posted January 27, 2007 Share Posted January 27, 2007 I'm not sure what you mean by this:[quote]when I open a html file that should call php one[/quote]Could you provide more info please.Does this happen to any php file you go to? If it does then you havn't configured Apache (or whatever server you are using) properly Quote Link to comment https://forums.phpfreaks.com/topic/35748-problem-with-installing-php-help-needed/#findComment-170601 Share on other sites More sharing options...
mr02077 Posted January 27, 2007 Author Share Posted January 27, 2007 It happens to all of them.I used easy windows installers for MySQL, Apache and PHP in that order. I have a book with all-detailed instruction for installing those three.I added four lines:LoadModule php5_module c:\php\php5apache.dllAddModule mod_php5.cAddType application/x-httpd-php .phpAction application/x-httpd-php "/php/php.exe"in httpd.conf in Apache folder as it's written in the book.I spent much time on forums, and tried many options trying to solve this problem but I can't believe I still didn't.There's only one line in instructions that I don't understand and I don't know how to do that: It says: If you are using NTFS, you must set that user under which your Web server works has rights to read php.ini.And I'm using NTFS on my XP Windows.Thanks, Dusan Quote Link to comment https://forums.phpfreaks.com/topic/35748-problem-with-installing-php-help-needed/#findComment-170690 Share on other sites More sharing options...
wildteen88 Posted January 29, 2007 Share Posted January 29, 2007 When you run your html and PHP files you are going to http://localhost in your browser first right? You are not double clicking them.I don't understand that last bit either just ignore it. Also I noticed the book said to add this line to the httpd.conf:[code]Action application/x-httpd-php "/php/php.exe"[/code]Remove it that lines not needed. Quote Link to comment https://forums.phpfreaks.com/topic/35748-problem-with-installing-php-help-needed/#findComment-172076 Share on other sites More sharing options...
mr02077 Posted January 29, 2007 Author Share Posted January 29, 2007 Can't believe. You were right. I was double-clicking it all the time. When I type http://localhost//somefile.html, a php it calls on submit works.Why is it important?Thank you very much. Quote Link to comment https://forums.phpfreaks.com/topic/35748-problem-with-installing-php-help-needed/#findComment-172136 Share on other sites More sharing options...
wildteen88 Posted January 29, 2007 Share Posted January 29, 2007 Because PHP is not a client side langauge. It is a server side language. If you ran a PHP file through a browser the browser wont understand what the code is. So it either ignores it or shows it (some browsers vary).When you go to http://localhost/ you are accessing the local server (apache). So now when you request a PHP file from the server, it recognises that and passes it to PHP. PHP then processes the code in the file. Once processed it sends the output of the code back to Apache. Apache then sends that output from PHP to the browser. The browser now knows what to do with output. Quote Link to comment https://forums.phpfreaks.com/topic/35748-problem-with-installing-php-help-needed/#findComment-172144 Share on other sites More sharing options...
mr02077 Posted February 7, 2007 Author Share Posted February 7, 2007 Thanks. I owe you. One day when my knowledge improves you can ask for my help in any problem and I'll help you. Quote Link to comment https://forums.phpfreaks.com/topic/35748-problem-with-installing-php-help-needed/#findComment-179304 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.