Re: [PHP] Weird problem with HTML form and $_POST

2008-11-05 Thread Oscar Gosdinski
On Wed, Nov 5, 2008 at 8:47 AM, Oscar Gosdinski <[EMAIL PROTECTED]> wrote: > Name the select tag as sub_projects[], then in PHP you can read the > $sub_project variable as an array. Oops, my error... you have to use the $_POST['sub_projects'] variable as an array. --

Re: [PHP] Weird problem with HTML form and $_POST

2008-11-05 Thread Oscar Gosdinski
On Sat, Nov 1, 2008 at 6:20 PM, Michelle Konzack <[EMAIL PROTECTED]> wrote: > multiple="multiple" size="10"> > ATX 120 > ATX 60 > ATX 90 > Device 2 > Device 4 > Lowvoltage > P4 Module > SATA 2 > SATA 4 > SATA 8 > > > Hell, why is $

Re: [PHP] 2 successive commands in one shell_exec?

2008-10-21 Thread Oscar Gosdinski
On Mon, Oct 20, 2008 at 9:16 PM, Govinda <[EMAIL PROTECTED]> wrote: > I mean I need to do that, and so with my very newbie level of understanding > I think I need to have that shell_exec essentially do 2 things at once: > -goto the right dir, and then > -fire the script in that dir. > like these 2

Re: [PHP] Code Critique Please :)

2007-11-22 Thread Oscar Gosdinski
On Nov 21, 2007 2:05 PM, Simeon F. Willbanks <[EMAIL PROTECTED]> wrote: > 3. Object Oriented principles I see that you tried to implement Singleton pattern in the DB class, but you have a mistake. $dbConnection attribute is not a static member, so every time you call the constructor $dbConnection w

Re: [PHP] losing session variable

2007-05-07 Thread Oscar Gosdinski
On 5/6/07, Alain Roger <[EMAIL PROTECTED]> wrote: if i check before header command what is the value of $_SESSION['username'], i get the right value. however, if i place on the first line of welcome.php file the following code : echo "1. Before session"; > session_start(); > echo"Username : ".$_

Re: [PHP] ibm universe database

2007-03-01 Thread Oscar Gosdinski
Do you mean IBM DB2 Universal Database? I search on google with the following text: php db2 and the first result was: http://www-128.ibm.com/developerworks/db2/library/techarticle/scott/0614_scott.html I think this link will help you. On 3/1/07, Fernando Viadero <[EMAIL PROTECTED]> wrote: i ha

Re: [PHP] Pasar varialbe sin GET

2007-02-11 Thread Oscar Gosdinski
Revisa las directivas RewriteEngine, RewriteRule de Apache. Por cierto, esta es una lista en inglés. Review the Apache directives: RewriteEngine, RewriteRule. BTW, this is an english list. On 2/11/07, Anuack Luna <[EMAIL PROTECTED]> wrote: Hola a todos. PHP Bueno, mi consulta es complicada No

Re: [PHP] _GET('name') truncates

2007-02-05 Thread Oscar Gosdinski
When you send GET all the parameters are sent in the HTTP header and this header has a limited length. If you want to send large parameters in a form you have to use POST which send this data on the HTTP body and it has no limit. On 2/5/07, Ramon <[EMAIL PROTECTED]> wrote: Hi all, I've written

Re: [PHP] md5

2007-01-17 Thread Oscar Gosdinski
Instead of hashing the password, i prefer to use the following procedure: $user = ... $password = ... $hash = md5($user . $password); Using this method, it will be very dificult guess the password if you get the hash because it depends also on the user name. When you are going to login a user y

Re: [PHP] Format of Encrypted Password

2006-09-07 Thread Oscar Gosdinski
On 9/5/06, Kevin Murphy <[EMAIL PROTECTED]> wrote: The only thing I can find anywhere in the code is this: $auth_user = $_SERVER['PHP_AUTH_USER']; $auth_pw = $_SERVER['PHP_AUTH_PW']; $query = "select name from table where name = '$authuser' and password = password('$auth_pw')"; You are using

Re: [PHP] Is this unsecure?

2006-09-05 Thread Oscar Gosdinski
On 9/5/06, tedd <[EMAIL PROTECTED]> wrote: At 4:48 PM +0200 9/5/06, Satyam wrote: It's my understanding that while MD5 has cannot be decrypted some encryption can be cracked by matching matching results. They don't have to work the code backwards. For example, if I MD5 "apple" -- it will produce

Re: [PHP] shutting down a web app for maintenance

2006-06-22 Thread Oscar Gosdinski
On 6/20/06, Jon Anderson <[EMAIL PROTECTED]> wrote: Assuming you're using a web server that supports htaccess files, you could easily just pop in a .htaccess file that denies access to everything. You could even add a PHP ini directive like: php_value auto_prepend_file "maintenance.php" where m

Re: [PHP] (Apache|php) Bug using modproxy

2006-04-26 Thread Oscar Gosdinski
I have the configuration you described: browser --> https-> mod_proxy -> http -> php and i don't have any problem with it. Maybe it's an Apache misconfiguration. Can you send a snap of your httpd.conf? On 4/26/06, Lmwangi <[EMAIL PROTECTED]> wrote: > Hi all, > First time on the list... sorry fo

Re: [PHP] Is this password protection script secure?

2006-03-14 Thread Oscar Gosdinski
Instead of using a hash if the password string, i prefer to save the following in the password field of my user's table: md5($user . $password) There are some md5 databases around that can be used to get the cleartext password from the hash if your database is compromised, if you use this method

Re: [PHP] ODBC and DB2 functions (PDO_ODBC)

2005-09-28 Thread Oscar Gosdinski
Check this article, it will help you using PDO and DB2: http://www-128.ibm.com/developerworks/db2/library/techarticle/dm-0505furlong/index.html However, you can access a DB2 server using the unified ODBC extension which actually i configured on a production enviroment. http://www-128.ibm.com/devel

[PHP] lib ssh2 functions

2005-05-13 Thread Oscar Gosdinski
Hello everybody: I need my PHP application connects through SSH to other server for getting some info to display and i tried the following code to test lib ssh2: $server = ...; $user = ...; $passwd = ...; $con = ssh2_connect($server, 22); if (ssh2_auth_password($con, $user, $passwd)) { $s