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: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
"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
"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
reak the rules, whatever are the ones who keep life interesting and >> occasionally help us find something new. I would hate to live in a real life >> "Stepford Wives" existence. > Actually, I found it quite amusing to watch Tony paint himself into a > corner and try to defend his

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
"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
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
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
"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. >> >>

[PHP] Help with file downloads.

2009-07-19 Thread tony mount
'); header('Pragma: public'); header('Content-Length: ' . filesize($file)); ob_clean(); flush(); readfile($file); //exit; } from the the php manual under "readfile". The files are text files <1Mb in size. Only the first file is downloade

[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] 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

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

[PHP] More on "JS alert that links to file"

2009-07-27 Thread tony mount
r messages. If I remove the header() lines (ie just create the files on the server) no worries, it creates them all. (I start op buffer at the top of the code and flush the buffer on each loop). Anyone have any ideas please? Thanks Tony -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] More on "JS alert that links to file"

2009-07-27 Thread tony mount
Thanks very much to all the he's and any she's who answered this. Tony -- 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
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] "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

[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

[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

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

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

[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

[PHP] Re: Amortization calculator

2007-02-05 Thread Tony Marston
Try this: http://www.tonymarston.net/php-mysql/amortise.html -- Tony Marston http://www.tonymarston.net http://www.radicore.org ""Dan Harrington"" <[EMAIL PROTECTED]> wrote in message news:!~!UENERkVCMDkAAQACABgA0GQuLQQZMkSIxO1FcYz7L8KQ

[PHP] Re: [PHP-DB] array field type

2007-03-06 Thread Tony Marston
doc/refman/4.1/en/set.html. This allows you to have an array of values in a single field, and the user can select any number of them. -- Tony Marston http://www.tonymarston.net http://www.radicore.org > I just want to know is there any way to keep array data type natively in a > sql >

[PHP] Re: php 4 and 5

2007-03-13 Thread Tony Marston
upport for OOP, but PHP 5 provides better support. -- Tony Marston http://www.tonymarston.net http://www.radicore.org > PHP 5 also supports more library than PHP 4.:) > > > -- > Haydar TUNA > Republic Of Turkey - Ministry of National Education > Education Technology Dep

[PHP] Re: Using a reentrant form

2007-03-14 Thread Tony Marston
m the server, and POST, which sends a form to the server. It is therefore quite obvious that I validate on every POST. Simple, isn't it? -- Tony Marston http://www.tonymarston.net http://www.radicore.org "Todd Cary" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTE

Re: [PHP] Re: Using a reentrant form

2007-03-14 Thread Tony Marston
. So if the user presses the "refresh" button it simply repeats the GET. -- Tony Marston http://www.tonymarston.net http://www.radicore.org > On Wed, March 14, 2007 10:24 am, Tony Marston wrote: >> I honestly don't know why people use the approach of having a hidden &g

[PHP] Re: Design Dilemma - Database Data Abstraction

2007-04-09 Thread Tony Marston
t would be unusual, > and > I rather keep the access through the name of the other table). > > I'm sure there are more things I'm not considering, that's why I ask your > help to find them, and your opinion about what I've said up to now. > I think you ought to take a look at http://www.tonymarston.net/php-mysql/databaseobjects.html and http://www.tonymarston.net/php-mysql/databaseobjects2.html which explain the approach which I have adopted. You can download a working sample from http://www.tonymarston.net/php-mysql/sample-application.html. If you feel REALLY adventurous you can download its big brother from http://www.radicore.org/ In this the data access object handles all communication with the database, and the business objects deal with nothing but PHP arrays. -- 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] DOM and XSLTProcessor

2007-04-09 Thread Tony Marston
need to insert such text into the XML document using the createCDATASection() method otherwise the tags will be converted BEFORE the XSLT processor gets to look at it. -- Tony Marston http://www.tonymarston.net http://www.radicore.org ""Buesching, Logan J"" <[EMAIL PROTE

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] 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

[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: 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&#

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] 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] 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

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
"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
"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 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-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 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
"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

