[PHP] Re: Test
meaning what? Jay Blanchard jay.blanch...@sigmaphinothing.org wrote in message news:4f4297a6.3000...@sigmaphinothing.org... Does this work? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Test
Doesn't appear to meet DMARC standards. On 2/20/2012 1:57 PM, Jay Blanchard wrote: Does this work? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Test [don't read]
I couldn´t resist. tedd tedd.sperl...@gmail.com escreveu na mensagem news:p0624080cc832e662f...@[192.168.1.102]... -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Test [don't read]
I couldn´t resist. tedd tedd.sperl...@gmail.com escreveu na mensagem news:p0624080cc832e662f...@[192.168.1.102]... -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Test [don't read]
On 6/7/2010 9:15 PM, João Cândido de Souza Neto wrote: I couldn´t resist. teddtedd.sperl...@gmail.com escreveu na mensagem news:p0624080cc832e662f...@[192.168.1.102]... -- --- http://sperling.com http://ancientstones.com http://earthstones.com me too ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Test
Sheena Mullally wrote: test Sorry, you failed. Cheers -- David Robley This tag is devoid of any humor. Today is Boomtime, the 58th day of Bureaucracy in the YOLD 3172. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: test for illegal characters and consequences
Angelo Zanetti wrote: Hi guys. Ive developed a site and now I've come to the stage where I need to test each textfield on each form for illegal characters that have been inputted. I would like to know from some of you how you go about it? Do you use a regular expression and test each textfield sequencially, also what do you do when you find illegal characters? do you strip them out of the inputted information or do you post an error message and tell them that there are illegal characters? I have many pages and many textfields so I would like to use the best and most appropriate and time effective approach by taking in your suggestions before doing the testing and counter measure. Thanks in advance Be more specific about what you mean by illegal characters. Give us some examples. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: test for illegal characters and consequences
Al wrote: Angelo Zanetti wrote: Hi guys. Ive developed a site and now I've come to the stage where I need to test each textfield on each form for illegal characters that have been inputted. I would like to know from some of you how you go about it? Do you use a regular expression and test each textfield sequencially, also what do you do when you find illegal characters? do you strip them out of the inputted information or do you post an error message and tell them that there are illegal characters? I have many pages and many textfields so I would like to use the best and most appropriate and time effective approach by taking in your suggestions before doing the testing and counter measure. Thanks in advance Be more specific about what you mean by illegal characters. Give us some examples. Well any kind of character that could break the the site and the SQL statement. Its not really important what the characters are inputted but rather how to remedy the situation once these characters have been entered. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: test for illegal characters and consequences
You can compare each character against the standard character set by means of regular expressions. Angelo Zanetti escribió: Al wrote: Angelo Zanetti wrote: Hi guys. Ive developed a site and now I've come to the stage where I need to test each textfield on each form for illegal characters that have been inputted. I would like to know from some of you how you go about it? Do you use a regular expression and test each textfield sequencially, also what do you do when you find illegal characters? do you strip them out of the inputted information or do you post an error message and tell them that there are illegal characters? I have many pages and many textfields so I would like to use the best and most appropriate and time effective approach by taking in your suggestions before doing the testing and counter measure. Thanks in advance Be more specific about what you mean by illegal characters. Give us some examples. Well any kind of character that could break the the site and the SQL statement. Its not really important what the characters are inputted but rather how to remedy the situation once these characters have been entered. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: test security of code
Gregory Machin wrote: Hi Is there an application that can pass source code and report potential security problem and or the live site ? Many thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za www.exponent.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) +27 72 524 8096 Nothing that would find every security hole. Because every developed site is different, has different variables, uses probably flash/cgi/javascript and a MySQL/PostgreSQL/MSAccess Database and so on. There will be never such a program that can do your specific security test, or it would just cost thousands of dollars and would have to keep better up to date than the developer of your applications. Best thing is always to test it yourself! Write down what function you have and what it does, then think about how somone could breach in. I know there are some people offering such a service. Probably it's that what you search for ;) Greets Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: test security of code
Gregory Machin wrote: Hi Is there an application that can pass source code and report potential security problem and or the live site ? Many thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za www.exponent.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and admin) +27 72 524 8096 Nothing that would find every security hole. Because every developed site is different, has different variables, uses probably flash/cgi/javascript and a MySQL/PostgreSQL/MSAccess Database and so on. There will be never such a program that can do your specific security test, or it would just cost thousands of dollars and would have to keep better up to date than the developer of your applications. Best thing is always to test it yourself! Write down what function you have and what it does, then think about how somone could breach in. I know there are some people offering such a service. Probably it's that what you search for ;) Greets Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Or why not post to the list directly... and ask if WE see anything :-) Best regards /Gustav Wiberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: test variable value?
If your talking values in submitted form data I would use: if(isset($var) trim($var) == '') { echo Please give a value; } James William Stokes wrote: Hello What is the best way to determine if a variable has no value? if ($var= '') or if ($var= 'null') Can 'null' be used here? Thanks -Willa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: test variable value?
William Stokes wrote: Hello What is the best way to determine if a variable has no value? if ($var= '') or if ($var= 'null') Can 'null' be used here? Look at isset() and empty() Cheers -- David Robley You cannot achieve the impossible without attempting the absurd. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: test
Ignored. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Test post from a new client
Robb Kerr wrote: This is a test post from a new client. I'm trying to decide whether or not to keep it. Please post a reply so that I can see how it shows up. Thanx, Robb FUBAR -- Daniel Schierbeck Help spread Firefox (www.getfirefox.com): http://www.spreadfirefox.com/?q=user/registerr=6584 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: test
It works. Just not busy. I prefer to use and post with my (Netscape) newsgroup reader. See: news://news.php.net/php.general If memory serves me correct, it will accept anyone's post that has a valid email address. In any case, it keeps the inbox clean. Barophobia wrote: ok, it's been about an hour since i subscribed and i still haven't received any messages so i'm sending this one as a test. -- John Taylor-Johnston - Université de Sherbrooke: http://compcanlit.ca/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: test if $int is integer
--- Matthew Sims [EMAIL PROTECTED] wrote: I recently purchased George Schlossnagle's Advanced PHP Programming and on page 85 in the Error Handling chapter, he made a reference about the is_int function. In the above function example he had: if (!preg_match('/^\d+$/',$n) || $n 0) { In which he mentions: It might be strange to choose to evaluate whether $n is an integer by using a regular expression instead of the is_int function. The is_int function, however, does not do what you want. It only evaluates whether $n has been typed as a string or as an integer, not whether the value of $n is an integer. Can anyone comment on this? As he explains, is_int() only evaluates the variable type, not the value (the actual data). This is not what most people want. In fact, this type of question illustrates the benefit of mailing lists. With PHP being a typeless language (well, it keeps up with types, but it tries to insulate developers from such), it's easy to have an integer stored in a variable typed as a string, and this would break an is_int() check. I'm not sure why he doesn't mention is_numeric(), since I think this would pop into people's heads while reading that section. This function is more helpful, in my opinion, because it evaluates the data and determines whether it is numeric. This is more inline with what most people want. So why the regular expression? Well, I'm no regular expression expert, but I can make a good guess without even evaluating the expression. Is 4.5 an integer? Nope, but it's numeric. His regular expression probably makes this distinction. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: test if $int is integer
Matthew Sims wrote: I recently purchased George Schlossnagle's Advanced PHP Programming and on page 85 in the Error Handling chapter, he made a reference about the is_int function. In the above function example he had: if (!preg_match('/^\d+$/',$n) || $n 0) { In which he mentions: It might be strange to choose to evaluate whether $n is an integer by using a regular expression instead of the is_int function. The is_int function, however, does not do what you want. It only evaluates whether $n has been typed as a string or as an integer, not whether the value of $n is an integer. Can anyone comment on this? The value 5.5 passed form a text input in a form, for example, will fail is_int() (because it's actually a string) and pass is_numeric(), but you still don't know whether the value passed was (or can be) an integer. If you want to just ensure the value IS an integer (without really caring what it's value is), then you can just cast it to an integer. $n = (int)$n; If it wasn't an integer to begin with, then it'll normally be zero (exceptions are strings that begin with numbers 5abc will have the value 5, but again, this is if you really don't care what the value is). -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: test if $int is integer
Vlad Georgescu wrote: how can test if var $int is integer ? In the manual: http://www.php.net/is_int Another one which might be helpful: http://www.php.net/is_numeric Hope this helps, Torben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: test if $int is integer
Vlad Georgescu wrote: how can test if var $int is integer ? In the manual: http://www.php.net/is_int Another one which might be helpful: http://www.php.net/is_numeric Hope this helps, Torben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php I recently purchased George Schlossnagle's Advanced PHP Programming and on page 85 in the Error Handling chapter, he made a reference about the is_int function. In the above function example he had: if (!preg_match('/^\d+$/',$n) || $n 0) { In which he mentions: It might be strange to choose to evaluate whether $n is an integer by using a regular expression instead of the is_int function. The is_int function, however, does not do what you want. It only evaluates whether $n has been typed as a string or as an integer, not whether the value of $n is an integer. Can anyone comment on this? --Matthew Sims --http://killermookie.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: test if $int is integer
Yeah, 4 will pass the is_int() test, '4' won't. I prefere just to use if(ctype_digit($foo)){ ... } On Tue, 29 Jun 2004 15:12:22 -0700 (PDT), Matthew Sims [EMAIL PROTECTED] wrote: I recently purchased George Schlossnagle's Advanced PHP Programming and on page 85 in the Error Handling chapter, he made a reference about the is_int function. In the above function example he had: if (!preg_match('/^\d+$/',$n) || $n 0) { In which he mentions: It might be strange to choose to evaluate whether $n is an integer by using a regular expression instead of the is_int function. The is_int function, however, does not do what you want. It only evaluates whether $n has been typed as a string or as an integer, not whether the value of $n is an integer. Can anyone comment on this? --Matthew Sims --http://killermookie.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: test if $int is integer
Matthew Sims wrote: I recently purchased George Schlossnagle's Advanced PHP Programming and on page 85 in the Error Handling chapter, he made a reference about the is_int function. In the above function example he had: if (!preg_match('/^\d+$/',$n) || $n 0) { In which he mentions: It might be strange to choose to evaluate whether $n is an integer by using a regular expression instead of the is_int function. The is_int function, however, does not do what you want. It only evaluates whether $n has been typed as a string or as an integer, not whether the value of $n is an integer. Can anyone comment on this? Sure. He's right, but this shouldn't be a surprise, since it's documented as such: Note: To test if a variable is a number or a numeric string (such as form input, which is always a string), you must use is_numeric(). (From http://www.php.net/is_int) In my opinion, using the regex engine for this is overkill. Another way is to do something like this (from the old days before is_numeric()): if ((string) (int) $int == $int) { echo '$int' is an integer.\n; } else { echo '$int' is not an integer.\n; } Now, this won't work for hex integers inside strings, but then, neither will the above regex. Also, for some reason the test you posted fails for negative values, which the simpler typecast test does not do. (There is a user note on the is_numeric() manual page with a function using the casting method for a wider range of numeric values, if you want it.) Mostly, though, is_numeric() will work just fine, but doesn't discriminate against floats etc (which both snippets above do). Torben --Matthew Sims --http://killermookie.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: test
Yeah those damn email always come at same time. Well on my blocked list now. Jordi Canals [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sherri wrote: Woah! Signed up litterally 1 minute ago and I'm already getting spam. From Advance Credit Suisse Bank Just wait. There are some more waiting for you ;) You should receive the Information Desk and Ingram Computer Services mails yet. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: test
Craig wrote: Yeah those damn email always come at same time. Well on my blocked list now. This is only helping the Symptom. Why not solve the Problem? The mails you got are auto-replies. Unfortunatley I didn't find a person responsible for this [EMAIL PROTECTED] but perhaps such a person is reading the list? Can you please kick these adresses from the mailing list? At least for Advance Credit Suisse Bank and Information Desk the mailboxes are full, so comlaints do only get another auto-response. Oliver P.S. If you know the responsible person - please post the email here. I will then contact him/her. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: test
Ah ha. Had to confirm my email address. Got it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: test
Woah! Signed up litterally 1 minute ago and I'm already getting spam. From Advance Credit Suisse Bank Great. Thanks php.net. Guess you can't even trust the well known sites not to slam you with spam. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: test
Sherri wrote: Woah! Signed up litterally 1 minute ago and I'm already getting spam. From Advance Credit Suisse Bank Great. Thanks php.net. Guess you can't even trust the well known sites not to slam you with spam. The problem is this list has no active moderator (at least none that makes themselves known). I've just added them to my block list in my email filter. Some people don't, and just consider the spam as a ?friendly? reminder that their message has been received. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: test
Sherri wrote: Woah! Signed up litterally 1 minute ago and I'm already getting spam. From Advance Credit Suisse Bank Just wait. There are some more waiting for you ;) You should receive the Information Desk and Ingram Computer Services mails yet. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: test
Advance Credit Suisse Bank Great. Thanks php.net. Guess you can't even trust the well known sites not to slam you with spam. Come on, that's not fair. Those emails are sent by some unscrupulous individual who subscribed to the list and set up a rule to reply those spams to everyone who posts to the list. They're certainly not sent by anyone at PHP or who runs this list. :) The same thing can happen with every mailing list in the world. This excellent resource should not be blamed. Brian Dunning http://www.briandunning.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: test
I think it's someone else on the list getting the email lists, and spaming. Signed up litterally 1 minute ago and I'm already getting spam. From Advance Credit Suisse Bank Great. Thanks php.net. Guess you can't even trust the well known sites not to slam you with spam. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Test
why do you test here at the honored PHP General mailing list? César aracena [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Send test :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Test message
Rohin Gosling [EMAIL PROTECTED] wrote in message news:... Hi everybody Please ignor this message. I am having dificulty geting messages to apear in this news group, so this is just a test message I am sending in a desperate efort to try and work out how to get messages into the news group. Can't work out why my message are no geting in. They apear to send, but then they stay in my out box and never go to my sent folder. Very frustrating actualy, can't work out whats going on. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Test message - Last one, I promise !
Excellent ! Now I can actually send messages to this place. Rohin Gosling [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sorry to bomb the news groups with so many test messages. I'll have this problem fixed in a jiffy. Please be patient with me. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: test for ascii or binary string
On Fri, Nov 29, 2002 at 10:27:05PM -0600, Jonathan Sharp wrote: Is there a way to determine if a string has ascii or binary data in it? You could always see if it matches a regular expression that represents the ascii range you're considering. I.e., ereg('[^a-zA-Z0-9]',$string) will return true if non-alphanumerics are in the string. Remember that a string is just a string. Whether the data contained in it is represented as ASCII or something else is completely a matter of implementation. ALL 7-bit data can be represented as ASCII. All 8-bit data can be represented as IBM Extended ASCII or whatever you want to call it. But the string is just a string of bits. -- Paul Chvostek [EMAIL PROTECTED] Operations / Abuse / Whatever +1 416 598- it.canada - hosting and development http://www.it.ca/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: test for ascii or binary string
Doh, so simple. I guess the correct form of the question would be how do I determine if a string has just a-zA-Z0-9 in it plus punctuation... thanks, -js Paul Chvostek wrote: On Fri, Nov 29, 2002 at 10:27:05PM -0600, Jonathan Sharp wrote: Is there a way to determine if a string has ascii or binary data in it? You could always see if it matches a regular expression that represents the ascii range you're considering. I.e., ereg('[^a-zA-Z0-9]',$string) will return true if non-alphanumerics are in the string. Remember that a string is just a string. Whether the data contained in it is represented as ASCII or something else is completely a matter of implementation. ALL 7-bit data can be represented as ASCII. All 8-bit data can be represented as IBM Extended ASCII or whatever you want to call it. But the string is just a string of bits. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Test
It looks it worked, but php.tests is there for that. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet Tom Ray [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Test message -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Test if URL is alive before including a remote JS
Given I have some content embedded on my page by calling a remote JS and occasionally the URL for the remote script is down causing my page to be slow or fail, can I use the following example as a means to test and timeout the remote server and skip the embedded JS, if the remote server isn't responding properly? Mostly sorta... ?php $fp = fsockopen (www.theweathernetwork.com, 80, $errno, $errstr, 5); What if, in between this line and the one below, their site dies? Once you've bothered to fsockopen() to them, go whole hog and suck in the data :-) Otherwise, you are just doubling the number of HTTP connections used by your page when it *DOES* work, and that's not good for performance. if (!$fp) { echo sorry, not available; } else { echo script language=\JavaScript\ type=\text/javascript\ !-- var city = \Muskoka_ON\; //-- /script script language=\javascript\ type=\text/javascript\ src=\http://www.theweathernetwork.com/weatherbutton/test.js\; /script; } ? TIA, verdon -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Test for whole number.
That post was incomprehensible. Here it is revised: I'd like to condense the function below into one line. function isOneBitSet($n) { $x = log($n)/log(2); return ($x == intval($x)); } AND I don't want to do this: return (log($n)/log(2) == intval(log($n)/log(2))); So, is there a way to check if a number is whole only using the number once? Something like is_whole_number(log($n)/log(2)); Charlie Is there a one line test for whole numbers? I want to condense this function down to one line: function isOneBitSet($n) { $x = log($n)/log(2); return ($x == intval($x)); } TIA, Charlie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Test for whole number.
Hi Not sure if this is the best way to do it: function isOneBitSet($n) { return !ereg(\.,strval(log($n)/log(2))); } Tom At 09:16 AM 8/04/2002, Charlie Killian wrote: That post was incomprehensible. Here it is revised: I'd like to condense the function below into one line. function isOneBitSet($n) { $x = log($n)/log(2); return ($x == intval($x)); } AND I don't want to do this: return (log($n)/log(2) == intval(log($n)/log(2))); So, is there a way to check if a number is whole only using the number once? Something like is_whole_number(log($n)/log(2)); Charlie Is there a one line test for whole numbers? I want to condense this function down to one line: function isOneBitSet($n) { $x = log($n)/log(2); return ($x == intval($x)); } TIA, Charlie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Test for whole number.
On Mon, 8 Apr 2002, Tom Rogers wrote: At 09:16 AM 8/04/2002, Charlie Killian wrote: I'd like to condense the function below into one line. function isOneBitSet($n) { $x = log($n)/log(2); return ($x == intval($x)); } AND I don't want to do this: return (log($n)/log(2) == intval(log($n)/log(2))); Not sure if this is the best way to do it: function isOneBitSet($n) { return !ereg(\.,strval(log($n)/log(2))); } Beware; using a regular expression for this is slower than creating an intermediate variable. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: test...
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... 24/03/2002 8:34:40 PM Umm, is it just me or has there been no traffic on this list for the last 2 hours Weird people write less on weekdays. Poz! -- Prevencija putem edukacije http://www.narkomanija.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Test
dork John Monfort [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Test: cannot send mail, but can read. Please ignore. -- 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]
[PHP] Re: test
Syntax error Andrey Hristov wrote: test -- 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]
[PHP] RE: test ... please ignore ...
Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -- 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]
RE: [PHP] RE: test ... please ignore ...
Thank you very much, I will look forward to this. This may be just what I was looking for, a complete beginner's tutorial for PHP. Congrats and good luck with the opening night. Sincerely, Navid -Original Message- From: PHPBeginner.com [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 01, 2001 2:31 AM To: PHP Subject: [PHP] RE: test ... please ignore ... Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -- 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]
RE: [PHP] RE: test ... please ignore ...
Thanks for you sweet words! did not expect, though ... We were about to open PHPBeginner.com today, but our local test servers went to hell once we upgraded them to PHP4.0.4. Not because there's a bug or something, but because of configurations. We are still testing the site, and will open it , as says on the FrontPage in 10 days. On February 11-th.. Cheers, Maxim Maletsky -Original Message- From: Navid [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 01, 2001 6:02 PM To: 'PHPBeginner.com'; 'PHP' Subject: RE: [PHP] RE: test ... please ignore ... Thank you very much, I will look forward to this. This may be just what I was looking for, a complete beginner's tutorial for PHP. Congrats and good luck with the opening night. Sincerely, Navid -Original Message- From: PHPBeginner.com [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 01, 2001 2:31 AM To: PHP Subject: [PHP] RE: test ... please ignore ... Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -- 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]
[PHP] RE: test
No, I didn't get it -Original Message- From: ybcat [mailto:[EMAIL PROTECTED]] Sent: 01 February 2001 15:47 To: [EMAIL PROTECTED] Subject: test OK? -- 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]