php-general Digest 10 Apr 2008 07:05:37 -0000 Issue 5396

Topics (messages 272801 through 272816):

Re: Requested PHP apps / sites
        272801 by: Shawn McKenzie
        272802 by: Jay Blanchard
        272803 by: Shawn McKenzie
        272804 by: Daniel Brown
        272805 by: Shawn McKenzie
        272806 by: Andrew Ballard
        272807 by: Daniel Brown
        272808 by: Shawn McKenzie

Re: Beware of round() function
        272809 by: Kirk.Johnson.zootweb.com
        272815 by: Jim Lucas

Connecting to an epp server
        272810 by: Alan Willsher

Re: dynamic boxes problem... JS and PHP
        272811 by: Ryan S
        272812 by: Ryan S
        272813 by: tedd
        272814 by: Ryan S

php server installation
        272816 by: hce

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 ---
Jay Blanchard wrote:
[snip]
So to my question: does anyone know of a site or forum where people request apps or sites to be built and then it can be voted on to track the people that are interested? I'm not talking about sites where people post paid development requests. Something open and non-contractual in the spirit of open source.

The two open source projects that I have developed came from being part of a community and answering the same support requests in the forums day

after day. It occurred to me that I could create something to do what the users kept asking. So this would be the same idea, just more broad.

If no one knows of good site(s) like this, does anyone think it would be

beneficial?  Would you use it?
[/snip]

http://sourceforge.net/index.php
        

Thanks, I use SF a lot but is exactly opposite of what I was going for.

-Shawn

--- End Message ---
--- Begin Message ---
[snip]
> http://sourceforge.net/index.php
>       

Thanks, I use SF a lot but is exactly opposite of what I was going for.
[/snip]

My bad, I mis-read. 

--- End Message ---
--- Begin Message ---
Daniel Brown wrote:
On Wed, Apr 9, 2008 at 11:36 AM, Shawn McKenzie <[EMAIL PROTECTED]> wrote:
Maybe slightly off, but this is a general PHP question :-)
[snip!]
 So to my question: does anyone know of a site or forum where people request
apps or sites to be built and then it can be voted on to track the people
that are interested?  I'm not talking about sites where people post paid
development requests.  Something open and non-contractual in the spirit of
open source.

    That depends, Shawn.  Are you looking to be a part of an
established project, or to start your own?  If you wanted to work with
a well-known team, I'd recommend starting with something like the
phpBB group.  You can start off by writing modules and such, and if
you want, get into developing the core application itself.

    To develop full applications in open source technology to someone
else's spec would make me very leery.... because there's almost a
guarantee stamped right there that says, "you're doing my work for
free, you're making me rich."  And while, to you, it is in the spirit
of open source, overall it defeats the purpose of open source.

    The best way to come up with an idea and build a project is to
follow these simple steps:

        1.) Stop giving a damn if something similar exists.  You may
build a better mousetrap.  If developers always said, "no, that's
already been done," there would be just one of everything - from
open-source content management systems to full-blown operating
systems.

        2.) Stop thinking about how others will use your work for now.
 Be selfish and focus on yourself for a bit.  This *does not* mean to
ignore security and good coding practices, or even to ignore
scalability.... only to not think about how others may accept your
work when it's complete.  Think of it as doing coding only for
yourself, to make your life easier.

        3.) Identify a problem that you experience yourself.  For
example, say you work part-time mowing lawns in the neighborhood.
Each property pays you $5 per 100'x100' square per job, with a minimum
of $5 required.  You have 29 properties of various sizes that you mow
each summer, and have always done one each day, taking the last day to
scramble and try to be sure all accounts are paid.

        4.) Outline how you want your application to work for you.  In
the example shown above, you might decide to have an administrative
panel for you to enter the dimensions of each property under a
different profile, with the ability to add users, and then view and
invoice those with outstanding balances.  You can then either merge an
existing user-management framework (allowed by license) or write your
own (it's one of the most fundamental, simple things to do).  Then you
may want to incorporate payment processing for PayPal and
Authorize.net into that so that you won't have to knock on doors or
drive to the bank.

        5.) Use the application yourself for a while and work out the
initial bugs.

        6.) Place the code in a package on your own server with an
explanation of what it does.  Tell people who may be interested in
using your work what it is, where it is, how to get it, and how to use
it.

        7.) You may even want to submit an entry to directories such
