Re: [PHP] Get country from Phone number

2008-03-01 Thread Satyam
they are assigned to the larger countries. The 59x and 50x ranges (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 --

Re: [PHP] Get country from Phone number

2008-02-29 Thread Satyam
hus, Mexico 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'"

Re: [PHP] global address collection

2008-01-08 Thread Satyam
nything on postal codes. Some 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" <[EMA

Re: [PHP] Looking for ways to prevent timeout

2007-11-05 Thread Satyam
w any big improvement either. After all, I knew the data and optimized it as much as possible so 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
find in their site. Satyam - Original Message - From: "Wolf" <[EMAIL PROTECTED]> To: "php-general" 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

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 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 navigate

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

2007-09-04 Thread Satyam
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 Finkelste

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: Sent: Thursday, August 30, 2007 11:42 PM Subject: [PHP] crypt salt question Hell

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

Re: [PHP] javascript in or in ?

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: Sent: Wednesday, August 01, 2007 6:52 PM Subject: [PHP] Loss of precision in intval() This so

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

2007-07-29 Thread Satyam
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 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

Re: [PHP] Authentication

2007-07-27 Thread Satyam
t is because 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"

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

2007-07-27 Thread Satyam
ts can send PGP 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-genera

Re: [PHP] OOT - Ajax definitiondear all,

2007-07-27 Thread Satyam
Cold Fusion AJAPL - and PERL Just 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.4

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: Sent: Wednesday, July 25, 2007 3:55 PM Subject: [PHP] No is_date() function? Hi I

Re: [PHP] Displaying HTML characters in real format

2007-07-17 Thread Satyam
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: Sent: Tuesday, July 17, 2007 9:03 PM Subject: Re: [PHP] Displaying HTML ch

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

2007-06-15 Thread Satyam
from 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" &l

Re: [PHP] MySQL Connection in Session ?

2007-06-11 Thread Satyam
go 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: Sent: Monday, June 11, 2007 6:53 PM Subject: [PHP] MySQL Connection in Session ? Can I maintain just

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

2007-05-30 Thread Satyam
ute the self-documenting value of well-written code, quite the opposite, they would need to be documented themselves to avoid 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: Sent: Wednesday, May 09, 2007 5:04 PM Subject: [PHP] Ajax? Hi!

Re: [PHP] ${}

2007-04-25 Thread Satyam
nts of $variable0 for $i = 0. 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

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

2007-04-25 Thread Satyam
s of the year 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: Sent: Wednesday, April 25, 20

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: "

Re: [PHP] Find MAC Address in PHP

2007-04-20 Thread Satyam
nge the IP. Satyam - Original Message - From: "Nathaniel Hall" <[EMAIL PROTECTED]> To: 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

Re: [PHP] Appending into associative arrays

2007-04-16 Thread Satyam
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 - Ori

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

Re: [PHP] free allocated memory: HOW ?

2007-04-12 Thread Satyam
tes was all 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 Subje

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 upwar

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

2007-04-12 Thread Satyam
ation file 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] 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: Sent: Tuesday, April 10, 2007 6:29 PM Subject: Re: [PHP] Dates and different time zones Satyam

Re: [PHP] Dates and different time zones

2007-04-10 Thread Satyam
function to get 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 tha

Re: [PHP] Dates and different time zones

2007-04-10 Thread Satyam
- Original Message - From: "Lester Caine" <[EMAIL PROTECTED]> To: 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, and then o

Re: [PHP] Dates and different time zones

2007-04-10 Thread Satyam
country 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,

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 Me

Re: [PHP] "Sense" last record

2007-04-09 Thread Satyam
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: Sent:

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]>; Sent:

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: Sent: Sunday, Ap

Re: [PHP] storing functions

2007-04-04 Thread Satyam
altair 8000 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.n

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

Re: [PHP] Timezone offset

2007-03-28 Thread Satyam
r 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 !" <[

Re: [PHP] Timezone offset

2007-03-28 Thread Satyam
vings Time or not. I remember going 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

Re: [PHP] Language detection with PHP

2007-03-27 Thread Satyam
n-English text without the correct accents. Should you count 'a' and 'á' 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 ever

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

2007-03-27 Thread Satyam
veral interpreters each to handle a section of an XML file so if you could chain interpreters or it there were a master PI dispatcher, a single source file could mix several processors of whatever is contained within PIs, not only procedural languages such as PHP but any other kind of proces

