Re: [PHP] I need ideas for things to code -- Roach vs Bugzilla

2009-04-27 Thread Michael Shadle
On Mon, Apr 27, 2009 at 6:09 PM, Shawn McKenzie wrote: > OK, so geared towards software bugs I assume (I haven't used any)? Web site development, a little system administration. But yes, basically software bugs. > OK, so I am not familiar with the bug tracking software or anything that > it nee

Re: [PHP] I need ideas for things to code - webbytedd examples

2009-04-27 Thread Paul M Foster
On Mon, Apr 27, 2009 at 03:16:10PM -0700, Daevid Vincent wrote: > This is tripping me out! i feel so duped! :) > http://webbytedd.com/b1/photo-retouch/ > > this didn't work, maybe due to some JS errors. tried in FF3 and IE6. > http://webbytedd.com/b/watermark/ > > I like your arrow captch idea:

Re: [PHP] I need ideas for things to code -- Roach vs Bugzilla

2009-04-27 Thread Shawn McKenzie
Michael Shadle wrote: > On Mon, Apr 27, 2009 at 5:46 PM, Shawn McKenzie > wrote: > >> #1 Which one are we talking about? > > Tickets/trackers (Bugzilla, Mantis, Roach, you name it) and SCM > integration tools (Redmine, Trac) OK, so geared towards software bugs I assume (I haven't used any)? > >

Re: [PHP] I need ideas for things to code -- Roach vs Bugzilla

2009-04-27 Thread Shawn McKenzie
Michael Shadle wrote: > On Mon, Apr 27, 2009 at 3:27 PM, Daevid Vincent wrote: > >> I just didn't want someone to think this was the caliber of code I wrote! >> ;-) > > totally understood. i don't like people getting the wrong idea of my code too > :) > >> I am using Trac personally, but I'm n

Re: [PHP] I need ideas for things to code -- Roach vs Bugzilla

2009-04-27 Thread Michael Shadle
On Mon, Apr 27, 2009 at 5:46 PM, Shawn McKenzie wrote: > #1  Which one are we talking about? Tickets/trackers (Bugzilla, Mantis, Roach, you name it) and SCM integration tools (Redmine, Trac) > #2  Having rarely used either, what are the main (must have) features? For general purpose ticketing

Re: [PHP] I need ideas for things to code -- Roach vs Bugzilla

2009-04-27 Thread Michael Shadle
On Mon, Apr 27, 2009 at 3:27 PM, Daevid Vincent wrote: > I just didn't want someone to think this was the caliber of code I wrote! > ;-) totally understood. i don't like people getting the wrong idea of my code too :) > I am using Trac personally, but I'm not a fan of Trac's ticket system. Roac

Re: [PHP] Re: utf-8 ?

2009-04-27 Thread Tom Worster
On 4/27/09 3:57 PM, "9el" wrote: > Hey Tom Also share your findings plz :) to deal with the formatting i put it on wordpress: http://thefsb.wordpress.com/2009/04/27/converting-phpmysqlapache-app-from-la tin-1-to-utf-8/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] I need ideas for things to code - webbytedd examples

2009-04-27 Thread Andrew Hucks
The watermark worked in FF3...(for me, at least.) On Mon, Apr 27, 2009 at 6:16 PM, Daevid Vincent wrote: > This is tripping me out! i feel so duped! :) > http://webbytedd.com/b1/photo-retouch/ > > this didn't work, maybe due to some JS errors. tried in FF3 and IE6. > http://webbytedd.com/b/waterm

RE: [PHP] I need ideas for things to code -- Roach vs Bugzilla

2009-04-27 Thread Daevid Vincent
> -Original Message- > From: Michael Shadle [mailto:mike...@gmail.com] > Sent: Monday, April 27, 2009 2:59 PM > To: Daevid Vincent > Cc: php-general@lists.php.net > Subject: Re: [PHP] I need ideas for things to code -- Roach > vs Bugzilla > > On Mon, Apr 27, 2009 at 2:47 PM, Daevid Vi

RE: [PHP] I need ideas for things to code - webbytedd examples

2009-04-27 Thread Daevid Vincent
This is tripping me out! i feel so duped! :) http://webbytedd.com/b1/photo-retouch/ this didn't work, maybe due to some JS errors. tried in FF3 and IE6. http://webbytedd.com/b/watermark/ I like your arrow captch idea: http://webbytedd.com/aa/assorted-captcha/ also the date and clock are nice: ht

Re: [PHP] I need ideas for things to code -- Roach vs Bugzilla

