[PHP] PHP:Problem with Japanese data

2004-08-19 Thread Umesh Deshmukh
Hi Gurus,
(B
(BI am using PHP 4.3.8 on Linux with Postgres 7.3.4.
(BThe problem is I am unable to insert some japanese datat in the database
(Busing PHP.
(BI am sending you the character which gives problem, its "$BG=(B".
(BThe problem arises when user enters only this characters and tries to save.
(BIf this character is in between a string then data gets inserted but, when I
(Bretrieve the data from database.
(BThe above given character is corrupted.
(B
(BCan anybody please help me this regard.
(B
(BThanking you all in anticipation.
(B
(BRegards,
(B
(BUmesh.
(B***
(BUmesh A. Deshmukh.
(Bmanas solutions pvt. ltd.
(B+91-20-4223991/2
(B***

Re: [PHP] Optimizing Tips

2004-08-05 Thread Umesh Deshmukh
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

2004-07-20 Thread Umesh Deshmukh
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

2004-06-22 Thread Umesh Deshmukh
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

2004-06-15 Thread Umesh Deshmukh
Hi,
(B
(BI want to use cookies in one of my applications.
(BI want to know the details about the Domain parameter of setcookie function.
(B
(BWhat is significance of Domain parameter ?
(BHow the use of Domain parameter helps us for authentication using cookie ?
(B
(BPlease help me in this regard.
(B
(BThanking you in anticipation.
(B
(BRegards,
(B
(BUmesh.

RE: [PHP] PHP

2004-06-14 Thread Umesh Deshmukh

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

2004-06-07 Thread Umesh Deshmukh
Hi,
(B
(BWe are using PHP5 on linux, basically we are interested in working with
(BPHP5-perl extension.
(BWe are using Movable Type library for blog. We have problem in using object
(Bof Movable Type (perl library) in PHP.
(B
(BCan anybody guide me on how to use Perl Object in PHP5.
(B
(BThanking in anticipation.
(B
(BRegards,
(B
(BUmesh.

RE: [PHP] getting message from file

2004-03-09 Thread umesh
Hi,
(B
(BTry using follow.
(B
(B$sContents=file_get_contents("filename");
(B$sContents=split("",$sContents);
(B
(BAnde then you will be able to use the values for plotting a graph.
(B
(BRegards,
(B
(BUmesh.
(B
(B-- 
(BPHP General Mailing List (http://www.php.net/)
(BTo unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Apache per directory setting

2004-01-06 Thread umesh
The change of values will take place after you restart the Apache.
Try it once.

-Original Message-
From: Chris Lee [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 11:49 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Apache per directory setting


You need to use:

  php_value register_globals 1

I tried, but still fail, phpinfo still show 
register_globals OffOff

Regards,
Chris Lee

-- 
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] Japanese character validation

2003-11-07 Thread umesh
Hi Gurus,
(B
(BI am new to PHP. I am using PHP4 on Linux.
(B
(BI have accept input from the user and check if the input is japanese
(Bcharacter only,
(Bfor example : If name is accepted , I need to check if its any of the
(BHiragana, Katakana or Kanji.
(B
(BI have enabled multibyte support while compiling PHP.
(B
(BAs there is jcode.pl in perl, I want to know if there is something in PHP.
(BCan anybody help me in this regard.
(B
(BThanking you in anticipation.
(B
(BRegards,
(B
(BUmesh.

RE: [PHP] Japanese character validation

2003-11-07 Thread umesh
Hi Edwin,

Original Message-
From: - Edwin - [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 2:02 PM
To: umesh
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Japanese character validation

Hi,

On Fri, 7 Nov 2003 12:58:51 +0530
umesh [EMAIL PROTECTED] wrote:

 Hi Gurus,

 I am new to PHP. I am using PHP4 on Linux.

 I have accept input from the user and check if the input is
 japanese character only,
 for example : If name is accepted , I need to check if its
 any of the Hiragana, Katakana or Kanji.

Hmm... why would you like to do that? I've never really seen
the need for that.

As there are fields called  Last  First Name (Kanji) and Last  First name (Kana) on 
my forms. Its the need of the application.
It would be great, If I could do that.

I'm sure there will be a lot of issues if you want to write
one yourself...
Actually, I have tried to do it, but it wont understand some characters. Like .

 I have enabled multibyte support while compiling PHP.

 As there is jcode.pl in perl, I want to know if there is
 something in PHP. Can anybody help me in this regard.

That's a library for character code conversion.

PHP can do that as well:

  http://www.php.net/mbstring

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/




RE: [PHP] Japanese character validation

2003-11-07 Thread umesh
No, Kanji  Kana are not charsets.
The form is having charset EUC-JP.

Umesh.

-Original Message-
From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:08 PM
To: umesh
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Japanese character validation


umesh wrote:
 As there are fields called  Last  First Name (Kanji) and Last  First
name (Kana) on my forms. Its the need of the application.
 It would be great, If I could do that.


Are Kanji and Kana chracter sets? Form cannot use more charsets. Charset
  that your script receives will be the same as the charset the page uses.

Marek

--
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] How to support Multi Lingual characters

2003-11-07 Thread umesh

(Byes, though compile PHP with japanese support, you can accept input in
(BEnglish as well.
(B
(BUmesh.
(B
(B-Original Message-
(BFrom: K. Praveen Kumar [mailto:[EMAIL PROTECTED]
(BSent: Friday, November 07, 2003 4:16 PM
(BTo: [EMAIL PROTECTED]; Praveen Kumar
(BSubject: [PHP] How to support Multi Lingual characters
(B
(B
(BDear List,
(B I would like to support Multi lingual characters using PHP in my
(Bapplication. How can I support? Does PHP automatically supports this
(Bfeature. Please let me know.
(B I will be really waiting for your suggestions
(B--
(BThanks  Regards
(BPraveen Kumar
(BSoftPro Systems Ltd
(B
(B--
(BPHP General Mailing List (http://www.php.net/)
(BTo unsubscribe, visit: http://www.php.net/unsub.php
(B
(B-- 
(BPHP General Mailing List (http://www.php.net/)
(BTo unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How to support Multi Lingual characters

2003-11-07 Thread umesh

(BDear Praveen,
(B
(BYes, you can do it very easily, first of all, please see if you have
(Bcompiled PHP with multibyte support,
(Bif not you will have to recompile the PHP with follow. options
(B--enable-mbstring=all or --enable-mbstring ( will enable only Japanese
(Blanguage support)
(B
(BRegards,
(B
(Bumesh.
(B
(B-Original Message-
(BFrom: K. Praveen Kumar [mailto:[EMAIL PROTECTED]
(BSent: Friday, November 07, 2003 4:39 PM
(BTo: umesh
(BCc: [EMAIL PROTECTED]
(BSubject: RE: [PHP] How to support Multi Lingual characters
(B
(B
(BDear Umesh,
(B Thanks for your quick reply. Let me explain the scenario:
(BWe have an application in English. The data will be stored in MySQL
(Bdatabase. If some body enter the data using Japanese keyboard (Japanese
(Blanguage) that will be stored in Japanese language only and should
(Bdisplay in the same language. Can it be done??
(B
(B--
(BThanks  Regards
(BPraveen Kumar
(BSoftPro Systems Ltd
(BOn Fri, 2003-11-07 at 16:17, umesh wrote:
(B yes, though compile PHP with japanese support, you can accept input in
(B English as well.
(B
(B Umesh.
(B
(B -Original Message-
(B From: K. Praveen Kumar [mailto:[EMAIL PROTECTED]
(B Sent: Friday, November 07, 2003 4:16 PM
(B To: [EMAIL PROTECTED]; Praveen Kumar
(B Subject: [PHP] How to support Multi Lingual characters
(B
(B
(B Dear List,
(B  I would like to support Multi lingual characters using PHP in my
(B application. How can I support? Does PHP automatically supports this
(B feature. Please let me know.
(B  I will be really waiting for your suggestions
(B --
(B Thanks  Regards
(B Praveen Kumar
(B SoftPro Systems Ltd
(B
(B --
(B PHP General Mailing List (http://www.php.net/)
(B To unsubscribe, visit: http://www.php.net/unsub.php
(B
(B
(B---SOFTPRO DISCLAIMER--
(BInformation contained in this E-MAIL and any attachments are confidential
(Bbeing  proprietary to SOFTPRO SYSTEMS  is 'privileged' and 'confidential'.
(BIf you are not an intended or authorised recipient of this E-MAIL or have
(Breceived it in error, You are notified that any use, copying or
(Bdissemination  of the information contained in this E-MAIL in any manner
(Bwhatsoever is strictly prohibited. Please delete it immediately and notify
(Bthe sender by E-MAIL.  In such a case reading, reproducing, printing or
(Bfurther dissemination of this E-MAIL is strictly prohibited and may be
(Bunlawful.  SOFTPRO SYSYTEMS does not REPRESENT or WARRANT that an attachment
(Bhereto is free from computer viruses or other defects.   The opinions
(Bexpressed in this E-MAIL and any ATTACHEMENTS may be those of the author and
(Bare not necessarily those of SOFTPRO
(BSYSTEMS. ---
(B-
(B
(B-- 
(BPHP General Mailing List (http://www.php.net/)
(BTo unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How to support Multi Lingual characters

2003-11-07 Thread umesh
Please refer the follow. URL.
(B
(Bhttp://www.php.net/manual/en/ref.mbstring.php
(B
(B-Original Message-
(BFrom: K. Praveen Kumar [mailto:[EMAIL PROTECTED]
(BSent: Friday, November 07, 2003 4:39 PM
(BTo: umesh
(BCc: [EMAIL PROTECTED]
(BSubject: RE: [PHP] How to support Multi Lingual characters
(B
(B
(BDear Umesh,
(B Thanks for your quick reply. Let me explain the scenario:
(BWe have an application in English. The data will be stored in MySQL
(Bdatabase. If some body enter the data using Japanese keyboard (Japanese
(Blanguage) that will be stored in Japanese language only and should
(Bdisplay in the same language. Can it be done??
(B
(B--
(BThanks  Regards
(BPraveen Kumar
(BSoftPro Systems Ltd
(BOn Fri, 2003-11-07 at 16:17, umesh wrote:
(B yes, though compile PHP with japanese support, you can accept input in
(B English as well.
(B
(B Umesh.
(B
(B -Original Message-
(B From: K. Praveen Kumar [mailto:[EMAIL PROTECTED]
(B Sent: Friday, November 07, 2003 4:16 PM
(B To: [EMAIL PROTECTED]; Praveen Kumar
(B Subject: [PHP] How to support Multi Lingual characters
(B
(B
(B Dear List,
(B  I would like to support Multi lingual characters using PHP in my
(B application. How can I support? Does PHP automatically supports this
(B feature. Please let me know.
(B  I will be really waiting for your suggestions
(B --
(B Thanks  Regards
(B Praveen Kumar
(B SoftPro Systems Ltd
(B
(B --
(B PHP General Mailing List (http://www.php.net/)
(B To unsubscribe, visit: http://www.php.net/unsub.php
(B
(B
(B---SOFTPRO DISCLAIMER--
(BInformation contained in this E-MAIL and any attachments are confidential
(Bbeing  proprietary to SOFTPRO SYSTEMS  is 'privileged' and 'confidential'.
(BIf you are not an intended or authorised recipient of this E-MAIL or have
(Breceived it in error, You are notified that any use, copying or
(Bdissemination  of the information contained in this E-MAIL in any manner
(Bwhatsoever is strictly prohibited. Please delete it immediately and notify
(Bthe sender by E-MAIL.  In such a case reading, reproducing, printing or
(Bfurther dissemination of this E-MAIL is strictly prohibited and may be
(Bunlawful.  SOFTPRO SYSYTEMS does not REPRESENT or WARRANT that an attachment
(Bhereto is free from computer viruses or other defects.   The opinions
(Bexpressed in this E-MAIL and any ATTACHEMENTS may be those of the author and
(Bare not necessarily those of SOFTPRO
(BSYSTEMS. ---
(B-
(B
(B-- 
(BPHP General Mailing List (http://www.php.net/)
(BTo unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem :file_exists japanese filename

2003-10-10 Thread umesh
Hi Gurus,
(B
(BI am using PHP4 on linux.
(B
(BI am reading the filename from querystring and display it in the browser.
(BBefore displaying , I am checking the existance of the file by using
(Bfile_exists.
(BIf the file name contains japanese characters, such as $BI4?M0l

RE: [PHP] Problem :file_exists japanese filename

2003-10-10 Thread umesh
Hi,
(B
(BIf I list out all filkes in the directory using php, it shows garbage
(Bfilenames (those which have japanese).
(B
(BUmesh.
(B
(B-Original Message-
(BFrom: Marek Kilimajer [mailto:[EMAIL PROTECTED]
(BSent: Friday, October 10, 2003 6:04 PM
(BTo: umesh
(BCc: [EMAIL PROTECTED]
(BSubject: Re: [PHP] Problem :file_exists  japanese filename
(B
(B
(BIs the codepage of filesystem and of the string the same? What do you
(Bsee if you list the files in the directory using php?
(B
(Bumesh wrote:
(B
(B Hi Gurus,
(B
(B I am using PHP4 on linux.
(B
(B I am reading the filename from querystring and display it in the browser.
(B Before displaying , I am checking the existance of the file by using
(B file_exists.
(B If the file name contains japanese characters, such as $BI4?M0l<s(B.pdf or $B$F(B
$B$9(B
(B $B$H(B.txt, file_exists returns false, though the
(B file exists at that location. Why ?
(B
(B I have compiled PHP with japanese support.
(B
(B Can anybody help me ?
(B
(B Thanking you in anticipation.
(B
(B Regards,
(B
(B Umesh.
(B
(B
(B--
(BPHP General Mailing List (http://www.php.net/)
(BTo unsubscribe, visit: http://www.php.net/unsub.php
(B
(B-- 
(BPHP General Mailing List (http://www.php.net/)
(BTo unsubscribe, visit: http://www.php.net/unsub.php

[PHP] need help reg. User Accounts

2002-07-28 Thread umesh
Hi Gurus,

I am using PHP-4.1.1 on Linux,
I wanted to know the difference between "nobody" user and normal user of
operating system.

This question just came to mind when, neither nobody's directory nor any
entry was not found in /home or elsewhere.

Thanking you all in anticipation.

Regards

Umesh.
*
Umesh A. Deshmukh.
Manas Solutions Pvt. Ltd.
[EMAIL PROTECTED]
http://www.manas-solutions.com
Ph. : 91+020+4006358,4223991/92
*


[PHP] Help reg. create user and allocate space

2002-07-28 Thread umesh
Hi Gurus,

I am using PHP-4.1.1, postgresql on Linux.

I want the following functionality, I dont know how to implement it.

Each time a new user registeres, I want to create mail account by the name
he specifies and allocate him some space of the server, say 2mb.

How this is incorporated ?

Please help.

Thanking you all in anticipation.


Regards

Umesh.
*
Umesh A. Deshmukh.
Manas Solutions Pvt. Ltd.
[EMAIL PROTECTED]
http://www.manas-solutions.com
Ph. : 91+020+4006358,4223991/92
*


[PHP] probelm : delete files using PHP

2002-07-24 Thread umesh
Hi Gurus,

I am using PHP 4.1.1, Postgresql 7.2  and Perl 5.6.0 on Linux.

I want to delete files in a directory,which were created 15 days back.

I can not do it, with PHP filesystem and directory functions, as PHP runs as
"nobody" user.

Can anybody pls. help me ?

Thanking you all in anticipation.

Regards

Umesh.
*
Umesh A. Deshmukh.
Manas Solutions Pvt. Ltd.
[EMAIL PROTECTED]
http://www.manas-solutions.com
Ph. : 91+020+4006358,4223991/92
*


[PHP] Problem with mail subject

2001-07-13 Thread umesh DESHMUKH

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]