as HotScripts (http://www.hotscripts.com/) or my old favorite,
Resource Index (http://php.resourceindex.com/).

    Whatever you do, though, before you step into #6 above, be sure
that you've clearly stated under which license you are distributing
your code.  Most commonly, of course, will be GPL, LGPL, and BSD, but
you can use any existing license (such as Apache, PHP, MIT, etc.), or
write your own.  You may even choose to license your code for
"anything, anywhere" as I do with some of mine (including all
pseudocode) by using Copyleft- or Copycenter-style licensure.

Thanks Dan,

Your approach is a great one and actually how I wound up with my current two projects, one of which I forked into a more full featured and fully supported commercial product. But those were my ideas based upon user need.

I wouldn't and I wouldn't expect others to really develop the app for the requester. This would be an idea farm, because ideas are what I am lacking, especially ideas that would have broad appeal. I thought maybe others would have the same dilemma.

So instead of free code from me or other developers, I view it as getting free ideas from others, users and seekers of the apps (free and for cost) :-)

I'm sure that given a few weeks of free time, you and many others here, maybe even I could've built the original myspace or facebook. But we didn't, someone else had the idea.

Hope this makes sense. Just kind of rambling now as I'm frustrated about not having ideas with broad appeal.


Thanks!
-Shawn

--- End Message ---
--- Begin Message ---
On Wed, Apr 9, 2008 at 4:36 PM, Shawn McKenzie <[EMAIL PROTECTED]> wrote:
>
> Daniel Brown wrote:
>
> > On Wed, Apr 9, 2008 at 11:36 AM, Shawn McKenzie <[EMAIL PROTECTED]>
> wrote:
> >
> > > Maybe slightly off, but this is a general PHP question :-)
> > >
> > [snip!]
> >
> > >  So to my question: does anyone know of a site or forum where people
> request
> > > apps or sites to be built and then it can be voted on to track the
> people
> > > that are interested?  I'm not talking about sites where people post paid
> > > development requests.  Something open and non-contractual in the spirit
> of
> > > open source.
> > >
> >
> >    That depends, Shawn.  Are you looking to be a part of an
> > established project, or to start your own?  If you wanted to work with
> > a well-known team, I'd recommend starting with something like the
> > phpBB group.  You can start off by writing modules and such, and if
> > you want, get into developing the core application itself.
> >
> >    To develop full applications in open source technology to someone
> > else's spec would make me very leery.... because there's almost a
> > guarantee stamped right there that says, "you're doing my work for
> > free, you're making me rich."  And while, to you, it is in the spirit
> > of open source, overall it defeats the purpose of open source.
> >
> >    The best way to come up with an idea and build a project is to
> > follow these simple steps:
> >
> >        1.) Stop giving a damn if something similar exists.  You may
> > build a better mousetrap.  If developers always said, "no, that's
> > already been done," there would be just one of everything - from
> > open-source content management systems to full-blown operating
> > systems.
> >
> >        2.) Stop thinking about how others will use your work for now.
> >  Be selfish and focus on yourself for a bit.  This *does not* mean to
> > ignore security and good coding practices, or even to ignore
> > scalability.... only to not think about how others may accept your
> > work when it's complete.  Think of it as doing coding only for
> > yourself, to make your life easier.
> >
> >        3.) Identify a problem that you experience yourself.  For
> > example, say you work part-time mowing lawns in the neighborhood.
> > Each property pays you $5 per 100'x100' square per job, with a minimum
> > of $5 required.  You have 29 properties of various sizes that you mow
> > each summer, and have always done one each day, taking the last day to
> > scramble and try to be sure all accounts are paid.
> >
> >        4.) Outline how you want your application to work for you.  In
> > the example shown above, you might decide to have an administrative
> > panel for you to enter the dimensions of each property under a
> > different profile, with the ability to add users, and then view and
> > invoice those with outstanding balances.  You can then either merge an
> > existing user-management framework (allowed by license) or write your
> > own (it's one of the most fundamental, simple things to do).  Then you
> > may want to incorporate payment processing for PayPal and
> > Authorize.net into that so that you won't have to knock on doors or
> > drive to the bank.
> >
> >        5.) Use the application yourself for a while and work out the
> > initial bugs.
> >
> >        6.) Place the code in a package on your own server with an
> > explanation of what it does.  Tell people who may be interested in
> > using your work what it is, where it is, how to get it, and how to use
> > it.
> >
> >        7.) You may even want to submit an entry to directories such
> > as HotScripts (http://www.hotscripts.com/) or my old favorite,
> > Resource Index (http://php.resourceindex.com/).
> >
> >    Whatever you do, though, before you step into #6 above, be sure
> > that you've clearly stated under which license you are distributing
> > your code.  Most commonly, of course, will be GPL, LGPL, and BSD, but
> > you can use any existing license (such as Apache, PHP, MIT, etc.), or
> > write your own.  You may even choose to license your code for
> > "anything, anywhere" as I do with some of mine (including all
> > pseudocode) by using Copyleft- or Copycenter-style licensure.
> >
> >
>  Thanks Dan,
>
>  Your approach is a great one and actually how I wound up with my current
> two projects, one of which I forked into a more full featured and fully
> supported commercial product.  But those were my ideas based upon user need.
>
>  I wouldn't and I wouldn't expect others to really develop the app for the
> requester.  This would be an idea farm, because ideas are what I am lacking,
> especially ideas that would have broad appeal.  I thought maybe others would
> have the same dilemma.
>
>  So instead of free code from me or other developers, I view it as getting
> free ideas from others, users and seekers of the apps (free and for cost)
> :-)
>
>  I'm sure that given a few weeks of free time, you and many others here,
> maybe even I could've built the original myspace or facebook.  But we
> didn't, someone else had the idea.
>
>  Hope this makes sense.  Just kind of rambling now as I'm frustrated about
> not having ideas with broad appeal.

    Oh, what you're looking for is a think tank.  I'd been trying to
find people in my area to get together and do the same thing.  No such
luck around here, but you may have luck in your local area.  Working
offline with people, when you can bounce ideas off of one-another
while doing something else, gets the creative juices flowing more,
because you're not focused on saying, "okay, we need to come up with
an idea."

-- 
</Daniel P. Brown>
Ask me about:
Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
and shared hosting starting @ $2.50/mo.
Unmanaged, managed, and fully-managed!

--- End Message ---
--- Begin Message ---
Daniel Brown wrote:
On Wed, Apr 9, 2008 at 4:36 PM, Shawn McKenzie <[EMAIL PROTECTED]> wrote:
Daniel Brown wrote:

On Wed, Apr 9, 2008 at 11:36 AM, Shawn McKenzie <[EMAIL PROTECTED]>
wrote:
Maybe slightly off, but this is a general PHP question :-)

