php-windows Digest 13 Dec 2002 18:38:49 -0000 Issue 1485
Topics (messages 17397 through 17401):
Re: IIS/ISAPI require suddenly stops working
17397 by: Paul Lockaby
17400 by: Brian 'Bex' Huff
mb_ereg on windows php 4.2.3 not available
17398 by: Brodie Thiesfield
Dealing with Mac files
17399 by: Sterling Anderson
PHP Connect to Active Directory
17401 by: Nichols, Mark A.
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]
----------------------------------------------------------------------
--- Begin Message ---
Paul Lockaby wrote:
Hello,
I'm using PHP 4.2.3 on IIS as an ISAPI module (for testing only). So
today I'm using my scripts just fine and then all of a sudden, require
stops working. It returns
Fatal error: Failed opening required
'C:/Inetpub/public_html/smarty/Smarty.class.php'
(include_path='.;c:\php4\pear') in C:\Inetpub\public_html\index.php on
line 27
Everytime I try to require or include something it gives me the same
error. And it only gives it to me with that file. The same exact file
includes perfectly on Apache/Linux and other files include just fine. I
tried deleting the contents of the file and leaving only a <?php ?> and
it fails. I tried renaming the file and it fails. Like I said, all other
files work, but this one file doesn't, no matter what it's contents or
what it's name or where it's located in the directory tree or how many
times I recreate it in different places. I am stumped.
~Paul
Uh, nevermind. I copied it, deleted the original and renamed it and
suddenly it started working.....
--- End Message ---
--- Begin Message ---
ahh yes... this strange behavior is due to security tests for
'include_path' and 'open_basedir' in PHP.
It tries to be secure, but its a bit overzealous in denying access to
files, IMHO... although most web site hosting companies probably love
that fact ;)
I think this file is not allowed because its in a subfolder of the
current directory, and you neglected to reference it relatively, like this:
include(".\smarty\Smarty.class.php");
Or perhaps you are referencing it properly, but you have slashes instead
of backslashes. If all else fails, try setting this in your php.ini file:
include_path=".;C:\Inetpub\public_html\smarty"
Be sure to use backslashes, and put the value in quotes, otherwise is
might not work on all platforms / web servers.
--
Brian 'Bex' Huff
[EMAIL PROTECTED]
Phone: 952-903-2023
Fax: 952-829-5424
Hello,
I'm using PHP 4.2.3 on IIS as an ISAPI module (for testing only). So
today I'm using my scripts just fine and then all of a sudden, require
stops working. It returns
Fatal error: Failed opening required
'C:/Inetpub/public_html/smarty/Smarty.class.php'
(include_path='.;c:\php4\pear') in C:\Inetpub\public_html\index.php on
line 27
Everytime I try to require or include something it gives me the same
error. And it only gives it to me with that file. The same exact file
includes perfectly on Apache/Linux and other files include just fine. I
tried deleting the contents of the file and leaving only a <?php ?> and
it fails. I tried renaming the file and it fails. Like I said, all other
files work, but this one file doesn't, no matter what it's contents or
what it's name or where it's located in the directory tree or how many
times I recreate it in different places. I am stumped.
~Paul
--- End Message ---
--- Begin Message ---
Hi,
php: 4.2.3
os: windows 2000
I've enabled the php_mbstrings.dll extension (via
'extension=php_mbstrings.dll' in php.ini) and have access to some of the
mb_* functions, but I need access to the multibyte regex functions.
These functions aren't available to me at this point (Fatal error: Call
to undefined function: mb_ereg() in ...) These functions aren't even
exported from the php_mbstrings.dll which I have.
How do I get php to support the mb regex functions on windows?
Can someone please point me to a pre-built 4.2.3 extension dll with the
multi-byte regex functions in it?
Any idea why they aren't enabled in the default distribution?
Regards,
Brodie.
--- End Message ---
--- Begin Message ---
I am working on an application for a school district and am having some
problems with the files they are supplying for import.
They are supplying data files and I am writing routines to populate the
database using these files. Its a simple file upload then I just need to
parse through the tab separated value file. I am using the most recent
PHP build on Windows with IIS ISAPI and a MSSQL database. They are
sending text files from a Macintosh application.
I noticed on the documentation for fgetcsv() that it cannot read the end
of line character on Mac files. I have not been able to find a good work
around for this issue. When I grab the entire contents of the file then
try doing a string replacement on the "\r" or even "\t" for that matter
it does not work.
Has anyone found a good solution for dealing with Mac files?
_______________________________________________________________
Sterling Anderson
Systems Analyst email: [EMAIL PROTECTED]
Heartland Business Systems
http://www.hbs.net
--- End Message ---
--- Begin Message ---
Has anyone used ldap_connect to attach to Active Directory on Windows 2k
server.
I've found several examples, but none seem to work.
I'm trying to extract usernames and passwords instead of managing
another authentication database.
Thanks!
--- End Message ---