Re: Cannot enable extensions. Why?

From: Date: Sat, 06 Jul 2002 07:23:48 +0000
Subject: Re: Cannot enable extensions. Why?
References: 1 2 3  Groups: php.general php.gtk.general 
Request: Send a blank email to php-general+get-105812@lists.php.net to get a copy of this message
Having just caught up with most of the threads on this thanks to MARC, can you please now explain why on earth you are insisting on loading PHP-GTK dynamically through a web server? The results should be interesting to say the least .. ----- 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 5:49 AM Subject: Re: [PHP-GTK] Cannot enable extensions. Why? > 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: > > ‹N�­wg§úBÔžÛ# > â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? >

« previous php.general (#105812) next »