2009-04-27 Thread Michael Shadle
On Mon, Apr 27, 2009 at 2:47 PM, Daevid Vincent wrote: > I got that one done for you: > http://www.daevid.com/content/examples/roach.php > > p.s. the PHP code is absolute crap by the way. I inherited the start of this > and just had to keep building on top of it, so i never got time to re-write >

Re: [PHP] I need ideas for things to code

2009-04-27 Thread Lists
Govinda wrote: I'd love a good time log/billing app. I currently use http://www.getharvest.com/ but it is too expensive for such a small operation as me. But I LOVE the features. BTW, what are you all (especially you who are one-man contractors like me) using to keep track of your time..

RE: [PHP] I need ideas for things to code -- Roach vs Bugzilla

2009-04-27 Thread Daevid Vincent
> -Original Message- > Sent: Friday, April 24, 2009 4:31 PM > Subject: Re: [PHP] I need ideas for things to code > > how about: > > a better bugzilla replacement in php I got that one done for you: http://www.daevid.com/content/examples/roach.php p.s. the PHP code is absolute crap by

Re: [PHP] utf-8 ?

2009-04-27 Thread PJ
Tom Worster wrote: > On 4/27/09 4:25 PM, "PJ" wrote: > > >> Exactly what are the advantages of using utf-8? How will it solve my >> problem? >> > > actually, i have no idea because i have no idea what problem you are trying > to solve and i apologize for presumptuous. i presumed that you h

Re: [PHP] I need ideas for things to code

2009-04-27 Thread Nitsan Bin-Nun
IMO all you need is a cellphone with some normal calendar features. I do also tend to use Google Calendar from time to time to text me whenever something shows up on the board. Google Apps is also very useful for email managing, etc. HTH, Nitsan On Mon, Apr 27, 2009 at 10:29 PM, Govinda wrote:

Re: [PHP] utf-8 ?

2009-04-27 Thread Tom Worster
On 4/27/09 4:25 PM, "PJ" wrote: > Exactly what are the advantages of using utf-8? How will it solve my > problem? actually, i have no idea because i have no idea what problem you are trying to solve and i apologize for presumptuous. i presumed that you have a php app with a bunch of data in mysq

Re: [PHP] I need ideas for things to code

2009-04-27 Thread Govinda
I'd love a good time log/billing app. I currently use http://www.getharvest.com/ but it is too expensive for such a small operation as me. But I LOVE the features. BTW, what are you all (especially you who are one-man contractors like me) using to keep track of your time.. billing client

Re: [PHP] utf-8 ?

2009-04-27 Thread PJ
Tom Worster wrote: > On 4/27/09 9:55 AM, "PJ" wrote: > >> Since I have to use a number of Western languages that have those >> annoying accents on many characters, I am already finding some >> annoyances in my code results; like having to enter the á type of >> stuff in inputs for searches & queri

Re: [PHP] Re: utf-8 ?

2009-04-27 Thread 9el
On Tue, Apr 28, 2009 at 1:50 AM, Tom Worster wrote: > On 4/27/09 11:17 AM, "PJ" wrote: > > > phpMyAdmin: in the structure view of the db show Collation as > > latin_swedish_ci ??? > > maybe a phpmyadmin feature? check it with the mysql client. when i did the > conversion* it came out looking jus

Re: [PHP] Re: utf-8 ?

2009-04-27 Thread Tom Worster
On 4/27/09 11:17 AM, "PJ" wrote: > phpMyAdmin: in the structure view of the db show Collation as > latin_swedish_ci ??? maybe a phpmyadmin feature? check it with the mysql client. when i did the conversion* it came out looking just right in phpmyadmin. *i followed instrunctions here: http://dev

Re: [PHP] utf-8 ?

2009-04-27 Thread Tom Worster
On 4/27/09 9:55 AM, "PJ" wrote: > Since I have to use a number of Western languages that have those > annoying accents on many characters, I am already finding some > annoyances in my code results; like having to enter the á type of > stuff in inputs for searches & queries. the sooner you quit t

[PHP] error in printer_open function

2009-04-27 Thread AYAN PAL
hi, i am using local server to print a simple text i config the php.ini file as ;extension=php_printer.dll added in the extension list and add [printer] printer.default_printer = "Send To OneNote 2007" in this file and write a sim ple page as- Prabal Cable Network

Re: [PHP] Re: Unit Testing

2009-04-27 Thread Philip Thompson
On Apr 27, 2009, at 11:38 AM, Simon wrote: As a programmer, i always test what I'm coding as i code it (mostly to make sure i dont include typos), but i feel it is best to make proper testing once the component is ready and working fine. If your project is large, it might be a good idea to brea

Re: [PHP] Re: Unit Testing

