php-windows Digest 23 Feb 2001 05:32:00 -0000 Issue 459
Topics (messages 5685 through 5706):
Re: LDAP Configuration
5685 by: Gonzalo Vera
5686 by: Troy Moreland
5687 by: Ben Cairns
5688 by: Troy Moreland
Re: Apache, PHP4, PHPLIB, include_path
5689 by: Martin Burger
R: [PHP-WIN] LDAP Configuration
5690 by: Giuseppe D'Ambrosio
5692 by: Troy Moreland
?Finders?
5691 by: Randall Barber
5693 by: Ben Cairns
system, exec, passthru gehen nicht
5694 by: Markus
Telnet, Socket Configuration
5695 by: Victor Irzak
5696 by: Gonzalo Vera
LDAP - Undefined index errors
5697 by: Troy Moreland
5698 by: Troy Moreland
how to execute PHP code on the fly
5699 by: Doug Brewer
5700 by: Boget, Chris
5705 by: Ignatius Teo
PHP does not find .dll
5701 by: Xavier Paz
5703 by: Phillip Bow
Should be an easy solution
5702 by: OoCobra97.aol.com
Help PHP & Windows98
5704 by: Roberto Paganelli
Does anyone know any sites where a PHP programmer can find job?
5706 by: Grishick
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 understand that I need to:
> - Uncomment php_ldap.dll extension in PHP.INI <- Done
> - Modify extension_dir in PHP.INI <- Done (C:\PHP\)
I think this should be c:/php/extensions
Take care to use front slashes.
Regards,
Gonzalo.
Same result! : (
"Gonzalo Vera" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I understand that I need to:
> > - Uncomment php_ldap.dll extension in PHP.INI <- Done
> > - Modify extension_dir in PHP.INI <- Done (C:\PHP\)
>
> I think this should be c:/php/extensions
>
> Take care to use front slashes.
>
> Regards,
> Gonzalo.
>
>
>
> --
> 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]
>
Please ensure that you do actually have the ldap dll, as these do NOT ship
with the windows installer.
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com
"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK......"
I did download the "big" download. I do have that file and have it in the
correct directory. The file is called php_ldap.dll.
"Ben Cairns" <[EMAIL PROTECTED]> wrote in message 3A94EB49@tech-01">news:3A94EB49@tech-01...
> Please ensure that you do actually have the ldap dll, as these do NOT ship
> with the windows installer.
>
>
> -- Ben Cairns - Head Of Technical Operations
> intasept.COM
> Tel: 01332 365333
> Fax: 01332 346010
> E-Mail: [EMAIL PROTECTED]
> Web: http://www.intasept.com
>
> "MAKING sense of
> the INFORMATION
> TECHNOLOGY age
> @ WORK......"
>
>
> --
> 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]
>
"Martin Burger" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
970a5g$3c3$[EMAIL PROTECTED]">news:970a5g$3c3$[EMAIL PROTECTED]...
> I try to use PHPLIB with PHP4 on a machine running "Apache/1.3.14
> (Win32) mod_jk PHP/4.0.4". With PHP3 (CGI) it works fine.
With PHP Version 4.0.5-dev it works. Both are from www.php4win.de
> php_value auto_prepend_file d:\server\htdocs\www.test.de\php\prepend.php3
> php_value include_path d:\server\htdocs\www.test.de\php\:./
This has to be:
php_value include_path ;/server/htdocs/www.test.de/php;.;
php_value auto_prepend_file prepend.php3
Regards,
Martin Burger
hello Troy,
I think you need also the libasl.dll, it's in the same "big" package:
put it in a dir. in the path and give a try (restart apache..)
HTH,
bye,
Giuse
/-------------------------------\
| http://boltthrower.webhop.org |
\-------------------------------/
-----Messaggio originale-----
Da: Troy Moreland <[EMAIL PROTECTED]>
A: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Data: giovedì 22 febbraio 2001 16.55
Oggetto: Re: [PHP-WIN] LDAP Configuration
>I did download the "big" download. I do have that file and have it in the
>correct directory. The file is called php_ldap.dll.
>
>
>"Ben Cairns" <[EMAIL PROTECTED]> wrote in message 3A94EB49@tech-01">news:3A94EB49@tech-01...
>> Please ensure that you do actually have the ldap dll, as these do NOT
ship
>> with the windows installer.
>>
>>
YOU ARE THE MAN!!!!!
That was the fix! I'm actually running IIS but that worked for me as
well!!!! Woohoo!!!
""Giuseppe D'Ambrosio"" <[EMAIL PROTECTED]> wrote in message
004701c09cf3$368621c0$[EMAIL PROTECTED]">news:004701c09cf3$368621c0$[EMAIL PROTECTED]...
>
> hello Troy,
> I think you need also the libasl.dll, it's in the same "big" package:
> put it in a dir. in the path and give a try (restart apache..)
>
>
> HTH,
> bye,
> Giuse
>
> /-------------------------------\
> | http://boltthrower.webhop.org |
> \-------------------------------/
>
>
>
>
> -----Messaggio originale-----
> Da: Troy Moreland <[EMAIL PROTECTED]>
> A: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Data: gioved� 22 febbraio 2001 16.55
> Oggetto: Re: [PHP-WIN] LDAP Configuration
>
>
> >I did download the "big" download. I do have that file and have it in
the
> >correct directory. The file is called php_ldap.dll.
> >
> >
> >"Ben Cairns" <[EMAIL PROTECTED]> wrote in message
3A94EB49@tech-01">news:3A94EB49@tech-01...
> >> Please ensure that you do actually have the ldap dll, as these do NOT
> ship
> >> with the windows installer.
> >>
> >>
>
>
>
>
> --
> 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]
>
Someone told me today that a FINDER is a snippet of code that checks remote IPs and
blocks against unwanted hosts.
One way I thought of doing this is from the calling server the link is a form submit
(post method) which contains the HTTP_SERVER_VARS["LOCAL_ADDR"] of the server in the
post info.
My script checks it against a list of allowables and passes or dies.
Is there another way besides submitting a form?
I tried using HTTP_SERVER_VARS["REMOTE_ADDR"] but that returns the client the IP not
the referring IP.
Are they called FINDERS? I couldn't find anything while searching around the net for
info on the idea.
Any comments are welcome
Thanks
RDB
<?
$remote_name = gethostbyaddr($REMOTE_ADDR);
?>
-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com
"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK......"
Hallo
Hab system, exec und passthru ausprobiert aber nichts geht.
Code:
$result = passthru("d:\\blat.exe",$erg);
echo $result . "," . $erg;
Ausgabe:
,1
Umgebung: 2000 + Apache + PHP4.0.5Dev + CGI
WARUM ?
--
Markus Wagner
email: [EMAIL PROTECTED]
Hobby: 747 Jumbo-Jet, Pontiac
Hi,
I am trying to write a web telnet interface and I have difficulties with
configuration for the socket functions... they are simply not
recognized. I have php4 on apache server for windows. I assume I should
edit the php.ini file, but I have no idea what to do there.
Any help will be appreciated
You must compile php with socket functions: it does not come
pre-compiled in the binaries.
Gonzalo.
> Hi,
> I am trying to write a web telnet interface and I have difficulties with
> configuration for the socket functions... they are simply not
> recognized. I have php4 on apache server for windows. I assume I should
> edit the php.ini file, but I have no idea what to do there.
> Any help will be appreciated
I am able to connect and get information from my directory now, thanks to a
lot of peoples help! :)
I now have a problem returning certain fields. For example, I am able to
retrieve dn, surname, mail, and ou. I am NOT able to get givenName,
telephoneNumber, title and company. I get the following message on these
fields:
Warning: Undefined index: givenName in c:\inetpub\wwwroot\php\ldap.php on
line 34
Line 34 in my code reads:
echo "given name entry is: ". $info[$i]["givenName"][0] . "<br>";
I have lines similar to this one calling all of the above mentioned fields
and some work, some don't.
Thanks in advance for you're help!
Troy Moreland
I found my own answer...
Problems:
1. I wasn't authenticating with enough rights to see certain fields.
2. I was getting the error if the field was empty.
3. I wasn't including all the fields in my search parameters.
4. You must use all lowercase when referring to fields. ie givenname, not
givenName.
""Troy Moreland"" <[EMAIL PROTECTED]> wrote in message
973hp3$1sv$[EMAIL PROTECTED]">news:973hp3$1sv$[EMAIL PROTECTED]...
> I am able to connect and get information from my directory now, thanks to
a
> lot of peoples help! :)
>
> I now have a problem returning certain fields. For example, I am able to
> retrieve dn, surname, mail, and ou. I am NOT able to get givenName,
> telephoneNumber, title and company. I get the following message on these
> fields:
>
> Warning: Undefined index: givenName in c:\inetpub\wwwroot\php\ldap.php on
> line 34
>
> Line 34 in my code reads:
> echo "given name entry is: ". $info[$i]["givenName"][0] . "<br>";
>
> I have lines similar to this one calling all of the above mentioned fields
> and some work, some don't.
>
> Thanks in advance for you're help!
>
> Troy Moreland
>
>
>
> --
> 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 am storing html fragments in mysql. The html has PHP in it. Here's
the problem: The text that is pulled out isn't "executed" as it is
returned. I can still see all the various php bits, in other words.
Is there a command to allow PHP to execute all the php code in a
string?
Thanks,
DB
> I am storing html fragments in mysql. The html has PHP in it. Here's
> the problem: The text that is pulled out isn't "executed" as it is
> returned. I can still see all the various php bits, in other words.
> Is there a command to allow PHP to execute all the php code in a
> string?
check out eval();
Chris
Hi Doug,
use (the dreaded) eval()
Ignatius
> -----Original Message-----
> From: Doug Brewer [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 23 February 2001 05:02
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] how to execute PHP code on the fly
>
>
> I am storing html fragments in mysql. The html has PHP in it. Here's
> the problem: The text that is pulled out isn't "executed" as it is
> returned. I can still see all the various php bits, in other words.
>
>
> Is there a command to allow PHP to execute all the php code in a
> string?
>
> Thanks,
>
> DB
>
>
> --
> 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,
I am trying to set up a test machine with PHP 4.04 pl1 over Apache and SQL
Server, and windows 2000, and I cannot get PHP to find the extension
libraries.
PHP is in e:\php4, with the extensions in e:\php4\extensions.
In php.ini I have tried:
extension_dir = "e:\php4\extensions\"
extension_dir = "e:\php4\"
extension_dir = "e:/php4/extensions/"
extension_dir = "e:/php4/"
extension_dir = "e:/php4"
extension_dir = "e:\php4"
When restarting Apache it always says
"Unable to load dynamic library 'e:\php4\extensions\php_sybase_ct.dll' - The
specified module could not be found." (the directory varies).
It happens with the php as a cgi and as an isapi module.
What am I missing?
Xavier
Should be:
extension_dir = e:\php4\extensions\
quotes don't seem to make a difference.
I had similar trouble when I had my ini file in e:\php4\php.ini. I
eventually had to move php.ini to e:\php.ini for this to work. I assume I
could have changed the windows include path, but it worked at the time and I
never bothered to play with it again.
--
phill
""Xavier Paz"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I am trying to set up a test machine with PHP 4.04 pl1 over Apache and SQL
> Server, and windows 2000, and I cannot get PHP to find the extension
> libraries.
>
> PHP is in e:\php4, with the extensions in e:\php4\extensions.
>
> In php.ini I have tried:
> extension_dir = "e:\php4\extensions\"
> extension_dir = "e:\php4\"
> extension_dir = "e:/php4/extensions/"
> extension_dir = "e:/php4/"
> extension_dir = "e:/php4"
> extension_dir = "e:\php4"
>
> When restarting Apache it always says
> "Unable to load dynamic library 'e:\php4\extensions\php_sybase_ct.dll' -
The
> specified module could not be found." (the directory varies).
>
> It happens with the php as a cgi and as an isapi module.
>
> What am I missing?
>
> Xavier
>
>
> --
> 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]
>
Hello,
I'm writing an error handling script for my windows 2000 Server, Basically
I'm exploding the query_string down to the error code, (404, 401, 500,
ect...) and I want to add either (main, main2, desc, or sub) to the
errorcode, how do I go about this? Im trying to do this so it eventually
comes back like:
main404, desc404 or ect.. so i can include the error description in a web
page, Here is the following code, thanks for any help anyone can give.
It should be compatible with unix, but im not sure, I run it on windows 2k,
with IIS5, and php4, thanks again
<?php
header("Status: 200 OK");
$dir_level=(count(explode("/",$web_root))-2);
// *** To be compatible with linux or windows machines
if($REQUEST_URI){
$h_request=$REQUEST_URI;
$prog_offset=1;
}elseif($QUERY_STRING){
$h_request=$QUERY_STRING;
$prog_offset=3;
}else{
echo"<center>System Error 600. Please contact the
[EMAIL PROTECTED] with this error.<br>Thank you,<br>Xtreme
Computers</center>";
}
// *** Explode the URL using / to get different parts
$url_array=explode("/",$h_request);
// *** Get the error code
$errorcode=$url_array[$dir_level+1];
// *** Explode the error code using ; (otherwise i get 404;http as a result)
$error_array=explode(";",$errorcode);
// *** This is the error code
$newerrorcode=$error_array[0];
// *** this is where im lost, i have the error code, but how do i append
main, // *** main2, desc, and sub after the $ but before the error code?
// *** thanks again for any help
?>
Please mail [EMAIL PROTECTED]
Good luck,
Andi
At 03:01 PM 2/22/2001 +0100, Roberto Paganelli wrote:
>Hi,
>I try to install php404.exe on my pc Win98 sec ed, probably I have read
>the instruction very fastly but...
>
>I have also installed
><http://download.microsoft.com/msdownload/dcom/98/x86/en/dcom98.exe>http://download.microsoft.com/msdownload/dcom/98/x86/en/dcom98.exe
>
>What is necessary to do?
>
>I would like to setup my pc only to test the php file without the
>connection to my linux server.
>
>Thanks for your help.
>
>Roberto
Anyone know any sites where a PHP programmer can find job? Specially in US.
Thank you.
Grigoriy Solovyev.
[EMAIL PROTECTED]