Re: [PHP] PHP with NNTP?

2008-04-16 Thread Crayon Shin Chan
On Wednesday 16 April 2008, vester_s wrote:

> Can anybody tell me how can php connect to NNTP to get the list of all
> users in the newsgroups?

NNTP has no concept of "users".

-- 
Crayon

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



Re: [PHP] Join question

2007-12-02 Thread Crayon Shin Chan
On Sunday 02 December 2007, Daniel Brown wrote:

> There are a great deal of highly-intelligent people on this list, so why
> not take advantage of that resource? 

I do, that's why I'm on the list.

> So until you've been around enough to truly earn your right to
> tell someone far more accomplished than yourself to seek help
> elsewhere, do us all a favor and keep your God damned mouth shut.

AFAIK no list has the clause "once you have made X number of posts feel 
free to do what you want".

-- 
Crayon

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



Re: [PHP] Join question

2007-12-02 Thread Crayon Shin Chan
On Saturday 01 December 2007, chris smith wrote:
> Considering the rest of the off-topic questions that regularly get
> asked on this list it's a bit much to single out this one particular
> post.

I didn't single it out, it just happened to be at the top of the pile at 
the the time. It was also helped by the fact that the OP, who is 
apparently, renowned for programming in rocks since the time before 
binary was invented, ought to know list etiquette better than most.

> javascript, css, html - none is directly related to php but all still
> get asked here (and 99% of the time answered) - I don't know why
> you're making such a big deal about this particular post and haven't
> kicked up a fuss about the rest in the past.

Exactly how big a deal did I make out of this one? I simply said "ask on a 
database list". It is the responses to that which seems to be kicking up 
all the fuss.

-- 
Crayon

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



Re: [PHP] Join question

2007-11-30 Thread Crayon Shin Chan
On Friday 30 November 2007, Jochem Maas wrote:

> my guess it took less time to search for 'Crayon' in his mail archive
> than it took you to write the sentence.

Is not so much the actual time taken but rather that he had the free time 
at all.

> aparently Rob wasn't saying this ... but I would, regardless the OP
> (tedd) has earned his keep so to speak (and probably taken more shit
> than you in the process without resorting to troll-like behaviour) -
> this is proved by the fact that people like Rob are helping him with
> something that is not strictly on topic.

So let me get this straight, only paid up members of the old boys club are 
allowed to make off-topic posts? The rest can lump it?

> besides which it's rather pointless telling someone to go elsewhere for
> help when they already got the help and posted that they had solved the
> problem.

That's for future reference.

-- 
Crayon

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



Re: [PHP] Join question

2007-11-30 Thread Crayon Shin Chan
On Friday 30 November 2007, Robert Cummings wrote:

> I'm sorry, allow me to rephrase... in the past 5 months you've made 2
> on-topic useful posts, with the rest either being on-topic for an
> off-topic thread, or completely off-topic. I see no point in saying
> more, I've made my point.

I know your drill by now - make wild generalised accusations without 
substance then say you've made your point.

-- 
Crayon

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



Re: [PHP] Join question

2007-11-30 Thread Crayon Shin Chan
On Saturday 01 December 2007, tedd wrote:
> At 10:21 AM +0800 11/30/07, Crayon Shin Chan wrote:
> >On Friday 30 November 2007, tedd wrote:
> >>  I'm trying to understand joins,
> >
> >Ask on a database related list.

> Really?

Really.

> No language lives in a vacuum, mate. Especially, a web language.

If you try you can probably make a connection from php to everything under 
the sun, doesn't mean everything under the sun is an appropriate topic 
for this list.

> So, I'll continue to post MySQL questions on this list because I
> think it's appropriate. 

You ought to know by now that there is the php-db list. Even so your 
question doesn't belong even there because it has zilch to do with php, 
but it is still slightly more appropriate to post there than here.

-- 
Crayon

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



Re: [PHP] Join question

2007-11-29 Thread Crayon Shin Chan
On Friday 30 November 2007, Robert Cummings wrote:
> > Or are you saying that one needs to make a lot of on-topic posts to
> > build up credit in order to be able to make off-topic posts?
>
> No, I'm merely pointing out the hypocrisy.

That would only be true if I had been making off-topic posts. But so far 
all you have concluded is that during the last 5 months I have "only made 
two on-topic useful posts".

-- 
Crayon

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



Re: [PHP] Join question

2007-11-29 Thread Crayon Shin Chan
On Friday 30 November 2007, Robert Cummings wrote:

> That's an amusing statement. I took a peek back in time and noticed
> that in the past 5 months you've only made two on-topic useful posts to
> the PHP General list-- and they were both for the same thread.

If you have that much free time on your hands, should you not be looking 
for my off-topic posts so you can prove a point?

Or are you saying that one needs to make a lot of on-topic posts to build 
up credit in order to be able to make off-topic posts?

-- 
Crayon

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



Re: [PHP] Join question

2007-11-29 Thread Crayon Shin Chan
On Friday 30 November 2007, tedd wrote:
> I'm trying to understand joins,

Ask on a database related list.

-- 
Crayon

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



Re: [PHP] PHP RFC # 0001 --- List Etiquette [SOLVED]

2007-11-28 Thread Crayon Shin Chan
On Wednesday 28 November 2007, Jay Blanchard wrote:
> [snip]
> So the summary of my proposal is as follows:

> reached or question is asked.  This will allow a step-by-step document
> (of sorts) to be created and made "searchable" on the web.
> [/snip]
>
> This has been the expected behavior (adding [SOLVED]) for a long time
> though it does not occur as often as it should. It has been in the
> NEWBIE GUIDE for a long time and has been a de-facto standard on IT or
> computer related mailing lists like this for years.

It has been the de-facto standard for mail clients to prefix quoted lines 
with ">". Please fix your mail client or use a better one!

-- 
Crayon

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



Re: [PHP] Newline

2007-10-29 Thread Crayon Shin Chan
On Monday 29 October 2007, Nathan Nobbe wrote:
> if you were going to do that you may as well use PHP_EOL
> its cross-platform and doesnt require an define directive.
> (php5 only)

It's available in 4.3.10 as well, but manual doesn't specify what it 
defines - I suppose I can echo or vardump it to find out. Also manual 
doesn't mention "cross-platform", in any case even if it 
is "cross-platform" it seems pointless because how does PHP know which 
environment the output is going to be used in? I 
define 'CR', 'LF', 'CRLF' and use them as circumstances dictate.

-- 
Crayon

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



Re: [PHP] Newline

2007-10-29 Thread Crayon Shin Chan
On Sunday 28 October 2007, magoo wrote:

