php-general Digest 28 Apr 2009 07:52:15 -0000 Issue 6091

Topics (messages 292038 through 292060):

error in printer_open function
        292038 by: AYAN PAL

Re: utf-8 ?
        292039 by: Tom Worster
        292040 by: Tom Worster
        292041 by: 9el
        292042 by: PJ
        292044 by: Tom Worster
        292046 by: PJ
        292053 by: Tom Worster

Re: I need ideas for things to code
        292043 by: Govinda
        292045 by: Nitsan Bin-Nun
        292048 by: Lists

Re: I need ideas for things to code -- Roach vs Bugzilla
        292047 by: Daevid Vincent
        292049 by: Michael Shadle
        292051 by: Daevid Vincent
        292054 by: Michael Shadle
        292055 by: Shawn McKenzie
        292056 by: Michael Shadle
        292057 by: Shawn McKenzie
        292059 by: Michael Shadle

Re: I need ideas for things to code - webbytedd examples
        292050 by: Daevid Vincent
        292052 by: Andrew Hucks
        292058 by: Paul M Foster

Re: inexplicable behaviour SOLVED
        292060 by: Richard Quadling

Administrivia:

To subscribe to the digest, e-mail:
        [email protected]

To unsubscribe from the digest, e-mail:
        [email protected]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
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












--- End Message ---
--- Begin Message ---
On 4/27/09 9:55 AM, "PJ" <[email protected]> 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 &aacute; type of
> stuff in inputs for searches & queries.

the sooner you quit this bad habit the better. utf-8 is the solution.


> MySql db is set up for InnoDB with latin1_swedish_ci for Collation; I
> believe this is default.
> Utf-8 seems to be one way to overcome the problems, but is it the only
> way - seems a little cumbersome as I have no need for oriental & other
> extra-terrestrial cyphers. (I'm incorrigibly lazy.)

i know no reasonable alternative.

in mysql, converting your tables is easy.


> If it is the only way, what difficulties could I expect from an ISP
> hosting a virtual site?

the difficulties are most likely to arise with non-mbstring-safe functions
your php code may be using.

when i converted my site to utf-8 after 5 years of running latin-1, i spent
a few days combing through each string function to determine if it was
mbsafe or not (many are not) and if not, what to use instead. if the host
has the mbstring extension then you're job may be a lot easier (assuming
you're willing to recode your app to depend on an extension that isn't
present in all runtime environments). if not, then you'll work harder to
find work-arounds.

i made a list of notes as i was working on the conversion, including a list
of my notes on about 90 string functions. i could post them here if that
would be of interest.

here, at least, are the web pages i referred to:

http://www.phpwact.org/php/i18n/utf-8
http://www.phpwact.org/php/i18n/charsets
http://www.phpwact.org/php/i18n/utf-8/mysql
http://devlog.info/2008/08/24/php-and-unicode-utf-8/
http://www.sitepoint.com/blogs/2006/08/09/scripters-utf-8-survival-guide-sli
des/
http://www.nicknettleton.com/zine/php/php-utf-8-cheatsheet
http://www.cs.tut.fi/~jkorpela/chars.html



--- End Message ---
--- Begin Message ---
On 4/27/09 11:17 AM, "PJ" <[email protected]> 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.mysql.com/doc/refman/5.0/en/alter-table.html



--- End Message ---
--- Begin Message ---
On Tue, Apr 28, 2009 at 1:50 AM, Tom Worster <[email protected]> wrote:

> On 4/27/09 11:17 AM, "PJ" <[email protected]> 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.mysql.com/doc/refman/5.0/en/alter-table.html
>
>
> Hey Tom Also share your findings plz :)

regards

Lenin
www.twitter.com/nine_L

