[PHP] Application support both chinese and english lang

2007-05-13 Thread suresh kumar
Hi, I am developing one application using PHP and MySQL.Right now my application supports English language.i like to integrate chinese language in my application.i like to implement similar to this website. http://www.dynasign.net.cn/dynasign/login.do 'Language'

Re: [PHP] import dbf files

2007-05-13 Thread Richard Lynch
On Fri, May 11, 2007 8:23 am, Bosky, Dave wrote: My goal is to be able to import dbf files into MySQL on a nightly basis. Can I enable dbase support by uncomment the dbase extension entry in the php.ini file or is there more to it? On Windows, assuming you have the dbase DLL matching your

Re: [PHP] finding next and prev record in mysql

2007-05-13 Thread Richard Lynch
On Thu, May 10, 2007 11:54 pm, Richard Kurth wrote: How would I find the next id and the prev id in sql statement like the one below. The id number is not going to be in order so I can't do a or limit 1 on the search SELECT id FROM contacts WHERE category = '5' AND subcategory = '1' AND

Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data?

2007-05-13 Thread Richard Lynch
On Thu, May 10, 2007 10:18 pm, Daevid Vincent wrote: Like most sites, someone needs to join up to use mine. Errr. To be pedantic, I don't think most sites require registration, actually... :-) I'm not saying it's bad or anything, just that there's still way more HTML pages out there with free

Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data? [solved]

2007-05-13 Thread Richard Lynch
On Fri, May 11, 2007 9:59 pm, [EMAIL PROTECTED] wrote: Set ajaxObject.setRequestHeader(User-Agent,SecretName); in Javascript and check for it in PHP. Not fool-proof, but the average person wouldn't be able to get in. Unless the user View Source and read your AJAX code... This is not going to

Re: [PHP] PHP MySQL

2007-05-13 Thread Richard Lynch
On Thu, May 10, 2007 3:42 pm, Jason Pruim wrote: I know this isn't strictly a PHP question, and I apologize in advance for that. I'm trying to setup a website for some of my customers that would allow them to update a database on their schedule, making it easier for us to have the most up to

[PHP] php can do this

2007-05-13 Thread suresh kumar
Hi, I want to know whether its possible to implement this functionality in PHP and MySQL.. I will allow web users to download one .bat file from my Application. This .bat contains something like this 'c:\\program files\Internet Explorer\iexplore.exe'

Re: [PHP] PHP sorting csv array output

2007-05-13 Thread Richard Lynch
If you are going to sort it by various fields, I'd just throw it into a database... That said, http://php.net/usort should be able to do whatever you want. On Thu, May 10, 2007 2:18 pm, Anna Vester wrote: Hello all, I have a question concerning .CSV array sorting. I have tried googling for

Re: [PHP] sqlite if query changes to empty on a loop

2007-05-13 Thread Richard Lynch
On Thu, May 10, 2007 2:55 pm, [EMAIL PROTECTED] wrote: Hello, I have a loop on an sqlite query which checks $domain until the status of $domain changes and then it deletes $domain. However when all the $domain items have been deleted I need the script to stop.. regardless of how many

Re: [PHP] php can do this

2007-05-13 Thread Richard Lynch
On Sun, May 13, 2007 1:43 am, suresh kumar wrote: Hi, I want to know whether its possible to implement this functionality in PHP and MySQL.. I will allow web users to download one .bat file from my Application. This .bat contains something like this 'c:\\program files\Internet

Re: [PHP] Application support both chinese and english lang

2007-05-13 Thread Richard Lynch
A) Try the i18n list on php.net B) I think Chinese might need UTF-16... Or maybe simplified Chinese doesn't can be done in UTF-8... I'm just guessing wildly at this point... On Sun, May 13, 2007 1:02 am, suresh kumar wrote: Hi, I am developing one application using PHP and MySQL.Right

Re: [PHP] GET variable unexpectedly assigned to session variable

2007-05-13 Thread Richard Lynch
On Thu, May 10, 2007 1:51 pm, Armando Acosta wrote: Problem is, that, once the page usr_frm.php have been hit, the session variable $_SESSION[usr_type] gets changed (unexpectedly) to exactly the same value passed to the script via GET variable typ. But even worse: this code works perfectly

Re: [PHP] GET variable unexpectedly assigned to session variable

2007-05-13 Thread Richard Lynch
On Thu, May 10, 2007 2:00 pm, Robert Cummings wrote: BTW, what's the point of abbreviating short words like user to usr and type to typ? Mayb his 'e' ky is brokn? -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist.

Re: [PHP] sorting via PHP or MySQL?

