php-windows Digest 13 May 2001 12:59:32 -0000 Issue 595 Topics (messages 7508 through 7519): php4 and ii5 "module not found" error 7508 by: Tiago Azevedo Re: Php4.0.4 Installation on Win98 for Apache 1.3.19 7509 by: Alan Popow HELP !!!! can't load CURL module ! :-( 7510 by: Liquidice 7516 by: Liquidice auto variable parsing won't work, any ideas? 7511 by: eco 7512 by: OoCobra97.aol.com 7513 by: OoCobra97.aol.com Solved: auto variable parsing 7514 by: eco PHP file handling 7515 by: RJ mysql_query seems not to work... 7517 by: Bogdan Stanescu 7518 by: Johannes Janson Re: New function help 7519 by: Paul Meagher Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
I'm getting same error. Where should I put the DLL (and which DLL)? With CGI (php.exe at c:\php\php.exe) it works, but with ISAPI (php4isapi.dll at c:\php\sapi\php4isapi.dll) it doesn't. I tried copying that dll to c:\winnt\system32, etc, but it still didn't work. [PHP 4.0.5 on Windows 2000 Professional IIS 5.0] So, what's up please? What am I doing wrong? Tiago BCGA [EMAIL PROTECTED] Original Message (from http://marc.theaimsgroup.com/?l=php-windows&m=98882198526897&w=2): By making sure the DLL the system ask for is present in your access path! (That's basically what the error message ask you to do. :-/ ) >I am trying to run php4 on my windows 2000 iis server. I can load php files >with the cgi version (php.exe), but when I try to use hp4isapi.dll i get >the error "The specified module could not be found." How do I get this thing >to work?
On Sun, 13 May 2001 02:03:45 +0200, you wrote: I haven't tried running easywindows installer, so I'm just winging it here ignoring whatever the installer might be changing from defaults (though I doubt it changes the httpd.conf file defaults). Remember that apache thinks by default that the document root is at ....../apache/htdocs, and if you are using the normal iis setup, then your index.html is likely not there. In the httpd.conf file, make sure that the document root is pointing to the right place. Then, assuming you added the appropriate lines to Apache's httpd.conf file, open up your php.ini and make sure that the doc_root path points to where your scripts are. ie: doc_root = "d:\inetpub\scripts\php" (if that's where they are - in other words, where is test.php located). Alan >Hello everyone >I am trying to install PHP4 with Apache 1.3.19 following the procedure >that I see > in http://php.weblogs.com/easywindows using the > PHP4.0.4easywindows Installer. There is also a mistake, > "C:/inetpub/scripts/php/" is wrong, "D:/inetpub/scripts/php/" is right >. >However, when I run Apache and call http://localhost/ i don't see the >home page index.html, >furthermore if I call test.php with http://localhost/test.php >i don't see any page. In both cases I have a file not found messagge. >Can someone explain this behavior. I would like to use PHP with >Apache on Win98. How do i do ? Can someone help me? >thank you in advance
I'm running win2k with IIS 5. i have - php4ts.dll, SSLEAY32.dll, LIBEAY32.dll, Kernel32.dll, Wsock32.dll, MSVCRT.dll - in the system32 folder. my php version is 4.0.5. in the php.ini file i have: extension_dir = C:\php\extensions\ (correct) and in the script i'm going dl("php_curl.dll"); and i get this: Warning: Unable to load dynamic library 'C:\php\extensions\php_curl.dll' - The specified module could not be found. the file IS there, and i can load other modules .. just not the one i want !!!! .. someone please help ...i'm not sure what's wrong.. thanks Liquidice.
Ok.. I figured it out ! i decided to look at the dlls the php_curl.dll required to work. then i looked at the ones that those dlls required, and i found that i was missing msvcr70.dll which i believe is a newer dll so most people don't have it.. which probably means you ! as soon as i put msvcr70.dll into my system32 folder, cURL was working ! now it did say it was missing php_curl.dll before i fixed it which confused me, but i think what happens is.. the php programmers made the error handling kinda like this: if (module.loaded = true) continue; else echo "Warning: $warning"; so it dosn't tell you the exact error in this case... here's how i figured it out.. I opened up php_curl.dll, and i wrote down each dll it required. then out of all those dlls, i wrote down the ones that they required also. then i searched for them on my computer one by one using windows find. when i found that one was missing, bingo !! here's my list php_curl.dll | V php4ts.dll - (Needs -> kernel32.dll, user32.dll, wsock32.dll, advapi32.dll, ole32.dll, oleaut32.dll, odbc32.dll, msvcrt.dll, msvcirt.dll, winsock.dll ...) SSLEAY32.dll - (Needs -> libeay32.dll, kernel32.dll msvcr70.dll - this one was missing !) LIBEAY32.dll - (Needs -> netapi.dll, user32.dll, kernel32.dll, advapi32.dll, wsock32.dll, gdi32.dll, msvcr70.dll) Kernel32.dll - (Needs -> NTDLL.dll, twian.dll, dnsapi.dll, advapi.dll, psapi.dll, twain_32.dll, mem16.dll, mscat32.dll.. there more but i figured if my windows was running then every file in this dll would be there.. lol...) Wsock32.dll - (Needs -> kernel32.dll, ws2_32.dll, wsock32.dll, MSVCRT.dll) so my advice to you if your having this problem, is that its a dll (if your extensions path isn't wrong) so you need to check each dll and make sure your not missing one. and if you are... then that's probably the problem. find it on maybe a search engine. download it and put it into your system32 directory. i hope i helped some people.. i was trying for 24hours to figure this out.. ""Liquidice"" <[EMAIL PROTECTED]> wrote in message 9dkr9j$qdq$[EMAIL PROTECTED]">news:9dkr9j$qdq$[EMAIL PROTECTED]... > I'm running win2k with IIS 5. > i have - php4ts.dll, SSLEAY32.dll, LIBEAY32.dll, Kernel32.dll, Wsock32.dll, > MSVCRT.dll - in the system32 folder. > my php version is 4.0.5. > in the php.ini file i have: > extension_dir = C:\php\extensions\ (correct) > and in the script i'm going dl("php_curl.dll"); > and i get this: > Warning: Unable to load dynamic library 'C:\php\extensions\php_curl.dll' - > The specified module could not be found. > the file IS there, and i can load other modules .. just not the one i want > !!!! .. someone please help ...i'm not sure what's wrong.. > thanks > Liquidice. > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
i'm using php4.0.5 on apache 1.3.14 (win32) in win2000. when i was under win98 i was able to use the auto variable parsing of php, but now after i have installed win2000 it no longer works, i've upgraded apache and php since then, and i have checked and .conf and .ini files, and all are correct a simple <? echo "num is " . $blah; ?> with address http://x.x.x.x/?blah=1 doesn't even work, only says 'num is ' any ideas/tips/suggestions on this would be appreciated...
I have this same problem with php and Ive seen something about this on this mailing list...i think it has to do with the setting "register_globals" in the php.ini...i havent tried it yet, but lt me know how it works...ive also seen something on register_vars...but from what i understand, thats automatically turned on anyhow. Hope this helps ~Jeff i'm using php4.0.5 on apache 1.3.14 (win32) in win2000. when i was under win98 i was able to use the auto variable parsing of php, but now after i have installed win2000 it no longer works, i've upgraded apache and php since then, and i have checked and .conf and .ini files, and all are correct a simple <? echo "num is " . $blah; ?> with address http://x.x.x.x/?blah=1 doesn't even work, only says 'num is ' any ideas/tips/suggestions on this would be appreciated...
Its me again, I just turned on "register_globals" while i was viewing my php.ini, and that works...hope it works for you as well ~Jeff I have this same problem with php and Ive seen something about this on this mailing list...i think it has to do with the setting "register_globals" in the php.ini...i havent tried it yet, but lt me know how it works...ive also seen something on register_vars...but from what i understand, thats automatically turned on anyhow. Hope this helps ~Jeff i'm using php4.0.5 on apache 1.3.14 (win32) in win2000. when i was under win98 i was able to use the auto variable parsing of php, but now after i have installed win2000 it no longer works, i've upgraded apache and php since then, and i have checked and .conf and .ini files, and all are correct a simple <? echo "num is " . $blah; ?> with address http://x.x.x.x/?blah=1 doesn't even work, only says 'num is ' any ideas/tips/suggestions on this would be appreciated...
thanks, OoCobra97. setting register_globals to on solves the problem, a setting which I didn't even think would change much
Hi, Since I'm a PHP newbie, I'm going thru some exercises on various topics. Before I jump into php + RDBMS (sure to gimme plenty of problems to solve), I though I'd try PHP's file handling and data storage routines Specifically in relation to CSV files. My program contained minor errors which were soon fixed (the path of the DBA extension, etc.) But now I have this new error that I can't seem to solve. The statement in question is $i = dba_open($dbpath, "w", $dbtype); // $dbtype = "db2" I get the error, Warning: no such handler: db2 in F:\PHPSTUFF\Adbook.php on line 6 Changing the value from db2 to dba, gdbm, etc. all result in the same kind of error for each type!. Am i missing something here? Do I have to install modules for each type of DB (groan)? One more thing what's the difference between dba_open() and dbmopen(), dba_fetch(), dbmfetch() etc thanks. RJ
$query="SELECT * FROM session where(user='$user_');"; $rez=mysql_query($query,$db); $rand_s=mysql_fetch_array($rez) or die("FAILURE"); echo $rand_s; this echoes nothing. same query in the console of mysql works. can u help me? Thanx in advance.
Hi, > $query="SELECT * FROM session where(user='$user_');"; > $rez=mysql_query($query,$db); try it like this. $query = "SELECT * FROM session WHERE user='$user'"; // without the first colon $rez = mysql_query($query, $db) or die(mysql_error()); hope it helps Johannes
There is a builtin array_reverse function in PHP. You just need to reverse the name of the function your were looking for :-) Regards, Paul Meagher ----- Original Message ----- From: "Tim Lofstrom" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 11, 2001 3:22 PM Subject: [PHP-WIN] RE: New function help > Here is my attempt: Any improvements welcomed. > > > function array_reverse_priv ($WorkArray) > { > $CountWorkArray = count($WorkArray) ; > for ($i = 0 ; $i < $CountWorkArray ; ++$i) > { > $NewArray[$i] = array_pop ($WorkArray) ; > } > return $NewArray ; > } > > Until next .... > > Tim Lofstrom > M.C.S.E. > > Original: > > Looking for reverse_array as a user added function. Anyone have it? > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >