php-windows Digest 4 Apr 2001 09:34:10 -0000 Issue 526 Topics (messages 6468 through 6488): Re: Win2k IIS5 PHP404 : trouble with extensions dir 6468 by: John Broglio 6469 by: Phil Driscoll tutorial example problem 6470 by: Vlad Bejenaru aka BJ 6472 by: Daniel Beulshausen Re: FDF and FDFtk on PHP 4.0.5RC1 6471 by: Flint Doungchak 6473 by: Daniel Beulshausen 6474 by: Flint Doungchak 6475 by: Daniel Beulshausen Re: HELP!!! (PHP-WINDOWS98-APACHE) 6476 by: Joe Brown Re: Uploading files? 6477 by: weisbeek.hetnet.nl Re: .htaccess file 6478 by: weisbeek.hetnet.nl Re: install problems 6479 by: weisbeek.hetnet.nl Re: free hosting with php 6480 by: weisbeek.hetnet.nl 6481 by: Lucas Hale 6482 by: Lucas Hale 6483 by: Synopsis Re: Anyone has list of unsupported function in PHP for Windows? 6484 by: Yasuo Ohgaki Re: Regular expression under PHP for Win? Missing? 6485 by: Yasuo Ohgaki Re: Apache no see PHP 6486 by: Yasuo Ohgaki getmxrr() problems 6487 by: Vlad Re: About mysql 6488 by: MD 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] ----------------------------------------------------------------------
Yvan, I found that I had to copy all the php dlls into the winnt/system32 directory. I believe IIS may restrict loading to the winnt directory tree. John ""Yvan Arnaud"" <[EMAIL PROTECTED]> wrote in message 99a1c1$sr5$[EMAIL PROTECTED]">news:99a1c1$sr5$[EMAIL PROTECTED]... > Hi, > > the standard installation of PHP404 works fine (CGI and ISAPI). But when we > intent to activate an extension (php_ldap.dll for example) it does not work > anymore : the error message is that it cannot find the specified extension > file (php_ldap.dll). I tried to specify different extensions dir in php.ini > but none worked. > What should I write in the extensions dir to make it work? > > Regards > > Yvan Arnaud > > > > -- > 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 found that I had to copy all the php dlls into the winnt/system32 >directory. I believe IIS may restrict loading to the winnt directory tree. This is certainly not the case on NT4 - though I can't vouch for all extensions. Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org
I copied this example from the tutorial page of php.net: first is the file with the form: <form action="action.php" method="post"> Your name: <input type=text name=name> You age: <input type=text name=age> <input type=submit> </form> and second is da action: Hi <?php echo $name?>. You are <?php echo $age?> years old. the problem is that is not listing the values that i submit in the first file. Can anyone tell me what is wrong? I tried and with method get and the result is the same! Configuration is: Windows 2000 Pro, PHP4.0.4pl1, apache 1.3.19, internet exporer 5. Vlad BEJENARU aka BJ Home Page ICQ: 113502358 ---------------------------------------------------------------------------- ----
At 22:47 03.04.2001 +0300, Vlad Bejenaru aka BJ wrote: >I copied this example from the tutorial page of php.net: >first is the file with the form: > ><form action="action.php" method="post"> >Your name: <input type=text name=name> >You age: <input type=text name=age> ><input type=submit> ></form> > >and second is da action: > >Hi <?php echo $name?>. You are <?php echo $age?> years old. > > >the problem is that is not listing the values that i submit in the first >file. Can anyone tell me what is wrong? I tried and with method get and the >result is the same! turn on register_globals in your php.ini or even better use the EGPCS arrays. echo $HTTP_POST_VARS["name"], $HTTP_POST_VARS["age"] daniel /*-- daniel beulshausen - [EMAIL PROTECTED] using php on windows? http://www.php4win.de
Ryan, I have since found out the the current release, as well as those at 4.0.4 and up, have problems with the toolkit (that't the FDFtk.dll that resides in the dll folder in the distribution). You would usually install that file in the system32 directory (on NT at least) and then umcomment the php_fdf.dll line in your ini file assuming your extension_dir is set to ./extenstions. So, it doesn't work yet. I'm working on compiling the new version of the toolkit from CVS. I'll let people know if I get it to work. -Flint -----Original Message----- From: Conover, Ryan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 12:44 PM To: Flint Doungchak Subject: RE: [PHP-WIN] FDF and FDFtk on PHP 4.0.5RC1 How are you supposed to setup php with the FDF toolkit Ryan Conover -----Original Message----- From: Flint Doungchak [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 01, 2001 3:06 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] FDF and FDFtk on PHP 4.0.5RC1 Please enlighten me oh great list of users. You never let me down... :-) I'm having this really strange and frustrating problem on a box with the following: IIS 4.0 NT SP6a PHP 4.0.3 (in CGI mode) php_mssql70.dll (SQL 7.0) php_fdf.dll Now. The box works fine with that spec. When I updrade to a newer version of PHP, including 4.0.4pl1 or 4.0.5RC1, if I activate the php_fdf.dll module, PHP never closes (i.e. a thread opens in task manager and just never closes until it times out) even if I run phpinfo(). It's fine without the fdf enabled. I have in new installations, replaced the FDFtk.dll which is placed in the system32 directory (so that isn't it). Again, this problem doesn't occur in 4.0.3. I tried using the old (4.0.3) php_fdf.dll with 4.0.5, but it complained about the difference in thread safe. I also have tried using the old tk with the new release. No gumbo there either. When I try using the fdf features without the FDFtk.dll installed in system32, PHP says it can't find php_fdf.dll in my extentsions directory (but at least it doens't crash). Does the php_fdf.dll use any other libraries (besides the toolkit) that could be conflicting with the newer versions of php? Now the kicker, I have another box with: IIS 5.0 Win2k SP1 PHP 4.0.5 (in CGI mode) php_mssql.dll (SQL 2000) php_fdf.dll No problem. The box works fine. Of course I did not have previous installations of PHP on this box. I'm totally frustrated now and don't know where to go from here. Could someone give me some hints as to why this is occuring. I would really like to use some of the great new session manangement feature available in 4.0.5. Thanks in advance. -Flint _________________________________________________ Flint Doungchak, President Net Solutions, LLC 840 Lawrence Street Eugene, OR 97401 [EMAIL PROTECTED] Voice +1 541 345-7087 Fax +1 541 485-5519 http://www.netsolutionsllc.com *************************************************************** The contents of this transmission may be confidential in nature and should be directed only to the person to whom it is addressed. Do not read, copy, or disseminate this material unless you are the intended recipient. If this transmission reached you in error, please forward the e-mail to the sender to advise, then destroy the transmission you received. Thank you. -- 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]
At 13:24 03.04.2001 -0700, Flint Doungchak wrote: >Ryan, > >I have since found out the the current release, as well as those at 4.0.4 >and up, have problems with the toolkit (that't the FDFtk.dll that resides in >the dll folder in the distribution). You would usually install that file in >the system32 directory (on NT at least) and then umcomment the php_fdf.dll >line in your ini file assuming your extension_dir is set to ./extenstions. can you please tell what's wrong with fdf? daniel /*-- daniel beulshausen - [EMAIL PROTECTED] using php on windows? http://www.php4win.de
Danielle, Please look at PHP bug number #10139 for more information. You can also search the dev-list under fdf for mor information on the problem. -Flint -----Original Message----- From: Daniel Beulshausen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 1:34 PM To: Flint Doungchak; 'Conover, Ryan' Cc: '[EMAIL PROTECTED]' Subject: RE: [PHP-WIN] FDF and FDFtk on PHP 4.0.5RC1 At 13:24 03.04.2001 -0700, Flint Doungchak wrote: >Ryan, > >I have since found out the the current release, as well as those at 4.0.4 >and up, have problems with the toolkit (that't the FDFtk.dll that resides in >the dll folder in the distribution). You would usually install that file in >the system32 directory (on NT at least) and then umcomment the php_fdf.dll >line in your ini file assuming your extension_dir is set to ./extenstions. can you please tell what's wrong with fdf? daniel /*-- daniel beulshausen - [EMAIL PROTECTED] using php on windows? http://www.php4win.de
At 13:37 03.04.2001 -0700, Flint Doungchak wrote: >Danielle, > >Please look at PHP bug number #10139 for more information. You can also >search the dev-list under fdf for mor information on the problem. i just realized it. when looking at it with depency walker you can see that it lloks for the functions sapi_add_post_entry and sapi_remove_entry. these have been removed two weeks ago because they were obsolete. i can see no reference to them. it's curious why php is searching them... daniel >-Flint > >-----Original Message----- >From: Daniel Beulshausen [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, April 03, 2001 1:34 PM >To: Flint Doungchak; 'Conover, Ryan' >Cc: '[EMAIL PROTECTED]' >Subject: RE: [PHP-WIN] FDF and FDFtk on PHP 4.0.5RC1 > > >At 13:24 03.04.2001 -0700, Flint Doungchak wrote: > >Ryan, > > > >I have since found out the the current release, as well as those at 4.0.4 > >and up, have problems with the toolkit (that't the FDFtk.dll that resides >in > >the dll folder in the distribution). You would usually install that file in > >the system32 directory (on NT at least) and then umcomment the php_fdf.dll > >line in your ini file assuming your extension_dir is set to ./extenstions. > >can you please tell what's wrong with fdf? > >daniel >/*-- > >daniel beulshausen - [EMAIL PROTECTED] >using php on windows? http://www.php4win.de /*-- daniel beulshausen - [EMAIL PROTECTED] using php on windows? http://www.php4win.de
You need php4apache.dll only if you are running php as a module of Apache, not as a CGI or executable. php.exe does not require php4apache.dll, php4apache.dll does not require php.exe. They are mutually exclusive. ""Bhala"" <[EMAIL PROTECTED]> wrote in message 99vol8$3di$[EMAIL PROTECTED]">news:99vol8$3di$[EMAIL PROTECTED]... > I think my problem is that I am trying to run PHP not in CGI mode or what > ever....I think I need the php4apache.dll thing tho & for some resion I dont > have it. =\ > <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hello again, > > Ok, I began thinking about your problem, and I think I remeber something > > about this, I was not able to do just "php" on the actions and aliases, I > had > > to do php4 for some reason. but I loaded uup apache today and tried the > cgi > > version, and it worked, heres the following thats located in my httpd.conf > > file: > > > > (change D:/server/apps/php/ to your php location) > > > > ScriptAlias /php4/ "D:/server/apps/php/" > > Action application/x-httpd-php4 "/php4/php.exe" > > AddType application/x-httpd-php4 .php > > > > > > Hope this helps. > > > > ~Jeff > > > > > > -- > 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] >
On 2 Apr 2001, at 14:43, Mike Flynn wrote: Regarding file-uploads there are some problems when the server is running in safe-mode. This could be what you are facing. Normally in safe mode uploads do fail (mentioning server is running in safe mode). But I read there is a workaround so you can still use these upload-functions. PHP wouldn't be PHP if they wouldn't have a specific function for it. It is called something like tmp_move_uploaded_file(). BTW, you can always check the configuration of the server with phpinfo(). Of course, if upload is completely disabled I guess you can just forget about it. But there should be people on this list who can tell you much more about this... Greetings, Martijn Weisbeek
On 2 Apr 2001, at 13:26, Richard Kurth wrote: > I am using php4.0.4pl1 with apache 3.0.12 on Windows 98. It is set as PHP as > a module in Apache using LoadModule php4_module c:/php/sapi/php4apache.dll. > It works just fine as far as I can tell except when I try to use a .htaccess > file it does not seem to read the file. The file I what it to read looks > like this > > php_value include_path "C:\httpd\htdocs\home\inc" > > It does not give me any errors it just doesn't read the file. > > Anybody now how to make this work. > Richard, Beware that you set the include_path in php.ini to also include the current directory (.). Just like include_path .;C:\httpd\htdocs\home\inc Otherwise the PHP-engine will not execute any more scripts. I've had errors like this after changing this path. Took me some time to find out why it did not work anymore. Greetings, Martijn Weisbeek
> - component mscomctl.ocx or one of its dependencies not correctly > registered, a file is missing or invalid That was also my first experience with PHP on Win2K. BTW, I found a document (must have been somewhere on php.net) describing this error-message. After the message I had to manually add the php-extensions to IIS. But in the end it worked. > after running a test, every php-script is terminating with a > http error 500 - internal server error > and in the system-event-protocol i have an error 10004: > > EventID 10004 Source DCOM DCOM got error > "Logon failure: unknown user name or bad password. " and was unable to logon > \IWAM_TEK1 in order to run the server: > {3D14228D-FBE1-11D0-995D-00C04FD919C1} Logon-failure ?!? Looks like the IUSR-account is not correct. Try changing its password in ActiveDirectory and setting the same password in your IIS-server (the default is to let IIS sync the password, but this time we do it ourselves just to be sure). Hmm, IWAM does slightly ring a bell. I have experienced this before, but cannot remember what it was related to. Be sure to check all usernames and passwords in Component Management (not entirely sure of the name, but it is in ControlPanel) Does anyone know more about this IWAM-account and why it is there ?!? Greetings, Martijn Weisbeek
> can any one help me to find free hosting were i can run php? (for testing my > projects?) Well, there are some of them: - www.F2S.com - www.Spaceports.com (my current host, but I want to move because of their 404-page) - freephp.digiro.net (new kid on the block, check it out -> they're even in your own country: Romania) - www.saxen.net (doubt whether they'll be in business much longer) - www.nexen.net (French host) - www.datablocks.net (they have a free offer, limited I guess) Also check out www.clubs.nl/community/links.asp?club=PHP4 for more links. It's in Dutch, but you should look for Gratis (which means free). If someone knows some more of these webhosts, please reply. I'd like to make this list as complete as possible. Greetings, Martijn Weisbeek http://internet.clubs.nl/php (Dutch PHP-community) http://www.weisbeek.com (homepage)
I have found to that seem OK... http://hosting.datablocks.net/free/ (was broken when I first tried to sign up) and the one I use at the moment http://www.intnetworks.com/ which was the easiest to sign up for... Lucas www.lghsoft.com -----Original Message----- From: Vlad Bejenaru aka BJ [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 3 April 2001 15:35 To: [EMAIL PROTECTED] Subject: free hosting with php can any one help me to find free hosting were i can run php? (for testing my projects?) 10x Vlad BEJENARU aka BJ Home Page ICQ: 113502358 ---------------------------------------------------------------------------- ----
I have found to that seem OK... http://hosting.datablocks.net/free/ (was broken when I first tried to sign up) and the one I use at the moment http://www.intnetworks.com/ which was the easiest to sign up for... Lucas www.lghsoft.com -----Original Message----- From: Vlad Bejenaru aka BJ [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 3 April 2001 15:35 To: [EMAIL PROTECTED] Subject: free hosting with php can any one help me to find free hosting were i can run php? (for testing my projects?) 10x Vlad BEJENARU aka BJ Home Page ICQ: 113502358 ---------------------------------------------------------------------------- ----
www.f2s.com free php hosting and mysql no ads ----- Original Message ----- From: Lucas Hale <[EMAIL PROTECTED]> To: Vlad Bejenaru aka BJ <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, April 03, 2001 11:28 PM Subject: [PHP-WIN] RE: free hosting with php > I have found to that seem OK... > http://hosting.datablocks.net/free/ (was broken when I first tried to sign > up) > > and the one I use at the moment > http://www.intnetworks.com/ which was the easiest to sign up for... > > Lucas > www.lghsoft.com > > > > -----Original Message----- > From: Vlad Bejenaru aka BJ [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 3 April 2001 15:35 > To: [EMAIL PROTECTED] > Subject: free hosting with php > > > can any one help me to find free hosting were i can run php? (for testing my > projects?) > > 10x > Vlad BEJENARU aka BJ > Home Page > ICQ: 113502358 > > -------------------------------------------------------------------------- -- > ---- > > > > > -- > 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] > >
In C source, there is FUNCTION_LIST.txt, but it seems outdated. It even does not have pg_cmdtuples which works with Linux, but not with Apache/W2K. DNS related functions are also missing in this list. (getmxrr, for example) Does anyone know better source for functions that are not supported under Windows environments? Regards, -- Yasuo Ohgaki ""Yasuo Ohgaki"" <[EMAIL PROTECTED]> wrote in message 9a3t5c$aul$[EMAIL PROTECTED]">news:9a3t5c$aul$[EMAIL PROTECTED]... > As far as I know, binary PHP4.0.5RC1/Apache SAPI/Windows at www.php4win.de does > not seem to have > > pg_cmdtuples() > checkdnsrr(), getmxrr() - other network functions possibly > > Does anyone know the list of functions that are not supported? > (Or even better, anyone where get binary that supports them?) > > Thanks > > -- > Yasuo Ohgaki > > > > > -- > 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] >
Sorry for late reply, I was running simple test scripts that is works for PHP/Apache DSO/Linux. It turns out to be a my mistake in code. I didn't take a look at errors on browser. Since I believed all scripts are working under Linux/Apache. Both ereg() and eregi() works (PHP4.0.5RC1/Apache SAPI) Sorry about that. -- Yasuo Ohgaki ""Tobias Talltorp"" <[EMAIL PROTECTED]> wrote in message 9a4s0i$fmp$[EMAIL PROTECTED]">news:9a4s0i$fmp$[EMAIL PROTECTED]... > They should both be there, but perhaps they have left it out from the new > PHP4.0.5RC1, since preg is ever so much faster... > Strange though, since I think there are many sites who need to rewrite their > code to upgrade... > > // Tobias > > ""Phillip Bow"" <[EMAIL PROTECTED]> wrote in message > 9a0jsj$d9h$[EMAIL PROTECTED]">news:9a0jsj$d9h$[EMAIL PROTECTED]... > > If those aren't there(I am pretty sure they are) then the preg commands > > should work. I know I am using one form or another on my site. > > -- > > phill > > > > ""Yasuo Ohgaki"" <[EMAIL PROTECTED]> wrote in message > > 9a0j2q$5vn$[EMAIL PROTECTED]">news:9a0j2q$5vn$[EMAIL PROTECTED]... > > > Hello all, > > > > > > I would like to know standard regular expression functions (ereg(), > > eregi(), > > > etc) are missing in PHP for Windows? > > > (I use PHP4.0.5RC1 from www.php4win.de) > > > > > > Thanks > > > > > > -- > > > Yasuo Ohgaki > > > > > > > > > > > > > > > -- > > > 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] > > > > > > -- > 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] >
Do you have DirectoryIndex index.html index.php in your httpd.conf? -- Yasuo Ohgaki "Marco Bleeker" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, I've just installed Apache and PHP, and adapted the Apache .conf > file. Apache works, says it triomphant in my localhost, but as soon as I > try to read a .php file in MSIE 5.5 I get a 'file not found' (404). It goes > even so far that an index.php is not found, and I get a directory listing > instead. I see index.php in there, but when I click on it, MSIE persists > that the file is not found... What could be wrong?! Any pointers to related > web content? > Thanks, Marco > | > | Marco Bleeker, Amsterdam > | [EMAIL PROTECTED] > | http://www.euronet.nl/users/mbleeker/ > | > | Attachments only after prior notice please. > | Don't put me on any kind of mailing list. > | > | I am now receiving the Snowhite virus 4x a day > | - some of you must be infected, please check ! > | (No, you did not get it from me, I use Eudora) > | __@ > | _`\<,_ > |__(*)/ (*)________________Ah, op DIE fiets ! > > > > -- > 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] >
Hi all Is any solution to get MX records from windows? As I expierenced getmxrr() function dont works in windows. Thanks, Vlad
Honestly, it is hard to understand the question but if you are asking how to obtain more than 1 result set out of a mysql_query I suggest mysql_fetch_row. example: $query = mysql_query("SELECT * FROM TableName", $conn); while($query_data = mysql_fetch_row($query)) { echo("Value1:" . $query_data[0]); echo("Value2:" . $query_data[1]); } "yanshuldg" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > There're two result sets of the same structure created by mysql_query(), > How can I combine them into one? > > > -- > 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] >