2007-05-13 Thread Richard Lynch
On Thu, May 10, 2007 1:00 pm, James Tu wrote: (I've cross posted at the MySQL list as well) Here's an example with a simple table: describe collection; +--+-+--+- +-++ | Field| Type

Re: [PHP] scrolling HTML tables

2007-05-13 Thread Richard Lynch
On Thu, May 10, 2007 11:45 am, C.R.Vegelin wrote: I hope it's not the wrong place to ask, but has anyone experience with scrolling HTML tables ? Actually, it *is* the wrong place to ask... :-v According http://www.w3schools.com/tags/tag_thead.asp The thead, tfoot and tbody elements enable

Re: [PHP] WSDL Generator class

2007-05-13 Thread Richard Lynch
IIRC, the nuSoap.php did what you want, and PHP's nifty new SOAP class does everything else better... So run nuSoap once to get the WSDL thingie, and use PHP 5 SOAP for the rest. YMMV I may be out-dated (again) on my PHP knowledge. Or should I say still? On Thu, May 10, 2007 10:10 am, Brice

Re: [PHP] Function Declared in Included File Not Being Found

2007-05-13 Thread Chris
Richard, Neither removing the if/else nor the function_exists() not call worked. If I declared the function in the same file I called it works even when defining it after the call. If the function is declaring in a different file than the one I call it in and I include the files after the

[PHP] Making code public -- What steps to take? GPL?

2007-05-13 Thread Micky Hulse
Hi, I am in the process of writing a simple but useful plugin for a blogging application Long story short, I want to give-back to the community (i.e. free plugin), but would like to make an attempt at retaining some credit if folks port/use to/in other scripts/blogs/cms apps. Any tips

Re: [PHP] Making code public -- What steps to take? GPL?

2007-05-13 Thread Micky Hulse
Micky Hulse wrote: Or, should I just not worry about this? Well shux! I love it when I answer my own questions: http://www.phpfreaks.com/tutorials/19/0.php I blame it on lack of sleep! The GNU GPL License sounds like what I need. :D Cheers, M -- Wishlists: http://snipurl.com/1gqpj

Re: [PHP] Making code public -- What steps to take? GPL?

2007-05-13 Thread Daniel Brown
If you want to retain some credit but don't care about distribution/modification/redistribution, check out the MIT license (more commonly referred to as the X or X11 license). We're using it in a project that combines PHP and text-to-speech technology. It allows people to improve (or

Re: [PHP] Making code public -- What steps to take? GPL?

2007-05-13 Thread Tijnema !
On 5/13/07, Daniel Brown [EMAIL PROTECTED] wrote: If you want to retain some credit but don't care about distribution/modification/redistribution, check out the MIT license (more commonly referred to as the X or X11 license). We're using it in a project that combines PHP and text-to-speech

Re: [PHP] Making code public -- What steps to take? GPL?

2007-05-13 Thread Micky Hulse
Daniel Brown wrote: If you want to retain some credit but don't care about distribution/modification/redistribution, check out the MIT license (more commonly referred to as the X or X11 license). We're using it in a project Ah, great tip! :D I will definitely read-up on the MIT license

Re: [PHP] Making code public -- What steps to take? GPL?

2007-05-13 Thread Micky Hulse
Hey! Tijnema! Thanks for the quick reply. :) Tijnema ! wrote: I'd say, don't worry too much about the license, just put your name on top of the code, and some other nonsense, like: You're allowed to use this code, as long as you leave above lines intact., where above your credit is listed of

Re: [PHP] Function Declared in Included File Not Being Found

2007-05-13 Thread Stut
Chris wrote: Richard, Neither removing the if/else nor the function_exists() not call worked. If I declared the function in the same file I called it works even when defining it after the call. If the function is declaring in a different file than the one I call it in and I include the

Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data? [solved]

2007-05-13 Thread Stut
Richard Lynch wrote: On Fri, May 11, 2007 9:59 pm, [EMAIL PROTECTED] wrote: Set ajaxObject.setRequestHeader(User-Agent,SecretName); in Javascript and check for it in PHP. Not fool-proof, but the average person wouldn't be able to get in. Unless the user View Source and read your AJAX code...

Re: [PHP] Making code public -- What steps to take? GPL?

2007-05-13 Thread Crayon Shin Chan
On Sunday 13 May 2007 21:17, Micky Hulse wrote: I will definitely read-up on the MIT license after I get some zzZZzz's! Don't forget the MIT license allows people to incorporate your code into commercial products and sell for profit without having to give anything back (money/improved

Re: [PHP] Making code public -- What steps to take? GPL?

2007-05-13 Thread Daniel Brown
Right, I alluded to that, but perhaps I should've said that exactly, as it may bother some people. In my case, it doesn't bother me in the least, just as I use LAMP (all open source) to make a living. On 5/13/07, Crayon Shin Chan [EMAIL PROTECTED] wrote: On Sunday 13 May 2007 21:17, Micky

[PHP] php5 include() problem

2007-05-13 Thread Al
I've got a cgi file in my cgi-bin folder that I'm calling with include(). It worked with php4. My shared host just upgraded to my server to php5.2.0 and the function doesn't work. I can't tell if the problem is a php5 or server configuration [which may have changed during the upgrade] issue.

Re: [PHP] php5 include() problem

2007-05-13 Thread Tijnema !
On 5/13/07, Al [EMAIL PROTECTED] wrote: I've got a cgi file in my cgi-bin folder that I'm calling with include(). It worked with php4. My shared host just upgraded to my server to php5.2.0 and the function doesn't work. I can't tell if the problem is a php5 or server configuration [which may

Re: [PHP] Question

2007-05-13 Thread Robert Cummings
On Sun, 2007-05-13 at 00:33 -0500, Richard Lynch wrote: Here's your cookie: http://l-i-e.com/cookie.php :-) Bah, I was hoping for something a bit more tasty :/ ;) PS Does the one where I juke the URL to just be iwant.xyz work right at least?... Yep. Cheers, Rob. --

Re: [PHP] GET variable unexpectedly assigned to session variable

2007-05-13 Thread Robert Cummings
On Sun, 2007-05-13 at 02:05 -0500, Richard Lynch wrote: On Thu, May 10, 2007 2:00 pm, Robert Cummings wrote: BTW, what's the point of abbreviating short words like user to usr and type to typ? Mayb his 'e' ky is brokn? Mayb his 'o' ky t sinc h shrtnd form to frm. Prbbly h jst hs n vrsn t

Re: [PHP] php5 include() problem

2007-05-13 Thread Myron Turner
Tijnema ! wrote: On 5/13/07, Al [EMAIL PROTECTED] wrote: I've got a cgi file in my cgi-bin folder that I'm calling with include(). It worked with php4. My shared host just upgraded to my server to php5.2.0 and the function doesn't work. I can't tell if the problem is a php5 or server

RE: [PHP] Question

2007-05-13 Thread WeberSites LTD
Notice the 1st code example : http://www.php-code-search.com/?q=how%20to%20force%20the%20user%20to%20downl oad%20a%20file berber -Original Message- From: Dusan Novakovic [mailto:[EMAIL PROTECTED] Sent: Sunday, May 13, 2007 2:19 AM To: php-general@lists.php.net Subject: [PHP] Question

Re: [PHP] php5 include() problem

2007-05-13 Thread Richard Davey
Al wrote: I've got a cgi file in my cgi-bin folder that I'm calling with include(). It worked with php4. My shared host just upgraded to my server to php5.2.0 and the function doesn't work. I can't tell if the problem is a php5 or server configuration [which may have changed during the

RE: [PHP] Passing an array as a hidden variable

2007-05-13 Thread WeberSites LTD
Check out the 1st code example : http://www.php-code-search.com/?q=how%20to%20pass%20an%20array%20from%20one berber -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Sunday, May 13, 2007 6:58 AM To: Todd Cary Cc: php-general@lists.php.net Subject: Re: [PHP]

[PHP] session destroy callback (onSessionDestroy event)

2007-05-13 Thread Emil Ivanov
Hi, I need to do some clean-up when the session is destroyed or values are removed from it (expired). using session_set_save_handler does not work for me, as I don't want to rewrite session handling, I just need to be notified when a value is destroyed. Regards, Emil Ivanov P.S. I'm dealing

Re: [PHP] Making code public -- What steps to take? GPL?

2007-05-13 Thread Daniel Brown
The biggest thing to remember is that a license is like a key it's meant to keep an honest man honest, but won't stop someone who is intent on taking what they want for a profit. On 5/13/07, Micky Hulse [EMAIL PROTECTED] wrote: Crayon Shin Chan wrote: Don't forget the MIT license

Re: [PHP] php5 include() problem

2007-05-13 Thread Al
Is there an alternate way to execute a php in cgi-bin so it can do a chmod() on site directories as the owner? My approach was the only way I could think of. Given the obvious problem(s), it appears that it may not be a good choice. Richard Davey wrote: Al wrote: I've got a cgi file in my

Re: [PHP] Making code public -- What steps to take? GPL?

2007-05-13 Thread Micky Hulse
Crayon Shin Chan wrote: Don't forget the MIT license allows people to incorporate your code into commercial products and sell for profit without having to give anything back (money/improved code/etc). Hi Cayon, thanks for clarification. I just woke up, so I have not had a chance to really

Re: [PHP] Making code public -- What steps to take? GPL?

2007-05-13 Thread Micky Hulse
Daniel Brown wrote: Right, I alluded to that, but perhaps I should've said that exactly, as it may bother some people. In my case, it doesn't bother me in the least, just as I use LAMP (all open source) to make a living. Oh, I think I understood that. But there is always room for

Re: [PHP] scrolling HTML tables

2007-05-13 Thread Larry Garfield
I usually say go ahead and use thead and tbody for semantic completeness. If you're doing anything funky with Javascript, then you can group table rows by having multiple table bodies (yes, that's legal!) and then operate on each tbody separately. Don't waste time with tfoot. It's broken.

Re: [PHP] Making code public -- What steps to take? GPL?

2007-05-13 Thread Larry Garfield
Beware also that if you have an advertising clause that requires your name to stay on it, then you could be preventing GPLed projects from using it. The GPL is incompatible with advertising clause licenses. That's why the PHP License, for instance, is GPL-incompatible. (GPL is the most