[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

[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] 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

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

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

[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

[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

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

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

[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] 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: 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] 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

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

[PHP] Consistent Class Renaming (Simple Refactoring)

2011-05-16 Thread Tony Mak
Hi there, i have following problem: Assume we have a "cron.php" which is called every hour by a cron job. This cron.php should then be used to execute other php-scripts "script1.php", "script2.php". For a pitty our server has Safe-Mode activated so we arent able to shell_exec / exec those f

[PHP] Consistent Class Renaming (Simple Refactoring)

2011-05-16 Thread Tony Mak
Hi there, i have following problem: Assume we have a "cron.php" which is called every hour by a cron job. This cron.php should then be used to execute other php-scripts "script1.php", "script2.php". For a pitty our server has Safe-Mode activated so we arent able to shell_exec / exec those f

Re: [PHP] Consistent Class Renaming (Simple Refactoring)

2011-05-17 Thread Tony Mak
Thanks for your replys. Of course >>PHP 2.7.2<< was a careless mistake, i meant PHP 5.2.7, to underline i'm not able to use those neat namespace features in PHP 5.3. Let me provide you with more details. As already mentioned cron.php should include at least two other php-scripts because she

[PHP] novice: char to varchar

2005-05-18 Thread tony yau
of CHAR(10) I don't understand, please help (or point me to RTFM page) Tony Yau -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: novice: char to varchar

2005-05-18 Thread tony yau
found the answer sorry about this "Tony Yau" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > I try to do the following: > > CREATE TABLE IF NOT EXISTS Invoice( > PKey INTEGER, > Received DATETIME, > Cost DECIMAL(10,2), >

Re: [PHP] Re: novice: char to varchar

2005-05-19 Thread tony yau
Hi Kim, I've found the same article that Philip Hallstrom <[EMAIL PROTECTED]> had posted Tony "Kim Madsen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > -Original Message- > From: tony yau [mailto:[EMAIL PROTECTED] > Sent: Wednesda

[PHP] novice: table design FOREIGN key

2005-05-19 Thread tony yau
ctID) pair can be inserted into the table? Thanks Tony Yau -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Looking for IM or Chat application

2004-04-19 Thread Tony Areghan
H fellas, This is my first post and I hope I'm doing this right! I'm working on a dating site where I'd like to give the users the opportunity to send an offline message to or chat with a person when they view the person's profile depending on whether the person is on or offline respectively).

[PHP] Re: Beginner Tutorials for using CLASSES in PHP4

2007-10-02 Thread Tony Marston
There's a small sample application that demonstrates how to use classes with PHP 4 at http://www.tonymarston.net/php-mysql/sample-application.html It also has a bigger framework at http://www.radicore.org/ -- Tony Marston http://www.tonymarston.net http://www.radicore.org "

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-02 Thread Tony Marston
d studying design patterns. Design patterns are overrated. For building transactions in CRUD applications you need transaction patterns. -- Tony Marston http://www.tonymarston.net http://www.radicore.org > the heads first book > is a great starting point. > actually if you want a soli

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-03 Thread Tony Marston
ome of the fundamental oop facilities and its all > the community had for a while. > the bottom line is the facilities it offers for oop are bare and i see no > reason to try to understand its > peculiarities and weaknesses when php5 is here and php6 is on the way. Rubbish. PHP 4's implem

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-03 Thread Tony Marston
hat would be like learning java4 even though java6 is > in use, its just silly. But if a lot of servers refused to upgrade from java 4 it would be pointless using code that only worked in java 6.. -- Tony Marston http://www.tonymarston.net http://www.radicore.org > -nathan > > On

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-03 Thread Tony Marston
""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 10/3/07, Tony Marston <[EMAIL PROTECTED]> wrote: >> >> >> Encapsulation is NOT data hiding. >> >> I repeat, encapsulation has absolutely n

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-03 Thread Tony Marston
""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 10/3/07, Tony Marston <[EMAIL PROTECTED]> wrote: >> >> Encapsulation is NOT data hiding. Take a look at > > > please stop putting words into my mouth.

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-06 Thread Tony Marston
""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 10/3/07, Tony Marston <[EMAIL PROTECTED]> wrote: >> >> >> ""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message &g

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-07 Thread Tony Marston
""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 10/6/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > >> >> Tony is right here. Encapsulation is about hiding the details of the >> implementat

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-09 Thread Tony Marston
ive had the >>> misfortune of working in places that have tightly coupled code. im >>> talking about hundreds of thousands of lines of madness. ppp could have >>> saved these systems greatly. >> >> Once again, just because someone writes bad programs doe

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-09 Thread Tony Marston
""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 10/9/07, Tony Marston <[EMAIL PROTECTED]> wrote: >> >> You are confusing member variables with local variables. Member variables >> are part of the object

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-09 Thread Tony Marston
refactoring is long overdue. Perhaps you are trying to implement something from another language and expecting PHP to be just like that other language, which is always a stupid mistake. PHP is different, therefore the solution will be different. I suggest you learn how PHP works and design accordingly, and stop trying to force it into emulating another language. -- 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] Beginner Tutorials for using CLASSES in PHP4

