Jump to content

Recommended Posts

      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 found
But I have that module in c:\php\ext\php_mysqli.dll.
I appreciate any help.
Dusan
Link to comment
https://forums.phpfreaks.com/topic/35748-problem-with-installing-php-help-needed/
Share on other sites

The mysql or mysqli extension requires an extra file. This file is called libmysql.dll - should be located in C:/php

Copy 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?
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.
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
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.dll
AddModule mod_php5.c
AddType application/x-httpd-php .php
Action 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
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.
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.

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.