2009-04-27 Thread Simon
As a programmer, i always test what I'm coding as i code it (mostly to make sure i dont include typos), but i feel it is best to make proper testing once the component is ready and working fine. If your project is large, it might be a good idea to break it in several 'modules' or section if possib

[PHP] Re: Unit Testing

2009-04-27 Thread Nathan Rixham
Philip Thompson wrote: Hi. I did some searching in the archives, but didn't quite find what I was looking for. Maybe a few of you can assist me... We have an application that's currently in production, but we're constantly modifying/upgrading it. We did not do unit testing early on because of

Re: [PHP] Re: Formating Numbers

2009-04-27 Thread Daniel Brown
On Sun, Apr 26, 2009 at 18:15, Gary wrote: > Sorry for the delay in response.  I was able to figure the number_format() > function out. > > Thanks for all your responses. Since you're working specifically with money as described in your example, Gary, you could also check out money_format()[1

[PHP] Unit Testing

2009-04-27 Thread Philip Thompson
Hi. I did some searching in the archives, but didn't quite find what I was looking for. Maybe a few of you can assist me... We have an application that's currently in production, but we're constantly modifying/upgrading it. We did not do unit testing early on because of the lack of time. No

[PHP] Re: utf-8 ?

2009-04-27 Thread 9el
> > > I just converted all, or thought I did. > phpMyAdmin: in the structure view of the db show Collation as > latin_swedish_ci ??? > in the individual table structure views the fields show utf-8 general ??? > I don't see any difference on Firefox running on FreeBSD but it show > correctly on Wimp

[PHP] Re: utf-8 ?

2009-04-27 Thread PJ
9el wrote: > > I looked at http://developer.loftdigital.com/blog/php-utf-8-cheatsheet > which suggests this: > ALTER DATABASE db_name > CHARACTER SET utf8 > DEFAULT CHARACTER SET utf8 > COLLATE utf8_general_ci > DEFAULT COLLATE utf8_general_ci > ; > > ALTER TABLE

Re: [PHP] Re: utf-8 ?

2009-04-27 Thread Robert Cummings
On Mon, 2009-04-27 at 21:06 +0600, 9el wrote: > > I think some time ago I used combination of mysqldump and > iconv, some > minor editing, and then pumped it back into the database. > > I think if the dump is not too big your trick will yield good results. > What d

Re: [PHP] Re: utf-8 ?

2009-04-27 Thread Nathan Rixham
Robert Cummings wrote: On Mon, 2009-04-27 at 20:56 +0600, 9el wrote: I looked at http://developer.loftdigital.com/blog/php-utf-8-cheatsheet which suggests this: ALTER DATABASE db_name CHARACTER SET utf8 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT COLLATE utf8_general_ci ; ALTER T

Re: [PHP] Re: utf-8 ?

2009-04-27 Thread 9el
> > > I think some time ago I used combination of mysqldump and iconv, some > minor editing, and then pumped it back into the database. > > I think if the dump is not too big your trick will yield good results. What do you do for really large DB cases? Regards Lenin www.twitter.com/nine_L www.l

Re: RES: [PHP] inexplicable behaviour SOLVED

2009-04-27 Thread 9el
> > Thanks for the clarification, Mike. In my ignorance, I was under the > impression that the right side of the equation was only for the use of > the left part. How stupid of me. So what I should have been doing was > $Count1 = $Count + 1; right? > $Count = $Count + 1; is exactly(?) same as $Coun

Re: [PHP] Re: utf-8 ?

2009-04-27 Thread Robert Cummings
On Mon, 2009-04-27 at 20:56 +0600, 9el wrote: > > I looked at http://developer.loftdigital.com/blog/php-utf-8-cheatsheet > > which suggests this: > > ALTER DATABASE db_name > > CHARACTER SET utf8 > > DEFAULT CHARACTER SET utf8 > > COLLATE utf8_general_ci > > DEFAULT COLLATE utf8_general_ci > > ; >

[PHP] Re: utf-8 ?

2009-04-27 Thread 9el
> I looked at http://developer.loftdigital.com/blog/php-utf-8-cheatsheet > which suggests this: > ALTER DATABASE db_name > CHARACTER SET utf8 > DEFAULT CHARACTER SET utf8 > COLLATE utf8_general_ci > DEFAULT COLLATE utf8_general_ci > ; > > ALTER TABLE tbl_name > DEFAULT CHARACTER SET utf8 > COLLATE

[PHP] Re: utf-8 ?

2009-04-27 Thread PJ
Nathan Rixham wrote: > PJ wrote: >> Since I have to use a number of Western languages that have those >> annoying accents on many characters, I am already finding some >> annoyances in my code results; like having to enter the á type of >> stuff in inputs for searches & queries. >> MySql db is set

[PHP] Variable Scope with require_once

