[PHP] Question

2003-07-06 Thread The.Rock
When is the relase date for php 5?



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



[PHP] Re: Connect Active Directory using LDAP... please help :)

2003-07-07 Thread The.Rock
Try this and see if it works. I had the same problem until I did a little
reading. I had to use [EMAIL PROTECTED] as username then I didn't get
the credential errors anymore.

hope this helps, its very basic but hopefully it gets you started.

* Config.php**


**index.php
".$info["count"]."entries returned";
  // and print attribute values
  for ($i=0; $i<$info["count"]; $i++)
  {
  echo "";
  echo "";
  echo "".$info[$i]["cn"][0]."";
  echo "".$info[$i]["sn"][0]."";
  echo "";
  echo "";
  }
 }


// all done? then close the connection...
ldap_close($conn);

?>



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



[PHP] Re: Sessions not working.

2004-02-01 Thread The.Rock
If your on IIS, you need to set the session.save_path option in php.ini
file. Then make sure that IIS can actually write to the directory.

"Jeff McKeon" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Pulling my hair out here.

I've got an IIS5 webserver running a php website just fine.

I created another web for a dev version of the first website.  Installed
PHP ect...
When I load up the old websites files on the new site sessions won't
work on the new site.

For some reason on the new site's phpinfo.php page, there is no
HTTP_COOKIE variable set under the "environmental" section.

Also, under the PHP Variables section, there is no _REQUEST["PHPSESSID"]
or _COOKIE["PHPSESSID"] variable.

What have I missed!???

Here is a section of the phpinfo() for both sites.

Good Site:

