[PHP] Playing with globals

2004-05-28 Thread Ciprian Trofin
Hi All, My system: Windows NT 5.0 build 2195 / Apache/1.3.23 - PHP 4.1.1 Here is a nice snippet: ___ __ the result: 1 (however, I expected to see "2")

[PHP] unset() un-appropriate ?

2003-10-13 Thread Ciprian Trofin
I have a form with 3 checkboxes x1,x2,x3. I want to build an array of values from the checked boxes; I choosed the following approach: 1. build an array with all values 2. eliminate from array the "" values using unset CODE: $x = array($_POST['x1'],$_POST['x2'],$_POST['x3']); do { for ($i

[PHP] Restricted access

2003-08-14 Thread Ciprian Trofin
Hi All, I want to give access to resources (PDFs and some RTFs) only to registered users and I also want to deny that kind of access to people that "guess" the URL. I guess it is all about putting these files outside the web-tree and somehow putting PHP to work. Could you enlighten me ? :)) -- T

Re: [PHP] Restricted access

2003-08-14 Thread Ciprian Trofin
What is readfile90 ? I tried google and nothing. MK> Yes, put the files outside of web root or protect them using .htaccess MK> file. After authorization use readfile90 to serve the file. There are MK> lots of tutorials on authentization and if you are using some CMS you MK> might have all you n

Re: [PHP] Incrementing counter from an HTML page.

2003-07-04 Thread Ciprian Trofin
Suggestions: 1. use a picture for the counter (with the image - handling library) 2. use a javascript script :)

Re[2]: [PHP] Bug ?

2003-04-05 Thread Ciprian Trofin
David, thank you very much. I suspected smth. like this, but still, it is weird: PHP already has the "&" operator (?) for assigning by reference. And there is more: I noticed that if I use the "sort" function instead of "array_multisort", it works as expected. I still think there is a bug involved

[PHP] Bug ?

2003-04-04 Thread Ciprian Trofin
I tried something like this: "; echo $arrayB[0]; ?> The output is: 1 1 I think it should be: 1 5 Systems tested: Windows 98 / PHP 4.2.2 Windows 2000 SP3 / PHP 4.1.1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php