php-windows Digest 7 Sep 2001 17:23:05 -0000 Issue 742 Topics (messages 9223 through 9234): Re: php4apache.dll not loading under W98/Apache/PHP4.0.4 9223 by: Darren LS Re: Access to LDAP server from PHP on NT with IIS 9224 by: Michel Laine array problems 9225 by: Andrew.Martin 9226 by: Svensson, B.A.T. 9232 by: Mike Flynn PHP on W2K/IIS5 issues 9227 by: Roman Spanner Don't Leave Any Tracks Behind... 9228 by: john wild webserver root 9229 by: Mitja Pagon 9233 by: John Lim Status of a stable ISAPI?? 9230 by: Steve 9231 by: Asendorf, John 9234 by: Angie Tollerson 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] ----------------------------------------------------------------------
"Jean Philippe Reis" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm using windows 98, Apache 1.3.19 and php 4.0.4, and it used to work fine > until some weeks ago. Now when I start apache, with php configured as a > module, it gives me the folowing error: > "Syntax error on line 190 of c:/programas/apache > group/apache/conf/httpd.conf: > Cannot load c:/programas/php/sapi/php4apache.dll into server: (31) A device > connected to > the system is not working:" > (Last sentence is a translation from portuguese). > First, it gave me an error because of odbc32.dll, but the I de-installed and > re-installed Access 2000, and it started to give this other error. > It has always worked fine before with this config. The error must (at least > that's what i think...) dll related. it depends whats on whats on line 190 of httpd.conf > >
I might get you question all wrong here - Don't hate me for it ;-) That depends on which "WinNT" you are going to use. If NT 4 then you need a recent Servicepack + M$ webserver and M$ LDAP server (or some alternative to these). If NT5 i think that the webserver is included, but i think that the LDAP server is separate - not sure. Other from that i suppose it's just to "tweak" a bit. Sridhar Moparthy wrote: > Hi, > > We are going to setup a web server on WINNT. We are going to use PHP to > develop our web site. Do I need to install any software on NT server to > access LDAP server from PHP?. I know that I have to install PHP with LDAP > option. Other than that do > I need any other software to access LDAP with PHP on NT Server. > > Thanks. > Sridhar. -- Michel Laine
I want to build an array dynamically from a database. I have a structure where there is a top level, under which there can be a sub level and a sub-sub level etc... e.g Top Level 1 id =1 parent id =0 Sub Level 1.1 id =2 parent id =1 Sub Level 1.2 id =3 parent id =1 SubSub Level 1.2.1 id =4 parent id = 3 SubSub Level 1.2.2 id =5 parent id = 3 . . SubSub Level 1.2.2 id =n parent id = 3 Sub Level 1.3 id =n parent id =1 Top Level 2 id =n parent id =0 I want to loop through the entire table (for sub levels parent level = id of parent level) and display the details as above. Initally I have a statement selecting the top level (where parent id = 0) $query = "select * from category where parent_id = 0 order by id asc"; $result=$db->query("$query") or die("Select Failed!"); $counter = 1; while($row = mysql_fetch_array($result)){ $main_id[$counter] = $row["id"]; $title[$counter] = $row["title"]; //build array $defined_category[$main_id[$counter]]=$title[$counter]; //search for lower level..... $counter++; } This works fine, my problem is when I try to search for lower levels. I have tried another 'while loop but I get errors! Anyone know a decent solution for this? Andrew
Have you consider to write a recursive function to explore all the sublevels? >-----Original Message----- >From: Andrew.Martin [mailto:[EMAIL PROTECTED]] >Sent: Friday, September 07, 2001 11:43 AM >To: [EMAIL PROTECTED] >Subject: [PHP-WIN] array problems > > > >I want to build an array dynamically from a database. >I have a structure where there is a top level, under which >there can be a >sub level and a sub-sub level etc... > >e.g > > Top Level 1 id =1 parent id =0 > Sub Level 1.1 id =2 parent id =1 > Sub Level 1.2 id =3 parent id =1 > SubSub Level 1.2.1 id =4 parent id = 3 > SubSub Level 1.2.2 id =5 parent id = 3 > . > . > SubSub Level 1.2.2 id =n parent id = 3 > > Sub Level 1.3 id =n parent id =1 > Top Level 2 id =n parent id =0 > > > >I want to loop through the entire table (for sub levels parent >level = id of parent level) and display the details as above. > >Initally I have a statement selecting the top level (where >parent id = 0) > > $query = "select * from category where parent_id = 0 order by id asc"; > $result=$db->query("$query") or die("Select Failed!"); > > $counter = 1; > while($row = mysql_fetch_array($result)){ > $main_id[$counter] = $row["id"]; > $title[$counter] = $row["title"]; > > //build array > >$defined_category[$main_id[$counter]]=$title[$counter]; > > //search for lower level..... > > $counter++; > } > >This works fine, my problem is when I try to search for lower >levels. I have tried another 'while loop but I get errors! >Anyone know a decent solution for this? > >Andrew > > > >
Hi Andrew, I have done something very similar to this. Pretty identical. I know it may seem complicated, but I think if you take a good look at it this code might help you. It's for managing a dynamic
I have install PHP 4.0.6 as per the install.txt. Everything is fine (in terms the test script runs), but it cannot load the some of the extensions. I get the following erros; Unable to load dynamic library 'c:\php\extensions/php_domxml.dll' - The specified module could not be found. Unable to load dynamic library 'c:\php\extensions/php_sablot.dll' - The specified module could not be found. Unable to load dynamic library 'c:\php\extensions/php_domxml.dll' - The specified module could not be found. Unable to load dynamic library 'c:\php\extensions/php_domxml.dll' - The specified module could not be found. Unable to load dynamic library 'c:\php\extensions/php_sablot.dll' - The specified module could not be found. Unable to load dynamic library 'c:\php\extensions/php_sablot.dll' - The specified module could not be found. The two files in question (php_domxml.dll and php_sablot.dll) are correctly located in 'c:\php\extentions'. I've noticed that the actually path is not quite right, in terms of mixed use of \ and /. Can this have anything to do with it? Do these two files need additional support files in order for them to work properly? Thanks in advance Roman
FFA Posting Engine..This email address was used to post to our site ! Removal Instructions at the bottom of this page ! ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Don't Leave Any Tracks Behind... WARNING: Your Computer tracks all of your internet activity and all of the actions performed on it... If your computer is not secure,anyone can find out what you have been doing on the internet ! ARE YOU AND YOUR COMPUTER SAFE FROM POTENTIAL PROBLEM ? CLEAN YOUR TRACKS with Clean Browser ! it permantly cleans your computer, getting rid of cookies, cache, history, browser settings, Auto Fill Forms, index.dat file and more ! MAINTAIN YOUR PRIVACY ! CLICK HERE ! site: cleanbrowser url: http://www.cleanbrowser.com/ft=sb435/ site: isupercharger url: http://www.isupercharger.com/ft=sb435/ site: softwarebucks url: http://www.softwarebucks.com/ref=sb435/ Probably the Best Source of Internet Marketing Resources on the net ! Join Free !...Take a Test Drive ! Check it out : http//hop.clickbank.net/hop.cgi?overscaig/ysopro Thank you . Sincerely , john wild ************************************************************************************************* NOTE: You are receiving this message because you visited our "HIGH TRAFFIC" FFA page , and posting your link at http://thelinkpost.cjb.net and you agreed to receive our mailings ! if this is not the case, or you wish to remove yourself from list, PLEASE follow a link below and remove your email address ! http://bulklite.com/remove.html
Hi! I'm am an ASP developer, that decided to give PHP a try. So far I have been nothing but impresed by PHP. But I have found one problem, that i can't find a solution to. When including files in ASP pages using <!--#virtual="/filename.asp"--> I was able to include files into pages using path relative to the webserver root. I have tried similar in PHP using include("/filename.php"), but just recently learned that "/" slash charachter moves the pointer to the root of the drive on which webserver directory is located on. I'm running PHP 4.0.6 on WinNT with IIS4.0, therefor $DOCUMENT_ROOT variable doesn't work. I'm writing an application that should be portable not just from server to server, but also from platform to platform, so I can't have fixed paths in my scripts. My question is: "Is there any way I can get the root of the webserver in a fashion simmilar to that of the method ASP uses?" Thanks, Mitja Pagon
PHP 4.0.7 or 4.0.8 is going to fix this problem as it will search for files in the current directory. I forget which version. The patch is already in CVS. To find the document root, here's some code taken from http://phplens.com // Finds the DOCUMENT_ROOT - works with Apache, IIS and PWS function PHPLENS_RootPath() { GLOBAL $HTTP_SERVER_VARS; if (isset($HTTP_SERVER_VARS['DOCUMENT_ROOT'])) { // APACHE and PWS $_p_file = (str_replace('\\\\','/',$HTTP_SERVER_VARS['DOCUMENT_ROOT'])); // compat for php4.02 on windows return (str_replace('\\','/',$_p_file)); } if (isset($HTTP_SERVER_VARS['APPL_PHYSICAL_PATH'])) { // IIS $_p_file = (str_replace('\\\\','/',$HTTP_SERVER_VARS['APPL_PHYSICAL_PATH'])); // compat for php4.02 on windows return (str_replace('\\','/',$_p_file)); } } //function "Mitja Pagon" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi! > > I'm am an ASP developer, that decided to give PHP a try. So far I have been > nothing but impresed by PHP. But I have found one problem, that i can't find > a solution to. > When including files in ASP pages using <!--#virtual="/filename.asp"--> I > was able to include files into pages using path relative to the webserver > root. I have tried similar in PHP using include("/filename.php"), but just > recently learned that "/" slash charachter moves the pointer to the root of > the drive on which webserver directory is located on. I'm running PHP 4.0.6 > on WinNT with IIS4.0, therefor $DOCUMENT_ROOT variable doesn't work. I'm > writing an application that should be portable not just from server to > server, but also from platform to platform, so I can't have fixed paths in > my scripts. > My question is: "Is there any way I can get the root of the webserver in a > fashion simmilar to that of the method ASP uses?" > > Thanks, > > Mitja Pagon > > > >
Does anyone know what the development status is regarding a stable release of the ISAPI module? Have the problems been pinpointed and is there a plan to fix them? Does the PHP staff lack resources to develop the Win32 environment sufficiently? (I would help if I knew how) Is there a database of current issues, owner of issue and due date? (normal project management stuff) If I remember correctly, it's been almost 2 years since the release of the SAPI modules and I am still hearing of unstable behavior while using the ISAPI module instead of CGI. I am frustrated at the lack of progress in fixing these quirks. I also get frustrated because I don't know if I'll have to put up with these quirks for another 6 months or 6 days. On a better note, I am using PHP 4.0.6/ISAPI in a single host production environment running on IIS4 sp6 without problems. I do encounter problems when we add virtual hosts to the server. I hope I didn't overstep the bounds by asking these questions. I am not skilled enough to aid the actual development of this product but I am a great proponent of PHP and wish to see it progress. Thanks for you reponses! Steve Hall Novell, Inc.
I recently sent an email looking to pay Zend to work on it (I kind of need it for the OCI8 Persistent Logon), I have yet to hear back from them. I sent one, and a sales person sent me back a form note to look at their support options and they wouldn't have any problem. I sent him back an email that the problem I was having was mostly related to the stability of the ISAPI module as opposed to the OCI8 extension (my guess, 80% 20%, respectively); and, that he'd better check with their programmers before assuring me that a $180 support request would cover fixing the entire ISAPI module. That was yesterday. I haven't heard back from him yet. We've got some money out here. We're willing to give it to these hard working programmers if they want to work on it. I'm as big a fan of Open Source as the next guy, but we all need to eat. Hell, it's obvious that we have more money than knowledge! We use Win don't we? As for answering your question. I think it still has some stability issues, mostly with individual extensions not following thread safe guidelines more than anything. In other words, I don't have any/many problems unless I call some odd function. --------------------- Founder of The 'What Kind of Idiot Uses PHP with IIS with Oracle on NT?' Consortium Members: John Asendorf, Thomas Kryger, Florian Clever, Ron Woods, Bod John Asendorf - [EMAIL PROTECTED] Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 Aliquando et insanire iucundum est > -----Original Message----- > From: Steve [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 07, 2001 10:57 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Status of a stable ISAPI?? > > > Does anyone know what the development status is regarding a > stable release > of the ISAPI module? > Have the problems been pinpointed and is there a plan to fix them? > Does the PHP staff lack resources to develop the Win32 environment > sufficiently? (I would help if I knew how) > Is there a database of current issues, owner of issue and due > date? (normal > project management stuff) > > If I remember correctly, it's been almost 2 years since the > release of the > SAPI modules and I am still hearing of unstable behavior > while using the > ISAPI module instead of CGI. I am frustrated at the lack of > progress in > fixing these quirks. I also get frustrated because I don't > know if I'll have > to put up with these quirks for another 6 months or 6 days. > > On a better note, I am using PHP 4.0.6/ISAPI in a single host > production > environment running on IIS4 sp6 without problems. I do > encounter problems > when we add virtual hosts to the server. > > I hope I didn't overstep the bounds by asking these > questions. I am not > skilled enough to aid the actual development of this product > but I am a > great proponent of PHP and wish to see it progress. > > Thanks for you reponses! > Steve Hall > Novell, Inc. > > > > > > -- > 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] >
If you are going to offer anyone money to speed up this process, you could try the guys at Active State, specifically Shane Caraveo, since he told me a goal of his is specifically to stabliize ISAPI on windows. I believe Shane is on this mailing list..I'm surprised he hasn't answered the postline yet. Maybe he will? Angie Tollerson Alliance Technologies Web Programmer (515)245-7628 [EMAIL PROTECTED] >>> "Asendorf, John" <[EMAIL PROTECTED]> 09/07/01 10:02AM >>> I recently sent an email looking to pay Zend to work on it (I kind of need it for the OCI8 Persistent Logon), I have yet to hear back from them. I sent one, and a sales person sent me back a form note to look at their support options and they wouldn't have any problem. I sent him back an email that the problem I was having was mostly related to the stability of the ISAPI module as opposed to the OCI8 extension (my guess, 80% 20%, respectively); and, that he'd better check with their programmers before assuring me that a $180 support request would cover fixing the entire ISAPI module. That was yesterday. I haven't heard back from him yet. We've got some money out here. We're willing to give it to these hard working programmers if they want to work on it. I'm as big a fan of Open Source as the next guy, but we all need to eat. Hell, it's obvious that we have more money than knowledge! We use Win don't we? As for answering your question. I think it still has some stability issues, mostly with individual extensions not following thread safe guidelines more than anything. In other words, I don't have any/many problems unless I call some odd function. --------------------- Founder of The 'What Kind of Idiot Uses PHP with IIS with Oracle on NT?' Consortium Members: John Asendorf, Thomas Kryger, Florian Clever, Ron Woods, Bod John Asendorf - [EMAIL PROTECTED] Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 Aliquando et insanire iucundum est > -----Original Message----- > From: Steve [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 07, 2001 10:57 AM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Status of a stable ISAPI?? > > > Does anyone know what the development status is regarding a > stable release > of the ISAPI module? > Have the problems been pinpointed and is there a plan to fix them? > Does the PHP staff lack resources to develop the Win32 environment > sufficiently? (I would help if I knew how) > Is there a database of current issues, owner of issue and due > date? (normal > project management stuff) > > If I remember correctly, it's been almost 2 years since the > release of the > SAPI modules and I am still hearing of unstable behavior > while using the > ISAPI module instead of CGI. I am frustrated at the lack of > progress in > fixing these quirks. I also get frustrated because I don't > know if I'll have > to put up with these quirks for another 6 months or 6 days. > > On a better note, I am using PHP 4.0.6/ISAPI in a single host > production > environment running on IIS4 sp6 without problems. I do > encounter problems > when we add virtual hosts to the server. > > I hope I didn't overstep the bounds by asking these > questions. I am not > skilled enough to aid the actual development of this product > but I am a > great proponent of PHP and wish to see it progress. > > Thanks for you reponses! > Steve Hall > Novell, Inc. > > > > > > -- > 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] > -- 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]