Re: [PHP] Web dev, DB and "proper db design".

2013-07-05 Thread Tony Marston
"Lester Caine" wrote in message news:51d6987c.9050...@lsces.co.uk... Tony Marston wrote: I was designing and building database applications before relational databases became popular, and in those old hierarchical and network databases there were no such things as foreign key c

Re: [PHP] Web dev, DB and "proper db design".

2013-07-05 Thread Tony Marston
without constraints, so saying that you cannot use a field as a foreign key in a SELECT statement without having a constraint defined in the database is just plain wrong. -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Web dev, DB and "proper db design".

2013-07-04 Thread Tony Marston
SELECTs You cannot have relationships in a database without foreign keys, but you can have foreign keys with constraints. -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PDO: extend or encapsulate?

2012-07-14 Thread Tony Marston
saying "don't use encapsulation"or "don't use polymorphism". What a bunch of idiots! -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Hungarian Notation interest with PHP

2012-06-04 Thread Tony Marston
e been totally confusing to allow alpha characters in a variable that was supposed to contain nothing but numbers. -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Function size

2012-06-03 Thread Tony Marston
"Tim Streater" wrote in message news:d0.7c.45755.25a3b...@pb1.pair.com... On 03 Jun 2012 at 10:02, Tony Marston wrote: "tamouse mailing lists" wrote in message news:cahuc_t__sw-_yhrw4n4uqr-fa46+cebunzgehboaatrafla...@mail.gmail.com... There is a point: if you are

Re: [PHP] Re: Function size

2012-06-03 Thread Tony Marston
"tamouse mailing lists" wrote in message news:cahuc_t__sw-_yhrw4n4uqr-fa46+cebunzgehboaatrafla...@mail.gmail.com... On Tue, May 29, 2012 at 2:52 AM, Tony Marston wrote: On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: A rule of thumb is no more than 50 lines per func

Re: [PHP] Re: Function size

2012-05-30 Thread Tony Marston
"Ashley Sheridan" wrote in message news:1338326229.2616.31.camel@localhost.localdomain... > On Tue, 2012-05-29 at 17:06 -0400, Paul M Foster wrote: > >> On Tue, May 29, 2012 at 08:52:46AM +0100, Tony Marston wrote: >> >> > On May 21, 2012, at 8:32 PM, tamous

[PHP] Re: Function size

2012-05-29 Thread Tony Marston
100 functions of 10 lines each, you still end up with 1000 lines of code. If you do not have the mental capacity to deal with a 100-line function then you are in the wrong job. -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.ne

[PHP] Re: [PHP-DB] School timetable in php

2012-04-23 Thread Tony Marston
tton, then select "Classroom". This has functions for rooms, teachers, subjects, lessons, classes and students. -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] If design patterns are not supposed to produce reusable code then why use them?

2010-01-03 Thread Tony Marston
"Larry Garfield" wrote in message news:201001010553.41956.la...@garfieldtech.com... > On Friday 01 January 2010 05:26:48 am Tony Marston wrote: > >> > It depends what you're reusing. Design patterns are reusable concepts, >> > not reusable code. That&#x

Re: [PHP] If design patterns are not supposed to produce reusable code then why use them?

2010-01-01 Thread Tony Marston
se them? > Date: Thursday 31 December 2009 > From: Larry Garfield > To: "Tony Marston" > > On Wednesday 30 December 2009 10:50:40 am Tony Marston wrote: >> I have recently been engaged in an argument via email with someone who >> criticises my low opinion of

[PHP] If design patterns are not supposed to produce reusable code then why use them?

2009-12-30 Thread Tony Marston
not? If not, and each implementation of a pattern takes just as much time as the first, then where are the productivity gains from using design patterns? -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: Good SQL builder class

2009-12-04 Thread Tony Marston
Take a look at http://www.tonymarston.net/php-mysql/databaseobjects.html You can also download a working example of this code from http://www.tonymarston.net/php-mysql/sample-application.html -- Tony Marston http://www.tonymarston.net http://www.radicore.org "Anton Heuschen" wrote

