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
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
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
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
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
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
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
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[] =
/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
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 =
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))
//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
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/)
//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
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
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:
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
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
?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:
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
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:
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
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
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
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
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
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
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
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
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
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
101 - 131 of 131 matches
Mail list logo