Re: [PHP] Javascript detection , working version

2007-01-02 Thread Satyam
onally you may get "javascript not detected" since the meta redirect would occur when in fact javascript is enabled. Cheers, Rob. -- What I usually do is to make the entry page the one that would be used without JavaScript and branch only if JavaScript is present. Satyam -- PHP Genera

Re: [PHP] Javascript detection , working version

2007-01-02 Thread Satyam
- Original Message - From: "Robert Cummings" <[EMAIL PROTECTED]> What I usually do is to make the entry page the one that would be used without JavaScript and branch only if JavaScript is present. Yeah, that was what I did :) Cheers, Rob. -- Sorry, it seems I mi

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: 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 where i wanto to con

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

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

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

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

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

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

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

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

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

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: [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] 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] 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] 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] 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] 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] 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
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] 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] 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] 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] 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] 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] 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] 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] 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] 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] "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] 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] 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] 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
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
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] '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] '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] 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] 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] 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

[PHP] XML/HTML specific instructions

2005-03-30 Thread Satyam
This is just an idea I'm (quite unsuccessfully) been working on. It appears to me that PHP sits between a database and a web browser. On the database side, something I would love to have is embedded SQL, as it exists in some other languages such as C (for example, see: http://www.csee.umbc.edu

Re: [PHP] XML/HTML specific instructions

2005-03-31 Thread Satyam
"Burhan Khalid" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Satyam wrote: >> This is just an idea I'm (quite unsuccessfully) been working on. >> >> It appears to me that PHP sits between a database and a web browser. >> >>

Re: [PHP] pass variable from vbscript to php

2005-04-04 Thread Satyam
ly with a 0 or 1, you will get that by having an function attached to the onLoad event of the . The onLoad will be triggered when a response is finally received. The reply you will get as document.getElementById('iframename').document.body.innerHTML which you could check by doing a:

[PHP] Re: MySQL empty row

2005-04-04 Thread Satyam
instructions Satyam "Neo Theone" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Until some time I could make a new empty line in mysql with this query: > INSERT INTO `".$_SESSION['type']."`() VALUES () > where $_SESSION['type'

Re: [PHP] Exchanging Data among processes

2005-04-04 Thread Satyam
Perhaps a memory based database? http://dev.mysql.com/doc/mysql/en/memory-storage-engine.html Might not be supported by all ISPs, though. "Matheus Degiovani" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Chris, > >> Matheus, >> As a start I would check out using sockets:

[PHP] Re: Accented character 'echo'ed randomly

2005-04-05 Thread Satyam
Do you have a : in the section? Sometimes the browser tries to figure out the charset, just as it figures to assume an when it finds a new and if figures out so many things, sometimes it simply fails. Otherwise, use htmlentities() to escape characters not plain USASCII Satyam "

Re: [PHP] Creating INSERT INTO statement from dbf file

2005-04-05 Thread Satyam
You can either put a flag indicating your first time around the field loop and add the comma before each field, when it is not the first time around, or build the fieldname and fieldvalue list on a string and then trim out the last character once the loop is finished. "Rahul S. Johari" <[EMAIL

Re: [PHP] Help. Floats turning into really small numbers? x.xxxxxxxxxxxxxxxxxxxxxxE-xx- Narrowed it down!

2005-04-05 Thread Satyam
of the least significant digits. You can do either by yourself, that is, have all currency internally represented as cents and scale it to full units when showing it, or round off at two cents after each calculation. Satyam "Anthony Tippett" <[EMAIL PROTECTED]> wrote in mess

Re: [PHP] Accented character 'echo'ed randomly

2005-04-05 Thread Satyam
to define the character set, as I mentioned in a previous reply. Satyam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Browser problem

2005-04-05 Thread Satyam
I think the #, if meant as a bookmark, should go before the ?: pag.php#print?var=1 If it is not meant as a bookmark, then it should be urlencoded Satyam "Ja Ko" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > I have a little problem: > The fol

Re: [PHP] Accented character 'echo'ed randomly

2005-04-05 Thread Satyam
"John Coppens" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, 5 Apr 2005 19:14:17 +0200 > [EMAIL PROTECTED] (Satyam) wrote: > >> One think I can tell you for sure because I just checked is that >> Microsoft does not list 'l

[PHP] Re: Simple array question, array delete

2005-04-06 Thread Satyam
Anyway, as the replies already show, you have to have a key to identify the record to be deleted, otherwise, I don't see there can be a way. Why don't use the data as key as well? Satyam "Ryan A" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hey

[PHP] Re: Str_replace?

2005-04-07 Thread Satyam
Try htmlentities(), its purpose is to escape those special characters, and it should work with any language. Satyam "Ryan A" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hey, > > I am making a site primary for the Swedish audiance, Swedish alphabets a

[PHP] Re: loading data from database

2005-04-10 Thread Satyam
ou to still see the records of one table even if there is no corresponding record on the other table. Satyam "Micha Biegnolé" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, I am a student of multimedia design. > > I have two tables in a database wi

[PHP] Re: PHPMaker - your opinions...

2005-04-12 Thread Satyam
alike, and those can easily be automated. Satyam "Chris Ramsay" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello all, > > I'm curious - has anyone on the list ever used PHPMaker? I apologise > in advance if this is heresy; the reason I am asking i

Re: [PHP] User Management

2005-04-13 Thread Satyam
e you can say which group can use it (if you didn't use the third level) or which permission is required to see it. Satyam "Dasmeet Singh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks.. > > And how to manage user and their permissions.. sh

[PHP] Re: database querying form in php

2005-04-13 Thread Satyam
le sheet with a class 'Listado' somewhere. Satyam $result = mysql_query($_REQUEST['Query']) or die("Query failed : " . mysql_error()); echo "" . $_REQUEST['Query'] . ""; /* Printing results in HTML */ echo "\n"

[PHP] Re: query error

2005-04-16 Thread Satyam
I believe the \ preceding the last % makes it a literal % not the wildcard % "pete M" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've got a database table with a whole list of "windows" file paths. > > eg > Advent Tower PC\C\Program Files\Microsoft Office\Microsoft Binder.lnk >

[PHP] Re: trying to send mail via localhost

2005-04-16 Thread Satyam
I think the specs are in RFC 822. You should find if there. Satyam "AndreaD" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > When trying to send mail via localhost I get the following error > > Warning: mail() [function.mail]: SMTP server response:

[PHP] Re: mysql blob datatype for documents

2005-04-18 Thread Satyam
o real gain. If you have lousy security, you can have it in MySql or in your directories. Satyam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP script problem (with MySQL)

2005-04-19 Thread Satyam
ad, you avoid the % at the begining, some index information can be used. You might also want to check FullText searches Satyam "Sugimoto" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > I need your help about PHP (ver 4.3.1) and MySQL (ver 3.23) da

[PHP] Re: Thanks but problem again! Re: [PHP] PHP script problem (with MySQL)

2005-04-19 Thread Satyam
. mysql_error()) to your query to trap the error. Satyam "Sugimoto" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thank you, Richard, > > I simply change this part > (select * from openart_table) into > (select substring(loc1, 1, 3) as THREE_LETTER_C

[PHP] Re: 1 web site, 3 servers, 3 countries - best practises?

2005-04-21 Thread Satyam
and budgeting problems, I would rather keep just one server farm fed from multiple international locations. Satyam "Richard Davey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > Are there any recommended readings (books, blogs, site art

  1   2   3   >