[PHP] strange stuff in a class

2002-07-10 Thread Alex Elderson
Hi, Do anybody know a work a round for this: ?php class test { function test() { $globals['test2'] = $this; } } $test1 = new test(); ? The problem hier is that $globals['test2'] is a copy of $globals['test1'] not a references. Anybody an idee? -- PHP General

[PHP] fsockopen and HTTP/1.1???

2002-06-27 Thread Alex Elderson
PHP 4.2.1 (test server) from the shell What to do? Alex Elderson ?php $crlf = \r\n; $address = www.mp3.com; $url = /; print open connection to . $address . ; if (!$web_conn = web_open($address)) { print failt . $crlf . $crlf; } else { print oke . $crlf . $crlf

Re: [PHP] New Newsgroups

2002-06-27 Thread Alex Elderson
I got the same popup. In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... On Wed, 26 Jun 2002, Peter wrote: Does anyone else out there use Outlook Express to get the posts from this newsgroup? Yesterday a dialog popped up to say there were new newsgroups (php.docs.de etc), I acknowledged

[PHP] Re: Vars to use in stats program

2002-06-27 Thread Alex Elderson
Php [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Note: For a couple who seem to be wondering there is a PHP news server which works in conjunction with this mailing list. The address is: news.php.net Currently collect the following vars in a early stage

[PHP] bug in php 4.2 with mysql

2002-05-24 Thread Alex Elderson
Hi, Can somebody take a look at this bug and tell me if that is a real bug or what i do wrong? http://bugs.php.net/bug.php?id=17305 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] get the greatest key of an array???

2002-03-14 Thread Alex Elderson
Hi, How can i get the greatest key of an array?? $array[1] = ...; $array[5] = ...; $array[0] = ...; $array[10] = ...; $array[7] = ...; $greatest_key = ??? (this must be 10 in this example) Alex Elderson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] global/local var in a function

2002-01-10 Thread Alex Elderson
Hi, I have a little problem with a function. It calls him self and the var i is lost! after the call! can anybody help me? (it's javascript) function change_check_all(tree_item) { a = document.all[tree_item + _check]; b = document.all[tree_item + _count]; for(i=0;ib.value;i++) {

[PHP] Parse error: parse error in/test/put_file.php on line 14???

2001-12-18 Thread Alex Elderson
Hi, What do i wrong? I get this err: Parse error: parse error in /test/put_file.php on line 14 put_file.php begin- ?php if ($submit) { include('include.php'); $pos = strrpos($file, \); if ($pos === FALSE) { $pos = strrpos($file, /); if ($pos === FALSE) {

[PHP] Can php make a authentication to Apache?

2001-12-18 Thread Alex Elderson
if the $auth_user is set, but i want no popup window. I want i web-page for username and password! Can anybody help me? Alex Elderson -- 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