[snip!]

 So to my question: does anyone know of a site or forum where people
request
apps or sites to be built and then it can be voted on to track the
people
that are interested?  I'm not talking about sites where people post paid
development requests.  Something open and non-contractual in the spirit
of
open source.

   That depends, Shawn.  Are you looking to be a part of an
established project, or to start your own?  If you wanted to work with
a well-known team, I'd recommend starting with something like the
phpBB group.  You can start off by writing modules and such, and if
you want, get into developing the core application itself.

   To develop full applications in open source technology to someone
else's spec would make me very leery.... because there's almost a
guarantee stamped right there that says, "you're doing my work for
free, you're making me rich."  And while, to you, it is in the spirit
of open source, overall it defeats the purpose of open source.

   The best way to come up with an idea and build a project is to
follow these simple steps:

       1.) Stop giving a damn if something similar exists.  You may
build a better mousetrap.  If developers always said, "no, that's
already been done," there would be just one of everything - from
open-source content management systems to full-blown operating
systems.

       2.) Stop thinking about how others will use your work for now.
 Be selfish and focus on yourself for a bit.  This *does not* mean to
ignore security and good coding practices, or even to ignore
scalability.... only to not think about how others may accept your
work when it's complete.  Think of it as doing coding only for
yourself, to make your life easier.

       3.) Identify a problem that you experience yourself.  For
example, say you work part-time mowing lawns in the neighborhood.
Each property pays you $5 per 100'x100' square per job, with a minimum
of $5 required.  You have 29 properties of various sizes that you mow
each summer, and have always done one each day, taking the last day to
scramble and try to be sure all accounts are paid.

       4.) Outline how you want your application to work for you.  In
the example shown above, you might decide to have an administrative
panel for you to enter the dimensions of each property under a
different profile, with the ability to add users, and then view and
invoice those with outstanding balances.  You can then either merge an
existing user-management framework (allowed by license) or write your
own (it's one of the most fundamental, simple things to do).  Then you
may want to incorporate payment processing for PayPal and
Authorize.net into that so that you won't have to knock on doors or
drive to the bank.

       5.) Use the application yourself for a while and work out the
initial bugs.

       6.) Place the code in a package on your own server with an
explanation of what it does.  Tell people who may be interested in
using your work what it is, where it is, how to get it, and how to use
it.

       7.) You may even want to submit an entry to directories such
