Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

php-objects · Discussions about Object Oriented Programming in PHP

The Yahoo! Groups Product Blog

Check it out!

Group Information

? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

Advanced
Messages Help
Messages 880 - 909 of 10490   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#880 From: Charl van Jaarsveldt <charlvj@...>
Date: Fri Oct 4, 2002 1:40 pm
Subject: php parameters
charlvj
Send Email Send Email
 
Heya

I want to write a little script in php (as a
standalone script) to convert a text file to some
other format. I have just one problem: how can I send
commandline parameters to the script, or rather, how
do I access those parameters?
Example:
   php -q myscript.php param1 param2

I hope you can help
Thanks
   -Charl

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

#881 From: "Les Aldridge" <plaldridge@...>
Date: Fri Oct 4, 2002 2:36 pm
Subject: RE: php parameters
plaldridge@...
Send Email Send Email
 
If you could use query strings as you do when the program is invoked via
Apache or whatever, it would be

   php -q myscript.php?qp1="param1"&qp2="param2"

I don't know anything about standalone php so I'm guessing.

Les Aldridge


-----Original Message-----
From: Charl van Jaarsveldt [mailto:charlvj@...]
Sent: Friday, October 04, 2002 9:41 AM
To: php-objects@yahoogroups.com
Subject: [php-objects] php parameters


Heya

I want to write a little script in php (as a
standalone script) to convert a text file to some
other format. I have just one problem: how can I send
commandline parameters to the script, or rather, how
do I access those parameters?
Example:
   php -q myscript.php param1 param2

I hope you can help
Thanks
   -Charl

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com


Look here for Free PHP Classes of objects:
http://phpclasses.UpperDesign.com/
To unsubscribe from this group, send an email to:
php-objects-unsubscribe@egroups.com



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

#882 From: Tim Ward <Tim.ward@...>
Date: Fri Oct 4, 2002 2:47 pm
Subject: RE: php parameters
Tim.ward@...
Send Email Send Email
 
have you read this?
http://www.php.net/manual/en/features.commandline.php

seems to use the global $argc and $argv ($_SERVER["arg*"]?)

Tim

> -----Original Message-----
> From: Charl van Jaarsveldt [mailto:charlvj@...]
> Sent: 04 October 2002 14:41
> To: php-objects@yahoogroups.com
> Subject: [php-objects] php parameters
>
>
> Heya
>
> I want to write a little script in php (as a
> standalone script) to convert a text file to some
> other format. I have just one problem: how can I send
> commandline parameters to the script, or rather, how
> do I access those parameters?
> Example:
>   php -q myscript.php param1 param2
>
> I hope you can help
> Thanks
>   -Charl
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
>
> ------------------------ Yahoo! Groups Sponsor
> ---------------------~-->
> 4 DVDs Free +s&p Join Now
> http://us.click.yahoo.com/pt6YBB/NXiEAA/MVfIAA/saFolB/TM
> --------------------------------------------------------------
> -------~->
>
> Look here for Free PHP Classes of objects:
> http://phpclasses.UpperDesign.com/
> To unsubscribe from this group, send an email to:
> php-objects-unsubscribe@egroups.com
>
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/

#883 From: Charl van Jaarsveldt <charlvj@...>
Date: Fri Oct 4, 2002 3:09 pm
Subject: RE: php parameters
charlvj
Send Email Send Email
 
Thanks!
I have done some searching on the internet for a page
like that, and couldn't find it, guess I must've
overlooked it the whole time!

Bye
   -Charl


  --- Tim Ward <Tim.ward@...> wrote: >
have you read this?
>
http://www.php.net/manual/en/features.commandline.php
>
> seems to use the global $argc and $argv
> ($_SERVER["arg*"]?)
>
> Tim
>
> > -----Original Message-----
> > From: Charl van Jaarsveldt
> [mailto:charlvj@...]
> > Sent: 04 October 2002 14:41
> > To: php-objects@yahoogroups.com
> > Subject: [php-objects] php parameters
> >
> >
> > Heya
> >
> > I want to write a little script in php (as a
> > standalone script) to convert a text file to some
> > other format. I have just one problem: how can I
> send
> > commandline parameters to the script, or rather,
> how
> > do I access those parameters?
> > Example:
> >   php -q myscript.php param1 param2
> >
> > I hope you can help
> > Thanks
> >   -Charl
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Everything you'll ever need on one web page
> > from News and Sport to Email and Music Charts
> > http://uk.my.yahoo.com
> >
> > ------------------------ Yahoo! Groups Sponsor
> > ---------------------~-->
> > 4 DVDs Free +s&p Join Now
> >
>
http://us.click.yahoo.com/pt6YBB/NXiEAA/MVfIAA/saFolB/TM
> >
>
--------------------------------------------------------------
> > -------~->
> >
> > Look here for Free PHP Classes of objects:
> > http://phpclasses.UpperDesign.com/
> > To unsubscribe from this group, send an email to:
> > php-objects-unsubscribe@egroups.com
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

