[PHP] PHP:Problem with Japanese data
Hi Gurus, I am using PHP 4.3.8 on Linux with Postgres 7.3.4. The problem is I am unable to insert some japanese datat in the database using PHP. I am sending you the character which gives problem, its "能". The problem arises when user enters only this characters and tries to save. If this character is in between a string then data gets inserted but, when I retrieve the data from database. The above given character is corrupted. Can anybody please help me this regard. Thanking you all in anticipation. Regards, Umesh. *** Umesh A. Deshmukh. manas solutions pvt. ltd. +91-20-4223991/2 ***
Re: [PHP] Optimizing Tips
Hi, Please check if 1) you have used recordsets, you have closed it at proper places. 2) connection objects are closed or not. These are some of the things in case of PHP. While coding , pls. follow. to open only one connection with the database. Regards, Umesh. - Original Message - From: Vinayakam Murugan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 05, 2004 4:17 PM Subject: [PHP] Optimizing Tips Hello I am a fresh PHP programmer and am part of a team developing a LAMP based website. The problem we are facing is that when the site was hosted on a local server, it was quite fast. Now that we have to use the internet to get to it, it has become very slow even keeping in mind considerations like connection speed . Any pointers on what how optimizations can be done? -- Warm Regards ~~~ Vinayakam Murugan Tel: 91-22 - 2288 2163 Ext 121 Help Desk: 91-22 - 2288 2774 Fax Number: 91-22 - 2288 2809 Mobile : 022-31018082 http://www.TheArgonCompany.com Viruses getting you down? Get your virus protected mailbox at http://www.tassm.com Linux. The Choice of the GNU generation -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] session and mysql connection identifier
Hi, Please check if you have put session_start() on script2. Umesh. -Original Message- From: mukta telang [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 11:18 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [PHP] session and mysql connection identifier Hi, I want to use mysql persistent connection to connect to mysql and use the connection identifier or handle in subsequent pages/scripts. So in script1.php I have session_start(); session_register('conn'); HTTP_SESSION_VARS['conn']=mysql_pconnect(...); and in script2.php I have, echo $conn; and I always get 1 as output and not Resource#.. as expected.. Please help, regards, Mukta __ Do you Yahoo!? Vote for the stars of Yahoo!'s next ad campaign! http://advision.webevents.yahoo.com/yahoo/votelifeengine/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Testing if cookies are enabled
Hi, You can check if browser cookies are enabled or not by using follow. given JavaScript functions. //** jsfunc.js ***// function f_ReadCookie(cookieName) { if (cookieName == ) { return; } var theCookie=+document.cookie+((/) ? ; path= + / : ) ; var ind=theCookie.indexOf(cookieName); if (ind==-1 || cookieName==) return ; var ind1=theCookie.indexOf(';',ind); if (ind1==-1) ind1=theCookie.length; return unescape(theCookie.substring(ind+cookieName.length+1,ind1)); / read cookie / /* Cookie Check function call / f_WriteCookie(ckTmp,Y); // write temp. cookie sVal = f_ReadCookie(ckTmp); // read this value again if (sVal != Y) { return false; } return true; } function f_WriteCookie(name, value) { if (name == ) { return false; } if (value != null) { var curCookie = name + = + escape(value) + ((/) ? ; path= + / : ) //+ document.cookie = curCookie; } }// write cookie function f_CheckBrowserCookie() { // Cookie Check function call f_WriteCookie(ckTmp,Y); // write temp. cookie sVal = f_ReadCookie(ckTmp); // read this value againbr if (sVal != Y) { return false; } return true; } //** Use follow. given function in Onload of Body of HTML file of Login page ***// SCRIPT language=JavaScript function CheckBrowserCookie() { if(!f_CheckBrowserCookie()) alert('Browser cookies are disabled.Please enable them.'); } /SCRIPT // *** in onload call it as below **// body bgcolor=#C7D1F1 leftmargin=0 marginheight=0 marginwidth=0 topmargin=0 onLoad=CheckBrowserCookie(); With these functions you will be able to check if the cookies are enabled or disabled. Regards, Umesh. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Cookies
Hi, I want to use cookies in one of my applications. I want to know the details about the Domain parameter of setcookie function. What is significance of Domain parameter ? How the use of Domain parameter helps us for authentication using cookie ? Please help me in this regard. Thanking you in anticipation. Regards, Umesh.
RE: [PHP] PHP
Hi, You can visit www.phpclasses.org There are n number of classes given for validation. Regards, Umesh. -Original Message- From: Brent Clark [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 09, 2004 5:28 PM To: Cheung Pui Pan; [EMAIL PROTECTED] Subject: RE: [PHP] PHP hi is this a joke -Original Message- From: Cheung Pui Pan [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 09, 2004 11:03 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP Dear Sir/Madam, I would like to make a page on which people may add records to a table and view them (As my web server does not support MYSQL, I may have to do it on text files). I would also like to sort them by descending order of time. Can you please tell me which functions are available for the following items I want to do? If possible, can you write a sample code for me? Thank you for your time and attention. *Date / Time *Name *E-mail (Check them too please) *Company *Vehicle *Route (Original) *Route (Now on) *Notes Yours faithfully, Cheung Pui Pan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP5-Perl extension
Hi, We are using PHP5 on linux, basically we are interested in working with PHP5-perl extension. We are using Movable Type library for blog. We have problem in using object of Movable Type (perl library) in PHP. Can anybody guide me on how to use Perl Object in PHP5. Thanking in anticipation. Regards, Umesh.
[PHP] Problem with mail subject
Hi Gurus, I am using PHP4, I am using mail function which has Japanese subject, I am using 'iso-2022-jp' charser for japanese mail body. The problem the Japanese subject is seen corrupted, can anyone pls. tell me what should I do to change the charset of Subject to 'iso-2022-jp' so that the subject won't be seen corrupted. Regards Umesh. = Umesh A. Deshmukh. Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]