as HotScripts (http://www.hotscripts.com/) or my old favorite,
Resource Index (http://php.resourceindex.com/).

   Whatever you do, though, before you step into #6 above, be sure
that you've clearly stated under which license you are distributing
your code.  Most commonly, of course, will be GPL, LGPL, and BSD, but
you can use any existing license (such as Apache, PHP, MIT, etc.), or
write your own.  You may even choose to license your code for
"anything, anywhere" as I do with some of mine (including all
pseudocode) by using Copyleft- or Copycenter-style licensure.


 Thanks Dan,

 Your approach is a great one and actually how I wound up with my current
two projects, one of which I forked into a more full featured and fully
supported commercial product.  But those were my ideas based upon user need.

 I wouldn't and I wouldn't expect others to really develop the app for the
requester.  This would be an idea farm, because ideas are what I am lacking,
especially ideas that would have broad appeal.  I thought maybe others would
have the same dilemma.

 So instead of free code from me or other developers, I view it as getting
free ideas from others, users and seekers of the apps (free and for cost)
:-)

 I'm sure that given a few weeks of free time, you and many others here,
maybe even I could've built the original myspace or facebook.  But we
didn't, someone else had the idea.

 Hope this makes sense.  Just kind of rambling now as I'm frustrated about
not having ideas with broad appeal.

    Oh, what you're looking for is a think tank.  I'd been trying to
find people in my area to get together and do the same thing.  No such
luck around here, but you may have luck in your local area.  Working
offline with people, when you can bounce ideas off of one-another
while doing something else, gets the creative juices flowing more,
because you're not focused on saying, "okay, we need to come up with
an idea."

Bingo! Except I was hoping that the end users of the app or site would be the think tank, Internet wide. See, the users are not thinking, they know what they want and they google for it or look on sf or hotscripts. So when they can't find it, that's the idea! Better if you can determine that many users have searched in vain or are struggling to find this particular app or site, etc... Then you know that if you develop it it will have some broad appeal. Am I making sense yet?

-Shawn

--- End Message ---
--- Begin Message ---
On Wed, Apr 9, 2008 at 4:51 PM, Shawn McKenzie <[EMAIL PROTECTED]> wrote:
>
> Daniel Brown wrote:
>
> > On Wed, Apr 9, 2008 at 4:36 PM, Shawn McKenzie <[EMAIL PROTECTED]>
> wrote:
> >
> > > Daniel Brown wrote:
> > >
> > >
> > > > On Wed, Apr 9, 2008 at 11:36 AM, Shawn McKenzie <[EMAIL PROTECTED]>
> > > >
> > > wrote:
> > >
> > > >
> > > > > Maybe slightly off, but this is a general PHP question :-)
> > > > >
> > > > >
> > > > [snip!]
> > > >
> > > >
> > > > >  So to my question: does anyone know of a site or forum where people
> > > > >
> > > >
> > > request
> > >
> > > >
> > > > > apps or sites to be built and then it can be voted on to track the
> > > > >
> > > >
> > > people
> > >
> > > >
> > > > > that are interested?  I'm not talking about sites where people post
> paid
> > > > > development requests.  Something open and non-contractual in the
> spirit
> > > > >
> > > >
> > > of
> > >
> > > >
> > > > > open source.
> > > > >
> > > > >
> > > >   That depends, Shawn.  Are you looking to be a part of an
> > > > established project, or to start your own?  If you wanted to work with
> > > > a well-known team, I'd recommend starting with something like the
> > > > phpBB group.  You can start off by writing modules and such, and if
> > > > you want, get into developing the core application itself.
> > > >
> > > >   To develop full applications in open source technology to someone
> > > > else's spec would make me very leery.... because there's almost a
> > > > guarantee stamped right there that says, "you're doing my work for
> > > > free, you're making me rich."  And while, to you, it is in the spirit
> > > > of open source, overall it defeats the purpose of open source.
> > > >
> > > >   The best way to come up with an idea and build a project is to
> > > > follow these simple steps:
> > > >
> > > >       1.) Stop giving a damn if something similar exists.  You may
> > > > build a better mousetrap.  If developers always said, "no, that's
> > > > already been done," there would be just one of everything - from
> > > > open-source content management systems to full-blown operating
> > > > systems.
> > > >
> > > >       2.) Stop thinking about how others will use your work for now.
> > > >  Be selfish and focus on yourself for a bit.  This *does not* mean to
> > > > ignore security and good coding practices, or even to ignore
> > > > scalability.... only to not think about how others may accept your
> > > > work when it's complete.  Think of it as doing coding only for
> > > > yourself, to make your life easier.
> > > >
> > > >       3.) Identify a problem that you experience yourself.  For
> > > > example, say you work part-time mowing lawns in the neighborhood.
> > > > Each property pays you $5 per 100'x100' square per job, with a minimum
> > > > of $5 required.  You have 29 properties of various sizes that you mow
> > > > each summer, and have always done one each day, taking the last day to
> > > > scramble and try to be sure all accounts are paid.
> > > >
> > > >       4.) Outline how you want your application to work for you.  In
> > > > the example shown above, you might decide to have an administrative
> > > > panel for you to enter the dimensions of each property under a
> > > > different profile, with the ability to add users, and then view and
> > > > invoice those with outstanding balances.  You can then either merge an
> > > > existing user-management framework (allowed by license) or write your
> > > > own (it's one of the most fundamental, simple things to do).  Then you
> > > > may want to incorporate payment processing for PayPal and
> > > > Authorize.net into that so that you won't have to knock on doors or
> > > > drive to the bank.
> > > >
> > > >       5.) Use the application yourself for a while and work out the
> > > > initial bugs.
> > > >
> > > >       6.) Place the code in a package on your own server with an
> > > > explanation of what it does.  Tell people who may be interested in
> > > > using your work what it is, where it is, how to get it, and how to use
> > > > it.
> > > >
> > > >       7.) You may even want to submit an entry to directories such
> > > > as HotScripts (http://www.hotscripts.com/) or my old favorite,
> > > > Resource Index (http://php.resourceindex.com/).
> > > >
> > > >   Whatever you do, though, before you step into #6 above, be sure
> > > > that you've clearly stated under which license you are distributing
> > > > your code.  Most commonly, of course, will be GPL, LGPL, and BSD, but
> > > > you can use any existing license (such as Apache, PHP, MIT, etc.), or
> > > > write your own.  You may even choose to license your code for
> > > > "anything, anywhere" as I do with some of mine (including all
> > > > pseudocode) by using Copyleft- or Copycenter-style licensure.
> > > >
> > > >
> > > >
> > >  Thanks Dan,
> > >
> > >  Your approach is a great one and actually how I wound up with my
> current
> > > two projects, one of which I forked into a more full featured and fully
> > > supported commercial product.  But those were my ideas based upon user
> need.
> > >
> > >  I wouldn't and I wouldn't expect others to really develop the app for
> the
> > > requester.  This would be an idea farm, because ideas are what I am
> lacking,
> > > especially ideas that would have broad appeal.  I thought maybe others
> would
> > > have the same dilemma.
> > >
> > >  So instead of free code from me or other developers, I view it as
> getting
> > > free ideas from others, users and seekers of the apps (free and for
> cost)
> > > :-)
> > >
> > >  I'm sure that given a few weeks of free time, you and many others here,
> > > maybe even I could've built the original myspace or facebook.  But we
> > > didn't, someone else had the idea.
> > >
> > >  Hope this makes sense.  Just kind of rambling now as I'm frustrated
> about
> > > not having ideas with broad appeal.
> > >
> >
> >    Oh, what you're looking for is a think tank.  I'd been trying to
> > find people in my area to get together and do the same thing.  No such
> > luck around here, but you may have luck in your local area.  Working
> > offline with people, when you can bounce ideas off of one-another
> > while doing something else, gets the creative juices flowing more,
> > because you're not focused on saying, "okay, we need to come up with
> > an idea."
> >
> >
>  Bingo!  Except I was hoping that the end users of the app or site would be
> the think tank, Internet wide.  See, the users are not thinking, they know
> what they want and they google for it or look on sf or hotscripts.  So when
> they can't find it, that's the idea!  Better if you can determine that many
> users have searched in vain or are struggling to find this particular app or
> site, etc...  Then you know that if you develop it it will have some broad
> appeal.  Am I making sense yet?
>
>  -Shawn

Sounds to me like you already have an idea.

Andrew

--- End Message ---
--- Begin Message ---
On Wed, Apr 9, 2008 at 4:54 PM, Andrew Ballard <[EMAIL PROTECTED]> wrote:
>
>  Sounds to me like you already have an idea.

    That's what I was going to say.  Shawn, the thing you're looking
for is your idea.

    Are we making sense yet?  ;-P

-- 
</Daniel P. Brown>
Ask me about:
Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
and shared hosting starting @ $2.50/mo.
Unmanaged, managed, and fully-managed!

--- End Message ---
--- Begin Message ---
Andrew Ballard wrote:
On Wed, Apr 9, 2008 at 4:51 PM, Shawn McKenzie <[EMAIL PROTECTED]> wrote:
Daniel Brown wrote:

On Wed, Apr 9, 2008 at 4:36 PM, Shawn McKenzie <[EMAIL PROTECTED]>
wrote:
Daniel Brown wrote:


On Wed, Apr 9, 2008 at 11:36 AM, Shawn McKenzie <[EMAIL PROTECTED]>

wrote:

Maybe slightly off, but this is a general PHP question :-)