2007-10-09 Thread Tony Marston
""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 10/9/07, Tony Marston <[EMAIL PROTECTED]> wrote: >> >> >> ""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL P

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-09 Thread Tony Marston
""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 10/9/07, Tony Marston <[EMAIL PROTECTED]> wrote: >> >> There's your problem, then. You are wasting your time trying to implement >> fancy design pattern

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-10 Thread Tony Marston
"Larry Garfield" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tuesday 09 October 2007, Tony Marston wrote: > >> I have bought and read several books on design patterns without being >> impressed. I have seen countless examples of how partic

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-10 Thread Tony Marston
a better appreciation of some of the members of this > list -- we have some smart people here (i.e., Rob, Tony, Larry). When people use the word "smart" to describe me they usually follow it up with "ass". :) -- Tony Marston http://www.tonymarston.net http://www.rad

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-10 Thread Tony Marston
""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 10/9/07, Tony Marston <[EMAIL PROTECTED]> wrote: >> >> >> ""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PR

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-10 Thread Tony Marston
a lawnmower does not contain grass, it is used to cut grass. Whole grass goes in and cut grass comes out. The lawnmower does not have any grass in its construction, therefore grass is not part of the implementation. -- 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] Beginner Tutorials for using CLASSES in PHP4

2007-10-10 Thread Tony Marston
that you MUST use interfaces. I can build solutions without them, so I do not see any advantage in using them. -- Tony Marston http://www.tonymarston.net http://www.radicore.org ""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > and

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-10 Thread Tony Marston
ng that it is not possible to have polymorphism without using interfaces? If so you are very much mistaken. -- 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] Beginner Tutorials for using CLASSES in PHP4

2007-10-10 Thread Tony Marston
""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 10/10/07, Tony Marston <[EMAIL PROTECTED]> wrote: >> >> >> ""Jay Blanchard"" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL

[PHP] safe_mode_include_dir

2007-12-12 Thread Tony Beyers
ed the absolute path in the require_once line. Is there a way to include files with relative paths? -- Tony

[PHP] safe_mode_include_dir

2007-12-12 Thread Tony Beyers
ed the absolute path in the require_once line. Is there a way to include files with relative paths? -- Tony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] safe_mode_include_dir

2007-12-12 Thread Tony Beyers
with safe_mode on. The target directory is a real world readable directory. On Dec 12, 2007 3:43 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: >Tony, > >Calm down. It may take us 21 minutes to respond sometimes, but we > will. No need to repost. ;-P > > On De

Re: [PHP] safe_mode_include_dir

2007-12-13 Thread Tony Beyers
No luck with these solutions. What does work is: require_once(dirname(__FILE__) . '/../php/support.php'); but I still don't understand why the relative link doesn't work. On Dec 12, 2007 6:38 PM, Andrés Robinet <[EMAIL PROTECTED]> wrote: > > > -----Original

[PHP] Can someone tell me what a tilde means ?

2008-04-08 Thread Tony Collings
The humble tilde (~). I came across it the other day in some PHP code [code]~E_ERROR[/code] I'm curious, can't find any documentation on it. In math it refers to propostional logic, is it the same thing in PHP ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

[PHP] Could someone tell me what a tilde(~) in PHP does ?

2008-04-08 Thread Tony Collings
The humble tilde (~). I came across it the other day in some PHP code [code]~E_ERROR[/code] I'm curious, can't find any documentation on it. In math it refers to propostional logic, is it the same thing in PHP ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

[PHP] Re: Could someone tell me what a tilde(~) in PHP does ?

2008-04-08 Thread Tony Collings
08 at 6:19 AM, Tony Collings <[EMAIL PROTECTED]> wrote: > The humble tilde (~). I came across it the other day in some PHP code > [code]~E_ERROR[/code] That comes from C, not postpositional math. It's bitwise negation. That is, the number 47 in binary is 110001, with leading 0

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Tony Marston
mplate); } return $template; } } All that extra code for absolutely no benefit! It is possible to define an interface (as in API) without actually using the term "interface", so IMHO the term "interface" is totally redundant and a waste of time. -- T

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Tony Marston
"Robert Cummings" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > On Wed, 2008-04-16 at 12:20 +0100, Tony Marston wrote: >> The term "abstract" has been adequately defined in this thread, so I >> won't >> repeat it. &

[PHP] Re: php framework vs just php?

2008-04-22 Thread Tony Marston
are living in cloud cuckoo land. -- Tony Marston http://www.tonymarston.net http://www.radicore.org "paragasu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > honestly, i never used any framework to do my coding. > i look into few popular framework like cakeP

Re: [PHP] Re: php framework vs just php?

2008-04-22 Thread Tony Marston
er >> framework - it takes care of the boring repetitive stuff and leaves you >> more >> time to deal with the tricky stuff. If you think you can achieve the same >> level of productivity WITHOUT a framework then you are living in cloud >> cuckoo land. >> >>

Re: [PHP] Re: php framework vs just php?

2008-04-22 Thread Tony Marston
proper application. >..If you think you can achieve the same > level of productivity WITHOUT a framework then you are living in cloud >\cuckoo land. >\[/snip] > > Tony is obviously joking here folks. No I'm not. -- Tony Marston http://www.tonymarston.net http://www

<    1   2   3   4   5   >