--- End Message ---
--- Begin Message ---
Tom Worster wrote:
> On 4/27/09 9:55 AM, "PJ" <[email protected]> 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 &aacute; type of
>> stuff in inputs for searches & queries.
>
> the sooner you quit this bad habit the better. utf-8 is the solution.
>
>
>> MySql db is set up for InnoDB with latin1_swedish_ci for Collation; I
>> believe this is default.
>> Utf-8 seems to be one way to overcome the problems, but is it the only
>> way - seems a little cumbersome as I have no need for oriental & other
>> extra-terrestrial cyphers. (I'm incorrigibly lazy.)
>
> i know no reasonable alternative.
>
> in mysql, converting your tables is easy.
>
>
>> If it is the only way, what difficulties could I expect from an ISP
>> hosting a virtual site?
>
> the difficulties are most likely to arise with non-mbstring-safe functions
> your php code may be using.
>
> when i converted my site to utf-8 after 5 years of running latin-1, i
> spent
> a few days combing through each string function to determine if it was
> mbsafe or not (many are not) and if not, what to use instead. if the host
> has the mbstring extension then you're job may be a lot easier (assuming
> you're willing to recode your app to depend on an extension that isn't
> present in all runtime environments). if not, then you'll work harder to
> find work-arounds.
>
> i made a list of notes as i was working on the conversion, including a
> list
> of my notes on about 90 string functions. i could post them here if that
> would be of interest.
>
> here, at least, are the web pages i referred to:
>
> http://www.phpwact.org/php/i18n/utf-8
> http://www.phpwact.org/php/i18n/charsets
> http://www.phpwact.org/php/i18n/utf-8/mysql
> http://devlog.info/2008/08/24/php-and-unicode-utf-8/
> http://www.sitepoint.com/blogs/2006/08/09/scripters-utf-8-survival-guide-sli
> des/
> http://www.nicknettleton.com/zine/php/php-utf-8-cheatsheet
> http://www.cs.tut.fi/~jkorpela/chars.html
Exactly what are the advantages of using utf-8? How will it solve my
problem?

Right now I'm going nuts trying to set up FreeBSD and xorg to be able to
switch between en_US and fr_CA keyboards but it sure is frustrating if 
nothing else. This is a most elegant way of using the french and english
keyboards siinc the fr_CA keyboard is bilingual - almost all the
characters are the same except for a few that have been relocated; and
it is easy to adapt to. I would settle for just 1 keyboard - the fr_CA,
but I can't find any intelligible or functional ways to set it up. I got
one version set up with keyboard mapping but that was a complete
disaster as I had to find a an ASCII code to enter for my password since
that particular key was not available on the keyboard. Sometimes I
wonder about the guys who set this stuff up. >:o
-- 
Hervé Kempf: "Pour sauver la planète, sortez du capitalisme."
-------------------------------------------------------------
Phil Jourdan --- [email protected]
http://www.ptahhotep.com
http://www.chiccantine.com/andypantry.php

--- End Message ---
--- Begin Message ---
On 4/27/09 4:25 PM, "PJ" <[email protected]> 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 mysql and you needed to handle international
characters in the db beyond latin-1.



--- End Message ---
--- Begin Message ---
Tom Worster wrote:
> On 4/27/09 4:25 PM, "PJ" <[email protected]> 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 mysql and you needed to handle international
> characters in the db beyond latin-1.
>   
I think you hit the nail on the head, except I dont need any of those
weird foreign pictograms and scribbles ;-)
I'm only using English ( the most difficult, of course), French(a bit
twisted), Italian(a bit slanted, German(lots of options), Swedish(cold,
cold), Portugese(oh, boy) and maybe some other Western European variety.
"We do try to be civilized, don't we?"
So, in the end, utf-8 may not be so important for me after all. All
seems to be working just fine.
I think I'll upload the stuff to the real site and we can all have a
bash at it. 8-)

-- 
Hervé Kempf: "Pour sauver la planète, sortez du capitalisme."
-------------------------------------------------------------
Phil Jourdan --- [email protected]
   http://www.ptahhotep.com
   http://www.chiccantine.com/andypantry.php


--- End Message ---
--- Begin Message ---
On 4/27/09 3:57 PM, "9el" <[email protected]> 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/



