[PHP] unicode

2006-04-14 Thread suresh kumar
Hi to all, we completed one module of our project in English language.but our client asked to do it in chinesse language also.I dont have any idea regarding this.whether we have to download any chinesse fonts or is there any tutorials available for this purpose.or project is in

Re: [PHP] unicode

2006-04-14 Thread Jochem Maas
go away and RTFM, STFW, anything but ask another question here until you can show even the slightest inclination to do you're own research and that you'll bother to response to people when then do actually give answers (like maybe a thank you if someone does actually help you, for instance).

Re: [PHP] unicode

2006-04-14 Thread Wolf
And they wonder why labor is so cheap in India and they keep sending jobs and opening call centers and such over there... They read scripts all day, you would think that they would know how to Google. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] how should MS Access DATETIME be handled in PHP?

2006-04-14 Thread Bing Du
While all the data-munging in PHP is very interesting... Might I suggest that you just use MySQL's date_format() function to ask MySQL to give you the data you want in the first place? Some purists would claim that the database is not the place to put presentation logic, of course. And

[PHP] httpd: PHP Notice: Undefined index: autoplay

2006-04-14 Thread Noah
Hi there, I just upgraded to apache2.2.0 and reinstalled php4-4.4.2_1 on a FreeBSD 4.11 machine. I am trying to make sure that my PHP is properly installed and configured. I am seeing the following PHP Notice about 10 entries a day in my /var/log/messages in regards to: --- snip -- httpd:

[PHP] httpd: PHP Notice: Undefined index: autoplay

2006-04-14 Thread Noah
Hi there, I just upgraded to apache2.2.0 and reinstalled php4-4.4.2_1 on a FreeBSD 4.11 machine. I am trying to make sure that my PHP is properly installed and configured. I am seeing the following PHP Notice about 10 entries a day in my /var/log/messages in regards to: --- snip -- httpd:

[PHP] httpd: PHP Notice: Undefined index: autoplay

2006-04-14 Thread Noah
Hi there, I just upgraded to apache2.2.0 and reinstalled php4-4.4.2_1 on a FreeBSD 4.11 machine. I am trying to make sure that my PHP is properly installed and configured. I am seeing the following PHP Notice about 10 entries a day in my /var/log/messages in regards to: --- snip -- httpd:

Re: [PHP] httpd: PHP Notice: Undefined index: autoplay

2006-04-14 Thread Peter Hoskin
Thanks for the duplicate posts. Perhaps read the error message? Look at line 9 of /a/www/data/filname/garbled/radio.blog/index.php The variable is being set incorrectly. Regards, Peter Hoskin Noah wrote: Hi there, I just upgraded to apache2.2.0 and reinstalled php4-4.4.2_1 on a FreeBSD

Re: [PHP] PHP Post forms

2006-04-14 Thread Joe Henry
On Thursday 13 April 2006 8:44 pm, Stephen Johnson wrote: On 4/13/06 7:40 PM, Gary E. Terry [EMAIL PROTECTED] wrote: Quite possibly a stupid question, but here goes. I have a form that is a list of jobs. On that list is a checkbox. The form field is named 'changedate'. I also have a

[PHP] how to reload a PHP page via PHP code

2006-04-14 Thread Alain Roger
Hi, I would like to know if it exist a method to reload a PHP page via PHP code ? the topic behind is that i do not want to specify the PHP page to reload. It must reload the actual page only. for example, if use views the page : test.php and click on US flag image. PHP should reload this page

RE: [PHP] how to reload a PHP page via PHP code

2006-04-14 Thread Jay Blanchard
[snip] I would like to know if it exist a method to reload a PHP page via PHP code ? the topic behind is that i do not want to specify the PHP page to reload. It must reload the actual page only. for example, if use views the page : test.php and click on US flag image. PHP should reload this page

Re: [PHP] unicode

2006-04-14 Thread tedd
At 9:25 AM -0400 4/14/06, Wolf wrote: And they wonder why labor is so cheap in India and they keep sending jobs and opening call centers and such over there... They read scripts all day, you would think that they would know how to Google. Maybe we could open a call center here for answers to

Re: [PHP] how to reload a PHP page via PHP code

2006-04-14 Thread Richard Collyer
Alain Roger wrote: Hi, I would like to know if it exist a method to reload a PHP page via PHP code ? the topic behind is that i do not want to specify the PHP page to reload. It must reload the actual page only. for example, if use views the page : test.php and click on US flag image. PHP

RE: [PHP] PHP Post forms

