Re: [PHP] Get country from Phone number

2008-03-01 Thread Satyam
(in phone numbering the zero is after the nine within the same decade) go to countries with less phone lines. Satyam Let me know what you'll think. http://www.cmsws.com/examples/php/areacodes/countrycodes.php -- Jim Lucas Some men are born to greatness, some achieve greatness, and some

Re: [PHP] Get country from Phone number

2008-02-29 Thread Satyam
and Brazil get two digit codes in the 5 range while smaller Nicaragua gets three. Satyam - Original Message - From: Andrés Robinet [EMAIL PROTECTED] To: 'Dani Castaños' [EMAIL PROTECTED]; 'PHP LIST' php-general@lists.php.net Sent: Friday, February 29, 2008 11:17 AM Subject: RE: [PHP

Re: [PHP] global address collection

2008-01-08 Thread Satyam
countries have letters in them and the number of characters varies. I just hate it when they ask to enter the full 9 digit zip code. Satyam - Original Message - From: Richard Heyes [EMAIL PROTECTED] To: tedd [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Monday, January 07

Re: [PHP] Looking for ways to prevent timeout

2007-11-05 Thread Satyam
I can't assume the SQL optimizer could do much better than I had. Satyam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Compilers

2007-10-30 Thread Satyam
will find in their site. Satyam - Original Message - From: Wolf [EMAIL PROTECTED] To: php-general php-general@lists.php.net Sent: Tuesday, October 30, 2007 4:36 PM Subject: [PHP] Compilers Anyone use compilers (linux based or Windoze) and which do you use? Looking for something free

Re: [PHP] the opposite of a join?

2007-10-03 Thread Satyam
- Original Message - From: Zoltán Németh [EMAIL PROTECTED] it's not very efficient, but I don't have any better idea. someone else? Indeed, that sort of query is one of the worst and there is little you can do to improve it save making sure you have an index on the field of the

Re: [PHP] Using PHP to determine if user has Java installed

2007-09-05 Thread Satyam
I would think that if you put an applet in the page with some public property or method which you could then query from JavaScript if it succeeds it means you do have Java, not only installed but available and enabled to the browser, then you could either send a AJAX message to the server or

Re: [PHP] Dealing with auto-increment in MySQL

2007-09-04 Thread Satyam
the database reusing the empty slots they assume those autoincrement fields point to. Someone remembers dBaseIII .dbf files? Well, perhaps that is the picture they have in mind. Satyam - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: Steve Finkelstein [EMAIL PROTECTED]; php

Re: [PHP] crypt salt question

2007-08-30 Thread Satyam
No chance. Unless you have the salt stored along each password, your passwords are as good as random texts Satyam - Original Message - From: Andras Kende [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thursday, August 30, 2007 11:42 PM Subject: [PHP] crypt salt question

Re: [PHP] Internet Explorer Caching

2007-08-29 Thread Satyam
I'm sending these headers: header('Cache-Control: no-cache, must-revalidate'); // HTTP/1.1 header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in the past I don't remember where I took them from, but they are working fine for me. Satyam - Original Message - From

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Satyam
Check: http://developer.yahoo.com/performance/rules.html Satyam PS: The answer is, put styles at the top, scripts at the bottom., but there are many other tricks to improve performance. Otherwise, as for the standards, they can go anywhere. - Original Message - From

Re: [PHP] Loss of precision in intval()

2007-08-01 Thread Satyam
It is most definitely not if what you want is the square root, or the hyperbolic cosine or any other of a zillion things. - Original Message - From: Mark Summers [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Wednesday, August 01, 2007 6:52 PM Subject: [PHP] Loss of precision

Re: [PHP] need insights on encrypting and uploading ASCII file using PHP

2007-07-29 Thread Satyam
with a password before sending them, which is not so secure but is good enough for many uses. IT all depends on what you want. Satyam You can also send pieces and parts at different times to be assembled afterwards and, if needed, each to have their own protection scheme. Or you could burn

Re: [PHP] OOT - Ajax definitiondear all,

2007-07-27 Thread Satyam
let the X stand for 'unknown'. Satyam And so on. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.22/921 - Release

Re: [PHP] need insights on encrypting and uploading ASCII file using PHP

2007-07-27 Thread Satyam
protected messages. Finally, you could get your users to ZIP the files with a password before sending them, which is not so secure but is good enough for many uses. IT all depends on what you want. Satyam - Original Message - From: John A DAVIS To: php-general@lists.php.net

Re: [PHP] Authentication

2007-07-27 Thread Satyam
it is who he says it is. Otherwise, no browser will give you access to any sensitive information on the client machine, nothing that someone, anyone, might pick on the server side just by receiving a page request. Satyam - Original Message - From: Dan Shirah [EMAIL PROTECTED

Re: [PHP] No is_date() function?

2007-07-25 Thread Satyam
, but for the time being, a 'timestamp' as returned by, for example' mktime, is a plain integer. Satyam - Original Message - From: Ken Tozier [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Wednesday, July 25, 2007 3:55 PM Subject: [PHP] No is_date() function? Hi I wrote

Re: [PHP] Displaying HTML characters in real format

2007-07-17 Thread Satyam
the characters handled by htmlspecialchars. I just prefer to set the character encoding compatible from end to end. Satyam - Original Message - From: Nisse Engström [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Tuesday, July 17, 2007 9:03 PM Subject: Re: [PHP] Displaying HTML

Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Satyam
one directory level to the next also takes some time, thus it is a compromise in between searching sequentially in a directory for a filename (for those filesystems that do so) and going deep into the directory tree. Satyam - Original Message - From: Brian Dunning [EMAIL PROTECTED

Re: [PHP] MySQL Connection in Session ?

2007-06-11 Thread Satyam
as fast as you can to give the next in line a chance to reuse it from the pool. Satyam - Original Message - From: PHP Mailing List [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Monday, June 11, 2007 6:53 PM Subject: [PHP] MySQL Connection in Session ? Can I maintain just one

Re: [PHP] RE: Return or not to return, that is the question

2007-05-30 Thread Satyam
missinterpretations. Satyam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Ajax?

2007-05-09 Thread Satyam
and use whatever you want. And don't miss the videos of the presentations of Douglas Crockford on JavaScrit and the DOM. Satyam - Original Message - From: Emil Edeholt [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Wednesday, May 09, 2007 5:04 PM Subject: [PHP] Ajax? Hi

Re: [PHP] Re: how to detect type of image

2007-04-25 Thread Satyam
of the standard. Just open files of the types you are concerned about and check the first few characters. Satyam - Original Message - From: Richard Lynch [EMAIL PROTECTED] To: Jonathan [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Wednesday, April 25, 2007 4:30 AM Subject: Re: [PHP] Re

Re: [PHP] ${}

2007-04-25 Thread Satyam
. I think it was also used to refer to individual characters within a string as if it was a character array, but that is deprecated in favour of square brackets. Satyam -- .~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org / v \ Simplicity is Beauty! May the Force and Farce

Re: [PHP] Find MAC Address in PHP

2007-04-21 Thread Satyam
I'm sorry, I missed that, you are right, unless there are subnets within the company, several offices in distant locations. Satyam - Original Message - From: Zoltán Németh [EMAIL PROTECTED] To: Satyam [EMAIL PROTECTED] Cc: Nathaniel Hall [EMAIL PROTECTED]; php-general@lists.php.net

Re: [PHP] Find MAC Address in PHP

2007-04-20 Thread Satyam
. Satyam - Original Message - From: Nathaniel Hall [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Friday, April 20, 2007 10:00 PM Subject: [PHP] Find MAC Address in PHP Hi all, I am attempting to find the MAC address of systems visiting my page from the local LAN. I have tried

Re: [PHP] Appending into associative arrays

2007-04-16 Thread Satyam
to create a two levels deep array of arrays in just one shot, that's why the second line. Alternatively you could use the filename as key of the second array and store in it any information as data, for whatever you might need: $dir[$fm][$d] = some data related to $d. Satyam - Original

Re: [PHP] Json.php

2007-04-14 Thread Satyam
www.json.org lists all json resources in any language you care to think of. Satyam - Original Message - From: Otto Wyss [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, April 14, 2007 10:11 AM Subject: [PHP] Json.php I've seen a json.php file somewhere in a project for cases

Re: [PHP] 'lang' file editor ...

2007-04-12 Thread Satyam
and use it to read in whatever format you find suits your needs. Satyam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 'lang' file editor ...

2007-04-12 Thread Satyam
- Original Message - From: Jochem Maas [EMAIL PROTECTED] Satyam wrote: maybe I should consider moving my 'shit' into gettext format. That was just what I was going to sugest: using gettext format. yeah, but I curerntly have 30 odd files each with upwards of 2000 strings in them

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Satyam
the memory anyone would ever need. Satyam - Original Message - From: Arthur Erdös [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Jochem Maas [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, April 12, 2007 3:13 PM Subject: Re: [PHP] free allocated memory: HOW ? I am using PHP version

Re: [PHP] Dates and different time zones

2007-04-10 Thread Satyam
to timezone table updated. It assumes that the user updates the time zone on his/her machine and if he doesn't it means she doesn't care, so why should you. (some travellers prefer to keep their portable machines set to their home-base time zone) Satyam Cheers, Rich -- Zend Certified

Re: [PHP] Dates and different time zones

2007-04-10 Thread Satyam
- Original Message - From: Lester Caine [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Tuesday, April 10, 2007 4:37 PM Subject: Re: [PHP] Dates and different time zones Satyam wrote: Store all of your dates as GMT. Perform all date based calculations around GMT also

Re: [PHP] Dates and different time zones

2007-04-10 Thread Satyam
the actual timestamp. JavaScript uses milliseconds from the same base date. The rest is plain arithmetic. Satyam So, if I now have the GMT offset for every user, how do I display the right date? Can someone please show some phpcode? I would be very grateful if someone could do that. Satyam wrote

Re: [PHP] Dates and different time zones

2007-04-10 Thread Satyam
You are totally right, I am sorry. I would hate to miss my plane or train due to such mistake. Satyam - Original Message - From: Lester Caine [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Tuesday, April 10, 2007 6:29 PM Subject: Re: [PHP] Dates and different time zones

Re: [PHP] Sense last record

2007-04-09 Thread Satyam
the next record is read so, if no further records exist, I would change the class name of the row still in a variable and output the row right after the loop ends before the end of the table. Satyam - Original Message - From: Mário Gamito [EMAIL PROTECTED] To: php-general@lists.php.net Sent

Re: [PHP] mysql if empty

2007-04-09 Thread Satyam
An empty result is still a valid result. As long as the SQL statement is valid, you will get a result set. This doesn't meant that the variable holding the reference to the result set is itself empty, but that you will fail to fetch any results from it. Satyam - Original Message

Re: [PHP] keeping credit card info in session

2007-04-08 Thread Satyam
Check the local legislation regarding keeping such sensitive information. Many countries do have strict requirements for handling credit card info. Your bank might help you find what the rules are. Satyam - Original Message - From: [EMAIL PROTECTED] To: php-general@lists.php.net

Re: [PHP] keeping credit card info in session

2007-04-08 Thread Satyam
Notice the URL starts with 'usa'. In other countries you do have to go by the local laws. - Original Message - From: Dan Harrington [EMAIL PROTECTED] To: 'Satyam' [EMAIL PROTECTED]; [EMAIL PROTECTED]; php-general@lists.php.net Sent: Sunday, April 08, 2007 11:32 PM Subject: RE: [PHP

Re: [PHP] help me to solve this math maze

2007-04-04 Thread Satyam
You'll give 100 'units' to 6 of them, and 75 to 6, thus: 6 * 100 + 6 * 75 == 1050 units Each 'unit' is valued at: 3000 / 1050 == 2.8571 Thus, you give: 6 * 285.71 + 6 * 214.28 == 2999.94, and you may keep the change ;-) Satyam - Original Message - From: Faisal Murad [EMAIL

Re: [PHP] storing functions

2007-04-04 Thread Satyam
interface for every request. only joking. How I miss front panels in octal: http://en.wikipedia.org/wiki/Image:Altair8800.jpg This modern thing of having two hexadecimal digits that fit exactly on a byte boundary is child play. Satyam -- PHP General Mailing List (http://www.php.net

Re: [PHP] Language detection with PHP

2007-03-28 Thread Satyam
' separate or add them together because people often omit the accent? So, I also vote for the frequently used words approach and against the lowest number of misspellings. And I would first convert everything to plain, with no accents, both for the needle and the haystack. Satyam PS: also

Re: [PHP] Timezone offset

2007-03-28 Thread Satyam
to the Greenwich observatory and the big clock there didn't show the local time at all. (and the line carved on the floor is not 0 longitude either, that line is more than a hundred meters east of the real geographical 0), Satyam But when I echo out date( 'O' ), it's returning the offset

Re: [PHP] Timezone offset

2007-03-28 Thread Satyam
and winter come in opposite months of the calendar, so time differences with countries in different hemispheres (north south) might move about 2 hours along the year. Satyam - Original Message - From: Chris Boget [EMAIL PROTECTED] To: Tijnema ! [EMAIL PROTECTED] Cc: PHP General php-general

Re: [PHP] short open tags not working even if enabled - lighttpd + fastcgi

2007-03-27 Thread Satyam
mix several processors of whatever is contained within PIs, not only procedural languages such as PHP but any other kind of process. Satyam Better learn to start PHP tags with ?php and disable the short tags. This way i cannot ever give problems with the ?xml tags.s Tijnema -- Stand before

Re: [PHP] POST a variable

2007-03-23 Thread Satyam
Do a 'select @@identity', it will give you the last record id. The gap in between steps 3 and 4, brief as it may seem, is enough to get you in trouble. Satyam - Original Message - From: Dan Shirah [EMAIL PROTECTED] To: Németh Zoltán [EMAIL PROTECTED] Cc: php-general php-general

Re: [PHP] Add New Records Only!

2007-03-23 Thread Satyam
times until it deletes no more records. In MySql, you cannot have the same table in the 'delete' and in the subquery, thus, you will have to first insert the id's in an auxiliary table and then delete the records. Satyam - Original Message - From: Rahul Sitaram Johari [EMAIL

Re: [PHP] POST a variable

2007-03-23 Thread Satyam
@@identity; $max_result = mssql_query($get_max) or die(mssql_error()); $max_id = mssql_result($max_result,0,0); echo $max_id; Satyam - Original Message - From: Dan Shirah [EMAIL PROTECTED] To: Satyam [EMAIL PROTECTED] Cc: php-general php-general@lists.php.net Sent: Friday, March 23, 2007 7:48

Re: [PHP] Re: Random Unique ID

2007-03-23 Thread Satyam
engine that supports replication, since that's the only way to ensure keys won't get repeated over multiple servers. Satyam - Original Message - From: [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Friday, March 23, 2007 7:48 PM Subject: [PHP] Re: Random Unique ID Robert

Re: [PHP] IP to City detection

2007-03-21 Thread Satyam
, there are no limits. Satyam - Original Message - From: William Lovaton [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Wednesday, March 21, 2007 1:24 PM Subject: [PHP] IP to City detection Hi people, Is there a way to detect the city of a person based on the IP address? I mean

Re: [PHP] Name Capitalization

2007-03-20 Thread Satyam
such as 'De la Rosa won a 3rd place for McLaren' is correct. Satyam but I guarantee that you'll come across this kind of conflicting rules that are language/region/culture based and that you will have pretty much no chance of determining which rule to apply given just the name input. Chris

Re: [PHP] image digit to check password

2007-03-20 Thread Satyam
case and string, password is not changed. I would like to know how such system works and if a tutorial exist about that ? [/snip] Google captcha Not that long ago, your reply would have been considered gibberish Satyam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Re: Getting last record ID created from DB

2007-03-18 Thread Satyam
, which they recomend using if you plan on using replication, as any autonumeric sequence is local to each database and there will be repetitions over multiple servers, something GUIDs won't. Satyam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Re: Getting last record ID created from DB

2007-03-17 Thread Satyam
it might vary, but it exists in some form or other. This does not excuse the overuse of autonumerics as primary keys and most often, the only key in a whole table. Significant keys, that is, keys that are meaningful for the data being stored, are far more valuable if they exist. Satyam -- PHP

Re: [PHP] Redirecting in a PHP script

2007-03-15 Thread Satyam
of a program staring at that thing, seeing just 24 lines at a time? It can't compare with browsing through fanfold paper in the confort of your desk, or even at home! Whenever, wherever an idea hits you, paper and pencil is just so handy. Satyam -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP URL issues

2007-03-14 Thread Satyam
help, actually, I'm not sure I am actually looking for answers because, as far as I know, the answer is: it depends Satyam - Original Message - From: Richard Lynch [EMAIL PROTECTED] To: Steve [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Wednesday, March 14, 2007 10:07 AM

Fw: [PHP] PHP URL issues

2007-03-14 Thread Satyam
interpolation is out of the question anyway. Satyam - Original Message - From: Steve [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Wednesday, March 14, 2007 3:25 PM Subject: Re: [PHP] PHP URL issues I personally have not unfortunately. A good friend of mine is also

Re: Fw: [PHP] PHP URL issues

2007-03-14 Thread Satyam
- Original Message - From: Robert Cummings [EMAIL PROTECTED] To: Satyam [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Wednesday, March 14, 2007 4:49 PM Subject: Re: Fw: [PHP] PHP URL issues On Wed, 2007-03-14 at 16:31 +0100, Satyam wrote: One more example of a questionable

Re: [PHP] PHP URL issues

2007-03-13 Thread Satyam
You should use urlencode() on variables that will go into URL arguments. You might have a whitespace in any of those variables and the URL stops at the first whitespace. If those spaces are at the ends and are not significant, you might want to use trim(). - Original Message -

Re: [PHP] PHP URL issues

2007-03-13 Thread Satyam
of the URL or in reading it back. If the URL shows correctly, try a var_dump($_GET). Show it within a pre section so even whitespace is clearly visible. Satyam - Original Message - From: Don Don To: Satyam ; PHP List Sent: Tuesday, March 13, 2007 4:01 PM Subject: Re: [PHP

Re: [PHP] Data Types Problem

2007-03-12 Thread Satyam
AND type and it won't do any type conversion. Satyam - Original Message - From: Arno Coetzee [EMAIL PROTECTED] To: php-general php-general@lists.php.net Sent: Monday, March 12, 2007 8:26 AM Subject: [PHP] Data Types Problem Hi Guys I seem to have a problem with data types in php when

Re: [PHP] Posting variable outside of the post form

2007-03-12 Thread Satyam
but, since you mentioned the value might be large, it might either be advisable to take any of David's sugestions or change to a method=post. Satyam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array mysteries

2007-03-11 Thread Satyam
. As for the localization functions, you might see their effect in: http://www.satyam.com.ar/int/setlocale/index.php?locale=de_DEsubmit=Aceptar the input box allows you to enter different locales, the previous URL already has German selected. Satyam However, you may want to investigate

Re: [PHP] Array mysteries

2007-03-11 Thread Satyam
even no matter which option you pick. Satyam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating variable names from values

2007-03-08 Thread Satyam
- Original Message - From: Otto Wyss [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thursday, March 08, 2007 5:56 PM Subject: [PHP] Creating variable names from values From an arry I create a table like foreach ($persons as $key = $pers) { echo tdinput name=\K$key\

Re: [PHP] What sripts,helpers to use for AJAX

2007-03-08 Thread Satyam
://blog.davglass.com/files/yui/docs/YAHOO.Tools.html instead of those at http://www.json.org/js.html, though the later site is good in terms of explaining and it has a comparison of different JSON functions for PHP, in case your version does not support it. Satyam - Original Message - From: Otto

Re: [PHP] Intro to PHP question

2007-03-08 Thread Satyam
that, not sure. Anyway, it is just the guess of a non-expert. Satyam - Original Message - From: Jonathan Kahan [EMAIL PROTECTED] To: php-general@lists.php.net Cc: Jonathan Kahan [EMAIL PROTECTED] Sent: Thursday, March 08, 2007 5:43 PM Subject: [PHP] Intro to PHP question Hi all, I am using

Re: [PHP] Creating variable names from values

2007-03-08 Thread Satyam
They are called 'variable variables': http://www.php.net/manual/en/language.variables.variable.php and it is under variables! Satyam PS: it sounds obvious once said, but it's usage might not be, so I meant the pun, but not to tease you. - Original Message - From: Otto Wyss

Re: [PHP] db query not working

2007-03-07 Thread Satyam
no control over once it launches. Guided missiles are far better. Anyway, you got it because I had time to rant about this. Satyam - Original Message - From: Ed Curtis [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Wednesday, March 07, 2007 3:28 PM Subject: [PHP] db query

Re: [PHP] db query not working

2007-03-07 Thread Satyam
- Original Message - From: Jochem Maas [EMAIL PROTECTED] Satyam wrote: I saw two people pointing two errors on the SQL insert statement which you would have found yourself had you put the 'or die()' at the end of the query, as someone else suggested. Do never leave any query without

Re: [PHP] destructor sequence explained

2007-02-28 Thread Satyam
. exactly Satyam -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- No virus

Re: [PHP] Extract printable text from web page using preg_match

2007-02-27 Thread Satyam
or might not be installed in your setup, otherwise, you'll have to google for something you may use. Satyam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] gettext online editor?

2007-02-27 Thread Satyam
- Original Message - From: Vincent DUPONT [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Tuesday, February 27, 2007 10:33 PM Subject: [PHP] gettext online editor? hello, for translating our web applications, we use to create an XML file with the labels; one label for each

Re: [PHP] Re: Securing user table with sha function

2007-02-20 Thread Satyam
sending your login name in the clear, and nor do I so, why should you? Just complicating things don't make a site more secure, it just complicates it. Satyam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Language construct

2007-02-20 Thread Satyam
parenthesis around its arguments, which are not actually needed but are there so that they have the same look as regular functions. Satyam - Original Message - From: Balasubramanyam A [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Tuesday, February 20, 2007 3:32 PM Subject

Re: [PHP] print() or echo

2007-02-13 Thread Satyam
, so avoiding doing a concatenation first and then output the whole thing by just streaming each of the pieces to the output straight away should be faster, though string operations are so optimized as to be neglig well, you can't tell the difference. Satyam - Original Message

Re: [PHP] round to nearest 500?

2007-02-13 Thread Satyam
in an abstract world of infinitely precise number representations (in other words, infinite bits to represent any numbers). Satyam So you round up 11.1% more often than you round down. As a result, if you round up when it's odd, and down when it's even, you eliminate the 11.1% difference in when

Fw: [PHP] Re: Pasar varialbe sin GET

2007-02-11 Thread Satyam
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html - Original Message - From: Anuack Luna [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Monday, February 12, 2007 2:52 AM Subject: [PHP] Re: Pasar varialbe sin GET Disculpa. Por casualidad no tienes una Web donde explique

Re: [PHP] How to parse PHP tags in a string?

2007-02-07 Thread Satyam
a switch on the keyword found and process it. Thus each keyword would have a case to process it and might call a PHP function or read a variable, but no 'default:', if it is not within the allowed functions, forget it. And never make eval() accessible to users. Satyam -- PHP General Mailing

Fw: [PHP] Regular Expression

2007-02-05 Thread Satyam
- Original Message - From: H.T [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Monday, February 05, 2007 10:12 PM Subject: [PHP] Regular Expression Do you know good regular expression editor or something simialar? This goes into the 'something similar' category: From the

Re: [PHP] Read file on file system

2007-02-04 Thread Satyam
Have you doubled the backslash to escape it? Or put it in between single quotes? Either: c:\\test.csv or 'c:\test.csv' or even 'c:/test.csv' Otherwise, a \t in between double quotes will be interpreted as a tab Satyam - Original Message - From: Bagus Nugroho [EMAIL PROTECTED

Re: [PHP] Read file on file system

2007-02-04 Thread Satyam
file_get_contents takes a file name as an argument, not an opened file handle. - Original Message - From: Bagus Nugroho [EMAIL PROTECTED] To: Stut [EMAIL PROTECTED]; php-general@lists.php.net Sent: Sunday, February 04, 2007 3:45 PM Subject: RE: [PHP] Read file on file system in

Re: [PHP] Login script login

2007-02-02 Thread Satyam
, but until the customer proves who he/she is, you don't give away anything. Satyam If all is ok set sessions, got this ok, and proceed. Any help with with this is very much appreciated. Kind Regards Dave C -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Help wtih a query?

2007-01-31 Thread Satyam
queries this way instead of that way and this might change with each version but it still holds that the chances for better performance improve if you make it clear what you want, eventually. Satyam jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] SQL Readability.. (was Re: most powerful php editor)

2007-01-28 Thread Satyam
2007 1:14 pm, Jochem Maas wrote: query builders are alot more fiddly to get 'right' than one might imagine, dealing with NULLs, booleans and dates for example (as Satyam pointed out) can be a right PITA. I actually almost never use native date types in the SQL database. I just store unix

Re: [PHP] SQL Readability.. (was Re: most powerful php editor)

2007-01-27 Thread Satyam
to get reliable information from either end, I decided on stating the type explicitly on the query string. Satyam On Friday 26 January 2007 10:03 am, [EMAIL PROTECTED] wrote: My contribution to the insanity.. INSERT statements made easy: $genericQY = INSERT INTO MOD_LMGR_Leads

Re: [PHP] bit wise math? Is there a function to easily return the bits?

2007-01-26 Thread Satyam
pre?php $n = 7; for ($i = 1; $i $n;$i =1) if ($i $n) $a[] = $i; // put it in an array or do whatever, $i contains the parts. var_dump($a); ? /pre - Original Message - From: Richard Lynch [EMAIL PROTECTED] To: Jon Anderson [EMAIL PROTECTED] Cc: blackwater dev

Re: [PHP] bit wise math? Is there a function to easily return the bits?

2007-01-26 Thread Satyam
- Original Message - From: Satyam [EMAIL PROTECTED] pre?php $n = 7; for ($i = 1; $i $n;$i =1) if ($i $n) $a[] = $i; // put it in an array or do whatever, $i contains the parts. Sorry, the above fails for numbers which are powers of two, it should have

Re: [PHP] SQL Readability.. (was Re: most powerful php editor)

2007-01-26 Thread Satyam
- Original Message - From: Stut [EMAIL PROTECTED] You call that readable?? $vals = array(); $vals['FirstName'] = 'John'; $vals['LastName'] = 'Smith'; $query = mysql_query(BuildInsert('MOD_LMGR_Leads', $vals)); function BuildInsert($table, $values) { foreach (array_keys($values) as

Re: [PHP] Multi lingual pages

2007-01-25 Thread Satyam
I wrote something about this, but it is in Spanish: http://www.satyam.com.ar/blog/2007/01/17/internacionalizacion-y-localizacion-indice/ Satyam - Original Message - From: Otto Wyss [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Wednesday, January 24, 2007 10:44 PM Subject

Re: [PHP] most powerful php editor

2007-01-21 Thread Satyam
together over time, but if you start from scratch, this product is great. Satyam - Original Message - From: [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Sunday, January 21, 2007 3:58 PM Subject: Re: [PHP] most powerful php editor God I love this list.. great answers

Re: [PHP] Forms and destroying values

2007-01-12 Thread Satyam
. It will be this address, not the post that made the database update, that the browser will remember. Satyam - Original Message - From: Beauford [EMAIL PROTECTED] To: PHP php-general@lists.php.net Sent: Friday, January 12, 2007 9:27 AM Subject: [PHP] Forms and destroying values Hi

Re: [PHP] Forms and destroying values

2007-01-12 Thread Satyam
transaction. Satyam - Original Message - From: Beauford [EMAIL PROTECTED] To: 'PHP' php-general@lists.php.net Sent: Friday, January 12, 2007 5:23 PM Subject: RE: [PHP] Forms and destroying values So the answer is, there is no way to destroy the values. Question then, what

[PHP] Using gettext

2007-01-12 Thread Satyam
. I wonder why I care about the 'official' gettext at all, but I'm curious to learn, so I ask. Satyam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Security with dbHost, dbUser, dbPassword

2007-01-11 Thread Satyam
- Original Message - From: Jochem Maas [EMAIL PROTECTED] To: Satyam [EMAIL PROTECTED] Cc: php-general@lists.php.net; Otto Wyss [EMAIL PROTECTED] Sent: Thursday, January 11, 2007 12:16 AM Subject: Re: [PHP] Security with dbHost, dbUser, dbPassword Satyam wrote: - Original

[PHP] Handling SimpleXMLElements

2007-01-11 Thread Satyam
} So, now you see it, now you don't, or do you? What's happening? Satyam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Anybody have any experience with outsite-in? [Quite a bit 0T]

2007-01-11 Thread Satyam
It is not a new concept, even Wikipedia has a long list of them: http://en.wikipedia.org/wiki/List_of_LiveDistros Most of those distros have individual articles ... not the one mentioned below, though. Satyam - Original Message - From: Skip Evans [EMAIL PROTECTED] To: Ryan

Re: [PHP] Handling SimpleXMLElements

2007-01-11 Thread Satyam
() (or print_r() or even echo) to figure out what the simpleXML objects are/contain. Satyam wrote: I have a problem trying to handle SimpleXml objects. Though I can manage some workaround the problem, I would like to understand it better. cell. Function dump() just does a var_dump() of whatever

Re: [PHP] Problems with mysql_connect()

2007-01-10 Thread Satyam
There is a closing parenthesis missing, see below: - Original Message - From: Delta Storm [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Wednesday, January 10, 2007 11:45 AM Subject: [PHP] Problems with mysql_connect() Hi, I'm having problems with this code (a simple exercise

Re: [PHP] Security with dbHost, dbUser, dbPassword

2007-01-10 Thread Satyam
. In the same function I put the call to mysql_select_db. Though I check the return values for errors, I usually ignore them since unless you have either more than one database engine or more than one database, the default link resource does not need to me explicitly passed to other functions. Satyam

  1   2   3   >