--- End Message ---
--- Begin Message ---
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 clients, etc.? Doesn't have to be free, but maybe there already is some great stuff out there that is?

-Govinda

On Apr 24, 2009, at 5:00 PM, Andrew Hucks wrote:

I've been coding PHP for about a year, and I'm running out of things to code that force me to learn new things. If you have any suggestions, I'd greatly
appreciate it.


--- End Message ---
--- Begin Message ---
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 <[email protected]>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..  billing clients, etc.?
> Doesn't have to be free, but maybe there already is some great stuff out
> there that is?
>
> -Govinda
>
>
> On Apr 24, 2009, at 5:00 PM, Andrew Hucks wrote:
>
>  I've been coding PHP for about a year, and I'm running out of things to
>> code
>> that force me to learn new things. If you have any suggestions, I'd
>> greatly
>> appreciate it.
>>
>
>

--- End Message ---
--- Begin Message ---
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.. billing clients, etc.? Doesn't have to be free, but maybe there already is some great stuff out there that is?

-Govinda


Govinda!, what are you doing on a PHP forum! ;-)

I wrote my billing app about 4 years ago in WebDNA. It contains:

1.) Customer db
2.) quoting
     The quoting system replaces emails that are sent back and
     forth between you and your client, as managing emails really,
     really is not fun. (Client visits the website to interact with
     the quoting system)
3.) invoicing
4.) a full proposal system that links to the quoting features
    (it's like a glorified quoting system that looks pretty to the
     client.. so instead of seeing numbers, they see numbers and
     moch-ups/designs.
5.) Job clock that links to the invoicing system. (invoices know
    if a job has 'job clock' records.
6.) Budgeting system.
7.) Reports (for dreaded tax days)
8.) Client Payment system
9.) hmmm what else, emailing, searching all db's, etc.


My sanity is already a sensitive issue when it comes to client billing
etc.. and I'm pretty sure I'd be living in a padded room by now if I didn't have this app. ;-)

hmmm... since this is the PHP forum, I have to say something that will
steer this back to politically correctness... I'm sure you could build these features in PHP... just allow yourself a bit more time. ;-)

To the O.P., I agree with someone who said; much of the time, client work will drive creativity and new projects (and keep you eating). However, I guess if you are starting out, it wouldn't hurt to zap something out that will show people what you can do. I would suggest
that, whatever you do, maybe integrate some client-side stuff as well..
like Flash,CSS,or JS. 'Pretty' brings them in, then function makes the
sale.

my ¢.02

Donovan



--
  =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o
  D. BROOKE                       EUCA Design Center
                               WebDNA Software Corp.
  WEB:> http://www.euca.us  |   http://www.webdna.us
  =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o
  WebDNA: [** Square Bracket Utopia **]

--- End Message ---
--- Begin Message ---
 

> -----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 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
it properly, only fix as I went.

It's a dead project at this point, so someone is free to pick up where I
left off as Lockdown is no more.


--- End Message ---
--- Begin Message ---
On Mon, Apr 27, 2009 at 2:47 PM, Daevid Vincent <[email protected]> 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
> it properly, only fix as I went.
>
> It's a dead project at this point, so someone is free to pick up where I
> left off as Lockdown is no more.

Well, thanks for that; it seems like it's got a lot of features. A big
one to examine would be looking at its integration with svn. But I
like the "triage" assignment by default.

It's a little disappointing though if you're selling it with the note
of "the code is crap" ... :)

I'll toss it over to my boss who is the one messing around with
trac/redmine/etc and see what he has to say.

--- End Message ---
--- Begin Message ---
 

