Re: [PHP] PHP equivalent to Perl $0

2007-01-31 Thread Kevin Jordan

On 1/31/07, Richard Luckhurst [EMAIL PROTECTED] wrote:

Hi

In Perl there is the predefined $0 which contains the name of the file
containing the Perl script being executed. Is there an equivalent in PHP?

I am working on converting a Listener script from Perl to PHP and at one point
when the script forks it has a line

$0 = Listener is accepting connections on Port $port;

When this Perl script is running and I do a ps I see a process ID with the
program being

Listener is accepting connections on Port $port

instead of the actual name of the Perl script.

Is such a thing possible in PHP? If so how? I have been Google searching for a
while and can not see one way or the other if it is possible.



Regards,
Richard Luckhurst
Product Development
Exodus Systems - Sydney, Australia.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



__FILE__ contains the full path and filename of the file on the
filesystem.  There are several $_SERVER indices that give something
you can get the filename/path from as well.  See
http://us2.php.net/manual/en/reserved.variables.php

--
Kevin Jordan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Fwd: [PHP] Fwd: Entries no longer appear in search

2007-01-30 Thread Kevin Jordan

Damn, wish replyto was set, I keep doing that.

-- Forwarded message --
From: Kevin Jordan [EMAIL PROTECTED]
Date: Jan 30, 2007 4:07 PM
Subject: Re: [PHP] Fwd: Entries no longer appear in search
To: Chris [EMAIL PROTECTED]


Sorry, wasn't sure it went through the first time.

On 1/29/07, Chris [EMAIL PROTECTED] wrote:

No need to keep posting the same question over and over again.

If anyone has suggestions, they will reply.

Kevin Jordan wrote:
 -- Forwarded message --
 From: Kevin Jordan [EMAIL PROTECTED]
 Date: Jan 28, 2007 6:21 PM
 Subject: Fwd: Entries no longer appear in search
 To: php-general@lists.php.net, [EMAIL PROTECTED]


 This was originally sent to the OpenLDAP list, but it was rejected
 because I mentioned PHP and phpLDAPadmin and said I should send it to
 the appropriate lists there.

 -- Forwarded message --
 From: Kevin Jordan [EMAIL PROTECTED]
 Date: Jan 27, 2007 4:24 PM
 Subject: Entries no longer appear in search
 To: openldap-software@openldap.org


 I'm having the random problem of an OpenLDAPperson entry just no
 longer showing up in the search results, causing havoc on my logins.
 I used phpLDAPadmin to administer LDAP and I also use PHP wrappers
 (they store all the information and then use the ldap functions to
 modify the entry) to change information on my pages.  A simple move
 and then move back seems to work to fix it, so they aren't completely
 gone, but they just don't show up in the search.  Has anyone else
 experienced this problem?

 --
 Kevin Jordan


 --
 Kevin Jordan




--
Postgresql  php tutorials
http://www.designmagick.com/




--
Kevin Jordan


--
Kevin Jordan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Fwd: Entries no longer appear in search

2007-01-29 Thread Kevin Jordan

-- Forwarded message --
From: Kevin Jordan [EMAIL PROTECTED]
Date: Jan 28, 2007 6:21 PM
Subject: Fwd: Entries no longer appear in search
To: php-general@lists.php.net, [EMAIL PROTECTED]


This was originally sent to the OpenLDAP list, but it was rejected
because I mentioned PHP and phpLDAPadmin and said I should send it to
the appropriate lists there.

-- Forwarded message --
From: Kevin Jordan [EMAIL PROTECTED]
Date: Jan 27, 2007 4:24 PM
Subject: Entries no longer appear in search
To: openldap-software@openldap.org


I'm having the random problem of an OpenLDAPperson entry just no
longer showing up in the search results, causing havoc on my logins.
I used phpLDAPadmin to administer LDAP and I also use PHP wrappers
(they store all the information and then use the ldap functions to
modify the entry) to change information on my pages.  A simple move
and then move back seems to work to fix it, so they aren't completely
gone, but they just don't show up in the search.  Has anyone else
experienced this problem?

--
Kevin Jordan


--
Kevin Jordan


--
Kevin Jordan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Fwd: Entries no longer appear in search

2007-01-28 Thread Kevin Jordan

This was originally sent to the OpenLDAP list, but it was rejected
because I mentioned PHP and phpLDAPadmin and said I should send it to
the appropriate lists there.

-- Forwarded message --
From: Kevin Jordan [EMAIL PROTECTED]
Date: Jan 27, 2007 4:24 PM
Subject: Entries no longer appear in search
To: openldap-software@openldap.org


I'm having the random problem of an OpenLDAPperson entry just no
longer showing up in the search results, causing havoc on my logins.
I used phpLDAPadmin to administer LDAP and I also use PHP wrappers
(they store all the information and then use the ldap functions to
modify the entry) to change information on my pages.  A simple move
and then move back seems to work to fix it, so they aren't completely
gone, but they just don't show up in the search.  Has anyone else
experienced this problem?

--
Kevin Jordan


--
Kevin Jordan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php