Re: [PHP] Re: Some kind of Popup

2008-11-22 Thread Yeti
One issue is I don't want to leave the space available on my regular web page and would like to try not to overwrite something there - I'd rather have a separate window of some sort that sort of floats over the web page. Well, since Javascript does the Job anyways you don't have to load it

Re: İlgi: [PHP] a for loop and probability random all i need is make them to reverse

2008-11-22 Thread Yeti
2008/11/22 Tontonq Tontonq [EMAIL PROTECTED]: sorry i think i did tell u wrong about it problem is not showing name of it as exaclty i just wanted give a point to it thats not real problem real problem is i want it be more unpossible when i give the class's add function's higher value In that

Re: [PHP] getStatic

2008-11-24 Thread Yeti
What would you do? I think PHP's string functions are pretty fast and even with large documents we are talking about a couple of extra microseconds on a modern machine. I once saw someone do pretty much the same as you are trying to do with strtr() [1], but I don't know if that function is

Re: [PHP] Voting methodology

2008-11-26 Thread Yeti
oneself how serious the result has to be. Getting a 99% bulletproof result might be quite time consuming (thinking of HTTPS, tokens, authorization, etc. here). So it all depends on what your client wants. //A yeti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Happy Turkey Day

2008-11-27 Thread Yeti
Today was a holiday? I looked Thanksgiving up and wikipedia said it's some kind of harvest festival. I guess that's why some mentioned turkeys .. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Short circuit evaluation and include

2008-12-02 Thread Yeti
Hello everyone, I'm posting this as a warning when using include() or include_once() and checking their return values. I'm refactoring someone else's code at the moment and got a short circuit evaluation problem that made some problems .. Here's the code: FILE some_file.php: ?php function

Re: [PHP] How to hide MySQL password in connection string in PHP script?

2008-12-02 Thread Yeti
Robert Dodier robert_dodier AT yahoo.com wrote on 12-21-2003 Hello, I am experimenting with a wiki system (PhpWiki) which uses a MySQL database to store pages. It seems like a great system. The MySQL connection string is specified in a PHP script in the form mysql://FOO:[EMAIL

Re: [PHP] array_intersect question

2008-12-02 Thread Yeti
The question is how to perform intersection on the following structure: $products = array(array(green,red,blue),array(green,yellow,red),array(green,red,purple),array(green,red,yellow)); If I understood you correctly .. ?php $arr = array(); $arr[] = array(green, red, blue); $arr[] =

Re: [PHP] Accessing the 'media' attribute in php

2008-12-03 Thread Yeti
/changess.html I think it should work in most modern browsers. Still doing it with PHP will work in every browser, but requires the page to reload ... For PHP have a look at this page ... http://www.maratz.com/blog/archives/2004/09/21/10-minutes-to-printer-friendly-page/#printQuery //A yeti -- PHP

Re: [PHP] SELECT into array of arrays