> -----Original Message-----
> From: Michael Shadle [mailto:[email protected]] 
> Sent: Monday, April 27, 2009 2:59 PM
> To: Daevid Vincent
> Cc: [email protected]
> Subject: Re: [PHP] I need ideas for things to code -- Roach 
> vs Bugzilla
> 
> On Mon, Apr 27, 2009 at 2:47 PM, Daevid Vincent 
> <[email protected]> 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
> > it properly, only fix as I went.
> >
> > It's a dead project at this point, so someone is free to 
> pick up where I
> > left off as Lockdown is no more.
> 
> Well, thanks for that; it seems like it's got a lot of features. A big
> one to examine would be looking at its integration with svn. But I
> like the "triage" assignment by default.
> 
> It's a little disappointing though if you're selling it with the note
> of "the code is crap" ... :)
> 
> I'll toss it over to my boss who is the one messing around with
> trac/redmine/etc and see what he has to say.

I just didn't want someone to think this was the caliber of code I wrote!
;-)

I cleaned up what I could, when I could, but we're not in the business of
writing a CR tracker -- so it got a small percentage of my time.

I am using Trac personally, but I'm not a fan of Trac's ticket system. Roach
is way more powerful in that respect, but the overall Wiki/SVN/Ticket/Plugin
integration outweighs the lacking Ticket system.

Roach is the best ticket system I've ever used -- and I say that honestly.
I'm stuck with FogBugz here at work and really don't like it. I hated
Bugzilla. I've tried a few others as well and didn't like them either. For
sure Roach isn't as polished or pretty or fancy-pants web 2.0 ajaxy. But it
is solid. it works well and shows the info you want when/where you want it.
It's fast. It's flexible. And IMHO it works the way developers work. Like I
said, 6 years of daily use by 25 developers really helped to refine what
mattered and what didn't. 

The hooks with SVN are also great. For example someone couldn't commit to
SVN without the corresponding CR in Roach in the commit message. I thought I
had the SVN pre-commit and post-commit hooks in the tarball, but apparently
not. They were written in Ruby, so maybe not so useful to you anyways. I'm
sure i have them somewhere if you really wanted them.

d


--- End Message ---
--- Begin Message ---
On Mon, Apr 27, 2009 at 3:27 PM, Daevid Vincent <[email protected]> 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. Roach
> is way more powerful in that respect, but the overall Wiki/SVN/Ticket/Plugin
> integration outweighs the lacking Ticket system.

Me too. The whole wiki style is a bit funky for ticketing.

I think bugzilla is nasty and I hate supporting old CGI programs. It
just seems like they never change design-wise, definately UI but also
conceptually for the most part.

> The hooks with SVN are also great. For example someone couldn't commit to
> SVN without the corresponding CR in Roach in the commit message. I thought I
> had the SVN pre-commit and post-commit hooks in the tarball, but apparently
> not. They were written in Ruby, so maybe not so useful to you anyways. I'm
> sure i have them somewhere if you really wanted them.

Sure, you should include them in the package.

Worst case if we wind up doing something with hooks I can use them as
a cue on how to reject without including a ticket ID for example, etc.

--- End Message ---
--- Begin Message ---
Michael Shadle wrote:
> On Mon, Apr 27, 2009 at 3:27 PM, Daevid Vincent <[email protected]> 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. Roach
>> is way more powerful in that respect, but the overall Wiki/SVN/Ticket/Plugin
>> integration outweighs the lacking Ticket system.
> 
> Me too. The whole wiki style is a bit funky for ticketing.
> 
> I think bugzilla is nasty and I hate supporting old CGI programs. It
> just seems like they never change design-wise, definately UI but also
> conceptually for the most part.
> 
>> The hooks with SVN are also great. For example someone couldn't commit to
>> SVN without the corresponding CR in Roach in the commit message. I thought I
>> had the SVN pre-commit and post-commit hooks in the tarball, but apparently
>> not. They were written in Ruby, so maybe not so useful to you anyways. I'm
>> sure i have them somewhere if you really wanted them.
> 
> Sure, you should include them in the package.
> 
> Worst case if we wind up doing something with hooks I can use them as
> a cue on how to reject without including a ticket ID for example, etc.

OK, so I'm just now jumping into the conversation, not because I use or
need a ticketing system, quite the opposite.  I have rarely used a
ticketing system and wonder whether this discussion is more about a
ticketing system (I have a problem with this service/widget and need
help) or bug tracking (software has bug, from user or dev)?