[snip!]


 So to my question: does anyone know of a site or forum where people

request

apps or sites to be built and then it can be voted on to track the

people

that are interested?  I'm not talking about sites where people post
paid
development requests.  Something open and non-contractual in the
spirit
of

open source.


  That depends, Shawn.  Are you looking to be a part of an
established project, or to start your own?  If you wanted to work with
a well-known team, I'd recommend starting with something like the
phpBB group.  You can start off by writing modules and such, and if
you want, get into developing the core application itself.

  To develop full applications in open source technology to someone
else's spec would make me very leery.... because there's almost a
guarantee stamped right there that says, "you're doing my work for
free, you're making me rich."  And while, to you, it is in the spirit
of open source, overall it defeats the purpose of open source.

  The best way to come up with an idea and build a project is to
follow these simple steps:

      1.) Stop giving a damn if something similar exists.  You may
build a better mousetrap.  If developers always said, "no, that's
already been done," there would be just one of everything - from
open-source content management systems to full-blown operating
systems.

      2.) Stop thinking about how others will use your work for now.
 Be selfish and focus on yourself for a bit.  This *does not* mean to
ignore security and good coding practices, or even to ignore
scalability.... only to not think about how others may accept your
work when it's complete.  Think of it as doing coding only for
yourself, to make your life easier.

      3.) Identify a problem that you experience yourself.  For