2006-04-14 Thread Gary E. Terry
Sorry, should have posted lastnight.. Stephen Johnson helped out a lot, it's working great now. Thanks for the relpy though -Original Message- From: Joe Henry [mailto:[EMAIL PROTECTED] Sent: Friday, April 14, 2006 11:44 AM To: php-general@lists.php.net Cc: Stephen Johnson; Gary E.

[PHP] mysql and php

2006-04-14 Thread benifactor
i was wondering what is the most secure way to use mysql in php. is there a certain way it should be done or a way that is more secure than another? iv'e seen it done many ways and was wondering if it was just preference or a if there was a reason behind it. if you guys could post some

RE: [PHP] how to reload a PHP page via PHP code

2006-04-14 Thread Jay Blanchard
[snip] Sorry, but i do not find it in my PHP manual :-( [/snip] http://www.php.net/manual/en/reserved.variables.php It is actually the first one mentioned on the page. :( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql and php

2006-04-14 Thread Rory Browne
Display the different ways in which you've seen php using mysql, and we'll see if any one of them is any more secure than another. Most Security issues can be left to MySQL and the MySQL API. A few pointers - Store parameters(username/password) outside the DocuementRoot. Put your server on local

Re: [PHP] unicode

2006-04-14 Thread Wolf
And Maybe get all that government subsidized money for bringing in jobs to a location that lost them due to a call center closing... yeah, that's the ticket!! tedd wrote: At 9:25 AM -0400 4/14/06, Wolf wrote: And they wonder why labor is so cheap in India and they keep sending jobs and

[PHP] 2 questions: Search in array and detect JS

2006-04-14 Thread Ryan A
Hi, Like the subject says; I have two questions: 1) Is it possible to detect JavaScript via php... and yes I do know that JS is client side while PHP is server...but how else to do it? The reason I ask is before serving an AJAX page I would like to make sure JS is enabled, if not, serve the other

Re: [PHP] how to reload a PHP page via PHP code

2006-04-14 Thread benifactor
i reload my pages with a function using a meta tag... ?php // $sec is the amount of seconds you want to wait before it redirects //$url id the pace you want it to redirect to function redirect ($sec, $url) { ? meta http-equiv=refresh content=?=$sec;?;URL=?=$url;? ?php } //to use to refresh a

Re: [PHP] 2 questions: Search in array and detect JS

2006-04-14 Thread tedd
Ryan: First question. Technically no, you can't detect js from php. However, I read where one can detect if a user has cookies on by sending a cookie and then reading it back. And considering that you can send a cookie via js, you could do that. However, that would mean that the user had to

RE: [PHP] php - mysql problem