2009-04-27 Thread user
Hello, all. I have a working app that runs in PHP 4.4.9 on the server. I develop the app on my local environment, which runs PHP 5.2.6. The setup is thus: From my index, I have require_once('config.php'); require_once('dbstuff.php'); config.php looks like this: dbstuff.php looks like th

Re: [PHP] CamelCase conversion to proper_c_style

2009-04-27 Thread Daniel Brown
On Mon, Apr 27, 2009 at 01:25, Paul M Foster wrote: > I know it's probably heresy for a lot of coders, but does anyone know a > function or class or regexp or somesuch which will scan through a PHP > file and convert all the CamelCase code into proper C-type code? That > is, "CamelCase" gets conve

Re: [PHP] utf-8 ?

2009-04-27 Thread 9el
I think you should switch to utf8-general-ci all the way.

[PHP] Re: utf-8 ?

2009-04-27 Thread Nathan Rixham
PJ wrote: Since I have to use a number of Western languages that have those annoying accents on many characters, I am already finding some annoyances in my code results; like having to enter the á type of stuff in inputs for searches & queries. MySql db is set up for InnoDB with latin1_swedish_ci

Re: [PHP] CamelCase conversion to proper_c_style

2009-04-27 Thread Nathan Rixham
tedd wrote: At 9:40 AM +0100 4/27/09, Richard Heyes wrote: Hi, I know it's probably heresy for a lot of coders, but does anyone know a function or class or regexp or somesuch which will scan through a PHP file and convert all the CamelCase code into proper C-type code? That is, "CamelCase"

[PHP] utf-8 ?

2009-04-27 Thread PJ
Since I have to use a number of Western languages that have those annoying accents on many characters, I am already finding some annoyances in my code results; like having to enter the á type of stuff in inputs for searches & queries. MySql db is set up for InnoDB with latin1_swedish_ci for Collati

Re: [PHP] CamelCase conversion to proper_c_style

2009-04-27 Thread tedd
At 9:40 AM +0100 4/27/09, Richard Heyes wrote: Hi, I know it's probably heresy for a lot of coders, but does anyone know a function or class or regexp or somesuch which will scan through a PHP file and convert all the CamelCase code into proper C-type code? That is, "CamelCase" gets convert

Re: RES: [PHP] inexplicable behaviour SOLVED

2009-04-27 Thread PJ
Ford, Mike wrote: > On 26 April 2009 22:59, PJ advised: > > >> kranthi wrote: >> >>> if $Count1 is never referenced after this, then certainly this >>> assignment operation is redundent. but assignment is not the ONLY >>> operation of this statement. if u hav not noticed a post increment >>

RE: [PHP] CamelCase conversion to proper_c_style

2009-04-27 Thread Marc Christopher Hall
phpguru.org/rtemplate) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Information from ESET Smart Security, version of virus signature database 4036 (20090427) __ The message was checked by ESET Smart Security.

Re: [PHP] inexplicable behaviour

2009-04-27 Thread Simon
If you want to increment $Count by one, you can use any one of the 3 following lines to do this: $Count = $Count + 1; $Count += 1; $Count++; The 3 lines are equivalent, but have varying degrees of elegance (suit yourself). However, make sure that your mysql function returned a number (and not an er

Re: [PHP] Re: Help with scandir()

2009-04-27 Thread Simon
I lack experience with windows, but my experience in linux tells me this *might* be related to the permissions the PHP or webserver has to access that remote drive? Ie. like the drives might be mapped just for your user? Not sure, but you might want to check this, permissions are common problems

Re: [PHP] Re: Help with scandir()

2009-04-27 Thread Jan G.B.
2009/4/26 Nathan Rixham : > Deivys Delgado Hernandez wrote: >> >> Hi, >> I'm having problems when i try to use the function scandir()  in a Novell >> Netware Volumen or a Windows Shared Folder >> they both are mapped as a windows network drive, so i suppose i could >> access them as local drive, bu

Re: [PHP] CamelCase conversion to proper_c_style

2009-04-27 Thread Richard Heyes
Hi, > I know it's probably heresy for a lot of coders, but does anyone know a > function or class or regexp or somesuch which will scan through a PHP > file and convert all the CamelCase code into proper C-type code? That > is, "CamelCase" gets converted to "camel_case". I snagged a bunch of > som

RE: RES: [PHP] inexplicable behaviour SOLVED

2009-04-27 Thread Ford, Mike
On 26 April 2009 22:59, PJ advised: > kranthi wrote: >> if $Count1 is never referenced after this, then certainly this >> assignment operation is redundent. but assignment is not the ONLY >> operation of this statement. if u hav not noticed a post increment >> operator has been used which will aff