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 wi

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 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 clarifica

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 res

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 m

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 a

[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] 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] Passin

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 upgr

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 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 confi

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 j

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] 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 ma

[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] 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, Mick

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 code/et

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 cod

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 file

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 cou

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 aft

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 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 degrade)

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: I blame it on lack of sleep! The GNU GPL License sounds like what I need. :D Cheers, M -- Wishlists:

[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] 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

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] 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 enabl

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] 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. http://cdbaby.co

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 pe

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] 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\Int