#1  Which one are we talking about?
#2  Having rarely used either, what are the main (must have) features?
#3  What are the needed features that other OSS solutions don't offer?
#4  What are the great features missing from free and commercial apps?

-- 
Thanks!
-Shawn
http://www.spidean.com

--- End Message ---
--- Begin Message ---
On Mon, Apr 27, 2009 at 5:46 PM, Shawn McKenzie <[email protected]> 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 engine, it would need custom field
support. For specifically designed solutions it depends. For us we
only need a few fields, really. I've hacked together bits and pieces
in only a few minutes, we're using a custom one right now, but one
with active development would be nice - APIs and plugins for
extensibility, XML/RSS feeds, etc. Those aren't required but should
come standard nowadays...

> #3  What are the needed features that other OSS solutions don't offer?

Clean interface, easy reporting, integration with SCM (i.e. svn) -
various apps do various combinations of these. If it was done in PHP
it would be perfect as we could bolt on our custom authentication into
it. Trac is written in Python and Redmine in Ruby; we'd have to
re-code our authentication integration into one of those languages for
it.

Oh, and multiple project support. Trac does not support this. Redmine
claims to. (as in, multiple svn repositories as well)

> #4  What are the great features missing from free and commercial apps?

I am not sure I've seen a commercial PHP app that does this.

--- End Message ---
--- Begin Message ---
Michael Shadle wrote:
> On Mon, Apr 27, 2009 at 5:46 PM, Shawn McKenzie
> <[email protected]> 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)?

>
>> #2  Having rarely used either, what are the main (must have)
>> features?
>
> For general purpose ticketing engine, it would need custom field
> support. For specifically designed solutions it depends. For us we
> only need a few fields, really. I've hacked together bits and pieces
> in only a few minutes, we're using a custom one right now, but one
> with active development would be nice - APIs and plugins for
> extensibility, XML/RSS feeds, etc. Those aren't required but should
> come standard nowadays...

OK, so I am not familiar with the bug tracking software or anything that
it needs to do, but I find it hard to believe that at the top of the
list would be APIs, plugins, RSS.  These don't sound like "main"
features of a bug tracking app.

>
>> #3  What are the needed features that other OSS solutions don't
>> offer?
>
> Clean interface, easy reporting, integration with SCM (i.e. svn) -
> various apps do various combinations of these. If it was done in PHP
> it would be perfect as we could bolt on our custom authentication
> into it. Trac is written in Python and Redmine in Ruby; we'd have to
> re-code our authentication integration into one of those languages
> for it.
>
> Oh, and multiple project support. Trac does not support this. Redmine
>  claims to. (as in, multiple svn repositories as well)
>

I can dig it...

>> #4  What are the great features missing from free and commercial
>> apps?
>
> I am not sure I've seen a commercial PHP app that does this.
>

Doesn't matter PHP or other.  What is not available in any other product
that would be awesome to have (wish list)?

-Shawn

--- End Message ---
--- Begin Message ---
On Mon, Apr 27, 2009 at 6:09 PM, Shawn McKenzie <[email protected]> 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 needs to do, but I find it hard to believe that at the top of the
> list would be APIs, plugins, RSS.  These don't sound like "main"
> features of a bug tracking app.

APIs for bug insertion, deletion, reporting, etc. is not far off from
a core product. Especially in web 2.0 land nowadays. We have multiple
installations of bugzilla and other tracking mechanisms in and outside
of the company feeding off each other, with no clean interfaces.

Of course there are hundreds of generic "bug tracking" programs out
there. Anyone with a PHP book can make one. We'd like to align with an
"industry standard" type one, or one with an active community, but
there is no real big one I am aware of other than Bugzilla (if not
factoring in language) or Mantis (for PHP), or with SCM interaction
Redmine and Trac.

Trac won't work for us because we have multiple repositories/projects.
We'd have to hack together some sort of solution to manage all of them
from one, or install a bunch of instances, and then we'd have bugs in
multiple systems to track. Each developer on our team handles code for
at least one project, just FYI.

