Re: [PHP] Is this a bug?!!! I cna't believe! Sorry, if im wrong...
В сообщении от Воскресенье 30 Январь 2005 16:07 news.php.net написал(a): > > class A > { > var $name; > function A($str) > { >$this->name = $str; > } > } > > $arr = array(); > > //Put to array to objects of class A, > // where their attribute A::a is assigned a different value > //objects are assigned to an array by reference > > $a = &new A("qaz"); > $arr[0] = &$a; > > $a = &new A("wsx"); > $arr[1] = &$a; > > > //But watch the output!!! > // It is "(qaz)(qaz)", which means that the attribute of a first > // object assigned to array is outputted!!! WHY?!?!!! > foreach($arr as $a) > { > echo "(".$a->name.")"; > } > ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Get full url
В сообщении от Вторник 25 Январь 2005 04:31 Dmitry написал(a): > How? > > Dont tell me about simple solutions such as > $_SERVER["HTTPS"] . > $_SERVER["REMOTE_ADDR"] . > $_SERVER["SERVER_PORT"] . > $_SERVER["PHP_SELF"] . > $_SERVER["QUERY_STRING"] > > I want get really good solution. > > Thanks. how about $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'] ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Id_num = ""
> $id_num = $_POST["id_num"]; $id_num = $_GET['id_num']; RTFM -> diffrent between _GET & _POST -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RE: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] strange in MySQL Query.
MySQL don't know what is "UNION" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Simple question: $_POST
В сообщении от Пятница 14 Январь 2005 16:48 Stuart Felenstein написал(a): > When using $_POST vars is it required that a form is > used ? exactly
Re: [PHP] weird upload problem
So, in $_FILES all right. may be use foreach instead for? case count() show count of fulled cell of array, and in your case it show 3. but 3 is not end of your array. В сообщении от Среда 12 Январь 2005 07:16 Sebastian написал(a): > Jason Wong wrote: > > How did you ascertain this? What does print_r($_FILES) show? Unless > > you're using a broken browser it *should* work. > > i tried both IE6 and Firebox 1.0, both do the same. > does appear its being passed.. doesn't it? array: > Array > ( > [image] => Array > ( > [name] => Array > ( > [0] => image1.jpg > [1] => > [2] => image2.jpg > [3] => > [4] => > [5] => image3.jpg > ) > > [type] => Array > ( > [0] => image/pjpeg > [1] => > [2] => image/pjpeg > [3] => > [4] => > [5] => image/pjpeg > ) > > [tmp_name] => Array > ( > [0] => /tmp/php6ubg5D > [1] => > [2] => /tmp/phpYjSRr2 > [3] => > [4] => > [5] => /tmp/phpuqTWXO > ) > > [error] => Array > ( > [0] => 0 > [1] => 4 > [2] => 0 > [3] => 4 > [4] => 4 > [5] => 0 > ) > > [size] => Array > ( > [0] => 83330 > [1] => 0 > [2] => 83330 > [3] => 0 > [4] => 0 > [5] => 83330 > ) > > ) > > ) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] I'm Back i'm beginner and i couldn't solve the problem
В сообщении от Пятница 10 Декабрь 2004 05:57 Mecnun написал(a): hint -> php.ini -> register_globals = Off
Re: [PHP] Very fresh to php
В сообщении от Среда 01 Декабрь 2004 07:45 suneel написал(a): > Hi...guys, > > I'm a new bee to php. Could any one tell me that who is the > father of php? > > take care guys, and who is mother? 8)
[PHP] Pregunta
Estoy apenas en la instalacion, baje el archivo el cual me indica que configura automaticamente el iis, lo corro y trato de hacer la pagina de prueba, "Este es un ejemplo de php", lo copia igual pero al abrir la pagina no se ve nada, aparece en blanco, no se que es lo que me hace falta algo de hacer. -- PHP General 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]