[PHP] php + mysql + japanese???

2004-04-02 Thread Luis Mirabal
hi! i have developed a web site in php using mysql 3.x and have to implement it in japanese, it seems that i have to use unicode/UTF-8, but i am having problems with mysql... anyone could help or anyone knows of any resource that helps in doing this? thanx in advance, luis -- PHP General Mailin

[PHP] Re: Stupid question

2004-03-17 Thread Luis Mirabal
t;c; } sorry :P luis. "Luis Mirabal" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > when you are working with classes and objects in php, and you are coding > inside a class, you must use the $this variable to access the members of the > class, for

[PHP] Re: js date picker

2004-03-17 Thread Luis Mirabal
l be happy to help with PHP-related questions. As for JavaScript > stuff, use Google to find a good resource. :-) > > Luis Mirabal wrote: > > > anyone knows a good javascript date picker, i need it to be compatible with > > all major browsers > > > > thx, >

[PHP] Re: Stupid question

2004-03-17 Thread Luis Mirabal
when you are working with classes and objects in php, and you are coding inside a class, you must use the $this variable to access the members of the class, for example: class test { //Class vars (something like properties) var $a; var $b; var $c; var $sum; //Class functi

[PHP] js date picker

2004-03-17 Thread Luis Mirabal
anyone knows a good javascript date picker, i need it to be compatible with all major browsers thx, luis. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Regular expression checker

2004-03-17 Thread Luis Mirabal
an excelent tool: The Regex Coach, its free and you can grab it from http://weitz.de/regex-coach/ and its available for windows and linux! luis. <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Hello all, > > For a while I tried in vain to find a decent regular expression teste

[PHP] Re: $_FILE

2004-03-16 Thread Luis Mirabal
it is not $_FILE, it is $_FILES :P luis. "Bruno Santos" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Hello. > > I've read in a book that we can access several file properties (when > uploading a file) in two ways: > > 1st with the array $_FILE > 2nd with $HTTP_POST_FILE

[PHP] mappath and unmappath function

2004-03-16 Thread Luis Mirabal
does someone knows a function to map a server path to a fs path, and a function that does the inverse? i mean, if you have /var/www/html/script and applies function unmappath, it returns /script and if apply mappath to /script it returns /var/www/html/script. somebody has something like this? than

[PHP] Re: Calculate

2004-03-16 Thread Luis Mirabal
from sql?? if you are doing: select ... count(date) ...from ... where ... do: select ... count(date) ...from ... where ... group by date luis. "Tommi Virtanen" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Hi! > > How I can calculate following: > > I have table: > id(int)

Re: [PHP] dbg extension...

2004-03-16 Thread Luis Mirabal
yes, i found that the extension functions only works in debug sessions, so i replaced it by Xdebug, it is very cool, i recommend it! http://www.xdebug.org/ luis. "Tom Rogers" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Hi, > > Tuesday, March 16, 2004, 9:51:46 AM, you wrote

Re: [PHP] Printing landscape

2004-03-15 Thread Luis Mirabal
actually, you can control your printer, look: http://www.php.net/manual/en/function.printer-set-option.php you have to do: $handle = printer_open(); printer_set_option ($handle, PRINTER_ORIENTATION , PRINTER_ORIENTATION_LANDSCAPE); printer_close($handle); you've got many interesting options wit

[PHP] Re: Problem with mkdir() under windows.

2004-03-15 Thread Luis Mirabal
mmmh... i think your problem isn't in mkdir, it is in evil MAGIC QUOTES! (they are on by default) if you are getting the name of the directory from GET, POST or COOKIE, check the get_magic_quotes_gpc(), else check get_magic_quotes_runtime(), if the problem is in get_magic_quotes_runtime(), you c

Re: [PHP] current url function

2004-03-15 Thread Luis Mirabal
saje news:[EMAIL PROTECTED] > Luis Mirabal wrote: > > hey! i am working in an open source development, and have done a function > > that gives me the current url, but i need it to work always, everywhere, in > > every server with all browsers, could you tell me if you think it wi

[PHP] dbg extension...

2004-03-15 Thread Luis Mirabal
hey guys, i have a question on dbg extension, i want to get debug details using the functions from php, ie. dbg_get_profiler_results, but they return nothing... i am developing on windows using apache and php 4.3, any suggestions? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] current url function

2004-03-15 Thread Luis Mirabal
hey! i am working in an open source development, and have done a function that gives me the current url, but i need it to work always, everywhere, in every server with all browsers, could you tell me if you think it will or if you have any suggestions? here is the code: /* Returns the curren

[PHP] Re: Screen Res

2004-03-10 Thread Luis Mirabal
please post the code, so we can see the errors luis. "Res0b8b6" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > I am trying to get the users screen res into a var for php. And I have > the Javascript that gets the screen res. But when I try to put that into > a var, it puts it

[PHP] Re: what does this mean?

2004-03-10 Thread Luis Mirabal
the casting is as follows, any value distinct from zero, null or empty string is converted to true, else the it is converted to false "Harry Wiens" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > $this->styles['shadow'] = (boolean)$bool; >

Re: [PHP] arrays, loops, vars and props

2004-03-10 Thread Luis Mirabal
i would do it this way function MyClass() { $this->myArray = range(0, 99); } luis. "Chris W. Parker" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] Jason Davidson on Wednesday, March 10, 2004 12:25 AM said: > would the following example be

[PHP] Re: Passing array from class to class produces more than one result...

2004-03-10 Thread Luis Mirabal
mmmh... i think its not coded the right way, first of all, you shouldn't put this: $this->setArray(@mysql_fetch_array($this->getResultID())); in the Select method, you should do it in your FetchArray method, every time it gets called, and return the value directly or false if there are no more ro