Re: [PHP] Re: Random Unique ID

2007-03-23 Thread Satyam
abase 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: Sent: Friday, March 23, 2007 7:48 PM Subject: [PHP] Re: Random Unique ID Robert C

Re: [PHP] POST a variable

2007-03-23 Thread Satyam
t instead: $get_max = "SELECT @@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 PROTEC

Re: [PHP] Add New Records Only!

2007-03-23 Thread Satyam
several 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: "R

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"

Re: [PHP] IP to City detection

2007-03-21 Thread Satyam
untry, there are no limits. Satyam - Original Message - From: "William Lovaton" <[EMAIL PROTECTED]> To: 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?

Re: [PHP] image digit to check password

2007-03-20 Thread Satyam
like A3P23. if user do not respect 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://ww

Re: [PHP] Name Capitalization

2007-03-20 Thread Satyam
unless someone is actually called 'De', neither 'de', ' la' ,'del', 'y', 'e' or 'i' would be capitalized, and there is no such a thing as a capital letter in the middle of a word or name, not in native Spanish names at least.

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

2007-03-18 Thread Satyam
IDs, 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/unsub.php

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

2007-03-17 Thread Satyam
ut 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 General Mailing

Re: [PHP] Redirecting in a PHP script

2007-03-15 Thread Satyam
how are you supposed to really make sense 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 -

Re: Fw: [PHP] PHP URL issues

2007-03-14 Thread Satyam
- Original Message - From: "Robert Cummings" <[EMAIL PROTECTED]> To: "Satyam" <[EMAIL PROTECTED]> Cc: 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

Fw: [PHP] PHP URL issues

2007-03-14 Thread Satyam
ime() on output, variable interpolation is out of the question anyway. Satyam - Original Message - From: "Steve" <[EMAIL PROTECTED]> To: Sent: Wednesday, March 14, 2007 3:25 PM Subject: Re: [PHP] PHP URL issues I personally have not unfortunately. A good friend of min

Re: [PHP] PHP URL issues

2007-03-14 Thread Satyam
sly will appreciate any little 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]&

Re: [PHP] PHP URL issues

2007-03-13 Thread Satyam
s in the assembly of the URL or in reading it back. If the URL shows correctly, try a var_dump($_GET). Show it within a 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 Subj

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 - Fro

Re: [PHP] Redirecting in a PHP script

2007-03-12 Thread Satyam
h JavaScript will get you into a loop if after reaching the destination you click on the back button, because you will fall in the page containing the redirection. I'm sure you found places like that. The only way to actually go back in those is to open the dropdown list for the back

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

2007-03-12 Thread Satyam
field 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] Data Types Problem

2007-03-11 Thread Satyam
both value AND type and it won't do any type conversion. Satyam - Original Message - From: "Arno Coetzee" <[EMAIL PROTECTED]> To: "php-general" Sent: Monday, March 12, 2007 8:26 AM Subject: [PHP] Data Types Problem Hi Guys I seem to have a prob

Re: [PHP] Array mysteries

2007-03-11 Thread Satyam
ole switch to get to the option at the end (?) or would you? I have no idea how that all works internally) Yes, you would. It goes sequentially through each case:. The array, on the other hand, uses a hashing algorithm so it should be about 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] Array mysteries

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

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 - F

Re: [PHP] Intro to PHP question

2007-03-08 Thread Satyam
sure. Anyway, it is just the guess of a non-expert. Satyam - Original Message - From: "Jonathan Kahan" <[EMAIL PROTECTED]> To: Cc: "Jonathan Kahan" <[EMAIL PROTECTED]> Sent: Thursday, March 08, 2007 5:43 PM Subject: [PHP] Intro to PHP question Hi all,

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

2007-03-08 Thread Satyam
his functions: http://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

Re: [PHP] Creating variable names from values

2007-03-08 Thread Satyam
- Original Message - From: "Otto Wyss" <[EMAIL PROTECTED]> To: 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 " ... } so each checkbox field h

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.

Re: [PHP] db query not working

2007-03-07 Thread Satyam
'ballistic' code: code you have 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: Sent: Wednesday, March 07, 20

Re: [PHP] destructor sequence explained