example, say you work part-time mowing lawns in the neighborhood.
Each property pays you $5 per 100'x100' square per job, with a minimum
of $5 required.  You have 29 properties of various sizes that you mow
each summer, and have always done one each day, taking the last day to
scramble and try to be sure all accounts are paid.

      4.) Outline how you want your application to work for you.  In
the example shown above, you might decide to have an administrative
panel for you to enter the dimensions of each property under a
different profile, with the ability to add users, and then view and
invoice those with outstanding balances.  You can then either merge an
existing user-management framework (allowed by license) or write your
own (it's one of the most fundamental, simple things to do).  Then you
may want to incorporate payment processing for PayPal and
Authorize.net into that so that you won't have to knock on doors or
drive to the bank.

      5.) Use the application yourself for a while and work out the
initial bugs.

      6.) Place the code in a package on your own server with an
explanation of what it does.  Tell people who may be interested in
using your work what it is, where it is, how to get it, and how to use
it.

      7.) You may even want to submit an entry to directories such
as HotScripts (http://www.hotscripts.com/) or my old favorite,
Resource Index (http://php.resourceindex.com/).

  Whatever you do, though, before you step into #6 above, be sure
that you've clearly stated under which license you are distributing
your code.  Most commonly, of course, will be GPL, LGPL, and BSD, but
you can use any existing license (such as Apache, PHP, MIT, etc.), or
write your own.  You may even choose to license your code for
"anything, anywhere" as I do with some of mine (including all
pseudocode) by using Copyleft- or Copycenter-style licensure.



 Thanks Dan,

 Your approach is a great one and actually how I wound up with my
current
two projects, one of which I forked into a more full featured and fully
supported commercial product.  But those were my ideas based upon user
need.
 I wouldn't and I wouldn't expect others to really develop the app for
the
requester.  This would be an idea farm, because ideas are what I am
lacking,
especially ideas that would have broad appeal.  I thought maybe others
would
have the same dilemma.

 So instead of free code from me or other developers, I view it as
getting
free ideas from others, users and seekers of the apps (free and for
cost)
:-)

 I'm sure that given a few weeks of free time, you and many others here,
maybe even I could've built the original myspace or facebook.  But we
didn't, someone else had the idea.

 Hope this makes sense.  Just kind of rambling now as I'm frustrated
about
not having ideas with broad appeal.

   Oh, what you're looking for is a think tank.  I'd been trying to
find people in my area to get together and do the same thing.  No such
luck around here, but you may have luck in your local area.  Working
offline with people, when you can bounce ideas off of one-another
while doing something else, gets the creative juices flowing more,
because you're not focused on saying, "okay, we need to come up with
an idea."


 Bingo!  Except I was hoping that the end users of the app or site would be
the think tank, Internet wide.  See, the users are not thinking, they know
what they want and they google for it or look on sf or hotscripts.  So when
they can't find it, that's the idea!  Better if you can determine that many
users have searched in vain or are struggling to find this particular app or
site, etc...  Then you know that if you develop it it will have some broad
appeal.  Am I making sense yet?

 -Shawn

Sounds to me like you already have an idea.

Andrew
Hmmm... Yes.

I mean:

<?php

echo "<h1>"
."Yes"
."</h1>";

?>

--- End Message ---
--- Begin Message ---
> On Mon, 24 Mar 2008 13:10:17 -0600, [EMAIL PROTECTED] wrote:

> > Beware: round() apparently has changed its behavior from PHP 4. For
> > certain special numbers that seem to be multiples of 100,000, the 
return
> > value is in exponential format, rather than the usual decimal format.
> Some
> > of these special values are 1200000, 1400000, 2300000, which are 
returned
> > as 1.2E+6, 1.4E+6, etc. You can generate your own list of these 
special
> > numbers using this code:
> > 
> > <?php
> > for( $tmp = 0, $i = 0; $i < 100; $i++ ) {
> >     $tmp += 100000;
> >     echo round($tmp),"\n";
> > }
> > ?>

I now have a list of 3 ways this change in behavior can bite you and 
result in a failed transaction. In the examples below, assume that the 
value passed to round() is '1200000', so that the value returned from 
round() is '1.2E+6'.

1. When interpolating the value into xml, resulting in an xsd validation 
error:

<?
$xml = '<AnnualIncome>' . round($income) . '</AnnualIncome>';
?>

2. When validating user input, resulting in a false positive:

<?
if(!ereg("^[0-9]{1,10}$", round($_POST['income']))) {
  $errors .= "<li>Income should be whole dollars only (10 digits 
max).</li>";
}
?>