2008-12-03 Thread Yeti
How should I proceed? Thanks in advance for any suggestions. Since you are looping through the result already, why not do it this way .. $combinedArray = array(); for ($i=0;$icount($myArray);$i++) { $sql = SELECT study,symbol FROM test WHERE study IN ('$myArray[$i]'); $result =

Re: [PHP] SELECT into array of arrays

2008-12-03 Thread Yeti
Correcting myself now .. $myArray = array('b2005', 'b2008'); $sql = SELECT study,symbol FROM test WHERE study IN ('$myArray[$i]'); $result = mysql_query($sql); if(mysql_num_rows($result) 0) { while ($myrow = mysql_fetch_array($result)) { if (in_array($myrow['study'], $myArray))

Re: [PHP] adding key- value pair to an array

2008-12-03 Thread Yeti
//for each row I want to add percentage as new key-value pair // but it gives error 'Undefined variable: percentage' $row-$percentage = ($browseCount / $totalCount ) * 100; Obviously you get the error because $percentage is not defined .. I did not

Re: [PHP] SELECT into array of arrays

2008-12-03 Thread Yeti
And yet another thing i have overseen in my statement .. If you remove the first for loop, also change the sql query. But I'm sure you saw that already NEW QUERY: $sql = SELECT study,symbol FROM test WHERE study IN ('.implode(', ', $myArray).'); -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] adding key- value pair to an array

2008-12-03 Thread Yeti
//you can get really stupid with this.. ${false} = 'some string here'; echo ${''}; //echos some string here I like stupid things -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-05 Thread Yeti
Java Script should always be an option, unless you write the validation for yourself or people you personally know only. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-05 Thread Yeti
Nuclear power plants got the MCA [1] Developers got the MCA [2] [1] maximum credible accident [2] maximum credible addlebrained Both of them are what nobody likes to think of, but they can (and do?) happen. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-07 Thread Yeti
I put a small one together using regular expressions, http://www.ashleysheridan.co.uk/coding_php_validation.php So we are regexing emails again? #OUT OF coding_php_validation.php COPY case 'email': { $expression = /^([a-z0-9_\-\.]+)@([a-z0-9_\-\.]+)\.([a-z]{2,5})$/i; $errorText

Re: [PHP] Poll of sorts: Javascript Form validation or PHP

2008-12-07 Thread Yeti
I think hotmail, or was it some other mail mogul, is allowing their users to have those weird German umlauts and some accented characters. EXAMPLE: [EMAIL PROTECTED] We are living in a multilingual world with dozens of alphabets. Especiall those doing government sites should consider

Re: [PHP] A MySQL Question

2008-12-08 Thread Yeti
?php define('HUMAN_STUPIDITY', true); function bigbang() { while (HUMAN_STUPIDITY || !isset($debate_is_over)) { } return true; } if (!isset($universe)) bigbang(); ? Who says the big bang is past? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] A MySQL Question

2008-12-09 Thread Yeti
As a matter of fact, in space you can't even scream. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A MySQL Question

2008-12-09 Thread Yeti
Sure you can... I'm screaming right now... and I'm in space. A container within a container within a container within a container (ad infinitum) is still within the outermost container. I didn't hear you scream. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Chrome 1.0 released

2008-12-13 Thread Yeti
I got so used to Opera's mouse gestures, now I can't work fluently with other browsers. So I tried Chrome for like 5 minutes. It's always like How do I go back to the previous page again or how do I open a new tab?. As long as Chrome is not being bundled with new computers the average Windows

Re: [PHP] Chrome 1.0 released

2008-12-13 Thread Yeti
I have to defend poor little IE a little now. It supports XHTML and CSS2 pretty well so far. And those standards came out a couple of months ago. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Chrome 1.0 released

2008-12-14 Thread Yeti
It more and more seems like a conspiracy against M$ to me. A company trying to make up its own standards every once in a while, how can that be wrong? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Read/decode barcodes from an image

2008-12-17 Thread Yeti
Basic bar code detection is not that difficult. You set a couple of virtual lines over the images and crawl them pixel by pixel. Then you count the black/white changes and the density of each change. I could even think of doing this using GD if I had the time. On the other hand it can get pretty

Re: [PHP] What does ?xml have to do with it?

2008-12-28 Thread Yeti
I think it can also be set in .htaccess php_flag short_open_tag off somebody confirm this or not. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Searching in a long text

2009-01-03 Thread Yeti
What if the whole text has only 1 line? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help on caching an object.

2009-02-11 Thread Yeti
Hello gang, First of all, yes I searched the mailing list's archive. My problem is very simple: I have an object that's definately called with every page request. It's pretty much the same for every unregistered/anonymous user. And it's not small. Alot of attributes are being set from DB queries

Re: [PHP] How can an elephant count for nothing?

2009-02-12 Thread Yeti
Can anyone explain clearly why comparing a string with zero gives this apparently anomalous result? ?php $string = 'oleyphoont'; var_dump((int)$string, $string == 0, $string == 1); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can an elephant count for nothing?

2009-02-13 Thread Yeti
I guess the main reason for PHP to behave like this is to make life easier for many everyday situations. EXAMPLE: User input via GET or POST - usually string You compare it to some value - int/string or whatever So if a user posts '17' (string) and you compare it to 17 (int), unless you are

Re: [PHP] anyone interested in PHP? Call for moderator

2009-09-15 Thread Yeti
It is good to hear that they teach PHP in kindergarden these days. //Yeti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2