[PHP] Dumb session cookie question?

2002-12-08 Thread Douglas Douglas
Hi all. I'm sorry about the dumb question, but I've just expend two hours trying to find the damn cookie and I couldn't :( I've read that when you use sessions and configure the php.ini with session.use_cookies = 1, your sessions will always send cookies to the client (if the client accept the

Re: [PHP] nested if in a for statement

2002-12-17 Thread Douglas Douglas
I think your error is this: $userVars = array($nameFirst, $nameLast, $pass, $pass2, $auth, $dob_year, $dob_month, $dob_day); for ($i=0; $i = count($userVars); $i++) { if (empty($userVars[$i])) { echo please enter all required info;

Re: [PHP] PHP vs ASP.NET formal opinions request

2003-08-14 Thread Douglas Douglas
Thanks to everybody for your kind responses. By the way, I go to the Universidad de El Salvador (Central America). In a such poor country like this, Free Software and Open Source could be the answer to the government's software needs. Unfortunately, MS has the monopoly in the government's

[PHP] PHP vs ASP.NET formal opinions request

2003-08-14 Thread Douglas Douglas
Hello everybody. I've been doing some research about the PHP vs ASP.NET debate, because I need to justify the use of PHP in my graduation work. In my University, people in charge of approving the graduation works advocate Microsoft's technologies. They don't believe in the free software movement

Re: [PHP] PHP vs ASP.NET formal opinions request

2003-08-14 Thread Douglas Douglas
Thank you for the links Mr. Rees. I specially liked the one about MS giving $500K to the Peruvian President. Thanks to everybody's help I have some BIG COMMERCIAL, IMPARTIAL, RECOGNIZED WEBSITES articles like IBM, Yahoo and Google. I'm very thankful to all of you. Regards, Douglas.

Re: [PHP] executing shell commands.

2003-09-10 Thread Douglas Douglas
Hi! I'm not sure this could be your problem, but this is what I see: $numlin = '/bin/cat /dcsa-ws1/share/webadm1/public_html/system-reports/security/rhosts/eqty/$system | /bin/wc -l'; I think you should write it like this: $numlin = /bin/cat

[PHP] Variable variables question?

2003-06-13 Thread Douglas Douglas
Hello everybody. I have the following class method: function HTTPValidator($method) { $this-data = ${'_'.$method}; $this-rules= array(); $this-required = array(); } data, rules and required are arrays. The parameter $method can have the values: GET or POST. I'm trying to store

RE: [PHP] Variable variables question?

2003-06-13 Thread Douglas Douglas
Thanks for the answer Mike. Thanks for the explanation, but I think this is a different case, isn't? I'm not trying to do this ${$_POST}, I'm trying to make this string $_POST. And I have another question. Why does this code work? ?php echo 'pre'; print_r($_POST); echo '/prebrbr'; $method =

[PHP] How to remove only the last character?

2003-02-08 Thread Douglas Douglas
Good day. Is there any PHP function that removes only the last character of a string and returns the new string? I'm looking in the manual and I can't find anything. Until now I'm doing this: $var=substr($var,0,strlen($var)-1) Is this the most efficient way? Thanks.

Re: [PHP] How to remove only the last character?

2003-02-08 Thread Douglas Douglas
I want to thank you Ian, Zydox and Nicos. After Zydox response I checked the manual again and read this part in the substr function: If length is given and is negative, then that many characters will be omitted from the end of string (after the start position has been calculated when a start is

[PHP] Array to string?

2003-10-14 Thread Douglas Douglas
Hello everybody. Is there any built-in function to convert an array to string? Thanks. __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Array to string?

2003-10-14 Thread Douglas Douglas
I just found it: implode. Sorry to bother you. __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need to refine this:

2004-02-03 Thread Douglas Douglas
Just my two cents :) $temp = ; echo table\n; while ($mydata = mysql_fetch_object($myquery)) { if ($temp != $mydata-district) { $temp = $mydata-district; echo tr bgcolor=\#CC\td$mydata-district/td/tr\n; } echo tr bgcolor=\#CC\td$mydata-city/td