php-windows Digest 9 Jan 2007 12:47:42 -0000 Issue 3106
Topics (messages 27357 through 27361):
Re: Windows paths and opendir()
27357 by: Bill Bolte
Re: Missing PHP registered Streams: httpsand ftps
27358 by: Stelios Sakalis
27359 by: Luis Ferro
building a simple extensin failed because lack of libxml
27360 by: Teruhiko Kurosaka
27361 by: zerof
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:
php-windows@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Your code worked fine for me - however, I did get this message at the
end:
"Notice: Undefined offset: 117 in C:\WebSites\Text Editor
Example\dir.php on line 11"
Other than that, it functioned as it looks like it should...
-----Original Message-----
From: Beauford [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 06, 2007 3:05 PM
To: php-windows@lists.php.net
Subject: [PHP-WIN] Windows paths and opendir()
Hi,
I have been banging my head for the last 4 hours trying to get this to
work.
I simply want to be able to display a directory listing of a drive and
directory. i.e. d:\directoryname. Is this even possible???? Any help is
appreciated. I am using IIS 6 and PHP 4.4.
This is the error I get:
Warning: opendir(f:\downloads\): failed to open dir: Invalid argument in
c:\web\index.php on line 30
***** This is line 30 - if ( $handle = opendir ( $page ) )
This is the code:
$page = "f:\\downloads";
// $mode : "FULL"|"DIRS"|"FILES"
// $d : must not be defined
$display = searchdir($page);
$num = count($display);
$i = 0;
for($i = 0; $i <= $num; $i++) { echo $i." ".$display[$i]."<br>"; }
function searchdir ( $page , $maxdepth = -1 , $mode = "FILES" , $d = 0 )
{
if ( substr ( $page , strlen ( $page ) - 1 ) != '\\' ) { $page .=
'\\' ;
}
$dirlist = array () ;
if ( $mode != "FILES" ) { $dirlist[] = $page ; }
if ( $handle = opendir ( $page ) )
{
while ( false !== ( $file = readdir ( $handle ) ) )
{
if ( $file != '.' && $file != '..' )
{
$file = $file ;
if ( ! is_dir ( $file ) ) { if ( $mode != "DIRS" ) {
$dirlist[] = $file ; } }
elseif ( $d >=0 && ($d < $maxdepth || $maxdepth < 0) )
{
$result = searchdir ( $file . '\\' , $maxdepth ,
$mode , $d + 1 ) ;
$dirlist = array_merge ( $dirlist , $result ) ;
}
}
}
closedir ( $handle ) ;
}
if ( $d == 0 ) { natcasesort ( $dirlist ) ; }
return ( $dirlist ) ;
}
?>
--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hello Cory,
"Cory Collier" <[EMAIL PROTECTED]> wrote
> I've found this to be a very good tutorial for installing Apache with SSL
> on Windows. You'll have to do some tweaking to adjust for apache 2.2.3.
> Also, If you can help it, DON'T USE INSTALLERS! Apache uses PHP as a
> module without using a PHP installer.
> If you install everything correctly, you shouldn't see ANY new programs in
> your "Add/Remove Programs" list
>
> Anyways, here's the link:
>
> http://www.neilstuff.com/apache/apache2-ssl-windows.htm
Sorry guys but I forgot to tell that we do not use Apache, we use the
Windows integrated IIS with php.
--- End Message ---
--- Begin Message ---
For IIS, check out http://www.somacon.com/p41.php ("Enabling SSL in IIS
on Windows XP
Professional").
Cheers,
Luis Ferro
Stelios Sakalis escreveu:
Hello Cory,
"Cory Collier" <[EMAIL PROTECTED]> wrote
I've found this to be a very good tutorial for installing Apache with SSL
on Windows. You'll have to do some tweaking to adjust for apache 2.2.3.
Also, If you can help it, DON'T USE INSTALLERS! Apache uses PHP as a
module without using a PHP installer.
If you install everything correctly, you shouldn't see ANY new programs in
your "Add/Remove Programs" list
Anyways, here's the link:
http://www.neilstuff.com/apache/apache2-ssl-windows.htm
Sorry guys but I forgot to tell that we do not use Apache, we use the
Windows integrated IIS with php.
--- End Message ---
--- Begin Message ---
Hi, I'm new to PHP. I'm trying to learn how to
make PHP extensions on Windows, and followed
instructions in Chapter 5 "Your First Extension"
in "Extending and Embedding PHP" by Sara Golemon
with a few modification necessary to suit for
Visual Studio .NET 2003 environment I'm using.
I could manage to build the PHP core. But
when I tried to build the most simple extension
which only has an extension entry, I encountered
a compilation error:
C:\PHPDEV\php-5.2.0>nmake php_sample.dll
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
sample.c
internal_functions.c
c:\VS2003\Vc7\PlatformSDK\Include\WS2tcpip.h(647) : warning C4142:
benign redefinition of type
c:\PHPDEV\php-5.2.0\ext\dom\php_dom.h(33) : fatal error C1083: Cannot
open include file: 'libxml/parser.h': No such file or directory
NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2'
What I don't understand is why building this null
extension requires building the dom extension.
I would like to know:
(1) Can I simply tell the configure (or build system) not to
worry about DOM extension? If so, how?
(2) Where am I supposed to insatll libXML, if I really need this?
(Or how am I supposed to tell the build system where it
can find libXML?)
Thanks in advance.
-kuro
--- End Message ---
--- Begin Message ---
Teruhiko Kurosaka escreveu:
Hi, I'm new to PHP. I'm trying to learn how to
make PHP extensions on Windows, and followed
instructions in Chapter 5 "Your First Extension"
in "Extending and Embedding PHP" by Sara Golemon
with a few modification necessary to suit for
Visual Studio .NET 2003 environment I'm using.
I could manage to build the PHP core. But
when I tried to build the most simple extension
which only has an extension entry, I encountered
a compilation error:
C:\PHPDEV\php-5.2.0>nmake php_sample.dll
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
sample.c
internal_functions.c
c:\VS2003\Vc7\PlatformSDK\Include\WS2tcpip.h(647) : warning C4142:
benign redefinition of type
WARNINGS - as I know doesn't afect the flux of programing.
This warning says that you have a simple redefinition type.
c:\PHPDEV\php-5.2.0\ext\dom\php_dom.h(33) : fatal error C1083: Cannot
open include file: 'libxml/parser.h': No such file or directory
NMAKE : fatal error U1077: '"cl.exe"' : return code '0x2'
FATAL ERRORS, yes, the flux is stopped.
This error says that the include file 'libxml/parser.h' was not found.
Probably by error path or missing.
See:
http://xmlsoft.org/
--
zerof
http://www.educar.pro.br/
Apache - PHP - MySQL - Boolean Logics - Project Management
----------------------------------------------------------
Você deve, sempre, consultar uma segunda opião!
----------------------------------------------------------
You must hear, always, one second opinion! In all cases.
----------------------------------------------------------
--- End Message ---