2006-04-14 Thread Jay Blanchard
[snip] $sql = SELECT * FROM `table1` LEFT JOIN `table2` USING `id` WHERE ... GROUP BY `table1`.`id`; mysql_query($sql); the problem is, that, when in table2 is not matching data using that id, i lose that id from output array. but i don`t want to.. is there any posibility to keep that id?

Re: [PHP] serialize() function

2006-04-14 Thread tedd
Jochem: $_SESSION has another advantage - everything you stick in it is automagically serialized and unserialized at end/start of the request. I didn't know that. Thanks, now I have to figure out a way to store a $_SESSION in a cookie and read it back without inferring with what the user is

Re: [PHP] 2 questions: Search in array and detect JS

2006-04-14 Thread Robert Cummings
On Fri, 2006-04-14 at 13:34, tedd wrote: Ryan: First question. Technically no, you can't detect js from php. However, I read where one can detect if a user has cookies on by sending a cookie and then reading it back. And considering that you can send a cookie via js, you could do that.

Re: [PHP] php - mysql problem

2006-04-14 Thread cajbecu
thanks for your posting, but I have: table1 id name value table2 id x y i want to id name value x y but there is no id from table 2 that is in table2.id and i want the resource to bu something like this: id(from table 1) name value (empty) (empty) Jay Blanchard wrote: [snip] $sql =

RE: [PHP] php - mysql problem

2006-04-14 Thread Jay Blanchard
[snip] table1 id name value table2 id x y i want to id name value x y but there is no id from table 2 that is in table2.id and i want the resource to bu something like this: id(from table 1) name value (empty) (empty) SELECT table2.* FROM table1 LEFT OUTER JOIN table2 ON(table1.id =

RE: [PHP] php - mysql problem

2006-04-14 Thread Jay Blanchard
[snip] SELECT table1., *table2.* FROM table1 LEFT OUTER JOIN table2 ON(table1.id = table2.id) [/snip] Oops, typo. SELECT table1.*, table2.* FROM table1 LEFT OUTER JOIN table2 ON(table1.id = table2.id) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] php - mysql problem

2006-04-14 Thread cajbecu
thanks a lot for your posting, [cut] Posted by Fred Mitchell on December 11 2004 2:47pm [Delete] [Edit] Let's say you are doing a LEFT JOIN with a table that shares a column name in common with another table, and that you are selecting for instances where the join is missing, that is IS

RE: [PHP] return a formatted difference between two dates

2006-04-14 Thread Jay Blanchard
[snip] is there a function to take a second count and return it as a formatted difference? like a date_diff('H hours i',6133) that uses date()'s formatting. [/snip] http://www.php.net/mktime -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 2 questions: Search in array and detect JS

2006-04-14 Thread Ryan A
Hey Tedd / Robert, Thanks for replying. -- Tedd: However, I read where one can detect if a user has cookies on by sending a cookie and then reading it back. And considering that you can send a cookie via js, you could do that. However, that would mean that the user had to

Re: [PHP] serialize() function

2006-04-14 Thread Jochem Maas
tedd wrote: Jochem: $_SESSION has another advantage - everything you stick in it is automagically serialized and unserialized at end/start of the request. I didn't know that. Thanks, now I have to figure out a way to store a $_SESSION in a cookie and read it back without inferring with

[PHP] Compacting multiple spaces...

2006-04-14 Thread Geoffrey E. Quelch
Hi, I am running a self-compiled PHP version 4.4.2 on Apache 1.3.34 on White Box Enterprise Linux 3. I found a problem in my database access code (Oracle 9.2.0.4 if it matters) and have determined that spaces in string variables are being compacted on output in PHP. This PHP extract, when

Re: [PHP] Compacting multiple spaces...

2006-04-14 Thread Ray Hauge
On Friday 14 April 2006 12:15, Geoffrey E. Quelch wrote: Hi, I am running a self-compiled PHP version 4.4.2 on Apache 1.3.34 on White Box Enterprise Linux 3. I found a problem in my database access code (Oracle 9.2.0.4 if it matters) and have determined that spaces in string variables are

[PHP] make keys of a associative array DB field names?

2006-04-14 Thread Bing Du
Hi, Would anybody remind me how this should be achieved? This returns all the names of the fields. while( ($f = odbtp_fetch_field( $qry )) ) { echo $f-name . \n; } This returns the query results: while( ($rec = odbtp_fetch_array($qry)) ) { foreach ($rec as $var) { echo

Re: [PHP] make keys of a associative array DB field names?

2006-04-14 Thread Paul Novitski
At 12:54 PM 4/14/2006, Bing Du wrote: Would anybody remind me how this should be achieved? This returns all the names of the fields. while( ($f = odbtp_fetch_field( $qry )) ) { echo $f-name . \n; } This returns the query results: while( ($rec = odbtp_fetch_array($qry)) ) {

Re: [PHP] Compacting multiple spaces...

2006-04-14 Thread Satyam
It is not PHP but HTML. In HTML any 'whitespace character', that is space, tab or new line, is taken as a single whitespace character. It has nothing to do with PHP. You can either replace them with nbsp; which prints as a space but doesn't fall into the category of 'whitespace character'

Re: [PHP] Compacting multiple spaces...

2006-04-14 Thread Paul Novitski
At 12:15 PM 4/14/2006, Geoffrey E. Quelch wrote: even though the string does contain 9 consecutive spaces, only one is ever printed to the screen with echo, print or printf. At 01:19 PM 4/14/2006, Satyam wrote: It is not PHP but HTML. In HTML any 'whitespace character', that is space, tab

Re: [PHP] SQL result

2006-04-14 Thread Kevin Kinsey
Mohsen Pahlevanzadeh wrote: Dear all, I remember that i use a func that it return an array what it consist of result of my sql query. Please name me that. Yours,Mohsen Was it mysql_fetch_array()? Which SQL was it? Also, are you aware that even entering an incorrect function name at

Re: [PHP] Compacting multiple spaces...

2006-04-14 Thread Geoffrey E. Quelch
On Friday 14 April 2006 10:07 pm, you wrote: I don't have any further suggestions to make; it sounds like you're looking at all the right things. I hope you find the problem by stripping it down to the bare bones. Please post your findings to the list whether you figure it out or not.

RE: [PHP] MS SQL extension not loading

2006-04-14 Thread Bagus Nugroho
I have experience with loading mysql.dll and other module which unable to load, even the module is exist on the path. In my problem, it was solved by put php directory (c:/php) on windows system variables (Environment Variables), please check Instalation FAQ(5.14) of PHP Manual. It look like,