Re: Cannot enable extensions. Why?
| From: | George Hester | Date: | Sat, 06 Jul 2002 05:49:45 +0000 |
| Subject: | Re: Cannot enable extensions. Why? | ||
| References: | 1 2 | Groups: | php.general php.gtk.general |
| Request: | Send a blank email to php-general+get-105810@lists.php.net to get a copy of this message | ||
Well thank you Jason. The gtk is now running. The last thing now is why I
cannot uncomment the extensions in the C:\WINNT\php.ini in my PHP 4.2.1
installation. That issue still exists.
In this script
http://127.0.0.1/scripts/could.php
-------- could.php -----------
<html>
<head>
<title>From Newsgroup</title>
<body>
<?php
$myvar = "Hello World1";
echo $myvar;
print ("Hello World 2");
?>
<?php
$myvar1 = "This is a test!";
echo $myvar1;
?>
</body>
</html>
------ End could.php ------------------
I get this:
Hello World1Hello World 2This is a test!
But if I uncomment php_w32api_dll in php.ini
I get this error before the page loads in a message box:
w32api: unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=1
PHP compiled with module API=20020429, debug=0, thread-safety=1
These options need to match.
and after the page loads:
X-Powered-By: PHP/4.2.1 Content-type: text/html; charset=iso-8859-1 Hello
World1Hello World 2This is a test! PHP Warning: w32api: Unable to initialize
module Module compiled with module API=20010901, debug=0, thread-safety=1 PHP
compiled with module API=20020429, debug=0, thread-safety=1 These options need
to match in Unknown on line 0
All the versions off all the files of all the downloads in all the folders of
all that I know of are all what was directed to download from
http://www.php.net/
Namely:
http://www.php.net/do_download.php?download_file=php-4.2.1-Win32.zip
But I first ran:
http://www.php.net/do_download.php?download_file=php-4.2.1-installer.exe
and then just poped in the components from the first link.
Trouble doing that?
Thanks again.
--
George Hester
_________________________________
"Steph" <sfox@php.net> wrote in message
news:056301c224a8$a2800600$e09001d5@p2q4w7...
> please follow the readme in the PHP-GTK download. You cannot mix the
> dlls from separate builds and expect them to work, you should in fact be
> keeping both versions of PHP completely separate if you're intending to
> use a gui and web installation side by side. Both php.ini's will need
> to be local to their respective version of php.exe.
>
> ----- Original Message -----
> From: "George Hester" <hesterloli@hotmail.com>
> To: <php-general@lists.php.net>; <php-gtk-general@lists.php.net>
> Sent: Saturday, July 06, 2002 3:37 AM
> Subject: [PHP-GTK] Cannot enable extensions. Why?
>
>
> > In Windows 2000 SP2 IIS 5
> > this statement works without issue:
> >
> > $myvar2 = strtoupper(substr(PHP_OS, 0, 3))
> >
> > and myvar2 = WIN
> >
> > but this statement right after it:
> >
> > dl('php_gtk.dll');
> >
> > leads to this error:
> >
> > Fatal error: Dynamically loaded extentions aren't enabled. in
> > c:\inetpub\scripts\could.php on line 17
> >
> > why?
> >
> > I have put php_gtk.dll in every damn directory I can think of. I've
> put it in
> > C:\PHP; I've put it in C:\PHP\extensions; I've put it in C:\WINNT;
> I've put it
> > in C:\WINNT\System32; The only place I haven't tried to put it is up
> my...
> >
> > If I uncomment ANY of the extensions in php.ini I get this error:
> >
> > Say I uncomment win32api.dll:
> >
> > Then the above php script which worked just fine gives:
> >
> > w32api: unable to initialize module
> > Module compiled with module API=20010901, debug=0, thread-safety=1
> > PHP compiled with module API=20020429, debug=0, thread-safety=1
> > These options need to match.
> >
> > Everything PHP is 4.2.1 the extensions are what they are calling
> 4.2.1.
> >
> > What is going on with this PHP? Is it just lack of care on the part
> of:
> >
> > http://www.php.net/
> >
> > Thanks.
> >
> >
> > --
> > George Hester
> > _________________________________
> >
> >
> >
> > --
> > PHP-GTK General Mailing List (http://gtk.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>