Redmine may work, but we need more time to determine if we can hack
our own auth layer on top of it. Even then I am not sure if it will
meet our needs 100% or not. We have not evaluated it enough yet.

> Doesn't matter PHP or other.  What is not available in any other product
> that would be awesome to have (wish list)?

Most products are bloated.

Part of my wish list would be that it is written in PHP, so our team
can extend it without writing beginner <insert language here> code to
try to customize the couple things we'd need to tweak (like the auth
layer)

--- End Message ---
--- Begin Message ---
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:
http://webbytedd.com/b/kewl-date/
http://webbytedd.com/b/binary-clock/

the transparent bg is green in FF3/XP and IE6/XP
http://webbytedd.com/ccc/dragdrop/

http://webbytedd.com/b/color-rows/
you know you can do this too:
<tr class="<?= (($r = !$r) ? 'row0' : 'row1' ) ?>">

How come you don't have a way to see/download the source code for all these
examples?

cheers,

http://daevid.com
"Some people, when confronted with a problem, think 'I know, I'll use XML.'"
Now they have two problems. 

> -----Original Message-----
> From: Charles Harvey [mailto:[email protected]] 
> Sent: Saturday, April 25, 2009 11:56 AM
> To: [email protected]
> Subject: Re: [PHP] I need ideas for things to code
> 
> This was a surprisingly good idea that works for me, as I 
> haven't coded in
> about 3 years and need to get my hand back in.  Trying to 
> make use of one
> idea led to several others.  Thanks, tedd!
> 
> Charles
> 
> On Sat, Apr 25, 2009 at 4:54 AM, tedd <[email protected]> wrote:
> 
> > At 7:00 PM -0400 4/24/09, Andrew Hucks wrote:
> >
> >> I've been coding PHP for about a year, and I'm running out 
> of things to
> >> code
> >> that force me to learn new things. If you have any suggestions, I'd
> >> greatly
> >> appreciate it.
> >>
> >
> > Andrew:
> >
> > Here's an idea. Go through the php manuals and make small 
> examples of
> > everything you find.
> >
> > That way not only do you learn, but you have examples to 
> fall back on when
> > the need rises.
> >
> > Here's a small (believe me) portion of the demo's I've 
> written over the
> > years:
> >
> > http://webbytedd.com/a.php
> >
> > These cover different languages, but it will give you the 
> idea. Just make a
> > inventory of examples and post them with code. Not only 
> will it help you,
> > but might help others when you answer questions on this 
> list showing the
> > solution.
> >
> > Cheers,
> >
> > tedd
> > --
> > -------
> > http://sperling.com  http://ancientstones.com  
> http://earthstones.com
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> 


--- End Message ---
--- Begin Message ---
The watermark worked in FF3...(for me, at least.)