3. When interpolating a value into a stored procedure call, resulting in a 
type mismatch between the value passed in and the database column data 
type (which is likely decimal for a monetary value):

<?
 $sql = "exec update_loan_financials
           @application_id='$appID',
           @total_debt=" . round($totalDebt);
?>

BTW, a previous poster pointed out that this is a change in behavior of 
the float type, in general, not of the round() function, in particular.

If you care.

I don't. I just know I have broken code to fix and customers to apologize 
to.

Kirk

--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] wrote:
On Mon, 24 Mar 2008 13:10:17 -0600, [EMAIL PROTECTED] wrote:

Beware: round() apparently has changed its behavior from PHP 4. For
certain special numbers that seem to be multiples of 100,000, the
return
value is in exponential format, rather than the usual decimal format.
Some
of these special values are 1200000, 1400000, 2300000, which are
returned
as 1.2E+6, 1.4E+6, etc. You can generate your own list of these
special
numbers using this code:

<?php
for( $tmp = 0, $i = 0; $i < 100; $i++ ) {
    $tmp += 100000;
    echo round($tmp),"\n";
}
?>

I now have a list of 3 ways this change in behavior can bite you and result in a failed transaction. In the examples below, assume that the value passed to round() is '1200000', so that the value returned from round() is '1.2E+6'.

1. When interpolating the value into xml, resulting in an xsd validation error:

<?
$xml = '<AnnualIncome>' . round($income) . '</AnnualIncome>';
?>

2. When validating user input, resulting in a false positive:

<?
if(!ereg("^[0-9]{1,10}$", round($_POST['income']))) {
$errors .= "<li>Income should be whole dollars only (10 digits max).</li>";
}
?>

For the above test, is there any reason you couldn't use is_numeric()

Looks like it would work in this case.
<?php

if ( ! is_numeric($_POST['income']) ) {

    $errors .= "<li>Income should be whole dollars only ".
               "(10 digits max).</li>";

}

?>


3. When interpolating a value into a stored procedure call, resulting in a type mismatch between the value passed in and the database column data type (which is likely decimal for a monetary value):

<?
 $sql = "exec update_loan_financials
           @application_id='$appID',
           @total_debt=" . round($totalDebt);
?>

BTW, a previous poster pointed out that this is a change in behavior of the float type, in general, not of the round() function, in particular.

If you care.

I don't. I just know I have broken code to fix and customers to apologize to.

Kirk



--- End Message ---
--- Begin Message ---
Hi im trying to connect to Nominets EPP server

Details can be found here http://www.nominet.org.uk/registrars/systems/epp/

Im trying to send a login request the example can be found here
http://www.nominet.org.uk/registrars/systems/epp/login/

My script seems to connect ok, but im recieving no response when I try to
send the login xml details.