[PHP] Re: Return object to client

2009-11-27 Thread Tony Marston
It is not possible to return an object via a web service, only data. You can create an object in the client process, then populate it with data obtained from a web service. -- Tony Marston http://www.tonymarston.net http://www.radicore.org "Manoj Singh" wrote in mes

Re: [PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-09 Thread Tony Marston
"David Otton" wrote in message news:193d27170911090331k7ecbe69cl1dd30651273e7...@mail.gmail.com... > 2009/11/9 Tony Marston : > >> So you wouldn't trust the PHP developers to write simple code which takes >> each POSIX function and redirects it to a PCRE func

Re: [PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-09 Thread Tony Marston
"Ashley Sheridan" wrote in message news:1257764339.1076.56.ca...@localhost... > On Mon, 2009-11-09 at 00:23 +, Tony Marston wrote: > >> developer laziness >> or incompetence is not an acceptable excuse. > > > Exactly, so fix your scripts! But my scri

Re: [PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-09 Thread Tony Marston
"Robert Cummings" wrote in message news:4af76e1f.2050...@interjinn.com... > Tony Marston wrote: >> "Robert Cummings" wrote in message >>>>> Then you've got several options: >>>>> 1) Don't upgrade PHP. >>>> Not a

Re: [PHP] Convert deprecated POSIX functions into wrappers forequivalent PCRE functions

2009-11-09 Thread Tony Marston
t; > > Because Tony's Radicore framework has a bunch of ereg* calls in it. ;-} Just like a lot of other people's work. -- Tony Marston http://www.tonymarston.net http://www.radicore.org > Paul > > -- > Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-08 Thread Tony Marston
"Robert Cummings" wrote in message news:4af7549d.1060...@interjinn.com... > Tony Marston wrote: >> "Eddie Drapkin" wrote in message >> news:68de37340911081330v799803f3he6ed60ecc6e67...@mail.gmail.com... >> On Sun, Nov 8, 2009 at 4:13 PM, Tony Marst

Re: [PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-08 Thread Tony Marston
"Eddie Drapkin" wrote in message news:68de37340911081330v799803f3he6ed60ecc6e67...@mail.gmail.com... On Sun, Nov 8, 2009 at 4:13 PM, Tony Marston wrote: > That's an amateur fudge, not a professional fix. Besides, what happens if > your hosting company won't let y

Re: [PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-08 Thread Tony Marston
That's an amateur fudge, not a professional fix. Besides, what happens if your hosting company won't let you install PECL extensions? -- Tony Marston http://www.tonymarston.net http://www.radicore.org "Eddie Drapkin" wrote in message news:68de37340911081209p45

Re: [PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-08 Thread Tony Marston
de, so we've decided to drop them from PHP entirely even though it will break lots of scripts" will not go down well in userland. -- Tony Marston http://www.tonymarston.net http://www.radicore.org "John Black" wrote in message news:4af70120.1040...@network-technologies

[PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-08 Thread Tony Marston
is as soon as possible so that the changeover to PCRE wrappers can be fully tested and debugged before PHP 6 goes live. This will make the changeover from POSIX to PCRE totally transparent, and will be greatly appreciated in userland. -- Tony Marston http://www.tonymarston.net http://www

Re: [PHP] Converting tables into forms

2009-10-28 Thread Tony Marston
kflow engine. -- Tony Marston http://www.tonymarston.net http://www.radicore.org "chetan rane" wrote in message news:248b70ae0910271901o6ffd569dl203c9a08bfe8a...@mail.gmail.com... > Hi Ben > > The quickest way to this is by using a framework. > and the best way i could find

[PHP] Re: What is the best practice for adding persistence to an MVC model?

2009-10-27 Thread Tony Marston
other by simply changing a single configuration variable. In my own framework I have implemented DAOs for MySQL, PostgreSQL and Oracle. -- Tony Marston http://www.tonymarston.net http://www.radicore.org "Eric Bauman" wrote in message news:b9.45.36627.eb296...@pb1.pair.com... > I&#

[PHP] Re: Question: Sorting through table headers?

2009-09-14 Thread Tony Marston
d a single class is not allowed to operate in more than one layer. -- Tony Marston http://www.tonymarston.net http://www.radicore.org ""Parham Doustdar"" wrote in message news:77.26.26879.9b9ad...@pb1.pair.com... Hello there, I've been asked to create something like the

[PHP] Re: Hoping for a hand with a login script

2009-09-10 Thread Tony Marston
You are constructing your query in "$qury" yet you are trying to read it from "$query". Because they have different spellings they are treated as different variables. -- Tony Marston http://www.tonymarston.net http://www.radicore.org "Watson Blair

Re: [PHP] XML. Prevent < from turning into <

2009-09-09 Thread Tony Marston
You need to look at "disable_output_escaping" at http://www.w3.org/TR/xslt#disable-output-escaping -- Tony Marston http://www.tonymarston.net http://www.radicore.org "Matthew Croud" wrote in message news:2c4840c2-45db-4d6c-b5fa-2cb15b171...@obviousdigital.com... > &g

[PHP] mbstring.func_overload cannot been changed in htaccess

2009-08-13 Thread Tony Marston
fault, then how do you turn it on? If it is on by default then how do you turn it off? It needs to be turned off for phpMyAdmin otherwise it will issue a message warning about possible data corruption. Should this option be reinstated? -- Tony Marston http://www.tonymarston.net

Re: [PHP] Is select_db necessary?

2009-08-12 Thread Tony Marston
as a precaution. > I'm not expert, but I thought I'd offer my observation and am open to > correction. ;-) > PJ This only works if you specify a database name in the call to mysqli_connect(). If provided (it is optional) it identifies the default database name for all subsequent

Re: [PHP] Is select_db necessary?

2009-08-12 Thread Tony Marston
ery which contains table names which do not have to be qualified with their database/schema names. If you wish to refer to a table which is not in the current database/schema then you must include the database/schema name. I consider the use of the term "schema", as used by Post

[PHP] Re: how to say "inverse your value" (to a boolean)?

2009-08-10 Thread Tony Marston
Try $tableRowBGcolorBoolCounter = !$tableRowBGcolorBoolCounter Notice that it says '= !' instead of !='. -- Tony Marston http://www.tonymarston.net http://www.radicore.org "John Butler" wrote in message news:52842d6f-dd45-44a6-ae06-2e58ef8f6...@gmail.com... > qui

[PHP] Re: Question: what are frameworks?

2009-08-09 Thread Tony Marston
the development of particular kinds of software, such as building web sites or CMS systems, whereas others (like Radicore) are for building web applications. -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread Tony Marston
tures will not be frozen until the first GA release. -- Tony Marston http://www.tonymarston.net http://www.radicore.org "Ashley Sheridan" wrote in message news:1249585209.2818.0.ca...@localhost... > On Thu, 2009-08-06 at 17:24 +0100, Tony Marston wrote: >> PHP 6 does not exis

Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread Tony Marston
ry version is still perfectly valid and useful to the novice programmer. This not a book which is supposed to describe every possible feature within the PHP language as it is not necessary to use every possible feature in order to build a dynamic website. -- Tony Marston http://www.tonymarsto

Re: [PHP] Re: Newbie: Composition by Association - Pagination Class general question.

2009-07-22 Thread Tony Marston
ere you can place the code: (1) In the component script. (2) In the table class, as shown in http://www.tonymarston.net/php-mysql/infrastructure-faq.html#faq84 -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Newbie: Composition by Association - PaginationClass general question.

2009-07-19 Thread Tony Marston
"Paul M Foster" wrote in message news:20090719220923.gv14...@quillandmouse.com... > On Sun, Jul 19, 2009 at 03:56:43PM +0100, Tony Marston wrote: > >> Two things strike me as wrong with your thinking: >> >> (1) The idea that you have a separate DAO for each ent

Re: [PHP] Re: Newbie: Composition by Association - Pagination Class general question.

2009-07-19 Thread Tony Marston
code to maintain. If you look carefully you should see that the only difference between the DAO for TableA and the DAO for TableB is the table name and the table structure. If you could pass these as arguments into a generic DAO then you would not need a separate DAO for each tab

[PHP] Re: Newbie: Composition by Association - Pagination Class general question.

2009-07-19 Thread Tony Marston
is works then you can run my sample application at http://www.tonymarston.net/php-mysql/sample-application.html You can even download the code so that you can step through it with your debugger. -- Tony Marston http://www.tonymarston.net http://www.radicore.org ""MEM""

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Tony Marston
"Still Learnin'" wrote in message news:4a565c73.8090...@gmail.com... > Tony Marston wrote: > >>> You've been told more than twice, it isn't an arbitrary rule. It isn't >>> a petty rule. It isn't about perfection. >> >>

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Tony Marston
This post did not come from me. The headers contain this: Received: from [74.54.247.2] ([74.54.247.2:59280] helo=mail.caracol-cream.com) Very funny. -- (the real) Tony Marston http://www.tonymarston.net http://www.radicore.org ""(the fake) Tony Marston"" wrote in m

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Tony Marston
My sincerest apologies. I have been a complete jackass this entire time and every single one of you has been correct. From this point forward I vow to keep my God damned mouth shut unless spoken to. You see, I have been struggling with defining my sexual identity and trying to

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Tony Marston
"Still Learnin'" wrote in message news:4a5641d1.9040...@gmail.com... > Tony Marston wrote: > >> I have no respect for anyone who wastes time in trying to force others to >> obey their petty rules. > > ... >> The whole point about this particlar rul

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Tony Marston
worth > debating. Yet another fatuous argument. "Thursday" has never been called "Myday", so I would never propose such a thing. Top posting is different for the simple reason that it existed in other newsgroups long before this group started, and I object to being forced to

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Tony Marston
ve already made up my mind, don't try to confuse me with facts." The "fact" is that some people care about top posting while others do not. Some people are passionately against it while others couldn't give a toss. I personally don't give a toss, but I do see red wh

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Tony Marston
"Ashley Sheridan" wrote in message news:1247162816.3514.17.ca...@localhost.localdomain... > On Thu, 2009-07-09 at 16:57 +0100, Tony Marston wrote: >> It's stupid because there is no valid reason as to why top posting is >> *bad*. >> It has existed on

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Tony Marston
"Daniel Brown" wrote in message news:ab5568160907090729j4c2cc67esff2823dcb493d...@mail.gmail.com... > On Thu, Jul 9, 2009 at 09:54, Tony Marston > wrote: >> >> I called him "intolerant" because he jumps on issues which other people >> just

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Tony Marston
"Bastien Koert" wrote in message news:d7b6cab70907090705i1575fe0ft21a2cc82c992b...@mail.gmail.com... > On Thu, Jul 9, 2009 at 9:54 AM, Tony > Marston wrote: >> >> "Bastien Koert" wrote in message >> news:d7b6cab70907090623s6b37641dt90a564f1d80fe...@m

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Tony Marston
les that existed before I got here and > will exist after I leave and are agreed on by the community, so I'll > not follow them!" is one of the most arrogant things I've ever seen on > this list. He was making a suggestion, ffs, and you just want to be > an ass and take everything personally. You're making an entire > mountain range out of the proverbial molehill. It is *you* who are making a mountain out of the no-top-posting molehill. -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Tony Marston
"Bastien Koert" wrote in message news:d7b6cab70907090623s6b37641dt90a564f1d80fe...@mail.gmail.com... On Thu, Jul 9, 2009 at 8:54 AM, Tony Marston wrote: > > "Stuart" wrote in message > news:a5f019de0907090340k47216f7fh4d83434ef98ce...@mail.gmail.com... >>

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Tony Marston
"Stuart" wrote in message news:a5f019de0907090340k47216f7fh4d83434ef98ce...@mail.gmail.com... 2009/7/9 Tony Marston : > I thought of a better analogy. You ever been on the London > Underground? There's a rule that says you stand on the right-hand side > of escalators

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Tony Marston
ssage. Sometimes the only part of the previous post you leave in is the part for which you are supplying an answer so as to avoid confusion. Where I put my answers depends on the context, so saying that IT MUST ALWAYS BE AT THE BOTTOM doesn't wash with me. -- Tony Marston http://www.tonym

[PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread Tony Marston
igence to see how the rule might be changed to suit the new circumstances. I have fought against arbitrary and stupid rules for decades, and I will keep fighting till the day I die. If you have a problem with that, then so be it. -- Tony Marston http://www.tonymarston.net

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Tony Marston
Then some arrogant prat came along and said "I don't like this, so I am going to make a rule which forbids it!". I don't like this rule, so I choose to disobey it. -- Tony Marston http://www.tonymarston.net http://www.radicore.org &q

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Tony Marston
nsible rule, and one which I have no problem in following, is that if a question is posted in English then I will answer in English. That makes sense, whereas "no top posting" does not. -- Tony Marston http://www.tonymarston.net http://www.radicore.org &q

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Tony Marston
What rules? I never agreed to abide by any rules before I started posting to this group. My newsreader assumes top posting by default, so I have been top posting for the past 10 years. If you don't like it then it is your problem, not mine. -- Tony Marston http://www.tonymarston.net

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Tony Marston
No it isn't. That's just your personal preference. Mine is different. -- Tony Marston http://www.tonymarston.net http://www.radicore.org "PJ" wrote in message news:4a54c0e8.2080...@videotron.ca... > Michael A. Peters wrote: >> Daniel Brown wrote: >>

[PHP] Re: Automated form generation?

2009-06-08 Thread Tony Marston
nary, export it to create the basic List/Search/Create/Read/Update/Delete transactions. All withut writing a single line of HTML, SQL or even PHP. You can customise these scripts to your heart's content As an added bonus you get a Role Based Access Control (RBAC) system, Audit Logging, Wo

Re: [PHP] Web application design considerations - a good reference?

2009-06-02 Thread Tony Marston
, PRODUCT, ORDER, SHIPMENTS and INVENTORY databases from the shemas in the book, then used the Radicore data dictionary to generate the basic trasactions. All I had to do then was modify the table classes for the business rules, customise a few screens, and I have my working application. It i

[PHP] Re: Web application design considerations - a good reference ?

2009-06-02 Thread Tony Marston
, so makes maximum use of reusable modules. There is an enormous amount of documentation to be found at http://www.radicore.org as well as a tutorial and some sample applications. Try it and see. -- Tony Marston http://www.tonymarston.net http://www.radicore.org ""Angus Mann

Re: Re: [PHP] Re: PHP, OOP and AJAX

2009-05-28 Thread Tony Marston
ting and debugging) - then you have no time to write that > structured and efficient code in order to meet your deadlines! :) Not using autoload does not have any noticeable effect on my deadlines, so I have no incentive to use it. Just because you say that I *should* use it carries no w

Re: Re: [PHP] Re: PHP, OOP and AJAX

2009-05-28 Thread Tony Marston
robably too lazy to write readable, well structured and efficient code. Besides, I don't use "require" statements, I use $dbobject =& singleton::getInstance('classname'); I don't use autoload because *I* want to be in control. I prefer not to rely on automatui

Re: Re: [PHP] Re: PHP, OOP and AJAX

2009-05-28 Thread Tony Marston
going OOP, autoloading is a must! I totally disagree. I have been doing OOP with PHP for years, and I have never used autoloading. It is just a feature that can be used, misused or abused just like any other. I choose not to use it, and my code does not suffer in the least! -- Tony Marston htt

[PHP] Re: Forms validation and creation- easier solution?

2009-05-23 Thread Tony Marston
se of a Data Dictionary. After building a database table I import the structure into my data dictionary, then export it to create a database table class and a table structure file. Still using the data dictionary I can then build the family of transactions to maintain that database table. This uses a standard set of page controllers and XSL templates to build the HTML. So within 5 minutes I can run the transactions to list, search, add, enquire, delete and update that database table without having to write a single line of SQL or HTML. In most cases I don't even have to write a single line of PHP. Is your method as fast as that? All this functionality exists within the Radicore framework, so you can download it and try it for yourself. -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Self-Process php forms or not?

2009-04-24 Thread Tony Marston
's changes back to the server for validation and updating. By dealing with both the GET and POST in a single script it means that you don't have to redirect to a different script if you have to redisplay the data because of invalid use input. -- Tony Marston http://www.

Re: [PHP] Self-Process php forms or not?

2009-04-24 Thread Tony Marston
layers. -- Tony Marston http://www.tonymarston.net http://www.radicore.org ""MEM"" wrote in message news:002b01c9c4dd$08569bc0$1903d3...@com... > So, on your opinion, we can call that method, on some circumstances, a > good > practice? > > What about the

Re: [PHP] Multiple return statements in a function.

2009-04-23 Thread Tony Marston
ning code to a single return point. In the good old days we used to use the GOTO in COBOL to jump to the exit point, but then people found a way to abuse GOTO in very imaginatve ways. > The "benefit" is easier to read code. I think that an immediate return is easier to read, b

[PHP] Re: fpdf adding font error

2009-03-27 Thread Tony Marston
If you want to use UTF-8 fonts with FPDF then switch to TCPDF (www.tcpdf.org) -- Tony Marston http://www.tonymarston.net http://www.radicore.org "Thodoris" wrote in message news:49ccee54.80...@kinetix.gr... > Hello gang, >I know this is not an fpdf mailing list b

Re: [PHP] Frameworks Which Have A "Bake" Function?

2009-03-22 Thread Tony Marston
ode? Generally speaking if something is fast to learn it is also the first to run out of steam. If it doesn't have more features than you can learn in five minutes the it doesn't have enough features to do anything useful, or with any degree of flexibility. -- Tony Ma

[PHP] Re: Frameworks Which Have A "Bake" Function?

2009-03-22 Thread Tony Marston
on.net/php-mysql/dialog-types.html). The list of transaction patterns which are available is more extensive than the basic list, search, create, read, update and delete. -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: paging

2009-02-10 Thread Tony Marston
"Richard Heyes" wrote in message news:af8726440902101100r4d479ddds189b617f06b88...@mail.gmail.com... >> ... > > Are you the same Tony Marston who was on the Demon Internet webmaster > type mailing list? (I don't remember the actual name). I doubt it. I don'

[PHP] Re: paging

2009-02-10 Thread Tony Marston
Take a look at http://www.tonymarston.net/php-mysql/pagination.html -- Tony Marston http://www.tonymarston.net http://www.radicore.org "Jim Douglas" wrote in message news:col119-w57b0a24af94fce04673622bb...@phx.gbl... Does anyone have a link to any examples of paging? I have this

[PHP] Re: Looking for some PHP OO programming guides

2009-02-10 Thread Tony Marston
Take a look at http://www.tonymarston.net/php-mysql/databaseobjects.html -- Tony Marston http://www.tonymarston.net http://www.radicore.org "Michael Kubler" wrote in message news:49918ebf.4070...@gmail.com... > Hi, > I'm just getting into programming in an Object Ori

[PHP] Re: PHP webhosting - USA

2009-01-24 Thread Tony Marston
I have been using www.lypha.com for 5 years without experiencing any of those problems. -- Tony Marston http://www.tonymarston.net http://www.radicore.org ""Martin ZvarĂ­k"" wrote in message news:ed.1b.55096.ccd2b...@pb1.pair.com... > Hi, > > I currently host my

[PHP] Re: process creation

2009-01-23 Thread Tony Marston
if curl_close($ch); Hope this helps. -- Tony Marston http://www.tonymarston.net http://www.radicore.org ""bruce"" wrote in message news:156301c97d82$b33698d0$0301a...@tmesa.com... >A simple question (or so I thought). > > Does php allow an app to create/start a

[PHP] Re: Client/Server Printing

2009-01-20 Thread Tony Marston
his web browser and then have to press the PRINT key and choose the printer before it gets printed. He simply presses a "Generate Report" button, and within a few seconds it is sent to the printer. It's not free, but it's worth the money (IMHO). -- Tony Marston http://www

Re: [PHP] Re: Opinions / Votes Needed

2009-01-19 Thread Tony Marston
""Daniel Brown"" wrote in message news:ab5568160901191010u2d4073aas33789f0c81183...@mail.gmail.com... > On Sun, Jan 18, 2009 at 12:36, Tony Marston > wrote: >> >> Really? In 2007 I single-handedly designed and built an ERP system with >> 130 &g

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Tony Marston
"Nathan Rixham" wrote in message news:4973b738.3010...@gmail.com... > Tony Marston wrote: >> "Stuart" wrote in message >> news:a5f019de0901181322i2a4cbfaam4d36eff843f42...@mail.gmail.com... >>> 2009/1/18 Tony Marston : >>>> In case you

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Tony Marston
"Stuart" wrote in message news:a5f019de0901181322i2a4cbfaam4d36eff843f42...@mail.gmail.com... > 2009/1/18 Tony Marston : >> In case you have forgotten what this thread is about, the OP gave a list >> of >> suggested "improvements" to PHP and asked for o

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Tony Marston
"Stuart" wrote in message news:a5f019de0901181015g5e2db21fn2782839ab9648...@mail.gmail.com... > 2009/1/18 Tony Marston : >> >> "Nathan Rixham" wrote in message >> news:497366f5.2030...@gmail.com... >>> Tony Marston wrote: >>&

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Tony Marston
"Nathan Rixham" wrote in message news:49737051.9080...@gmail.com... > Tony Marston wrote: >> "Nathan Rixham" wrote in message >> news:497366f5.2030...@gmail.com... >>> Tony Marston wrote: >>>> "Skip Evans" wrote in message &

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Tony Marston
"Nathan Rixham" wrote in message news:497366f5.2030...@gmail.com... > Tony Marston wrote: >> "Skip Evans" wrote in message >> news:49723137.2010...@bigskypenguin.com... >>> Wow, Tony, do you think in the future you could try to express yourself >

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Tony Marston
; the cases above should show why, fact is (imho) PHP would be a far better > language than java for web based applications in 99% of cases if it had > this optional static typing and the tools that allows. *IF* it did, then > 10 other people and myself wouldn't have wasted a

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Tony Marston
"Skip Evans" wrote in message news:49733d18.6080...@bigskypenguin.com... >I will be brief. Tony is a dick. To quote your own words: "There's just no need to insult other list members like this." -- Tony Marston http://www.tonymarston.net http://www.radicore

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Tony Marston
"Jochem Maas" wrote in message news:4972365b.4060...@iamjochem.com... > Daniel Brown schreef: >> Well, since Nathan asked especially for the opinions of those who >> would disagree with him, I thought all was well >> >> On Sat, Jan 17, 2009 at 13:33

[PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Tony Marston
"Nathan Rixham" wrote in message news:49723749.4070...@gmail.com... > Tony Marston wrote: >> "Nathan Rixham" wrote in message >>> >>> a: Optional Static Typing >>> I'm finding an ever increasingly need to be able to staticly type

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Tony Marston
nd when out of his way > to come across in a non-critical and non-confrontational manner. > > Tony Marston wrote: >> Absolute rubbish! > > There's just no need to insult other list members like this. Saying that someone's ideas are absolute rubbish is not an insult. Cal

[PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Tony Marston
ntly moved to PHP, but cannot get used to the fact that it *IS* a different language, therefore it has different syntax and achieves similar things in different ways. If your feeble brain can't handle the differences then I suggest you stick with your previous language and LEAVE PHP ALONE!

[PHP] Re: Change tracking

2008-10-31 Thread Tony Marston
Your proposed solution is far too inflexible. Take a look at http://www.tonymarston.net/php-mysql/auditlog.html which describes a design with incorporates a fixed set of audit tables which can deal with logging changes to any number of application tables with any structure. -- Tony Marston

[PHP] How to launch a background task from a web page

2008-10-30 Thread Tony Marston
until the script finishes, which is not what I want. Is this possible in PHP? -- Tony Marston http://www.tonymarston.net http://www.radicore.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Singletons

2008-10-20 Thread Tony Marston
or an example) but your attempt is doomed to failure. What makes you think that a singleton class has to inherit from another class? Why can't it be a separate class, or even a separate method in an existing class? If you use a static method then the activities of the constructor a

Re: [PHP] Anybody got a little spare time to help me out with a little OOP

2008-06-01 Thread Tony Marston
php-mysql/good-bad-oop.html http://www.tonymarston.net/php-mysql/hero-or-heretic.html http://www.tonymarston.net/php-mysql/oop-for-heretics.html http://www.tonymarston.net/php-mysql/what-is-oop.html http://www.tonymarston.net/php-mysql/object-relational-mappers-are-evil.html -- Tony Marston h

Re: [PHP] Re: Where to start!

2008-05-05 Thread Tony Marston
normalised database is something which a competent designer will tend to avoid like the plague. Only a complete novice will throw together a database which has 0NF. -- Tony Marston http://www.tonymarston.net http://www.radicore.org > -- > Richard Heyes > > +-

Re: [PHP] Re: Where to start!

2008-05-05 Thread Tony Marston
t being "cheap and cheerful" and is designed well to Then surely "designed well" would include a normalised database? -- Tony Marston http://www.tonymarston.net http://www.radicore.org > accomodate future modifications, and mak

Re: [PHP] Re: Where to start!

2008-05-05 Thread Tony Marston
e dreams up more things that the system should do for him. If at day #1 you say "these reqirements are very simple, therefore require nothing more than a cheap and chearful solution which can be thrown together in a few minutes" you end up with a system that is not designe

Re: [PHP] Re: Where to start!

2008-05-05 Thread Tony Marston
"Jason Pruim" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > On May 5, 2008, at 6:21 AM, Tony Marston wrote: > >> >> >> >> Anyone who doesn't know how to reach 3NF shouldn't be designing >> databases. >

Re: [PHP] Re: Where to start!

2008-05-05 Thread Tony Marston
#x27;s why solutions which are thrown together are often incapable of being expanded to include new requirements. If you create a "throw away" solution then never try to expand it, simply throw it away and start again. -- Tony Marston http://www.tonymarston.net http://www.radicore.org > &

Re: [PHP] Re: Where to start!

2008-05-05 Thread Tony Marston
"Richard Heyes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Tony Marston wrote: >> "Richard Heyes" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>>> The database must be properly normalised otherwise

Re: [PHP] Re: Where to start!

2008-05-05 Thread Tony Marston
d normal form. Sometimes going beyond that to 4NF, 5NF or 6NF becomes too complex. -- Tony Marston http://www.tonymarston.net http://www.radicore.org > -- > Richard Heyes > > ++ > | Access SSH with a Wind

  1   2   >