2007-02-28 Thread Satyam
n at any time when there is no higher priority stuff to be done. So, it all depends on the whim of the garbage collector, a background item that the developers might change at any time and whose behaviour depends on lots of unpredictable things such as server load. You get whatever order PH

Re: [PHP] gettext online editor?

2007-02-27 Thread Satyam
- Original Message - From: "Vincent DUPONT" <[EMAIL PROTECTED]> To: 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 entry; one file for ea

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

2007-02-27 Thread Satyam
- Original Message - From: "M5" <[EMAIL PROTECTED]> To: Sent: Tuesday, February 27, 2007 6:47 PM Subject: [PHP] Extract printable text from web page using preg_match I am trying to write a regex function to extract the readable (visible, screen-rendered) portion of any web page. Speci

Re: [PHP] Language construct

2007-02-20 Thread Satyam
requiring 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: Sent: Tuesday, February 20, 2007 3:32

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

2007-02-20 Thread Satyam
sites in the world, and they don't mind 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] round to nearest 500?

2007-02-13 Thread Satyam
fe number representations that produce the error, not the mathematics of rounding, which actually work 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. A

Re: [PHP] print() or echo

2007-02-13 Thread Satyam
into the trouble of setting up a return value, 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 d

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: Sent: Monday, February 12, 2007 2:52 AM Subject: [PHP] Re: Pasar varialbe sin GET Disculpa. Por casualidad no tienes una Web donde explique como hacerlo fácilmen

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

2007-02-07 Thread Satyam
on and do 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 --

Fw: [PHP] Regular Expression

2007-02-05 Thread Satyam
- Original Message - From: "H.T" <[EMAIL PROTECTED]> To: 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 documentation: The Re

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]>; Sent: Sunday, February 04, 2007 3:45 PM Subject: RE: [PHP] Read file on file system in simple like this

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: &qu

Re: [PHP] Login script login

2007-02-02 Thread Satyam
u are right to be as helpful as possible, 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.p

Re: [PHP] Help wtih a query?

2007-01-31 Thread Satyam
might be gained from writing 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 unsu

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

2007-01-28 Thread Satyam
Saturday 27 January 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

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

2007-01-27 Thread Satyam
other than 0 or 1 it then complains. So, unable 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 eas

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)

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]> 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

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

2007-01-26 Thread Satyam
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); ?> - Original Message - From: "Richard Lynch" <[EMAIL PROTECTED]> To: "Jon Anderson" <[EMAIL PROTECTED]> Cc: "blackwater dev" <[EMAIL

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: Sent: Wednesday, January 24, 2007 10:44 PM Subject: [PH

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: Sent: Sunday, January 21, 2007 3:58 PM Subject: Re: [PHP] most powerful php editor God I love this list.. great answers everyone! (serious a

[PHP] Using gettext

2007-01-12 Thread Satyam
s gettext compiled into their PHP, you just tell it where the .mo file is and it reads it into an array. 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] Forms and destroying values

2007-01-12 Thread Satyam
t passing through the database transaction. Satyam - Original Message - From: "Beauford" <[EMAIL PROTECTED]> To: "'PHP'" Sent: Friday, January 12, 2007 5:23 PM Subject: RE: [PHP] Forms and destroying values So the answer is, there is no way t

Re: [PHP] Forms and destroying values

2007-01-12 Thread Satyam
ase update. 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" Sent: Friday, January 12, 2007 9:27 AM Subject: [PHP] Forms and des

Re: [PHP] Handling SimpleXMLElements

2007-01-11 Thread Satyam
ith regarding to using var_dump() (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 d

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]&

[PHP] Handling SimpleXMLElements

2007-01-11 Thread Satyam
ere. ----$cell->p[1]- object(SimpleXMLElement)#10 (1) { [0]=> string(8) "Ngultrum" } 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] Security with dbHost, dbUser, dbPassword

2007-01-11 Thread Satyam
- Original Message - From: "Jochem Maas" <[EMAIL PROTECTED]> To: "Satyam" <[EMAIL PROTECTED]> Cc: ; "Otto Wyss" <[EMAIL PROTECTED]> Sent: Thursday, January 11, 2007 12:16 AM Subject: Re: [PHP] Security with dbHost, dbUser, dbPassword S

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

2007-01-10 Thread Satyam
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   >