<?
$fp = @fsockopen('ssl://testbed-epp.nominet.org.uk', 700, $errno, $errstr,
100);
echo "(".$errno." ".$errstr.")";
if(!$fp) {
echo "Not Connected!";
}

else {
echo "Connected!\r\n";

$xml = '<?xml version="1.0" encoding="UTF-8"?>
  <epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd">
    <command>
      <login>
        <clID>EXAMPLE-TAG</clID>
        <pw>foo-BAR2</pw>
        <options>
          <version>1.0</version>
          <lang>en</lang>
        </options>
        <svcs>
           <objURI>http://www.nominet.org.uk/epp/xml/nom-account-1.0
</objURI>
           <objURI>http://www.nominet.org.uk/epp/xml/nom-domain-1.0</objURI>
           <objURI>http://www.nominet.org.uk/epp/xml/nom-contact-1.0
</objURI>
           <objURI>http://www.nominet.org.uk/epp/xml/nom-ns-1.0</objURI>
        </svcs>
      </login>
      <clTRID>ABC-12345</clTRID>
    </command>
  </epp>';

fputs($fp, $xml, strlen($xml));

    while (!feof($fp)) {
      $response .= fgets($fp, 128);
    }
    echo $response;

    fclose($fp);

}
?>

--- End Message ---
--- Begin Message ---
Hey!

Thanks to you and everyone else who replied, I have fixed the problem by 
remaking the tables... 

 

> This is not really anything to do with PHP, of course... :)

:) True, in the end it was not. But in the beginning I couldnt figure out for 
the love of god why my PHP script was not getting the form values and 
variables... so thought it might be something to do with my script and PHP.

Thanks again!
/R




Peter Ford, Developer                 phone: 01580 893333 fax: 01580 893399
Justcroft International Ltd.                              www.justcroft.com
Justcroft House, High Street, Staplehurst, Kent   TN12 0AH   United Kingdom
Registered in England and Wales: 2297906
Registered office: Stag Gates House, 63/64 The Avenue, Southampton SO17 1XS

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--- End Message ---
--- Begin Message ---
Hey Jim,

Yep, That was the problem.... fixed that and now everything works.

***
While we are on the topic of the <form...>...</form> tags, just a side note.  
It 
is invalid HTML syntax to have any tag between your

<table><ILLEGAL><tr><ILLEGAL><td>
ok here
</td><ILLEGAL></tr><ILLEGAL></table>

As a note: the only legal tag that I know of that can be placed in between the 
above tags is the <caption> tag.  oh and the <thead>, <tbody>, and <tfoot> tags.
***

Cheers!
R

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--- End Message ---
--- Begin Message ---
At 12:21 PM -0400 4/9/08, Jason Pruim wrote:


I always used to type my HTML is lower case, but I've been trying to get switched over to UPPERCASE to help separate code from content.

No reason to do change case and every reason to continue using lowercase.

Keep css and javascript unobtrusive in html. But as long as php presents html, then html will be sub-set of php to me.

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
Hey Bill,

Thanks for the tips, makes sense and will try to follow them.

Cheers!
R

*****
Ryan,

Four observations:

1. Don't try to solve your problem by changing the DOCTYPE. Bad HTML is
    bad HTML. Changing the DOCTYPE may reduce the severity of the problem,
    but it won't solve it.

2. You have interpreted the fact that IE gave you what you expected while
    FF did not as a problem with FF, but the opposite is true. A problem
    with IE allowed it to accept HTML that it should not have accepted. FF
    treated it properly.

3. Firebug is a free download from Mozilla. I have it and it has solved
    more problems for me than I can remember. (Or, maybe I just don't have
    a very good memory.) Get it. You will see your <form...> tags inside
    the <table>  </table> tags, but not inside any <td>...</td> tags.

4. Learn to use the W3C Markup Validation service -
    http://validator.w3.org/. It will point out many problems that you can
    solve quickly.

      -----===== Bill =====-----
-- 

Murphy's Law Cardinal Conundrum -
The optimist believes we live in the best of all possible worlds.
The pessimist fears this is true.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--- End Message ---
--- Begin Message ---
Hi,

I've installed lighty and php5 to a FC6 box for testing php code in my
local machine, I set up www.mytest.com to the /etc/hosts. I can see a
page of http://www.mytest.com/index.html, but a blank page to
http://www.mytest.com/index.php. I've run an command "php -l
index.php", the result was "No syntax errors detected in index.php".
What I was missing?

Thank you.

Jim

--- End Message ---

Reply via email to