Environment
Variable Value
ALLUSERSPROFILE  C:\Documents and Settings\All Users
CommonProgramFiles  C:\Program Files\Common Files
COMPUTERNAME  WS02TC07927
ComSpec  C:\WINNT\system32\cmd.exe
CONTENT_LENGTH  0
GATEWAY_INTERFACE  CGI/1.1
HTTPS  off
HTTP_ACCEPT  */*
HTTP_ACCEPT_LANGUAGE  en-us
HTTP_CONNECTION  Keep-Alive
HTTP_HOST  opsup.telaurus.net
HTTP_USER_AGENT  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
HTTP_COOKIE  PHPSESSID=ed09aa7b20d4032a3553c16a8f4a782f
HTTP_ACCEPT_ENCODING  gzip, deflate
INSTANCE_ID  3
LOCAL_ADDR  10.16.1.21
NUMBER_OF_PROCESSORS  1
Os2LibPath  C:\WINNT\system32\os2\dll;
OS  Windows_NT
Path  C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
PATHEXT  .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PATH_INFO  /phpinfo.php
PATH_TRANSLATED  C:\Inetpub\wwwOpSup\phpinfo.php
PROCESSOR_ARCHITECTURE  x86
PROCESSOR_IDENTIFIER  x86 Family 6 Model 8 Stepping 10, GenuineIntel
PROCESSOR_LEVEL  6
PROCESSOR_REVISION  080a
ProgramFiles  C:\Program Files
REMOTE_ADDR  10.16.2.55
REMOTE_HOST  10.16.2.55
REQUEST_METHOD  GET
SCRIPT_NAME  /phpinfo.php
SERVER_NAME  opsup.telaurus.net
SERVER_PORT  80
SERVER_PORT_SECURE  0
SERVER_PROTOCOL  HTTP/1.1
SERVER_SOFTWARE  Microsoft-IIS/5.0
SystemDrive  C:
SystemRoot  C:\WINNT
TEMP  C:\WINNT\TEMP
TMP  C:\WINNT\TEMP
USERPROFILE  C:\Documents and Settings\NetShowServices
windir  C:\WINNT


PHP Variables
Variable Value
_REQUEST["PHPSESSID"] ed09aa7b20d4032a3553c16a8f4a782f
_COOKIE["PHPSESSID"] ed09aa7b20d4032a3553c16a8f4a782f
_SERVER["ALLUSERSPROFILE"] C:\\Documents and Settings\\All Users
_SERVER["CommonProgramFiles"] C:\\Program Files\\Common Files
_SERVER["COMPUTERNAME"] WS02TC07927
_SERVER["ComSpec"] C:\\WINNT\\system32\\cmd.exe
_SERVER["CONTENT_LENGTH"] 0
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["HTTPS"] off
_SERVER["HTTP_ACCEPT"] */*
_SERVER["HTTP_ACCEPT_LANGUAGE"] en-us
_SERVER["HTTP_CONNECTION"] Keep-Alive
_SERVER["HTTP_HOST"] opsup.telaurus.net
_SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
5.1)
_SERVER["HTTP_COOKIE"] PHPSESSID=ed09aa7b20d4032a3553c16a8f4a782f
_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
_SERVER["INSTANCE_ID"] 3
_SERVER["LOCAL_ADDR"] 10.16.1.21
_SERVER["NUMBER_OF_PROCESSORS"] 1
_SERVER["Os2LibPath"] C:\\WINNT\\system32\\os2\\dll;
_SERVER["OS"] Windows_NT
_SERVER["Path"] C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem
_SERVER["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
_SERVER["PATH_INFO"] /phpinfo.php
_SERVER["PATH_TRANSLATED"] C:\\Inetpub\\wwwOpSup\\phpinfo.php
_SERVER["PROCESSOR_ARCHITECTURE"] x86
_SERVER["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 8 Stepping 10,
GenuineIntel
_SERVER["PROCESSOR_LEVEL"] 6
_SERVER["PROCESSOR_REVISION"] 080a
_SERVER["ProgramFiles"] C:\\Program Files
_SERVER["REMOTE_ADDR"] 10.16.2.55
_SERVER["REMOTE_HOST"] 10.16.2.55
_SERVER["REQUEST_METHOD"] GET
_SERVER["SCRIPT_NAME"] /phpinfo.php
_SERVER["SERVER_NAME"] opsup.telaurus.net
_SERVER["SERVER_PORT"] 80
_SERVER["SERVER_PORT_SECURE"] 0
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["SERVER_SOFTWARE"] Microsoft-IIS/5.0
_SERVER["SystemDrive"] C:
_SERVER["SystemRoot"] C:\\WINNT
_SERVER["TEMP"] C:\\WINNT\\TEMP
_SERVER["TMP"] C:\\WINNT\\TEMP
_SERVER["USERPROFILE"] C:\\Documents and Settings\\NetShowServices
_SERVER["windir"] C:\\WINNT
_SERVER["PHP_SELF"] /phpinfo.php
_SERVER["argv"] Array
(
)

_SERVER["argc"] 0
_ENV["ALLUSERSPROFILE"] C:\\Documents and Settings\\All Users
_ENV["CommonProgramFiles"] C:\\Program Files\\Common Files
_ENV["COMPUTERNAME"] WS02TC07927
_ENV["ComSpec"] C:\\WINNT\\system32\\cmd.exe
_ENV["CONTENT_LENGTH"] 0
_ENV["GATEWAY_INTERFACE"] CGI/1.1
_ENV["HTTPS"] off
_ENV["HTTP_ACCEPT"] */*
_ENV["HTTP_ACCEPT_LANGUAGE"] en-us
_ENV["HTTP_CONNECTION"] Keep-Alive
_ENV["HTTP_HOST"] opsup.telaurus.net
_ENV["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
5.1)
_ENV["HTTP_COOKIE"] PHPSESSID=ed09aa7b20d4032a3553c16a8f4a782f
_ENV["HTTP_ACCEPT_ENCODING"] gzip, deflate
_ENV["INSTANCE_ID"] 3
_ENV["LOCAL_ADDR"] 10.16.1.21
_ENV["NUMBER_OF_PROCESSORS"] 1
_ENV["Os2LibPath"] C:\\WINNT\\system32\\os2\\dll;
_ENV["OS"] Windows_NT
_ENV["Path"] C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem
_ENV["PATHEXT"] .COM;.

[PHP] Variable $_POST vars?

2005-12-10 Thread The.Rock
Is there a way to do this?

$var = $_POST["$var"];

I have a form that submits data, except the name of each input field is
incrementing. So I need to increment the $_POST var. Any ideas?

I can't seem to get anything to work

Chris

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



Re: [PHP] Variable $_POST vars?

2005-12-10 Thread The.Rock
Here is an example of one of the fields:


I'm looping thru this form several times, so each time the name gets
incremented. Do you have an example of what your talking about?


"Stephen Johnson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On 12/10/05 9:06 PM, "The.Rock" <[EMAIL PROTECTED]> wrote:
>> Is there a way to do this?
>>
>> $var = $_POST["$var"];
>>
>> I have a form that submits data, except the name of each input field is
>> incrementing. So I need to increment the $_POST var. Any ideas?
>>
>> I can't seem to get anything to work
>>
>> Chris
>
>
> What type of field are you using?  In these cases I have always passed the
> data in an array and passed the post into an array variable which I could
> then increment.
>
>
>
>
> -- 
> Stephen Johnson
> The Lone Coder
>
> http://www.ouradoptionblog.com
> *Join us on our adoption journey*
>
> [EMAIL PROTECTED]
> http://www.thelonecoder.com
>
> *Continuing the struggle against bad code*
> -- 




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



Re: [PHP] Variable $_POST vars?

2005-12-10 Thread The.Rock
Here is an example of one of the fields:


I'm looping thru this form several times, so each time the name gets
incremented. Do you have an example of what your talking about?


"Stephen Johnson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On 12/10/05 9:06 PM, "The.Rock" <[EMAIL PROTECTED]> wrote:
>> Is there a way to do this?
>>
>> $var = $_POST["$var"];
>>
>> I have a form that submits data, except the name of each input field is
>> incrementing. So I need to increment the $_POST var. Any ideas?
>>
>> I can't seem to get anything to work
>>
>> Chris
>
>
> What type of field are you using?  In these cases I have always passed the
> data in an array and passed the post into an array variable which I could
> then increment.
>
>
>
>
> -- 
> Stephen Johnson
> The Lone Coder
>
> http://www.ouradoptionblog.com
> *Join us on our adoption journey*
>
> [EMAIL PROTECTED]
> http://www.thelonecoder.com
>
> *Continuing the struggle against bad code*
> -- 




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



Re: [PHP] Variable $_POST vars?

2005-12-10 Thread The.Rock
Here is an example of one of the fields:


I'm looping thru this form several times, so each time the name gets
incremented. Do you have an example of what your talking about?


"Stephen Johnson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On 12/10/05 9:06 PM, "The.Rock" <[EMAIL PROTECTED]> wrote:
>> Is there a way to do this?
>>
>> $var = $_POST["$var"];
>>
>> I have a form that submits data, except the name of each input field is
>> incrementing. So I need to increment the $_POST var. Any ideas?
>>
>> I can't seem to get anything to work
>>
>> Chris
>
>
> What type of field are you using?  In these cases I have always passed the
> data in an array and passed the post into an array variable which I could
> then increment.
>
>
>
>
> -- 
> Stephen Johnson
> The Lone Coder
>
> http://www.ouradoptionblog.com
> *Join us on our adoption journey*
>
> [EMAIL PROTECTED]
> http://www.thelonecoder.com
>
> *Continuing the struggle against bad code*
> -- 





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



Re: [PHP] Variable $_POST vars?

2005-12-10 Thread The.Rock
Here is an example of one of the fields:


I'm looping thru this form several times, so each time the name gets
incremented. Do you have an example of what your talking about?

"Stephen Johnson" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> On 12/10/05 9:06 PM, "The.Rock" <[EMAIL PROTECTED]> wrote:
>> Is there a way to do this?
>>
>> $var = $_POST["$var"];
>>
>> I have a form that submits data, except the name of each input field is
>> incrementing. So I need to increment the $_POST var. Any ideas?
>>
>> I can't seem to get anything to work
>>
>> Chris
>
>
> What type of field are you using?  In these cases I have always passed the
> data in an array and passed the post into an array variable which I could
> then increment.
>
>
>
>
> -- 
> Stephen Johnson
> The Lone Coder
>
> http://www.ouradoptionblog.com
> *Join us on our adoption journey*
>
> [EMAIL PROTECTED]
> http://www.thelonecoder.com
>
> *Continuing the struggle against bad code*
> -- 

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



Re: [PHP] Variable $_POST vars?

2005-12-10 Thread The.Rock
Stephen,

I'm using a template and so:

becomes:


and so on.

But when I need to get the post data, I cannot access in the way I'm used to 
like:

$var1 = $_POST['item1'];
$var2 = $_POST['item2'];

If its in an array, how do I loop thru a POST array?

"Stephen Johnson" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>I would do this instead
>
> 
>
> Increment the $var with the {number} that you are using.
>
> In the following PHP page
>
> You would do
>
> $var = $_POST['item'];
>
> $var would then be an array accessed the same way you would access it
> normally.
>
> Does that make sense.?
>
> On 12/10/05 9:27 PM, "The.Rock" <[EMAIL PROTECTED]> wrote:
>
>> Here is an example of one of the fields:
>> 
>>
>> I'm looping thru this form several times, so each time the name gets
>> incremented. Do you have an example of what your talking about?
>
> -- 
> Stephen Johnson
> The Lone Coder
>
> http://www.ouradoptionblog.com
> *Join us on our adoption journey*
>
> [EMAIL PROTECTED]
> http://www.thelonecoder.com
>
> *Continuing the struggle against bad code*
> -- 

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



Re: [PHP] Variable $_POST vars?

2005-12-10 Thread The.Rock
I tried that, and every combination thereafter. All I get is the following:

"PHP Parse error: parse error, unexpected"

I tried!


"Robert Cummings" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Sun, 2005-12-11 at 00:27, The.Rock wrote:
>> Here is an example of one of the fields:
>> 
>>
>> I'm looping thru this form several times, so each time the name gets
>> incremented. Do you have an example of what your talking about?
>
> 
> $i = 0; // presuming 0 offset.
> while( isset( $_POST['item'.$i] ) )
> {
>$currItem = $_POST['item'.$i];
>
>//
>// Do something with $currItem.
>//
> }
>
> ?>
>
> Cheers,
> Rob.
> -- 
> ..
> | InterJinn Application Framework - http://www.interjinn.com |
> ::
> | An application and templating framework for PHP. Boasting  |
> | a powerful, scalable system for accessing system services  |
> | such as forms, properties, sessions, and caches. InterJinn |
> | also provides an extremely flexible architecture for   |
> | creating re-usable components quickly and easily.  |
> `'

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



Re: [PHP] Variable $_POST vars?

2005-12-10 Thread The.Rock
Rob, I thought I had tried everything, except...the following:

$item = $_POST["item$i"]; //Where $i increments and loops thru my POST 
vars...WOHOO!

This actually works. Why it works, I'll never know. but it does!


"Robert Cummings" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> On Sun, 2005-12-11 at 00:41, Robert Cummings wrote:
>> On Sun, 2005-12-11 at 00:27, The.Rock wrote:
>> > Here is an example of one of the fields:
>> > 
>> >
>> > I'm looping thru this form several times, so each time the name gets
>> > incremented. Do you have an example of what your talking about?
>
> Ooops, forgot to update my $i. Updated below and thus avoiding the
> infinte loop *lol*.
>
> 
> $i = 0; // presuming 0 offset.
> while( isset( $_POST['item'.$i] ) )
> {
>$currItem = $_POST['item'.$i++];
>
>//
>// Do something with $currItem.
>//
> }
>
> ?>
>
> Cheers,
> Rob.
> -- 
> ..
> | InterJinn Application Framework - http://www.interjinn.com |
> ::
> | An application and templating framework for PHP. Boasting  |
> | a powerful, scalable system for accessing system services  |
> | such as forms, properties, sessions, and caches. InterJinn |
> | also provides an extremely flexible architecture for   |
> | creating re-usable components quickly and easily.  |
> `' 

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



Re: [PHP] Variable $_POST vars?

2005-12-10 Thread The.Rock
Rob, I thought I had tried everything, except...the following:

$item = $_POST["item$i"]; //Where $i increments and loops thru my POST
vars...WOHOO!

This actually works. Why it works, I'll never know. but it does!


"Robert Cummings" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Sun, 2005-12-11 at 00:41, Robert Cummings wrote:
>> On Sun, 2005-12-11 at 00:27, The.Rock wrote:
>> > Here is an example of one of the fields:
>> > 
>> >
>> > I'm looping thru this form several times, so each time the name gets
>> > incremented. Do you have an example of what your talking about?
>
> Ooops, forgot to update my $i. Updated below and thus avoiding the
> infinte loop *lol*.
>
> 
> $i = 0; // presuming 0 offset.
> while( isset( $_POST['item'.$i] ) )
> {
>$currItem = $_POST['item'.$i++];
>
>//
>// Do something with $currItem.
>//
> }
>
> ?>
>
> Cheers,
> Rob.
> -- 
> ..
> | InterJinn Application Framework - http://www.interjinn.com |
> ::
> | An application and templating framework for PHP. Boasting  |
> | a powerful, scalable system for accessing system services  |
> | such as forms, properties, sessions, and caches. InterJinn |
> | also provides an extremely flexible architecture for   |
> | creating re-usable components quickly and easily.  |
> `'

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



Re: [PHP] Variable $_POST vars?

2005-12-10 Thread The.Rock
Rob, I thought I had tried everything, except...the following:

$item = $_POST["item$i"]; //Where $i increments and loops thru my POST
vars...WOHOO!

This actually works. Why it works, I'll never know. but it does!


"Robert Cummings" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Sun, 2005-12-11 at 00:41, Robert Cummings wrote:
>> On Sun, 2005-12-11 at 00:27, The.Rock wrote:
>> > Here is an example of one of the fields:
>> > 
>> >
>> > I'm looping thru this form several times, so each time the name gets
>> > incremented. Do you have an example of what your talking about?
>
> Ooops, forgot to update my $i. Updated below and thus avoiding the
> infinte loop *lol*.
>
> 
> $i = 0; // presuming 0 offset.
> while( isset( $_POST['item'.$i] ) )
> {
>$currItem = $_POST['item'.$i++];
>
>//
>// Do something with $currItem.
>//
> }
>
> ?>
>
> Cheers,
> Rob.
> -- 
> ..
> | InterJinn Application Framework - http://www.interjinn.com |
> ::
> | An application and templating framework for PHP. Boasting  |
> | a powerful, scalable system for accessing system services  |
> | such as forms, properties, sessions, and caches. InterJinn |
> | also provides an extremely flexible architecture for   |
> | creating re-usable components quickly and easily.  |
> `'

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



Re: [PHP] Variable $_POST vars?

2005-12-11 Thread The.Rock
Rob, I thought I had tried everything, except...the following:

$item = $_POST["item$i"]; //Where $i increments and loops thru my POST
vars...WOHOO!

This actually works. Why it works, I'll never know. but it does!


"Robert Cummings" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Sun, 2005-12-11 at 00:41, Robert Cummings wrote:
>> On Sun, 2005-12-11 at 00:27, The.Rock wrote:
>> > Here is an example of one of the fields:
>> > 
>> >
>> > I'm looping thru this form several times, so each time the name gets
>> > incremented. Do you have an example of what your talking about?
>
> Ooops, forgot to update my $i. Updated below and thus avoiding the
> infinte loop *lol*.
>
> 
> $i = 0; // presuming 0 offset.
> while( isset( $_POST['item'.$i] ) )
> {
>$currItem = $_POST['item'.$i++];
>
>//
>// Do something with $currItem.
>//
> }
>
> ?>
>
> Cheers,
> Rob.
> -- 
> ..
> | InterJinn Application Framework - http://www.interjinn.com |
> ::
> | An application and templating framework for PHP. Boasting  |
> | a powerful, scalable system for accessing system services  |
> | such as forms, properties, sessions, and caches. InterJinn |
> | also provides an extremely flexible architecture for   |
> | creating re-usable components quickly and easily.  |
> `'

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



Re: [PHP] Variable $_POST vars?

2005-12-11 Thread The.Rock
But when I tried your idea, it errors out with a PHP parse error.

I agree with you about it being semantically the same, however it doesn't 
work. go figure

"Robert Cummings" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> On Sun, 2005-12-11 at 02:03, The.Rock wrote:
>> Rob, I thought I had tried everything, except...the following:
>>
>> $item = $_POST["item$i"]; //Where $i increments and loops thru my POST
>> vars...WOHOO!
>>
>> This actually works. Why it works, I'll never know. but it does!
>
> *lol* It's semantically the same as what I posted for you :)
>
> Cheers,
> Rob.
> -- 
> ..
> | InterJinn Application Framework - http://www.interjinn.com |
> ::
> | An application and templating framework for PHP. Boasting  |
> | a powerful, scalable system for accessing system services  |
> | such as forms, properties, sessions, and caches. InterJinn |
> | also provides an extremely flexible architecture for   |
> | creating re-usable components quickly and easily.  |
> `' 

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