#884 From: André Temme <a.temme@...>
Date: Mon Oct 7, 2002 3:47 pm
Subject: Integration of table-calculation in web-programming via php
a.temme@...
Send Email Send Email
 
Hello,

I'm looking for a possibility to integrate s.th. like MS-Excel to the
web. I would like to use it for charts build of data-sets from
mysql-queries.

I think it might be possible with MS-server-components via com, but I am
using linux-servers - maybe it's possible with StarOffice via system-calls?

BTW, I found a nice class to write excel-sheets (write_excel, a
php-implementation of J. McNamaras perl-classes), but this class doesn't
support charts :(

Does anyone has an idea how to do such an integration?


Thanks,
André Temme

#885 From: Manuel Lemos <mlemos@...>
Date: Wed Oct 9, 2002 6:55 am
Subject: Re: Integration of table-calculation in web-programming via php
mallemos
Send Email Send Email
 
Hello,

On 10/07/2002 12:47 PM, André Temme wrote:
> I'm looking for a possibility to integrate s.th. like MS-Excel to the
> web. I would like to use it for charts build of data-sets from
> mysql-queries.
>
> I think it might be possible with MS-server-components via com, but I am
> using linux-servers - maybe it's possible with StarOffice via system-calls?
>
> BTW, I found a nice class to write excel-sheets (write_excel, a
> php-implementation of J. McNamaras perl-classes), but this class doesn't
> support charts :(
>
> Does anyone has an idea how to do such an integration?

Have you tried any of these classes?

http://www.phpclasses.org/excel


--

Regards,
Manuel Lemos

#886 From: php-objects@yahoogroups.com
Date: Sun Oct 13, 2002 6:29 pm
Subject: File - polls.txt
php-objects@yahoogroups.com
Send Email Send Email
 
Hello,

This is just a reminder to let you know that the following polls are going on
the
php-objects mailing list that you are a subscriber. Please do not reply to the
list. Go to the specified pages to vote on these polls.

o Why have you choose to develop with PHP:
   http://groups.yahoo.com/group/php-objects/surveys?id=954322

o Each is or are the operating systems on which you run your PHP applications in
   production environment?
   http://groups.yahoo.com/group/php-objects/surveys?id=929778

Manuel Lemos
moderator of php-objects list

#887 From: php-objects@yahoogroups.com
Date: Sun Oct 27, 2002 5:07 pm
Subject: File - polls.txt
php-objects@yahoogroups.com
Send Email Send Email
 
Hello,

This is just a reminder to let you know that the following polls are going on
the
php-objects mailing list that you are a subscriber. Please do not reply to the
list. Go to the specified pages to vote on these polls.

o Why have you choose to develop with PHP:
   http://groups.yahoo.com/group/php-objects/surveys?id=954322

o Each is or are the operating systems on which you run your PHP applications in
   production environment?
   http://groups.yahoo.com/group/php-objects/surveys?id=929778

Manuel Lemos
moderator of php-objects list

#888 From: "coo_t2" <coo_t2@...>
Date: Tue Nov 5, 2002 12:21 am
Subject: Good PHP OOP apps/classes to study?
coo_t2
Send Email Send Email
 
Hey all.  I'm new to the list.
Anyways, I think I'm a decent php programmer, but haven't done
much OOP.  I've done a few classes, but for all I know the design
of those classes may really suck.
I was wondering if you guys knew of any good classes or object
oriented
applications in php that would be good to study to learn how
to do good OOP design and to learn good OOP practices with
php in general.

Also if they're are any good books, or resources on the web on the
subject
I'd appreciate your suggestions.  I've read the few OOP articles on
phpbuilder.com
by the way.


tia,
--ed

#889 From: Demian Turner <demian@...>
Date: Tue Nov 5, 2002 3:16 am
Subject: Re: Good PHP OOP apps/classes to study?
demianturner
Send Email Send Email
 
I've attempted to compile a list of OOP related articles at PHPkitchen

http://www.phpkitchen.com/index.php?topic=phpOO

hth,

Demian

coo_t2 wrote:

> Hey all.  I'm new to the list.
> Anyways, I think I'm a decent php programmer, but haven't done
> much OOP.  I've done a few classes, but for all I know the design
> of those classes may really suck.
> I was wondering if you guys knew of any good classes or object
> oriented
> applications in php that would be good to study to learn how
> to do good OOP design and to learn good OOP practices with
> php in general.
>
> Also if they're are any good books, or resources on the web on the
> subject
> I'd appreciate your suggestions.  I've read the few OOP articles on
> phpbuilder.com
> by the way.
>
>
> tia,
> --ed
>
>
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
<http://rd.yahoo.com/M=237459.2482214.3917349.2146399/D=egroupweb/S=1705006764:H\
M/A=1267611/R=0/*http://ad.doubleclick.net/jump/N2524.Yahoo/B1071650;sz=300x250;\
ord=1036465706239021?>
>
>
>
> Look here for Free PHP Classes of objects:
> http://phpclasses.UpperDesign.com/
> To unsubscribe from this group, send an email to:
> php-objects-unsubscribe@egroups.com
>
>
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
> <http://docs.yahoo.com/info/terms/>.




[Non-text portions of this message have been removed]

#890 From: Markus Wolff <wolff@...>
Date: Tue Nov 5, 2002 7:23 am
Subject: Re: Good PHP OOP apps/classes to study?
wolff@...
Send Email Send Email
 
Am Tue, 05 Nov 2002 00:21:11 -0000 schrieb "coo_t2" <coo_t2@...>:

> Hey all.  I'm new to the list.
> Anyways, I think I'm a decent php programmer, but haven't done
> much OOP.  I've done a few classes, but for all I know the design
> of those classes may really suck.
> I was wondering if you guys knew of any good classes or object
> oriented
> applications in php that would be good to study to learn how
> to do good OOP design and to learn good OOP practices with
> php in general.

Have a look at http://www.aditus.nu/jpgraph/, it is a quite well
designed OOP package with excellent documentation. You´ll also find an
arcticle about the pitfalls of OOP design in PHP on this site.

Another good package that uses OOP is HTML_OOH_Forms in PEAR, currently
available via cvs only (http://cvs.php.net/). There´s some documentation,
but in German only and a little outdated (http://www.ulf-wendel.de/).

You might also want to have a look at Binarycloud, which is a huge OOP
framework for creating enterprise-level applications in PHP. It still
lacks a lot of documentation and has been in a state of "we´ll be ready
for a first official release in a month or two" for the past two years
now (g), but it´s definitely worth a look if you want examples for good
OOP design in PHP. Oh, yes, the URL: http://www.binarycloud.com/

Regards,
    Markus

--
*21st Media*    | Consulting, Konzeption, Produktion für die Bereiche:
Markus Wolff    | Internet, Intranet, eCommerce, Content Management,
Hamburg,Germany | Softwareentwicklung, 3D-Animation, Videostreaming
http://21st.de  | Tel. [+49](0)40/6887949-0, Fax: [+49](0)40/6887949-1

#891 From: João Dias <jota.dias@...>
Date: Tue Nov 5, 2002 11:12 pm
Subject: RE: Good PHP OOP apps/classes to study?
jotadias2001
Send Email Send Email
 
Hi, Markus and PHP List.

OOP is not a specific PHP issue.
It's a wide field of modern practices relating software development
(or software engineering).

PHP currently has some limitations (though not severe) in supporting OOP.
However, if you follow some rules, you can even pretend that a "sort of"
full support exists.

I think that it is more important to shape our minds for
a good OOP view of the problems, and corresponding solutions, than actually
worrying about specific implementation.

If one is able to do a good OOP analisys and design, it really
doesn't matter if you code your design in C++, Java or PHP.
That is only relevant in terms of your final purpose and environment
restrictions, intended time-to-market, team size, available tools,
and the like.

If you are interested in improving your skills in OOP, or are a
novice in OOP, try R.S.Pressman's site http://www.rspa.com/

They have a lot of resources, and also links concerning OOP topics
and Software Engineering practices in general.

There is also a very good book (my opinion) in Software Eng. and OOP,
wich I recommend to anyone interested: see
http://mcgraw-hill.co.uk/textbooks/pressman/index.html

If in your way through this matters you get addicted
to something known by UML - as I have got :) - , and want to make your own
diagrams try
ArgoUML that is a Java application free for WIN and Linux.




-----Mensagem original-----
De: Markus Wolff [mailto:wolff@...]
Enviada: terça-feira, 5 de Novembro de 2002 7:23
Para: php-objects@yahoogroups.com
Assunto: Re: [php-objects] Good PHP OOP apps/classes to study?


Am Tue, 05 Nov 2002 00:21:11 -0000 schrieb "coo_t2" <coo_t2@...>:

> Hey all.  I'm new to the list.
> Anyways, I think I'm a decent php programmer, but haven't done
> much OOP.  I've done a few classes, but for all I know the design
> of those classes may really suck.
> I was wondering if you guys knew of any good classes or object
> oriented
> applications in php that would be good to study to learn how
> to do good OOP design and to learn good OOP practices with
> php in general.

Have a look at http://www.aditus.nu/jpgraph/, it is a quite well
designed OOP package with excellent documentation. You´ll also find an
arcticle about the pitfalls of OOP design in PHP on this site.

Another good package that uses OOP is HTML_OOH_Forms in PEAR, currently
available via cvs only (http://cvs.php.net/). There´s some documentation,
but in German only and a little outdated (http://www.ulf-wendel.de/).

You might also want to have a look at Binarycloud, which is a huge OOP
framework for creating enterprise-level applications in PHP. It still
lacks a lot of documentation and has been in a state of "we´ll be ready
for a first official release in a month or two" for the past two years
now (g), but it´s definitely worth a look if you want examples for good
OOP design in PHP. Oh, yes, the URL: http://www.binarycloud.com/

Regards,
    Markus

--
*21st Media*    | Consulting, Konzeption, Produktion für die Bereiche:
Markus Wolff    | Internet, Intranet, eCommerce, Content Management,
Hamburg,Germany | Softwareentwicklung, 3D-Animation, Videostreaming
http://21st.de  | Tel. [+49](0)40/6887949-0, Fax: [+49](0)40/6887949-1



Look here for Free PHP Classes of objects:
http://phpclasses.UpperDesign.com/
To unsubscribe from this group, send an email to:
php-objects-unsubscribe@egroups.com



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

#892 From: "coo_t2" <coo_t2@...>
Date: Wed Nov 6, 2002 2:14 am
Subject: Re: Good PHP OOP apps/classes to study?
coo_t2
Send Email Send Email
 
Yes, I am interested in understanding the philosophy of designing OOP
applications, not just how PHP implements it, because I know I'll
probably be doing OOP with other languages in the future like Python,
C++, maybe Java.

Btw, I downloaded jpgraph and am also checking out the links at
http://www.phpkitchen.com/index.php?topic=phpOO&page=1 ..  I've
already read 1 or 2 articles that were helpful.
I'll check out www.rspa.com as suggested below as well.

thanks all,
--ed


--- In php-objects@y..., João Dias <jota.dias@c...> wrote:
> Hi, Markus and PHP List.
>
> OOP is not a specific PHP issue.
> It's a wide field of modern practices relating software development
> (or software engineering).
>
> PHP currently has some limitations (though not severe) in
supporting OOP.
> However, if you follow some rules, you can even pretend that
a "sort of"
> full support exists.
>
> I think that it is more important to shape our minds for
> a good OOP view of the problems, and corresponding solutions, than
actually
> worrying about specific implementation.
>
> If one is able to do a good OOP analisys and design, it really
> doesn't matter if you code your design in C++, Java or PHP.
> That is only relevant in terms of your final purpose and environment
> restrictions, intended time-to-market, team size, available tools,
> and the like.
>
> If you are interested in improving your skills in OOP, or are a
> novice in OOP, try R.S.Pressman's site http://www.rspa.com/
>
> They have a lot of resources, and also links concerning OOP topics
> and Software Engineering practices in general.
>
> There is also a very good book (my opinion) in Software Eng. and
OOP,
> wich I recommend to anyone interested: see
> http://mcgraw-hill.co.uk/textbooks/pressman/index.html
>
> If in your way through this matters you get addicted
> to something known by UML - as I have got :) - , and want to make
your own
> diagrams try
> ArgoUML that is a Java application free for WIN and Linux.
>
>
>
>
> -----Mensagem original-----
> De: Markus Wolff [mailto:wolff@2...]
> Enviada: terça-feira, 5 de Novembro de 2002 7:23
> Para: php-objects@y...
> Assunto: Re: [php-objects] Good PHP OOP apps/classes to study?
>
>
> Am Tue, 05 Nov 2002 00:21:11 -0000 schrieb "coo_t2" <coo_t2@y...>:
>
> > Hey all.  I'm new to the list.
> > Anyways, I think I'm a decent php programmer, but haven't done
> > much OOP.  I've done a few classes, but for all I know the design
> > of those classes may really suck.
> > I was wondering if you guys knew of any good classes or object
> > oriented
> > applications in php that would be good to study to learn how
> > to do good OOP design and to learn good OOP practices with
> > php in general.
>
> Have a look at http://www.aditus.nu/jpgraph/, it is a quite well
> designed OOP package with excellent documentation. You´ll also find
an
> arcticle about the pitfalls of OOP design in PHP on this site.
>
> Another good package that uses OOP is HTML_OOH_Forms in PEAR,
currently
> available via cvs only (http://cvs.php.net/). There´s some
documentation,
> but in German only and a little outdated (http://www.ulf-
wendel.de/).
>
> You might also want to have a look at Binarycloud, which is a huge
OOP
> framework for creating enterprise-level applications in PHP. It
still
> lacks a lot of documentation and has been in a state of "we´ll be
ready
> for a first official release in a month or two" for the past two
years
> now (g), but it´s definitely worth a look if you want examples for
good
> OOP design in PHP. Oh, yes, the URL: http://www.binarycloud.com/
>
> Regards,
>    Markus
>
> --
> *21st Media*    | Consulting, Konzeption, Produktion für die
Bereiche:
> Markus Wolff    | Internet, Intranet, eCommerce, Content Management,
> Hamburg,Germany | Softwareentwicklung, 3D-Animation, Videostreaming
> http://21st.de  | Tel. [+49](0)40/6887949-0, Fax: [+49](0)
40/6887949-1
>
>
>
> Look here for Free PHP Classes of objects:
> http://phpclasses.UpperDesign.com/
> To unsubscribe from this group, send an email to:
> php-objects-unsubscribe@e...
>
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/

#893 From: "WilliamScott99" <williamscott99@...>
Date: Wed Nov 6, 2002 3:40 pm
Subject: Dealer Locator
WilliamScott99
Send Email Send Email
 
Hi Everybody,

I have been using PHP for a year now and am still developing my
skills at implementing it effectively. Also, I am thrilled to be a
memeber of this discussion group. Does anybody know of, or have a PHP
script for a Dealer Locator. Your help is greatly appreciated.

Sincerely,

William Scott
williamscott99@...

#894 From: "sqldreamer" <SGenschow@...>
Date: Wed Nov 6, 2002 4:15 pm
Subject: Re: Good PHP OOP apps/classes to study?
sqldreamer
Send Email Send Email
 
> If in your way through this matters you get addicted
> to something known by UML - as I have got :) - , and want to make
your own
> diagrams try
> ArgoUML that is a Java application free for WIN and Linux.
>

Hi,

that's an interesting aspect. I read a little about UML and things
like class diagramms seems to be useful to get an overview but I
didn't get into that 'use case' stuff. All examples in tutorials are
ok, but I really want to know whether advanced PHP/UML-programmers
are working with that diagramms (in real projects) or is that more an
academic exercise?

- SG

#895 From: Urb LeJeune <urb@...>
Date: Wed Nov 6, 2002 4:17 pm
Subject: Re: Dealer Locator
urb@...
Send Email Send Email
 
>memeber of this discussion group. Does anybody know of, or have a PHP
>script for a Dealer Locator. Your help is greatly appreciated.

          Be more specific of what you mean. If you mean list of dealers
within X miles of Y city or zip code take a look at:

http://www.phpphanatic.com/zipcodes/index.php

Urb

#896 From: "godefroy franck" <f_godefroy@...>
Date: Wed Nov 6, 2002 11:24 pm
Subject: use xls file on linux with php4
f_godefroy
Send Email Send Email
 
hello all,

it's possible ti read or write on a xls file with PHP4 on linux
platform ?

My goal is to write on a xls file using datas contained on a oracle
database.

franck

#897 From: "Marc Guyer" <marc@...>
Date: Thu Nov 7, 2002 12:20 am
Subject: RE: use xls file on linux with php4
marcguyer
Send Email Send Email
 
Take a look at this:

http://wvmt.users.phpclasses.org/browse.html/package/237.html
   -----Original Message-----
   From: godefroy franck [mailto:f_godefroy@...]
   Sent: Wednesday, November 06, 2002 6:25 PM
   To: php-objects@yahoogroups.com
   Subject: [php-objects] use xls file on linux with php4


   hello all,

   it's possible ti read or write on a xls file with PHP4 on linux
   platform ?

   My goal is to write on a xls file using datas contained on a oracle
   database.

   franck




         Yahoo! Groups Sponsor
               ADVERTISEMENT




   Look here for Free PHP Classes of objects:
   http://phpclasses.UpperDesign.com/
   To unsubscribe from this group, send an email to:
   php-objects-unsubscribe@egroups.com



   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]

#898 From: Gold <gold@...>
Date: Thu Nov 7, 2002 12:23 am
Subject: Re: use xls file on linux with php4
citizen_gold
Send Email Send Email
 
On Thu, 2002-11-07 at 10:24, godefroy franck wrote: hello all,

it's possible ti read or write on a xls file with PHP4 on linux
platform ?

My goal is to write on a xls file using datas contained on a oracle
database.


There's a couple here...
http://dknss.mirrors.phpclasses.org/search.html?words=xls&go_search=1

#899 From: Flinn Mueller <flinn@...>
Date: Thu Nov 7, 2002 3:46 am
Subject: Re: use xls file on linux with php4
flinn@...
Send Email Send Email
 
There's also an easy way to have Excel parse your data...

header ("Content-type: application/vnd.ms-excel");

Follow it up with an HTML table, and Excel will open, and parse it
very nicely.  I know it works with Excel 97 and beyond, in IE4+, and
Netscape 4+.

Good Luck,
Flinn Mueller

godefroy franck wrote:

> hello all,
>
> it's possible ti read or write on a xls file with PHP4 on linux
> platform ?
>
> My goal is to write on a xls file using datas contained on a oracle
> database.
>
> franck
>
>
>
>
>
> Look here for Free PHP Classes of objects:
> http://phpclasses.UpperDesign.com/
> To unsubscribe from this group, send an email to:
> php-objects-unsubscribe@egroups.com
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>

#900 From: Urb LeJeune <urb@...>
Date: Thu Nov 7, 2002 5:14 pm
Subject: Re: Re: Good PHP OOP apps/classes to study?
urb@...
Send Email Send Email
 
>Yes, I am interested in understanding the philosophy of designing OOP
>applications, not just how PHP implements it, because I know I'll
>probably be doing OOP with other languages in the future like Python,
>C++, maybe Java.

          As others have said, the concepts are important, not the language.

          I used to teach OOP at the college level. What's interesting is that
new programmers catch on very quickly and experience procedural
programmers have a had time adjusting.

          OOP is actually not about programming but rather about thinking.
Think of how things are the same, not how things are different. If you have
defined a circle object you have methods (functions) to calculate the
property (variable) circumference given the radius. You also have a method
to calculate the area. No suppose you want a sphere object. The insight
is to recognize that is sphere is a three dimensional circle. So you
extend the circle class. What is same? The method for calculating
the circumference is still the same but the method for calculating
the area is different. The extension of the circle simply redefines the
method to calculate the area.

          Let's look at another practical example. You have an application
that searches a list and displays the output. However, if the result set
is over ten you want to display the results in groups of ten and provide
the navigation to display the remainder of the results. Another
important brick in the though process is to look at a problem and
say "how can I solve this for a class of problems rather than just this
specific problem."

          Let's create a class with two methods, GetSearchResults() and
DisplayOneRow(). What do all database queries have in common.
Something like:
SELECT * FROM TableName
WHERE Series of where-clauses
LIMIT StartCount, SizeCount.

          If we pass GetSearchResult() the select statement (without the
limit clause, start-count and size count, We have generalized the
method.

          process inside will be something like:

    while($OneRow = mysql_fetch_array($Result)) {

}

          Within the while loop we have to deal with the associative
arry generated with the mysql_fetch_array() function. It will be
different for every table we want to process. So we call
DispalyOneLine() This method deal with the query for this
specific table.

          When we need search processing functionality in the futures
we need only start a query, determine how may items to diaplay,
start it at the desired point, and redefine the functions
DisplayOneLine() to deal with displaying the request for the new
table. It might be something like:

function DispalyOneLine(&$OutputDisplay,$OneRow) {
    extract($OneRow); # Transform array into named variables.
    $OutputDisplay .= "<P>$Title .....";
}

          and it's all done.

Urb

#901 From: João Dias <jota.dias@...>
Date: Fri Nov 8, 2002 10:13 pm
Subject: RE: Re: Good PHP OOP apps/classes to study?
jotadias2001
Send Email Send Email
 
Hi,

No I don't think it to be an academic exercise.
I'm working in a real PHP project (private school management
software) in wich I will apply all those OOP ideas
that I think will improve the final product quality.
It is also my first OOP project, so perhaps I'm a little biased
with excitment :)

But usually I like to stay on middle-ground.

If you are working in web development, probably you have to
deal with tight schedules, so it won't be so worthing to spend
lots of time doing analysis and design in something that will change in one
year or two.
I think that extensive use of this techniques tend to put you away
from Rapid Develop (RAD) paradigm.

Trying to achieve a compromise between RAD and OOP can be of some use.

For instance, use-cases can give you a good help in achieving
a better user interface, with less features missing, and more
aspects totally covered from the begining.

In my case, I'm converting a jeopardized app written - by me, :/
- in VB. It became a little "working monster" because of size and
poor design (what design ?, after 15 days of design and more than
one year of coding work - there's no design at all; you should have about
80% of analysis & design and about 20% of coding time!).

  Now I am writing the app from the begining in PHP.

My goal is to reduce final bugs to 1/10 of the original app,
and to achieve a complete network project in one third of the time,
but maintaining the original features, and ensuring that final product will
be flexible and of ease maintainance (so I should be careful with design).

Because of the goal about reducing develop. time I will shortcut
my way in some aspects of OOP theory and UML, but if I were using
Java, (and I hope that will happen in about a year), I certainly
follow those guidelines very carefully.
I have read a lot about that, and they are well-proven good practices
in software development. Why questioning what others have worked so hard to
prove ?

Note also that tools like ArgoUML are also CASE tools, and their
availability can improve your speed in writing code, by generating
the skeleton code for your designs (more true when the language
syntax is more complex; so more true for Java than for PHP).

Have fun
João Dias



-----Mensagem original-----
De: sqldreamer [mailto:SGenschow@...]
Enviada: quarta-feira, 6 de Novembro de 2002 16:15
Para: php-objects@yahoogroups.com
Assunto: [php-objects] Re: Good PHP OOP apps/classes to study?

Hi,

that's an interesting aspect. I read a little about UML and things
like class diagramms seems to be useful to get an overview but I
didn't get into that 'use case' stuff. All examples in tutorials are
ok, but I really want to know whether advanced PHP/UML-programmers
are working with that diagramms (in real projects) or is that more an
academic exercise?

- SG



Look here for Free PHP Classes of objects:
http://phpclasses.UpperDesign.com/
To unsubscribe from this group, send an email to:
php-objects-unsubscribe@egroups.com



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

#902 From: "Stan E. Rambin" <serambin@...>
Date: Fri Nov 8, 2002 10:41 pm
Subject: Re: Re: Good PHP OOP apps/classes to study?
serambin
Send Email Send Email
 
Hi,
         Perhaps the best way to think about design vs RAD, is to remember
that often code written for short projects get recycled into larger, more
complex projects over time.  For example, most of use have written
authorization log-in scripts for many small projects.
         Now if our large project is composed of such small, well tested
scripts, design is more a matter organizing the these scripts into a
coherent whole.  You can use something as simple as 3 X 5 file cards with
information on each snippet of code to help the process.  If, on the
other hand, a great deal of code will be new or if most of the snippets
will under go substantial changes, then at least 30% of the project
should be design/define allocated.  Whether you use functions as 'mass
includes' or organize your project into true classes, clearly defined
logical processes are less time consuming than finding the needles in the
haystack of rambling code.
         You'll be glad you took the time, five years from now, when you
resell a bunch of that 'good' code at market rate and all you have to do
is paste it together.

Stan Rambin
LaData Software Development
http://ladatahost.com
Quality hosting - $4.95 / Month

On Fri, 8 Nov 2002 22:13:49 -0000 =?iso-8859-1?B?Sm/jbyBEaWFz?=
<jota.dias@...> writes:
> Hi,
>
> No I don't think it to be an academic exercise.
> I'm working in a real PHP project (private school management
> software) in wich I will apply all those OOP ideas
> -----Mensagem original-----
> De: sqldreamer [mailto:SGenschow@...]
> Enviada: quarta-feira, 6 de Novembro de 2002 16:15
> Para: php-objects@yahoogroups.com
> Assunto: [php-objects] Re: Good PHP OOP apps/classes to study?
>
> Hi,
>
> that's an interesting aspect. I read a little about UML and things
> like class diagramms seems to be useful to get an overview but I
> didn't get into that 'use case' stuff. All examples in tutorials are
> ok, but I really want to know whether advanced PHP/UML-programmers
> are working with that diagramms (in real projects) or is that more
> an academic exercise?...
>
> - SG
>
>
>
> Look here for Free PHP Classes of objects:
> http://phpclasses.UpperDesign.com/
> To unsubscribe from this group, send an email to:
> php-objects-unsubscribe@egroups.com
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
>
> ------------------------ Yahoo! Groups Sponsor
>
> Look here for Free PHP Classes of objects:
> http://phpclasses.UpperDesign.com/
> To unsubscribe from this group, send an email to:
> php-objects-unsubscribe@egroups.com
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
>

________________________________________________________________
Sign Up for Juno Platinum Internet Access Today
Only $9.95 per month!
Visit www.juno.com

#903 From: "sqldreamer" <SGenschow@...>
Date: Sun Nov 10, 2002 2:49 pm
Subject: Re: Good PHP OOP apps/classes to study?
sqldreamer
Send Email Send Email
 
Hi,
it was just an impression of me. Maybe because most
workshop/tutorials dealing with classes don't use UML diagramms very
intensive.
Nevertheless I found a very interesting exception from a german
multimedia agency; they wrote an article about very sophisticated
form-classes they developed in PHP and they used all that UML-stuff
and it seems to be very straight and logic.

Source: (all in german language, sorry, but that is the only example
I know)
"Objektmodell zur Realisierung komplexer Formularabläufe" by
Kral/Vieth in: PHP IM EINSATZ, Geschke, Schotte (Hrsg): das Buch zur
International PHP Conference 2001


> If you are working in web development, probably you have to
> deal with tight schedules, so it won't be so worthing to spend
> lots of time doing analysis and design in something that will
change in one year or two.
> Because of the goal about reducing develop.....

The annoying part of webdevelopment is it's cyclical behaviour: some
weeks full of work others being lazy. But that's nothing that could
be influenced by UML, esp when the deadline is near there will not be
much design. (Maybe the goal can be simpler: just eliminating that
cyclical bahaviour, not the absolut amount of developing time?)


> Note also that tools like ArgoUML are also CASE tools, and their
> availability can improve your speed in writing code, by generating
> the skeleton code for your designs (more true when the language
> syntax is more complex; so more true for Java than for PHP).

I played with ArguUML a bit and the diagram part works fine: all
types of diagramms and I like that ToDoItem idea that helps avoiding
mistakes.

- SG

#904 From: php-objects@yahoogroups.com
Date: Sun Nov 10, 2002 6:21 pm
Subject: File - polls.txt
php-objects@yahoogroups.com
Send Email Send Email
 
Hello,

This is just a reminder to let you know that the following polls are going on
the
php-objects mailing list that you are a subscriber. Please do not reply to the
list. Go to the specified pages to vote on these polls.

o Why have you choose to develop with PHP:
   http://groups.yahoo.com/group/php-objects/surveys?id=954322

o Each is or are the operating systems on which you run your PHP applications in
   production environment?
   http://groups.yahoo.com/group/php-objects/surveys?id=929778

Manuel Lemos
moderator of php-objects list

#905 From: "blackpool54" <steve@...>
Date: Wed Nov 13, 2002 4:54 pm
Subject: Is there a PHP equivilent to dBase's "do case" statement?
blackpool54
Send Email Send Email
 
Or do I end up having to use endless if/else statements to get the job
done?

What I am trying to do is something like this...

do case
   case = index
     show index on screen
   case = aboutus
     show aboutus on screen
    case = etc.
     ...
endcase

#906 From: Mark <mark_weinstock@...>
Date: Wed Nov 13, 2002 6:12 pm
Subject: Re: Is there a PHP equivilent to dBase's "do case" statement?
mark_weinstock
Send Email Send Email
 
Use the switch statement.

switch ($i) {
     case 0:
         print "i equals 0";
         break;
     case 1:
         print "i equals 1";
         break;
     case 2:
         print "i equals 2";
         break;
}

--- blackpool54 <steve@...> wrote:
> Or do I end up having to use endless if/else statements to get the
> job
> done?
>
> What I am trying to do is something like this...
>
> do case
>   case = index
>     show index on screen
>   case = aboutus
>     show aboutus on screen
>    case = etc.
>     ...
> endcase
>
>
>
>


=====
Mark Weinstock
mark_weinstock@...
***************************************
You can't demand something as a "right" unless you are willing to fight to death
to defend everyone else's right to the same thing.
-Stolen from the now-defunct Randy's Random mailing list.
***************************************

__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

#907 From: "Marc Guyer" <marc@...>
Date: Wed Nov 13, 2002 6:24 pm
Subject: RE: Is there a PHP equivilent to dBase's "do case" statement?
marcguyer
Send Email Send Email
 
You mean:

switch ($page){
     case 'index':
         show index
         break;
     case 'aboutus':
         show aboutus
         break;
     default:
         show default
}
   -----Original Message-----
   From: blackpool54 [mailto:steve@...]
   Sent: Wednesday, November 13, 2002 11:54 AM
   To: php-objects@yahoogroups.com
   Subject: [php-objects] Is there a PHP equivilent to dBase's "do case"
statement?


   Or do I end up having to use endless if/else statements to get the job
   done?

   What I am trying to do is something like this...

   do case
     case = index
       show index on screen
     case = aboutus
       show aboutus on screen
      case = etc.
       ...
   endcase




   Look here for Free PHP Classes of objects:
   http://phpclasses.UpperDesign.com/
   To unsubscribe from this group, send an email to:
   php-objects-unsubscribe@egroups.com



   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


[Non-text portions of this message have been removed]

#908 From: Peter Simard <peter@...>
Date: Wed Nov 13, 2002 7:11 pm
Subject: Re: Is there a PHP equivilent to dBase's "do case" statement?
petesimard
Send Email Send Email
 
#909 From: "Andrew Drexler" <andy@...>
Date: Wed Nov 13, 2002 7:38 pm
Subject: RE: Is there a PHP equivilent to dBase's "do case" statement?
ulfie22
Send Email Send Email
 
switch (<some expression) {

     case 'case a' :

         break;
     case 'case b' :

         break;

     default:

}

-----Original Message-----
From: blackpool54 [mailto:steve@...]
Sent: Wednesday, November 13, 2002 8:54 AM
To: php-objects@yahoogroups.com
Subject: [php-objects] Is there a PHP equivilent to dBase's "do case"
statement?


Or do I end up having to use endless if/else statements to get the job
done?

What I am trying to do is something like this...

do case
   case = index
     show index on screen
   case = aboutus
     show aboutus on screen
    case = etc.
     ...
endcase




Look here for Free PHP Classes of objects:
http://phpclasses.UpperDesign.com/
To unsubscribe from this group, send an email to:
php-objects-unsubscribe@egroups.com



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .




[Non-text portions of this message have been removed]

Messages 880 - 909 of 10490   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help