On Mon, Apr 27, 2009 at 6:16 PM, Daevid Vincent <[email protected]> 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:
> http://webbytedd.com/aa/assorted-captcha/
>
> also the date and clock are nice:
> http://webbytedd.com/b/kewl-date/
> http://webbytedd.com/b/binary-clock/
>
> the transparent bg is green in FF3/XP and IE6/XP
> http://webbytedd.com/ccc/dragdrop/
>
> http://webbytedd.com/b/color-rows/
> you know you can do this too:
> <tr class="<?= (($r = !$r) ? 'row0' : 'row1' ) ?>">
>
> How come you don't have a way to see/download the source code for all these
> examples?
>
> cheers,
>
> http://daevid.com
> "Some people, when confronted with a problem, think 'I know, I'll use XML.'"
> Now they have two problems.
>
>> -----Original Message-----
>> From: Charles Harvey [mailto:[email protected]]
>> Sent: Saturday, April 25, 2009 11:56 AM
>> To: [email protected]
>> Subject: Re: [PHP] I need ideas for things to code
>>
>> This was a surprisingly good idea that works for me, as I
>> haven't coded in
>> about 3 years and need to get my hand back in.  Trying to
>> make use of one
>> idea led to several others.  Thanks, tedd!
>>
>> Charles
>>
>> On Sat, Apr 25, 2009 at 4:54 AM, tedd <[email protected]> wrote:
>>
>> > At 7:00 PM -0400 4/24/09, Andrew Hucks wrote:
>> >
>> >> I've been coding PHP for about a year, and I'm running out
>> of things to
>> >> code
>> >> that force me to learn new things. If you have any suggestions, I'd
>> >> greatly
>> >> appreciate it.
>> >>
>> >
>> > Andrew:
>> >
>> > Here's an idea. Go through the php manuals and make small
>> examples of
>> > everything you find.
>> >
>> > That way not only do you learn, but you have examples to
>> fall back on when
>> > the need rises.
>> >
>> > Here's a small (believe me) portion of the demo's I've
>> written over the
>> > years:
>> >
>> > http://webbytedd.com/a.php
>> >
>> > These cover different languages, but it will give you the
>> idea. Just make a
>> > inventory of examples and post them with code. Not only
>> will it help you,
>> > but might help others when you answer questions on this
>> list showing the
>> > solution.
>> >
>> > Cheers,
>> >
>> > tedd
>> > --
>> > -------
>> > http://sperling.com  http://ancientstones.com
>> http://earthstones.com
>> >
>> >
>> > --
>> > 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
>
>

--- End Message ---
--- Begin Message ---
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:
> http://webbytedd.com/aa/assorted-captcha/
> 
> also the date and clock are nice:
> http://webbytedd.com/b/kewl-date/
> http://webbytedd.com/b/binary-clock/
> 
> the transparent bg is green in FF3/XP and IE6/XP
> http://webbytedd.com/ccc/dragdrop/
> 
> http://webbytedd.com/b/color-rows/
> you know you can do this too:
> <tr class="<?= (($r = !$r) ? 'row0' : 'row1' ) ?>">
> 
> How come you don't have a way to see/download the source code for all these
> examples?

I noticed that, too. But I have to say, this is one of the coolest sites
I've ever seen. If you wanted to convince someone (a prospect) you could
do something, this site would do it. Next time I talk to a prospect, I'm
gonna call myself Tedd and refer them to this site. ;-}

Paul

-- 
Paul M. Foster

--- End Message ---
--- Begin Message ---
2009/4/27 9el <[email protected]>:
>>
>> 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?
>>

$Count1 = $Count++;

is not the same as

$Count1 = $Count + 1;


<?php
$Count1 = 100;
echo "Start with $Count1", PHP_EOL;
$Count1 = $Count1++;
echo "For \$Count1 = \$Count1++; the value in \$Count1 is $Count1", PHP_EOL;
$Count1 = $Count1 + 1;
echo "For \$Count1 = \$Count1 + 1; the value in \$Count1 is $Count1", PHP_EOL;


outputs ...

Start with 100
For $Count1 = $Count1++; the value in $Count1 is 100
For $Count1 = $Count1 + 1; the value in $Count1 is 101


This shows that post-inc during an assignment does not affect the
value assigned.


Something that I thought would happen was if I ...

<?php
$Count1 = 100;
echo $Count1 = $Count1++, PHP_EOL;
echo $Count1, PHP_EOL;

I thought I'd get ...

101
100

but I get

100
100

I thought the ++ would happen AFTER the assignment and the ++ to the
value of the assignment. But this is not the case.

> $Count = $Count + 1; is exactly(?) same as $Count++;  or ++$Count
> But not exactly same.  PostFix notation adds the value after assigning.
> PreFix notation adds the value right away.
> But optimized programming argues about how machine is coded nowadays.
>
>
>> Anyway, I don't need that statement anymore as I found the error of my
>> ways and have corrected it. And behold, the light came forth and it
>> worked. :-)
>>
>
> Regards
>
> Lenin
>
> www.twitter.com/nine_L
> www.lenin9l.wordpress.com
>



-- 
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"

--- End Message ---

Reply via email to