> I have switched to using single quotes, and found out that newline (\n)
> only works in double quotes. It looks kind of stupid using
> 'someString'."\n"; and it`s kind of inconsistent using double quotes
> for some lines like "someString\n";.

You can:

define('LF', "\n");

then

echo 'A newline' . LF;

or something

-- 
Crayon

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



Re: [PHP] cant send mail

2007-10-28 Thread Crayon Shin Chan
On Friday 26 October 2007, Diana wrote:
> The problem is I am the mail server administrator also. 

Fire the mailserver administrator and employ a better one?

-- 
Crayon

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



Re: [PHP] php personal project

2007-09-22 Thread Crayon Shin Chan
On Friday 21 September 2007, Karl james wrote:

> I am in need of some help.
> I would love to get some assistance on this.
> I need to start creating a database for my website.
> This will be for a fantasy football league website.
> To store stats on the database for archive purposes,
> And be able to pull them out on html reports.

You've been working on this "fantasy football league" thing for *years*. 
You mean you still haven't gotten it off the ground yet?

-- 
Crayon

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



Re: [PHP] Re: Pirate PHP books online?

2007-07-31 Thread Crayon Shin Chan
On Tuesday 31 July 2007 22:21, Larry Garfield wrote:

> "Commercial publication" didn't exist as a concept until after the
> invention of the printing press, which is when copyright was invented
> in order to protect the business of the publishers.

Presumably you're talking about Europe, because in China where the 
printing press was invented I don't think they enacted any copyright laws 
until much much much later.

-- 
Crayon

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



Re: [PHP] Re: Pirate PHP books online?

2007-07-31 Thread Crayon Shin Chan
On Tuesday 31 July 2007 21:37, tedd wrote:

> Extortion? Are you saying that anyone who owes a copyright is
> obtaining money through force or threats? That sounds strange.

Wow, it seems you haven't heard of the RIAA and their racketeering.

-- 
Crayon

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



Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Crayon Shin Chan
On Tuesday 31 July 2007 02:45, tedd wrote:

> Well, when I *use* my neighbor's car without his authorization it's
> called "stealing"

If your intention was not to keep the car on a permenant basis then you 
would probably be prosecuted for joyriding rather than stealing.

> >How? Nobody is not being permanently deprived of the content you are
> >using in an unauthorised fashion.
>
> Of course you're being permanently deprived  -- I described "how"
> above.

The whole phrase as quoted above is "being permanently deprived of the 
_content_". What you described does NOT deprive the author/originator of 
his/her content.

> Certainly, stealing an idea is possible -- that's the reason behind
> patent laws and laws protecting intellectual properties. "Ideas" are
> the foundation of advancement for our society and of course they can
> be stolen. It so common it's a clique.

Unfortunately the present patent and copyright laws are much abused and 
instead of promoting advancement in society they hinder it.

> I seldom look to the law to determine what's right and wrong -- the
> law is certainly not my moral compass. Besides, the law has enough
> problems determining what's right and wrong itself.

But you've been forever quoting points of law to backup your arguments as 
to what is right or wrong.

> OK, then you think about this -- you are stealing the right of
> control OVER the item you took. Clearly, after you steal the item,
> then you can do anything you want with it; you can give it away; use
> it for your own use; publish it on a web site free for everyone to
> download -- is that not true? As such, you DO have control over the
> item you stole and thus have stolen control.

How about if you BUY the item in question, does it mean you have BOUGHT 
control, and hence you're allowed to give it away, sell it etc.

-- 
Crayon

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



Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Crayon Shin Chan
On Tuesday 31 July 2007 02:08, tedd wrote:

> No, if you want something that you don't have -- you have three
> choices: a) go without; b) BUY it; c) STEAL it.

Rubbish. You can borrow, lease, hire purchase, rent, and there are 
probably other options as well.

-- 
Crayon

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



Re: [PHP] Re: Pirate PHP books online?

2007-07-30 Thread Crayon Shin Chan
On Monday 30 July 2007 23:49, tedd wrote:

> The opposite of BUYING is STEALING

I think you meant SELLING.

-- 
Crayon

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



Re: [PHP] No is_date() function?

2007-07-25 Thread Crayon Shin Chan
On Thursday 26 July 2007 11:44, Ken Tozier wrote:
> On Jul 25, 2007, at 10:37 AM, Edward Kay wrote:
> > PS: Please don't top post on mailing lists.
>
> I'm unfamiliar with the term "top post". What does it mean?

But you are familiar with google?

-- 
Crayon

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



Re: [PHP] Pirate PHP books online?

2007-07-24 Thread Crayon Shin Chan
On Tuesday 24 July 2007 06:02, Ryan A wrote:

> >Instead of clip tags, I recommend that you configure your mail client
> >to prepend a greater than sign to quotes. It's rather customary, if
> >not standard.
>
> Sorry about that, its driving me crazy too. I have to manually do it if
> I want it  (like above). It used to work before... then suddenly it
> just does not... anybody have any idea which setting I should tinker
> with in yahoo, please give me a shout.

Options > Mail Preferences > Replying = "Include full message"

should be the one.

-- 
Crayon

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



Re: Re[2]: [PHP] Pirate PHP books online?

2007-07-24 Thread Crayon Shin Chan
On Tuesday 24 July 2007 06:12, tedd wrote:

> How about "Rasmus Lerdorf, Lord of the Code"

I thought it was supposed to be based on a Potter book?

How about "Rasmus Lerdorf, Prisoner of ASP".

-- 
Crayon

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



Re: [PHP] Pirate PHP books online?

2007-07-23 Thread Crayon Shin Chan
On Monday 23 July 2007 22:26, Larry Garfield wrote:

> So when does "Rasmus Lerdorf and the Deathly Hallows" open in theaters?

They've got to make "Rasmus Lerdorf and the Order of the PHP" first.

-- 
Crayon

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



Re: [PHP] can't open a file

2007-07-23 Thread Crayon Shin Chan
On Monday 23 July 2007 12:23, Ken Tozier wrote:

> The permissions for the "test" folder is set to me in a WebServer
> subfolder on Mac OS X. 

What exactly does "permission ... set to me" mean?

> Do I need to set permissons to something else 
> to get this to work? If so, what permissions should I use?

If you wanted to be able to create a file in the directory:

/a/b/c/d

then you would need 'execute' permission on each of the directory:

/a
/a/b
/a/b/c
/a/b/c/d

in addition you need 'write' permission for the directory that the file is 
created in, ie:

/a/b/c/d

-- 
Crayon

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



Re: [PHP] Pirate PHP books online?

2007-07-22 Thread Crayon Shin Chan
On Monday 23 July 2007 08:45, Ryan A wrote:

> Disagree again, if Adam uploads or not, there is a whole bunch of stuff
> out there that he cant hope to download in a lifetime. 

It was never mentioned *when* Adam uploaded his file, it could've been 
when the site first started out and uploads then were lacking.

> Even if you are 
> "member" of a torrent site, you dont have to upload to download
> files once you finish your download you can continue to share
> (seed) the file to others (if you need to mantain your "up/down
> ratio"). Not everyone who downloads uploads new files..

Leechers would always outnumber the contributors, but apparently Adam is a 
responsible member of the community who gives as well as take.

-- 
Crayon

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



Re: [PHP] Pirate PHP books online?

2007-07-22 Thread Crayon Shin Chan
On Sunday 22 July 2007 23:05, Ryan A wrote:

> Let me give you an example, "Adam" buys your book/cd/ or a video,
> "rips" it into digital format and uploads it onto...say... thepiratebay
> (since thats where you found your book's links) Adam does not make a
> cent by doing so, 

Not exactly, Adam's payback is that he hopes others do the same, so where 
he uploaded one item, he is able to download hundreds and thousands of 
items that others have uploaded. Kind of like how Free software works - 
most contributors make relatively small contributions and receive no 
financial remuneration, their payback is a whole diverse spectrum of 
FOSS.

-- 
Crayon

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



Re: [PHP] Pirate PHP books online?

2007-07-22 Thread Crayon Shin Chan
On Sunday 22 July 2007 18:13, David Powers wrote:

> That's why books keep on
> coming. The situation in the music industry is similar.

Perhaps you authors should make greater use of things like www.lulu.com 
where you can dictate the terms and cut out the middle-men. But if you're 
relying on the advance rather than royalties then it may not be such a 
good idea :)

-- 
Crayon

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



Re: [PHP] Denial of Service Attack

2007-07-21 Thread Crayon Shin Chan
On Saturday 21 July 2007 10:24, Jim Lucas wrote:

> So, I guess to sum up what the guy is talking about, I think he is
> right.  Some of us might have been DDOSed from making posts on this
> list.
>
> my email address points right back to my web server.
>
> What does everybody else think?

There are some mailing list archive websites that goes to the website 
derived from your email address domain and links the favicon (if any) for 
display next to your posts. Whether that is enough to lead to a DOS is 
debatable.

-- 
Crayon

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



Re: [PHP] Re: Pirate PHP books online?

2007-07-21 Thread Crayon Shin Chan
On Saturday 21 July 2007 08:58, Richard Lynch wrote:

> In the olden days, it often turned into "slash the cover and donate it
> and collect tax break", I do believe, but I think that practice was
> decried and has decreased.

Just curious, which part was decried: "slash the cover" or "donate it and 
collect tax break" or "collect tax break"?

-- 
Crayon

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



Re: [PHP] Pirate PHP books online?

2007-07-21 Thread Crayon Shin Chan
On Saturday 21 July 2007 16:20, Jim Lucas wrote:

> more then likely, recycling a stack of newspapers would cost more then
> running my computer for a month.

Also reminds me of how some people (especially Americans) who drive miles 
and miles in their big gas-guzzling SUVs so they could drop off their 
recyclables at a recycling centre.

-- 
Crayon

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



Re: [PHP] Pirate PHP books online?

2007-07-21 Thread Crayon Shin Chan
On Saturday 21 July 2007 04:15, Tijnema wrote:

> Old paper can be recycled, lost energy from computers can't ;)

Recycling old paper use energy as well.

-- 
Crayon

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



Re: [PHP] Re: Pirate PHP books online?

2007-07-18 Thread Crayon Shin Chan
On Wednesday 18 July 2007 22:12, Stut wrote:

> There is a very very important difference. Stealing/theft is a criminal
> offence. Copyright infringement is not. For you to be prosecuted for
> copyright infringement the injured party must bring a civil case.

Actually whether it's civil or criminal depends on the jurisdiction.

-- 
Crayon

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



Re: Re[2]: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread Crayon Shin Chan
On Monday 16 July 2007 20:51, Richard Davey wrote:

> Someone ought to create a 'carbon footprint per email sent'
> calculator. Total up how much energy is literally wasted in the
> transmission (and consequent receiving) of just one message. I bet if
> you add it all up it'd put a printed book, which afterall *can* come
> from a sustainable resource, into perspective.

I think no matter which way you dice it, sending 1 email is a lot more 
energy efficient than printing 1 book. Just because the tree itself is 
renewable, the *energy* used in cutting it down, turning it into paper, 
turning the paper into a book and all the transporting in between, is 
most likely not renewable.

-- 
Crayon

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



Re: [PHP] Pirate PHP books online?

2007-07-16 Thread Crayon Shin Chan
On Monday 16 July 2007 19:42, Dotan Cohen wrote:

> I guess that I'm naive. I've gotten a few "what's the address"
> requests, but none from authors... 

What makes you think any of the authors are subscribed to this list? Even 
if some are, what makes you think they monitor the list 24/7? They might 
be on vacation, they might be in a coma. Just don't be so impatient.

-- 
Crayon

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



Re: [PHP] SMS questions

2007-07-16 Thread Crayon Shin Chan
On Friday 13 July 2007 22:38, Robert Cummings wrote:

> > in which the sender is responsible for storing the mail until the
> > intended recipient retrieves it seems like a good start.
>
> Bleh, that's so easily solvable for spammers. Create one real message,
> then softllink it for every actual email they send out. Millions of
> links are cheap.

There's not going to be any single measure that will "solve" the spam 
problem - short of executing all perpetrators of spam and all owners 
whose machines are involved in the propagation of spam - but rather a 
whole raft of measures of which the above is just one.

-- 
Crayon

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



Re: [PHP] SMS questions

2007-07-13 Thread Crayon Shin Chan
On Friday 13 July 2007 14:07, Richard Lynch wrote:

> I'd give a lot of money to be able to teleport back in time and yell
> at the email designer folks to tell them just how horrible a mess they
> were making... :-)

But you have to give them credit for designing something so scaleable that 
even decades later it is still able to cope with the billions of spam. On 
the other hand if it weren't so scaleable it might have forced some 
drastic changes much earlier to curtail spam. Something like this:

http://cr.yp.to/im2000.html

in which the sender is responsible for storing the mail until the intended 
recipient retrieves it seems like a good start.

-- 
Crayon

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



Re: [PHP] Anyone have an iPhone? OT

2007-07-11 Thread Crayon Shin Chan
On Wednesday 11 July 2007 19:58, tedd wrote:
> If you bought an iPhone, please contact me off-list -- I have a
> question.

They have:
http://www.willitblend.com/videos.aspx?type=unsafe&video=iphone

-- 
Crayon

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



Re: [PHP] duration of mp3 file

2007-07-11 Thread Crayon Shin Chan
On Wednesday 11 July 2007 21:32, Steven Macintyre wrote:

> Any takers on this ... I JUST want the duration of the mp3 file - with
> a small function if possible ... I honestly don't want to use a class
> like http://www.phpclasses.org/browse/package/112.html
>
> The coding is terrible and SERIOUSLY over inflated for what I want.

So why not take the part that you need and rewrite it so that it is not so 
terrible?

-- 
Crayon

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



Re: [PHP] how PHP is batter?

2007-07-04 Thread Crayon Shin Chan
On Tuesday 03 July 2007 22:56, Stut wrote:

> > I saw there is a free version of Studio, but I think it's for
> > students... You cannot go build a corporate project with it I
> > think...
>
> More FUD. Go read the licence before claiming to know what it says!

Regardless, the "Express" version has strings attached:

http://www.theregister.co.uk/2007/06/05/microsoft_mvp_threats/

-- 
Crayon

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



Re: [PHP] how PHP is batter?

2007-07-04 Thread Crayon Shin Chan
On Tuesday 03 July 2007 21:52, Stut wrote:
> > In short words it's not Micro$oft and you don't need to buy stuff to
> > develop in it.
>
> You have never needed to buy anything to develop ASP.net applications.

However, remember that many of the functions and extensions that PHP 
has "builtin" are free whereas their counterparts in asp-land may not be. 
Eg, I'm not sure whether this is still the case but once upon a time to 
be able to handle uploads in asp meant you had to pay for an extension.

-- 
Crayon

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



Re: [PHP] simple OCR in php

2007-06-29 Thread Crayon Shin Chan
On Saturday 30 June 2007 00:32, Jay Blanchard wrote:

> In short PHP cannot perform OCR functions. 

Why? PHP provides all requisite functions/features so if someone was 
sadistic enough and talented enough there's nothing to stop them writing 
an OCR app using it.

> You could insert an OCR 
> application into the process and have the OCR app pass PHP the
> information.

That would be the smart choice though.

-- 
Crayon

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



Re: [PHP] Create .php file with php [POC CODE INCLUDED]

2007-06-27 Thread Crayon Shin Chan
On Wednesday 27 June 2007 06:32, Edward Vermillion wrote:

> Most /tmp directories are world rwx. So anyone that can log into the
> server through a shell, or any account running on the server, has at
> least read access to anything in the /tmp directory. They wouldn't
> need to do it through a web script.

On a production machine the only people who should be logging in would be 
doing system admin stuff and hence implicitly trusted. If you have 
determined hostile users logged in then whether you hide your 
files "in /tmp" or "in a directory only accessible by the webserver" is 
hardly relevant. Similarly the same "poc" can be used just as well 
on "/tmp" as well as on "a directory only accessible by the webserver".

-- 
Crayon

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



Re: [PHP] Create .php file with php [POC CODE INCLUDED]

2007-06-26 Thread Crayon Shin Chan
On Wednesday 27 June 2007 03:53, Daniel Brown wrote:
> On 6/26/07, Al Rider <[EMAIL PROTECTED]> wrote:
> > I think most systems have a /tmp directory above the web dir, so
> > outsiders can't watch it anyhow.
>
> True, but on an unsecured box, this becomes possible, as Apache
> will most likely be running universally as `nobody`, `httpd`,
> `apache`, or `daemon` for all scripts, including all web-based scripts
> writing to the /tmp directory.  This includes session information,
> temporary .php files (as Marius requested), et cetera.

How is this different from:

"put them in a specific directory that only the web server has access to 
read, write, and execute"

-- 
Crayon

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



Re: [PHP] Aggressive PHP Smart Caching

2007-06-25 Thread Crayon Shin Chan
On Monday 25 June 2007 11:55, Nathan Nobbe wrote:

>- why cache script output on disk?  if a fast cache is your goal,
> why not store the result of script output in memory rather than on
> disk; that would be much faster

Under most OSs whatever is on disk will end up cached in memory sooner or 
later. So depending on your application there might not be much 
performance difference either way.

-- 
Crayon

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



Re: [PHP] Small LAMP install/distro

2007-06-23 Thread Crayon Shin Chan
On Saturday 23 June 2007 04:29, Tijnema wrote:

> > 3) This is basically the same as point 1, but I think it's still
> > worth making. I don't know about anyone else, but this is 1 of 14
> > lists I subscribe to. Keeping track of what's happening in all
> > current threads in all those lists is not possible, and it helps a
> > great deal if context is built into the messages.
> >
> > In my opinion these are the reasons why top posting is bad etiquette.
> > It devalues the usefulness of the discussion.
> >
> > -Stut
>
> I agree with you on all 3 points stut!
> For point 3, i'm not on 14 lists, but on 4, but it's the same problem
> for me.

Using personal problems to justify things is not going to cut any ice with 
the crowd that persists in top posting, eg TG has already cited his 
personal problems - the use of crappy mail clients, and "him knowing what 
you were talking about without having to read the question.. because he 
knew what was being discussed in this thread". If they're not going to 
listen to common sense and best practices then they're sure not going to 
care about others personal problems. This is the cue for Robert Cummmings 
to jump and proclaim that people are sheep for following best practices.

On Saturday 23 June 2007 02:19, [EMAIL PROTECTED] wrote:
> Bottom posting makes sense if you're using papyrus scrolls.  Or are
> forced into a linear discussion format for some reason.  Email is a
> little more flexible than that.

This is a mailing list, not email. What you do in your personal email is 
your own business. But when using a mailing list, following best 
practices makes things easier for everybody.

-- 
Crayon

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



Re: [PHP] Re: php framework, large site

2007-06-21 Thread Crayon Shin Chan
On Wednesday 20 June 2007 03:27, Robert Cummings wrote:

> > 1) study a selection of frameworks and learn from their strengths and
> > weaknesses then go on to create a kickass framework based on what
> > you've learnt
>
> Now, now, let's not pretend that you even nearly suggested that in your
> original answer:
>
> "It's an extremely inefficient use of precious time.
>
>  at it :)"
>
> You don't offer anything up. Only that pursing the creation of a
> framework is "extremely inefficient use of precious time" by relating
> it to Inventing of the wheel over and over. ...

I still stand by that answer. But IF the OP wanted really really wanted to 
create a new framework then that is where the first paragraph comes in.

> > Please note the distinction between possibility and probability.
>
> Please stay on track.

Note how hard it is to get a straight answer out of you. You said:

> Ah but it is quite possible that the OP will go ahead and try to build
> a framework, he may fail miserably, all the while learning from his
> mistakes. Then he may try again and subsequently build a kickass
> framework. Since not all paths lead to the same conclusion it is just
> as possible that if he doesn't go down this path that he will never
> create a kickass framework no matter how many frameworks he studies.

Which basically is saying, whatever path you choose the outcome may not 
turn out the way you expect, which I summed up as:

> Now you're trudging into the realms of philosophy, crystal ball gazing
> and groundless speculation.

You counter with:

> No, it's simple probability.

Seeking clarification I ask:

> So it's probability now? Which has the greater probability:
>
> 1) study a selection of frameworks and learn from their strengths and
> weaknesses then go on to create a kickass framework based on what
> you've learnt
>
> 2) just jump right in a create a kickass framework
>
> Please note the distinction between possibility and probability.

And finally you dodge the question with:

> Please stay on track.

Similarly I ask at which point you made the word "update" to 
mean "popularity":

> > > > Read what I wrote above, I'm talking about UPDATES (or the lack
> > > > of), not popularity.
> > >
> > > You implied it.
> >
> > Where? How? Maybe the English that they taught me at school is subtly
> > different to the English that you learnt.
>
> I'm moving forward with the discussion, not backwards, Please keep up.
> I've no reason for the discussion to go into circular mode.

And you dismiss the question out of hand - damn you're good at this.


> > Still, it's good to know that your code is flawless and can be relied
> > upon.


> So obviously I said they were all fallacious. Perhaps you don't
> understand what fallacious means.

Perhaps you don't recognise sarcasm when you see it?

-- 
Crayon

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



Re: [PHP] Re: php framework, large site

2007-06-19 Thread Crayon Shin Chan
On Tuesday 19 June 2007 06:58, tedd wrote:

> Yes, but the fact still remains, for the exception of drug companies
> passing DNA sequences off as patents,

In the bad old U S of A you can patent your own grandmother (or at least 
someone somewhere thinks you ought be able to).

> the *majority* of patents for 
> inventions are due to the efforts of a lone risk taker putting his
> money, time, and effort on the line trying to invent something.

I've no idea what the figures are but I find that hard to believe, do you 
have any sources to backup that claim?

> And, one *never* could "conduct high energy particle physics
> experiments in my own basement and launch interplanetary space probes
> from my own backyard".

Lighten up, it's satire.

-- 
Crayon

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



Re: [PHP] Re: php framework, large site

2007-06-19 Thread Crayon Shin Chan
On Tuesday 19 June 2007 13:47, Robert Cummings wrote:

> No, it's simple probability.

So it's probability now? Which has the greater probability:

1) study a selection of frameworks and learn from their strengths and 
weaknesses then go on to create a kickass framework based on what you've 
learnt

2) just jump right in a create a kickass framework

Please note the distinction between possibility and probability.

> And many will encounter serendipity along the way regardless of what
> they are looking to achieve.

Now we're bypassing logical argument and relying on serendipity?

-- 
Crayon

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



Re: [PHP] Re: php framework, large site

2007-06-19 Thread Crayon Shin Chan
On Tuesday 19 June 2007 09:26, Robert Cummings wrote:

> Making up phrases and passing them off as though they are common adages
> only goes towards showing that you have no steam to your argument.

I really wish you would make up your mind. On the one hand you value 
individuality and originality (or so you claim) and yet now you dismiss 
my quote because of it's lack of popularity? All great quotes comes from 
humble origins, and you yourself said that popularity does not equate to 
quality.

> I have little faith in your words now. If I
> wanted fallacious reasoning I'd go watch a commercial on the telly.

Your loss, not mine :)

> You're not very good at this: http://en.wikipedia.org/wiki/Ad_hominem

In that case could you point out to me where you mistake my pointing out 
projects' lack of updates equates to a project's lack of popularity.

> > Read what I wrote above, I'm talking about UPDATES (or the lack of),
> > not popularity.
>
> You implied it.

Where? How? Maybe the English that they taught me at school is subtly 
different to the English that you learnt.

> It doesn't seem like you're exchanging ideas.

That is a suggestion.

> I have plenty of ideas, but they would mostly be based on my experience
> writing InterJinn and what I hate about other frameworks I've come
> across, as such I chose to keep quiet rather than pollute his ideology
> with my own and sound like I'm tooting my own horn. I often find myself
> writing responses to people that are based on "what I did or do" in my
> framework... often I delete them before sending them because I don't
> like how it seems impartial. once in a while it still comes up, but I'm
> not perfect.

The OP was not asking questions on _how_ a framework should behave or 
_what_ a framework should contain. Rather the question was "how to 
_start_ [writing a] php framwork [sic]". Your answer, should it ever be 
forthcoming, need not pollute his innocent mind with your framework 
ideals.

> One of the ways to do anything is to just wade in. 

Er, obviously. Can't really argue with that statement. Another true 
statement is "One of the ways to do anything is to study the situation 
before you wade in." So your point?

> Who are you to 
> assess the OP's skills and determine that he is unable to make a
> reasonable assessment?

I think you were the one assessing the OP's skills. You stated that 
evaluating the available frameworks is a "staggering task", yet suggest 
that the OP go ahead and write his own framework. In my life experience, 
judging is easier than creating. I know a good book when I read one, a 
good meal when I eat one and a good movie when I see one, however I'm not 
sure I know how to write a good novel, cook a good meal or make a good 
movie.

> But going back to your point about narrowing it down, you've
> already jumped to the conclusion that the OP has no clue what he's
> doing and so it follows that he probably wouldn't know how to begin
> narrowing down the candidates since that would require experience.

And yet he is able to put together a kickass framework sometime in the 
future through flirting with serendipity?

> > So working as a one-person band on your very own framework how easy is
> > it to get your code reviewed? And a security audit?
>
> I'm going to borrow a bit of your style here and make a fallacious
> statement... I write perfect code and I have no bugs.

There, your ego is showing through again :) I was using "you" as in the 
royal "One", not "you" as in "you, Robert".

Still, it's good to know that your code is flawless and can be relied 
upon.

-- 
Crayon

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



Re: [PHP] Re: php framework, large site

2007-06-18 Thread Crayon Shin Chan
On Tuesday 19 June 2007 09:35, Robert Cummings wrote:

> Ah but it is quite possible that the OP will go ahead and try to build
> a framework, he may fail miserably, all the while learning from his
> mistakes. Then he may try again and subsequently build a kickass
> framework. 

In the pragmatic world where you're working on a project, for a living, to 
a time schedule, then learning from other people's mistakes is less time 
consuming than creating your own mistakes, recognise that they are 
mistakes and then learn from them.

Of course if you invoke your "it's only for fun" defence then pragmatism 
wouldn't come into it and whatever you do or don't do doesn't really 
matter.

> Since not all paths lead to the same conclusion it is just 
> as possible that if he doesn't go down this path that he will never
> create a kickass framework no matter how many frameworks he studies.

Now you're trudging into the realms of philosophy, crystal ball gazing and 
groundless speculation.

> Some of the greatest science comes from those unaware of established
> rules and theories.

I'm sure most people on the list aren't looking to make revolutionary 
advances in php programming. Most are simply looking for practical 
answers to practical questions.

-- 
Crayon

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



Re: [PHP] Re: php framework, large site

2007-06-18 Thread Crayon Shin Chan
On Tuesday 19 June 2007 09:12, Nathan Nobbe wrote:

> it seems to me most people use the terms flavor and distribution
> interchangeably when referring to linux.

Yeah and most people forget that linux (the kernel) is only a tiny part of 
a "linux distribution".

> although gentoo linux [the only os i run] is designed on the same
> basic concept of freeBSD it is entirely unique; basically a freeBSD
> rewrite w/ the linux kernel; o, it can run w/ the freeBSD kernel too.
> in effect a completely new breed of os was born; and i didnt catch
> that one on your list; probly because it is essentially "distro Z", so
> to speak.

I use gentoo too. I didn't mention it because it has relatively few 
derivatives.

-- 
Crayon

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



Re: [PHP] Re: php framework, large site

2007-06-18 Thread Crayon Shin Chan
On Tuesday 19 June 2007 02:04, Nathan Nobbe wrote:

> discouraging new framework development is like telling the people of
> the world never to develop a new flavor of linux.

There are no new flavours of linux. You're probably mixing it up with 
linux distributions of which there are many. Most of which are, whilst 
not exactly useless, have limited appeal. Yes they are fun and I love 
trying them out. I also make customised livecds for my own personal use. 
But the vast majority of these linux distros are based on "distro A", 
which is based on "distro B", which is based on "distro C", ..., which is 
based on "distro Z", which is based on either Debian, Redhat, Slackware 
or Suse. However for real work I would only use a major distro where I 
can expect timely updates and security fixes.

> we all know its a massive undertaking, but there is merit and purpose
> in it nonetheless.

And just what might the "merit" and "purpose" be? We can probably conclude 
that the "purpose" is to facilitate the creation of a "large site", but 
the OP never said what/whether there is any merit. But the creation of 
a "large site" does not imply that there needs to be a new framework, so 
the "purpose" is not clear.

> and you never know a new one could just become the best one.

Look, if the OP has what it takes to build "the best" framework he would 
have just gone ahead and did it instead asking. That is not to say that 
in future when he has more experience he could not go on to build a 
kickass framework.

-- 
Crayon

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



Re: [PHP] Re: php framework, large site

2007-06-18 Thread Crayon Shin Chan
On Tuesday 19 June 2007 02:18, Robert Cummings wrote:

> I put that exact phrase (double quoted of course) into Google and
> turned up the following:
>
> Your search - "there's a fine line between personal satisfaction
> and egotism" - did not match any documents.
>
> I'm going to guess you just made it up.

Glad you did some research. As a matter of fact I did made it up just now. 
Are you disputing that the saying is not widely used, or that it has no 
truth in it?

And just for fun here's another I just made up (I've no idea what Google 
has to say on this):

"There's a fine line between personal satisfaction and personal 
gratification"

> Jumping to conclusions attempts to bypass logical argument and so rests
> on a weak foundation.

Jumping to conclusions in the literal sense (as opposed to it's negative 
connotation) means making a judgement based on limited facts. As long as 
said conclusion does not fly in the face of the known facts then where is 
the bypassing of logical argument? However I grant you that a judgement 
without all the facts is based on weak foundations. But you can't expect 
me to ask the OP to submit a psychological assessment and attestations of 
personal character from ministers/priests/preachers/mullahs of 3 major 
faiths, before I can ascertain what his/her motives are for asking a 
question.

> Actually, I was suggesting giving thought to any particular worldview
> before jumping on the bandwagon. I wasn't suggesting being different
> for the sake of being different. It is important to make informed
> decisions.

Thank you.

> > Again you're jumping to conclusions I never mentioned popularity.
> > However when a project has not seen any updates for years and is
> > still marked as "in the planning stages" then I _would_ jump to
> > conclusions and assume it has been neglected/abandoned/forgotten/etc.
>
> I know for fact that popularity doesn't constitute quality - there's no
> jumping to conclusion there.

Gordon bennett, why are you so fixated on popularity, I mentioned at all 
in my posts. Maybe it's a Freudian [insert appropriate terminology here] 
because your framework is not as popular as you think it ought to be and 
so you're being defensive? In that case you're suffering from an 
inferiority complex.

Read what I wrote above, I'm talking about UPDATES (or the lack of), not 
popularity.

> The only one placing limits on what you can do is... dun dun dun...
> YOU! Well maybe the government also, but that's only until you get
> caught.

To an extent. But a lot of money certainly helps. Unless you're limiting 
your fields of study to theoretical mathematics/physics.

> > > You cannot discount the merit of one
> > > person's contribution because you think they should have another
> > > work style/ethic.

On the contrary I greatly appreciate all the wonderful software that 
one-person bands all over the world has contributed to the public 
domain/free/open source space.

> Exactly, and where does it say that he wants to join an existing
> project?

Nowhere. We're all here to exchange ideas, information, suggestions and 
new angles on (mis)preconceptions (at least I hope most of us are), and 
maybe a flame or 2. So just because the OP "did not explicitly state that 
he wanted to join an existing project", it does not mean that he "would 
not join an existing project" or "make use of an existing project" under 
any circumstances. Given good enough reasons he could be persuaded one 
way or another.

> Maybe he was about to think things through and just wanted a bump in
> the right direction... the right direction being "how to start my own
> framework" 

And do you have any pearls of wisdom to start this young novice on the 
road to enlightenment? Given that you have apparently built your own 
framework I am frankly disappointed that you have nothing better to 
contribute than to reply to my mindless drivel. And a :) for good 
measure.

> and not "how to join someone else's project". 

And as that is the best advice given the circumstances that is what I 
suggest.

> Ahh, you discount the merit of having fun doing things like this. Many
> great inventions have seen the light of day just because someone was
> having fun doing them.

I am not discounting that merit. But I've a feeling that the OP is not 
doing his large site for fun, but what do I know - I'm always jumping 
into conclusions.

> What constitutes a fully-baked framework? Please indicate some valid
> measure of "fully-baked" versus "half-baked". Your quantitative methods
> of analysis will be appreciated I'm sure. And remember, popularity
> isn't necessarily a measure of quality and so can't be used solely to
> indicate fully-baked... maybe fully-baking, but certainly not
> fully-baked.

Frankly the OP cannot make a reasonable assessment as to how much baked 
any particular framework is then it is my sincere belief that he is in 
even less of a position to create new framework. Personally, how much 
bake

Re: [PHP] Re: php framework, large site

2007-06-18 Thread Crayon Shin Chan
On Tuesday 19 June 2007 00:36, tedd wrote:

> What about the wasted time in searching through "billions of
> half-baked to fully-baked
> frameworks" to find one that works for you? That's really a waste of
> time.

Well search through the fully-baked frameworks only, and don't create 
another half-baked one.

And are you seriously suggesting that you can create a fairly decent 
framework from scratch in less time than it takes to evaluate what's out 
there?

-- 
Crayon

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



Re: [PHP] Re: php framework, large site

2007-06-18 Thread Crayon Shin Chan
On Monday 18 June 2007 04:00, Robert Cummings wrote:

> Typo... *yawn*. 

Please lookup the real meaning of typo .

> You knew what was intended.

Of course. I'm not a computer and can make judgements based on context and 
experience. I only brought it up because you seem to delight in 
grammatical correctness (whatever that is).

> Don't confuse pursuit of happiness and personal satisfaction as hubris.

As the saying goes, "there's a fine line between personal satisfaction and 
egotism".

> They are quite different and you can't glean hubris simply from reading
> that someone wants to write their own framework. You are jumping to
> conclusions.

Of course I'm jumping to conclusions - what I'm hoping is that they are 
informed ones. One cannot include every bit of background information 
into a mailing list question so the respondents will have to make 
assumptions.

> I have no problems with the philosophy of free software, but I do have
> issues when someone suggests that we should all follow, like sheep to
> the slaughter, a particular worldview. 

Being different "just because", is not very constructive nor cool - it may 
seem so when you're a teenybopper but I'm sure you've outgrown that stage 
by now. And just because more than 1 person share the same viewpoint or 
common cause does not automagically change them into sheep. Before you go 
jumping into conclusions - I'm not against people being different if 
their "justification" for being different is anything other than "just 
because".

> What you "_would_ like" and what 
> you "will get" is entirely up to individual in question.

That's why I didn't use "I insist".

> You presume the use of SourceForge to host such a project. 

Well I suppose I could have wrote ""Yet Another Soon To Be Neglected 
Sourceforge/Freshmeat/Savannah/BerliOS/etc Project", but I was relying on 
the readers' powers of inference to fill in the blanks.

> Popularity hardly constitutes a measurement of quality.

Again you're jumping to conclusions I never mentioned popularity. However 
when a project has not seen any updates for years and is still marked 
as "in the planning stages" then I _would_ jump to conclusions and assume 
it has been neglected/abandoned/forgotten/etc.

> ...they are in no way obligated to do so. If their ideas are bright
> enough then chances are they will attract their own following. 

Just because I may or may not be ranting against something, I'm not 
foolish to think that my rantings will obligate anyone to do anything.

> Maybe so, but much science and many breakthroughs are still done by the
> lone inventory/researcher.

Particularly in the field of astronomy where amateurs are still able to 
contribute greatly. However gone are the days when I could conduct high 
energy particle physics experiments in my own basement and launch 
interplanetary space probes from my own backyard.

> You cannot discount the merit of one 
> person's contribution because you think they should have another work
> style/ethic.
>
> > Now going back to the OP:
> >
> > "...can some body help me, how to start php framwork for large
> > site?", in the absence of any other cues, this question gives me the
> > impression that the questioner is completely clueless (sorry if it
> > offends you OP), to which the only sensible response is "to use a
> > variety of existing frameworks until you no longer need to ask the
> > question".
>
> Actually from the OP's statement I see that he wants clues on how to
> start a FRAMEWORK, not clues on how to start a PROJECT. If he wanted
> you to infer another intent he probably would have used another set of
> words. And if he did mean PROJECT instead of FRAMEWORK then he should
> have stated so since given no other context we can only know what he
> has written... all else is conjecture. It's possible I missed something
> though, perhaps invisible font text *uhuh uhuh*, and there really is
> the word "project" in the OP's post. I'd appreciate you pointing it out
> to me.

Please point out to me where in the above paragraph (ie starting from the 
line "Now going back to the OP:") do I mention PROJECT. What kind of nit 
are you trying to pick?

And in other news:

>1. gain experience from doing [your own framework]

I would wager that a clueless newbie would learn faster and more about 
frameworks by _using_ and _studying_ other mature frameworks. Because, to 
re-iterate and paraphrase what I said earlier, the very fact that the OP 
had to ask "how to start my own framework" means that the OP really 
hadn't thought things through and did not do any feasibility studies etc. 
In any case a mailing list is not the best place to answer such an open 
ended question, especially if the best contributions that *you* can come 
up with is 

"yes, it's fun to make your own framework"

and

> Yep, fly like a chicken.


-- 
Crayon

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



Re: [PHP] Unable to use exec() in php

2007-06-17 Thread Crayon Shin Chan
On Monday 18 June 2007 13:15, makhan wrote:

Stop top posting.

> I am also using shell_exec('matlab -r myscript') to run
> my matlab script.

Using shell_exec('matlab -r /path/to/myscript') would be a better idea.

-- 
Crayon

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



Re: [PHP] Re: php framework, large site

2007-06-17 Thread Crayon Shin Chan
On Monday 18 June 2007 02:12, Robert Cummings wrote:

> Why not? You're argument is invalid.

"You're" == "You are", which makes the above invalid, or at least 
nonsensical.

> It suggests that since solutions 
> already exist to a problem that we should lie down and leave things as
> they are. Progress, and I'm not suggesting my personal projects have
> caused much progress, progress can only be achieved by revisiting what
> exists and either attempting to improve upon them, or attempting to
> create a new approaches.

I didn't say anything to that effect. What I _would_ like to see is that 
people stuffed their hubris and get into the spirit of free software. 
Instead of starting "Yet Another Soon To Be Neglected Sourceforge 
Project" people should shop around and find a project which most closely 
matches their vision and start contributing their bright ideas to it.

Of course history is full of lone inventors pottering about in their spare 
time coming up with earth-shattering discoveries. But the fact is that 
today, most science and breakthroughs are done by teams working 
collaboratively.

Now going back to the OP:

"...can some body help me, how to start php framwork for large site?", in 
the absence of any other cues, this question gives me the impression that 
the questioner is completely clueless (sorry if it offends you OP), to 
which the only sensible response is "to use a variety of existing 
frameworks until you no longer need to ask the question".

-- 
Crayon

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



Re: [PHP] Re: php framework, large site

2007-06-17 Thread Crayon Shin Chan
On Monday 18 June 2007 00:12, Robert Cummings wrote:

> Good reasons to write your own:

It's an extremely inefficient use of precious time. Inventing the wheel 
over and over. Surely out of the billions of half-baked to fully-baked 
frameworks out there must be something suitable for everyone. How far 
would you take it? Write your own PHP, why not write your own OS, heck 
build your own computer while you're at it :)

-- 
Crayon

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



Re: [PHP] Automatic mail forwarding (using cpanel) --------------------------------------------------> (Maybe a bit 0T)

2007-06-16 Thread Crayon Shin Chan
On Saturday 16 June 2007 22:00, Ryan A wrote:

>   This is already possible via cpanel but rather than enter each
> address by hand in cpanel... is there anyway to do this via a php
> script so that as the user creates a userid and specifies his real
> address the forward is created?

Yeah, find out how cpanel does it then have php do the same.

-- 
Crayon

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



Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Crayon Shin Chan
On Saturday 16 June 2007 03:47, Daniel Brown wrote:

> Once again, this doesn't matter so much for per-directory (though
> listing will take longer, as I think I mentioned) as it does the
> filesystem mount. 

Several years ago, having say 3000+ files in single directory on ext2 
would mean that a simple 'ls -al' takes several orders of magnitude 
longer to perform than on a directory with just several hundred files. As 
I haven't used ext2/3 for ages I don't know whether the same is still 
true today.

> The ext2/ext3 filesystems were made for these 
> reasons, especially with journaling like ReiserFS, XFS, et cetera
> (which is a completely different bag of nuts).

Not sure what point you're trying to make here, but, of the common 
filesystems for linux, ext2/3 is the absolute slowest (by far) when you 
have a large number of files in a directory.

-- 
Crayon

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



Re: [PHP] OK to have many files in one folder?

2007-06-15 Thread Crayon Shin Chan
On Saturday 16 June 2007 02:51, Daniel Brown wrote:

> And remember, the fact that they're all
> in one directory doesn't matter at all to the system, as directories,
> folders, et cetera, are just representations for human readability and
> organization.  In fact, those files reside on several sectors
> throughout the drive, and each file itself is probably fragmented many
> times.

Actually it does matter depending on the filesystem you use. If you're 
using ext2/ext3 then having several thousand files in a directory 
seriously slows things down.

-- 
Crayon

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



Re: [PHP] Re: Re: php-cli vs python

2007-06-15 Thread Crayon Shin Chan
On Friday 15 June 2007 21:23, Jochem Maas wrote:

[etc]

> IT is a joke, this list is joke, I'm a joke. no joke.

Someone give this guy his meds :)

-- 
Crayon

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



Re: [PHP] mbstring problems

2007-06-14 Thread Crayon Shin Chan
On Friday 15 June 2007 04:09, Martin Marques wrote:
> Using PHP 5.2.0 and I get this error:
>
> Fatal error: Call to undefined function mb_list_encodings_alias_names()
> in /home/martin/prueba.php on line 3
>
> But mb_list_encodings() works like a charm. What's wrong?

RTFM

-- 
Crayon

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



Re: Re[4]: [PHP] London PHP salaries

2007-06-14 Thread Crayon Shin Chan
On Friday 15 June 2007 07:39, Richard Davey wrote:

> Yeah, it makes buying software from the US a dream at the moment. 

Huh? When software comes across the pond they usually markup at 1USD=1GBP

-- 
Crayon

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



Re: Re[2]: [PHP] London PHP salaries

2007-06-14 Thread Crayon Shin Chan
On Friday 15 June 2007 06:50, Richard Davey wrote:

> VAT is 17.5%, doesn't apply to all goods (certain items are exempt)

Foodstuffs and "essential" items are exempt.

> and is in practise no different to your state taxes. Think yourself
> lucky it's only 17.5%, some European countries go way higher. It does
> however fund our medical services, etc, etc.

I thought the NICs were supposed to fund the NHS/pensions and stuff like 
that?

-- 
Crayon

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



Re: [PHP] London PHP salaries

2007-06-14 Thread Crayon Shin Chan
On Thursday 14 June 2007 17:11, Javier Leyba wrote:

Please trim your post!

> How much should be the lower limit to keep a family
> happy (happy means with enough money for a flat, food,
> clothes, entertainment, education and something to
> save for the future) ?

$salary = 3 + (sizeof($family) * 1);

-- 
Crayon

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



Re: [PHP] PHP list as a blog

2007-06-12 Thread Crayon Shin Chan
On Wednesday 13 June 2007 12:39, Paul Scott wrote:

> Our interns and students specifically. They are all dead scared of
> joining mailing lists in general, and find that using a web based
> prettier interface is much easier and friendlier. 

Not to mention slower, clumsier and more bandwidth hungry than a mailing 
list. It's time you did them a favour and show them that mailing lists 
are nothing to be afraid of.

-- 
Crayon

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



Re: [PHP] Going from simple to super CAPTCHA

2007-06-11 Thread Crayon Shin Chan
On Tuesday 12 June 2007 00:22, Tijnema wrote:
> On 6/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > On Mon, 2007-06-11 at 10:38 -0400, tedd wrote:

[snip]

Tijnema, Daniel Brown, and any other guilty ones, please trim your posts!

-- 
Crayon

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



Re: [PHP] Transparent image resizing using php 4.4.x

2007-06-09 Thread Crayon Shin Chan
On Sunday 10 June 2007 04:12, Sukhwinder Singh wrote:

> $img_resized = ImageCreateTrueColor ($img_new_width, $img_new_height);

> But the above doesn't work using php 4.4.x and creates images with lots
> of white lines/dots in it. Some pixel is transparent and some it isn't.
> I have no knowedge about image manuplation like alpha channels etc.
> Could anyone please provide me a solution which works using php 4.4.x

Are you sure you're getting a transparent image at all? From what I 
understand GIF does not support more than 8 bits. Why not use PNG 
instead?

-- 
Crayon

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



Re: [PHP] None US ASCII characters not allowed in headers?

2007-06-09 Thread Crayon Shin Chan
On Sunday 10 June 2007 04:05, Robert Cummings wrote:

> Funny how the solution often presents itself after you make your
> problem public *lol* :) Wonder if it falls under Murphy's Law.

There should be a dummy list that people post to, if they don't work out 
the answer themselves 10 minutes after posting to the dummy list they can 
then post to the real list.

-- 
Crayon

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



Re: [PHP] checking the aspect ratio of an images

2007-06-08 Thread Crayon Shin Chan
On Saturday 09 June 2007 02:21, Robert Cummings wrote:

> As for how this affects the aspect ratio of an image... it doesn't
> really, but the person who said that "You can't really be 'approximate'
> when coding" didn't exactly confine it to the question about aspect
> ratio and an image.

Taking that statement literally, it apparent that code has to be precise. 
You cannot have "sort of a while loop here" and "kind of an if statement 
there" :) 

So whilst the algorithm that you use may rely on imprecise (fuzzy) values, 
the way you code that algorithm has to be precise. I think that about 
sums it up.

-- 
Crayon

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



Re: [PHP] Re: Re: php-cli vs python

2007-06-08 Thread Crayon Shin Chan
On Saturday 09 June 2007 01:22, Daniel Brown wrote:

> I actually haven't found a platform yet that I couldn't port PHP
> to, if it wasn't already native.  We're talking Windows, Linux, BSD,
> true *nix, MacOS, SunOS, Amiga, et cetera.  I doubt it would run on my
> old Commodore 64 with the 1541 5.25" floppy drive (LOAD "*",8,1), but
> you can emulate a C64 in PHP (http://phpc64.extra.hu). ;-P

Perhaps it would've been better to say "it is _available_ on more 
platforms". No doubt given enough dedication you can probably get both 
Python and PHP to _run_ on most platforms. However as an example, Python 
(albeit an older version) is running happily on Nokia S60 phones, whereas 
AFAIK there are no PHP running on said phones.

Also Python supports all the major GUI bindings whereas PHP only supports 
GTK (AFAIK).

-- 
Crayon

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



Re: [PHP] checking the aspect ratio of an images

2007-06-08 Thread Crayon Shin Chan
On Friday 08 June 2007 22:17, tedd wrote:

> >>  Wednesday, June 6, 2007, 11:41:19 AM, you wrote:
> >>  > I want to force users to insert landscape rather portrait images.
> >>  > I don't want to be too pedantic about it but they do need to have
> >>  > an
> >>
> >>approximate 4x3
> >>
> >>  > aspect ratio.
> >  >
> >  > You can't really be 'approximate' when coding.
> >
> >You certainly can be "approximate" when coding. It's called heuristics
> >and it's an absolute necessity in many areas of software development.

> Absolutely, and what about fuzzy logic -- that method is based upon
> "approximate" calculations.

But somewhere in the guts of the approximate calculations there are 
_precisely_ defined limits. Anyhow, please illustrate how you would use 
approximate calculations in determining or defining the aspect ratio of 
an image.

-- 
Crayon

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



Re: [PHP] Re: Re: php-cli vs python

2007-06-08 Thread Crayon Shin Chan
On Friday 08 June 2007 04:10, Abdullah Ramazanoglu wrote:

> I found one intersting item though: Under the "What does Python have
> that PHP doesn't?" header, there's a bullet stating that "support for
> all major GUI frameworks". I know that both php and python have support
> for gtk. Am I to understand from this statement that python has also
> support for qt?

Yes, it's called PyQT. For purely non-web work Python beats PHP hands 
down. Plus it runs on more platforms.

-- 
Crayon

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



Re: [PHP] Re: php-cli vs python

2007-06-08 Thread Crayon Shin Chan
On Friday 08 June 2007 13:50, Man-wai Chang wrote:
> > Micro$oft expressed interest in Python. But I don't know whether it's
> > a trap or bait... :)
>
> I said these because of Foxpro. Micro$oft bought it, improved it. But
> now that Micro$oft wanan go .NET, Visual Foxpro was discontinued.
>
> Same thing could happen to Python, since it's not a tool invented,
> designed and patented by the genes of Micro$oft.

The only thing M$ designed is "obsolescence builtin". But they do have a 
habit of patenting things invented by others.

As with most open source projects it is simply not possible for M$ 
to "buy" them. Sure, they may be able to "buy" or hire the main 
contributors to a particular project and influence which direction it 
takes. But if interested people don't like the direction in which M$ is 
taking the project they can simply fork it. IOW there is no way M$ can 
embrace and extinguish an open source project. This is something that M$ 
has to learn. In the past they were able to destroy _really_ innovative 
products by buying the company and squatting on its technology (ie kill 
off all development and let it die off). For _merely_ innovative 
products, M$ just stole what it needed and if its lawyers couldn't get 
the owners of the stolen technology to back down, they just paid the 
token fine that the courts usually imposed.

-- 
Crayon

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



Re: [PHP] checking the aspect ratio of an images

2007-06-06 Thread Crayon Shin Chan
On Wednesday 06 June 2007 21:33, Robert Cummings wrote:

> You certainly can be "approximate" when coding. It's called heuristics
> and it's an absolute necessity in many areas of software development.

But you still have to define _precisely_ how "approximate" you want to be. 

-- 
Crayon

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



Re: [PHP] preg_match() returns false but no documentation why

2007-05-30 Thread Crayon Shin Chan
On Thursday 31 May 2007 01:33, Jared Farrish wrote:

> Can anybody spot why this doesn't seem to be working right? The manual
> ( http://us2.php.net/preg_match) says it returns "false" on error, but
> preg_last_error() returns 0, which I assume points to the
> "PREG_NO_ERROR" error code.
>
> 
> preg_match("^ldap(s)?://[a-zA-Z0-9-]+\.[a-zA-Z.]{2,5}$",$this->server)
> 
>
> I also tried ereg(), and have searched and gone through the comments.
> Why would a regex operation return false?

If you check your error log you'll find:

Warning: preg_match(): No ending delimiter '^' found in xxx.php on line xx

IMO that shouldn't be a warning, it should be an error that halts 
execution so people wouldn't go looking for a non-existant 
preg_last_error() when preg_match() did not even run.

-- 
Crayon

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



Re: [PHP] PHP needs better funtion organization, naming and parameter specifications. WAS: Form Validation Issues

2007-05-23 Thread Crayon Shin Chan
On Thursday 24 May 2007 04:57, Jay Blanchard wrote:

> Send this all to the developer's list

Too late now. The damage has been done. Fixing all the inconsistencies 
would either break backward compatibility or introduce a whole raft of 
yet more aliases.

Rasmus should have applied strict controls right from the beginning. 
Instead what we have now is a hodgepodge of contributors, each with the 
own naming schemes and a whole bunch of functions with immemorable names.

It's a good thing that the PHP manual is so well produced otherwise 
learning PHP would be a nightmare.

-- 
Crayon

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



Re: [PHP] Re: Form Validation Issues

2007-05-23 Thread Crayon Shin Chan
On Thursday 24 May 2007 00:51, Greg Donald wrote:

> As I watch PHP de-evolve into Java, I find myself wanting something
> lighter weight and with a smaller syntax. 

PHP has long since spawned into something uncontrollable. Compare the 
number of functions (and its aliases) to eg Ruby. The string functions in 
particular are absolutely bloated, eg ltrim, trim & rtrim - WTF. Why not 
just have trim() and have the option of specifying whether 
left/right/both? The same goes for the case-sensitive and 
case-insensitive versions of functions.

-- 
Crayon

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



Re: [PHP] Timezone DB update frequency

2007-05-21 Thread Crayon Shin Chan
On Monday 21 May 2007 19:33, Rob Desbois wrote:

> How often does the timezone DB (php_timezonedb.dll) actually *need* to
> be updated? 

Whenever jurisdictions around the world change their time?

-- 
Crayon

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



Re: Re[6]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Crayon Shin Chan
On Friday 18 May 2007 01:00, Richard Davey wrote:

> Viruses? God, that old bullshit ladened chestnut*. At least come up
> with some kind of valid OS argument, please. If you'd gone for
> 'competent use of the CPU', or 'effective memory management', you'd be
> worth taking seriously.

In a roundabout way, having to run a virus scanner is not a 
very 'competent use of the CPU', or 'effective memory management'. Or 
maybe Greg wanted to point out that Windows *is* the virus?

-- 
Crayon

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



Re: [PHP] Making code public -- What steps to take? GPL?

2007-05-14 Thread Crayon Shin Chan
On Monday 14 May 2007 07:30, Daniel Brown wrote:

Please don't top post.

> The biggest thing to remember is that a license is like a key
> it's meant to keep an honest man honest, but won't stop someone who is
> intent on taking what they want for a profit.

Sure, but if you don't make your intentions clear from the start then 
there's no use complaining afterwards. Not quite an accurate analogy but 
here goes:

"If you leave valuables around your house and leave the doors and windows 
unlocked you're not going to get much sympathy from the police (or the 
insurance company for that matter) when you get burgled."

So, if you don't use a suitable license then you don't have a stick to 
beat someone with should it ever come to it.

-- 
Crayon

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



Re: [PHP] printing out this nested array

2007-05-14 Thread Crayon Shin Chan
On Monday 14 May 2007 18:41, Don Don wrote:

> am thinking echo $arrayName['Errors']['ErrorId']; // should display the
> value but it does not Anyone wants to shed more light ?

echo $arrayName['Errors'][0]['ErrorId']; // ??

-- 
Crayon

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



Re: [PHP] Making code public -- What steps to take? GPL?

2007-05-13 Thread Crayon Shin Chan
On Sunday 13 May 2007 21:17, Micky Hulse wrote:

> I will definitely read-up on the MIT license after I get some zzZZzz's!

Don't forget the MIT license allows people to incorporate your code into 
commercial products and sell for profit without having to give anything 
back (money/improved code/etc).

-- 
Crayon

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



Re: [PHP] GET variable unexpectedly assigned to session variable

2007-05-11 Thread Crayon Shin Chan
On Friday 11 May 2007 03:08, Dave Goodchild wrote:
> Another small and unrelated point - you don't need to use double quotes
> inside the array brackets - you're not processing them at all.

You seemed to have left out:

"use single quotes instead".

-- 
Crayon

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



Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data? [solved]

2007-05-10 Thread Crayon Shin Chan
On Friday 11 May 2007 12:45, Robert Cummings wrote:
> On Thu, 2007-05-10 at 21:23 -0700, Daevid Vincent wrote:
> > Thanks for the suggestion and concern. Fear not, I'm a PHP Guru as
> > mentioned.
>
> A Guru would have spent 60 seconds testing to see if the
> session_start() scenario worked BEFORE posting to the list :B

A guru would've KNOWN it :)

-- 
Crayon

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