OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
php-general Digest 6 Mar 2008 21:41:44 -0000 Issue 5333

php-general-digest-helplists.php.net
Date: Thu Mar 06 2008 - 15:41:44 CST


php-general Digest 6 Mar 2008 21:41:44 -0000 Issue 5333

Topics (messages 271069 through 271101):

Re: Pear Installation Problem - Ubuntu
        271069 by: Richard Heyes

CVS Scripts
        271070 by: Adrian Walls
        271072 by: Eric Butera
        271074 by: Thiago Pojda
        271075 by: tedd
        271076 by: Eric Butera
        271078 by: tedd
        271082 by: Wolf
        271083 by: Adrian Walls
        271084 by: Wolf
        271085 by: Daniel Brown
        271086 by: Adrian Walls
        271087 by: Wolf
        271089 by: Eric Butera
        271090 by: tedd
        271091 by: Andrés Robinet
        271092 by: tedd
        271093 by: tedd
        271094 by: Eric Butera
        271095 by: Ray Hauge
        271096 by: Ray Hauge
        271097 by: tedd
        271098 by: Eric Butera

Re: Preserving URL after redirect?
        271071 by: Jochem Maas

Re: Alternative to Quickforms - Not Use Tables
        271073 by: Mark Wiesemann
        271088 by: Stephen

Re: imagettftext and utf-8 (swedish characters)
        271077 by: tedd

Re: URL modification
        271079 by: tedd
        271080 by: Aschwin Wesselius

Re: Array questions...
        271081 by: Ford, Mike

imagerotate
        271099 by: Zeshan Uddin
        271100 by: Daniel Brown
        271101 by: tedd

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscribelists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscribelists.php.net

To post to the list, e-mail:
        php-generallists.php.net

----------------------------------------------------------------------

attached mail follows:


You could just copy and paste from the PEAR website, And replicate the
directory structure manually. g

1. Create the dire /use/local/share/pear/HTML
2. Copy (or create) the file Quickform (and all it's associated stuff)
    into that directory. IIRC, Quickform has quite a lot of files, so you
    may be better off with a single file while you get it up and running.
    Something like Console_Table. So, you would create this dir:
    /usr/local/share/pear/Console and in that place the file Table.php
    Then in your app you can do this:

    require_once('Console/Table.php');

--
Richard Heyes
Employ me:
http://www.phpguru.org/cv

attached mail follows:


Hi,

 

I would like to be able to automatically check projects out from a CVS
repository using PHP rather than a traditional CVS client as part of a build
process? Has anyone done this successfully before and if so can they point
me in the right direction on how to go about this?

 

Thanks,

Adrian.

 

 

Adrian Walls

K-Point Internet Solutions Limited
Tel: (028) 4175 4836
Mob: +44 (0) 7734473615
Email: awallskpoint.co.uk

Web: http://www.kpoint.co.uk <http://www.kpoint.co.uk/>

Registered office: 8 Osborne Promenade, Warrenpoint, Newry, Co. Down BT34
3NQ Registered in Northern Ireland no. NI50666

CONFIDENTIALITY NOTICE
This email is private and confidential and may contain legally privileged
information. If you are not named as an addressee it may be unlawful for you
to read, copy, distribute, disclose or otherwise use the information
contained in this email. If you are not the intended recipient of this email
please destroy this communication and contact awallskpoint.co.uk

 

 

attached mail follows:


On Thu, Mar 6, 2008 at 7:29 AM, Adrian Walls <awallskpoint.co.uk> wrote:
> Hi,
>
>
>
> I would like to be able to automatically check projects out from a CVS
> repository using PHP rather than a traditional CVS client as part of a build
> process? Has anyone done this successfully before and if so can they point
> me in the right direction on how to go about this?
>
>
>
> Thanks,
>
> Adrian.
>
>
>
>
>
> Adrian Walls
>
> K-Point Internet Solutions Limited
> Tel: (028) 4175 4836
> Mob: +44 (0) 7734473615
> Email: awallskpoint.co.uk
>
> Web: http://www.kpoint.co.uk <http://www.kpoint.co.uk/>
>
> Registered office: 8 Osborne Promenade, Warrenpoint, Newry, Co. Down BT34
> 3NQ Registered in Northern Ireland no. NI50666
>
> CONFIDENTIALITY NOTICE
> This email is private and confidential and may contain legally privileged
> information. If you are not named as an addressee it may be unlawful for you
> to read, copy, distribute, disclose or otherwise use the information
> contained in this email. If you are not the intended recipient of this email
> please destroy this communication and contact awallskpoint.co.uk
>
>
>
>
>
>

I'm not really sure I can reply to you because of your confidentiality
notice. I mean it isn't like you sent an email to a public mailing
list where thousands of people can see it. ;)

Maybe this will help: http://cruisecontrol.sourceforge.net/

attached mail follows:


-----Mensagem original-----
De: Eric Butera [mailto:eric.buteragmail.com]
>
> CONFIDENTIALITY NOTICE
> This email is private and confidential and may contain legally
> privileged information. If you are not named as an addressee it may
> be unlawful for you to read, copy, distribute, disclose or otherwise
> use the information contained in this email. If you are not the
> intended recipient of this email please destroy this communication
> and contact awallskpoint.co.uk
>
>
>
>
>
>

   I'm not really sure I can reply to you because of your
   confidentiality notice. I mean it isn't like you sent an email
   to a public mailing list where thousands of people can see it. ;)

   Maybe this will help: http://cruisecontrol.sourceforge.net/

<me>
        
        Ever noticed that the sentence "it may be unlawful for you to read"
is at the bottom of the email? Well, for you to read that you probably
already read it all, isn't it?

</me>

attached mail follows:


At 8:12 AM -0500 3/6/08, Eric Butera wrote:
>On Thu, Mar 6, 2008 at 7:29 AM, Adrian Walls <awallskpoint.co.uk> wrote:
>
> > Adrian Walls
>>
>> K-Point Internet Solutions Limited
>> Tel: (028) 4175 4836
>> Mob: +44 (0) 7734473615
>> Email: awallskpoint.co.uk
>>
>> Web: http://www.kpoint.co.uk <http://www.kpoint.co.uk/>
>>
>> Registered office: 8 Osborne Promenade, Warrenpoint, Newry, Co. Down BT34
>> 3NQ Registered in Northern Ireland no. NI50666
>>
>> CONFIDENTIALITY NOTICE
>> This email is private and confidential and may contain legally privileged
>> information. If you are not named as an addressee it may be
>>unlawful for you
>> to read, copy, distribute, disclose or otherwise use the information
>> contained in this email. If you are not the intended recipient of
>>this email
> > please destroy this communication and contact awallskpoint.co.uk
>>
>
>I'm not really sure I can reply to you because of your confidentiality
>notice. I mean it isn't like you sent an email to a public mailing
>list where thousands of people can see it. ;)

Plus, take a look at the SIZE of that signature -- what a waste of bandwidth.

Trimming a signature to a couple of lines is far more respectful than
providing a billboard.

Cheers,

tedd

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

attached mail follows:


On Thu, Mar 6, 2008 at 9:11 AM, Thiago Pojda
<thiago.pojdasoftpartech.com.br> wrote:
> -----Mensagem original-----
> De: Eric Butera [mailto:eric.buteragmail.com]
>
> >
> > CONFIDENTIALITY NOTICE
> > This email is private and confidential and may contain legally
> > privileged information. If you are not named as an addressee it may
> > be unlawful for you to read, copy, distribute, disclose or otherwise
> > use the information contained in this email. If you are not the
> > intended recipient of this email please destroy this communication
> > and contact awallskpoint.co.uk
> >
> >
> >
> >
> >
> >
>
> I'm not really sure I can reply to you because of your
> confidentiality notice. I mean it isn't like you sent an email
> to a public mailing list where thousands of people can see it. ;)
>
> Maybe this will help: http://cruisecontrol.sourceforge.net/
>
> <me>
>
> Ever noticed that the sentence "it may be unlawful for you to read"
> is at the bottom of the email? Well, for you to read that you probably
> already read it all, isn't it?
>
> </me>
>
>
>

Indeed. :) I was just poking fun at how asinine it is to think of a
clear text email going over the wire has any possibility of being
secure/confidential. Funny what lawyers make us do, right?

attached mail follows:


At 9:25 AM -0500 3/6/08, Eric Butera wrote:
>Indeed. :) I was just poking fun at how asinine it is to think of a
>clear text email going over the wire has any possibility of being
>secure/confidential. Funny what lawyers make us do, right?

It may be funny what they try to do, but doing it is up to you.

Remember, the ultimate legal decisions are not made lawyers, but by
juries -- which by law forbids attorneys. Interesting.

Cheers,

tedd

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

attached mail follows:


<!-- snip -->
> > CONFIDENTIALITY NOTICE
> > This email is private and confidential and may contain legally privileged
> > information. If you are not named as an addressee it may be unlawful for you
> > to read, copy, distribute, disclose or otherwise use the information
> > contained in this email. If you are not the intended recipient of this email
> > please destroy this communication and contact awallskpoint.co.uk
<!-- snip -->

The funny thing about these is:
1. Some companies have them as default "signature" files that are added on to every email.
2. Some companies believe they actually mean something
3. They are always at the end of the email.

From an internet solutions company, one would think they would knot that a "Confidentiality notice" is about as useful as a piece of tissue paper in a flood.

Of course, even if it was company confidential info and sent over secure email to an un-intended recipient and it got posted to WikiLeaks...

Well *shrug*...

Gotta love the waste of bandwidth though!

attached mail follows:


1. It is a legal thing, whether it means anything or not or regardless of
what anyone else's take is on it.

2. It was a straight forward question I asked. I guess it was my mistake
for thinking this was a place to ask questions rather than somewhere to take
the p*ss. I'll not make the same mistake again.

-----Original Message-----
From: Wolf [mailto:lonewolfnc.rr.com]
Sent: 06 March 2008 15:26
To: Eric Butera
Cc: Adrian Walls; php-generallists.php.net
Subject: Re: [PHP] CVS Scripts

<!-- snip -->
> > CONFIDENTIALITY NOTICE
> > This email is private and confidential and may contain legally
privileged
> > information. If you are not named as an addressee it may be unlawful
for you
> > to read, copy, distribute, disclose or otherwise use the information
> > contained in this email. If you are not the intended recipient of this
email
> > please destroy this communication and contact awallskpoint.co.uk
<!-- snip -->

The funny thing about these is:
1. Some companies have them as default "signature" files that are added on
to every email.
2. Some companies believe they actually mean something
3. They are always at the end of the email.

From an internet solutions company, one would think they would knot that a
"Confidentiality notice" is about as useful as a piece of tissue paper in a
flood.

Of course, even if it was company confidential info and sent over secure
email to an un-intended recipient and it got posted to WikiLeaks...

Well *shrug*...

Gotta love the waste of bandwidth though!

attached mail follows:


---- Adrian Walls <awallskpoint.co.uk> wrote:
> 1. It is a legal thing, whether it means anything or not or regardless of
> what anyone else's take is on it.
>
> 2. It was a straight forward question I asked. I guess it was my mistake
> for thinking this was a place to ask questions rather than somewhere to take
> the p*ss. I'll not make the same mistake again.
>
<!-- SNIP -->

We're a bunch of helpful and flippant sods on this list, so take the criticism as constructive (trim your own sig file down and remove the white space and see if you can NOT send the confidentiality notices when broadcast mailing).

As for automatic CVS via PHP, it depends on your take on it...

Eclipse has a CVS piece to it which seems to work well (I've installed it, but most of my stuff is layered and I don't have a reason for CVS), though someone also posted about cruisecontrol on the sourceforge site.

What have you found and tried via a google search?

Wolf

attached mail follows:


On Thu, Mar 6, 2008 at 10:31 AM, Adrian Walls <awallskpoint.co.uk> wrote:
> 1. It is a legal thing, whether it means anything or not or regardless of
> what anyone else's take is on it.
>
> 2. It was a straight forward question I asked. I guess it was my mistake
> for thinking this was a place to ask questions rather than somewhere to take
> the p*ss. I'll not make the same mistake again.

    Calm down there, Spanky.

    It's a helpful list, but it's also a discussion list. Stick
around long enough and you'll be giving the piss as much as you'll
receive it. ;-P

    Is the signature added on to every outbound message by your
company's mail server? If that's the case, you couldn't trim the
signature down if you tried.

    And for those who say it's a waste of bandwidth (I'm staring in
your direction, old man! ;-P) I'd say that there's no such thing as a
"waste of bandwidth," because it's an unlimited, indefinite resource.
Not even just renewable, but infinite. And unless you're checking all
messages on a Nokia 3390 or still have 300bps dial-up, that signature
loaded on your screen faster than it took the time to hit the keyboard
for the first letter in that sentence.

    So there! ;-P

--
</Dan>

Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>

attached mail follows:


Firstly thanks for a sensible reply.

I am using Zend Studio Server and I haven't upgraded to Zend Studio for
Eclipse as yet. It also has some CVS capability not its not what I am
after.

Google was my first stop but it didn't turn up anything which appeared to be
in a stable enough state. Hence my email to the list to see if anyone else
had come across such a solution. My application is built from several
modules contained with cvs. Some of these modules are used across projects.
I wanted to create my own web-based script to check these out of cvs and to
build and configure the application on the fly.

I had a look at cruisecontrol but its not really what I am looking for
either.

Adrian.

-----Original Message-----
From: Wolf [mailto:lonewolfnc.rr.com]
Sent: 06 March 2008 15:42
To: Adrian Walls
Cc: 'Eric Butera'; php-generallists.php.net
Subject: RE: [PHP] CVS Scripts

---- Adrian Walls <awallskpoint.co.uk> wrote:
> 1. It is a legal thing, whether it means anything or not or regardless of
> what anyone else's take is on it.
>
> 2. It was a straight forward question I asked. I guess it was my mistake
> for thinking this was a place to ask questions rather than somewhere to
take
> the p*ss. I'll not make the same mistake again.
>
<!-- SNIP -->

We're a bunch of helpful and flippant sods on this list, so take the
criticism as constructive (trim your own sig file down and remove the white
space and see if you can NOT send the confidentiality notices when broadcast
mailing).

As for automatic CVS via PHP, it depends on your take on it...

Eclipse has a CVS piece to it which seems to work well (I've installed it,
but most of my stuff is layered and I don't have a reason for CVS), though
someone also posted about cruisecontrol on the sourceforge site.

What have you found and tried via a google search?

Wolf

attached mail follows:


> I am using Zend Studio Server and I haven't upgraded to Zend Studio for
> Eclipse as yet. It also has some CVS capability not its not what I am
> after.
>
> Google was my first stop but it didn't turn up anything which appeared to be
> in a stable enough state. Hence my email to the list to see if anyone else
> had come across such a solution. My application is built from several
> modules contained with cvs. Some of these modules are used across projects.
> I wanted to create my own web-based script to check these out of cvs and to
> build and configure the application on the fly.
>
> I had a look at cruisecontrol but its not really what I am looking for
> either.
<!-- SNIP -->

You're probably going to have to code that sucker on your own and slide it in as a cron job on your build server to get the latest/greatest whenever needed. I haven't come across anything like it before, but I definitely like the concept.

Wolf

attached mail follows:


On Thu, Mar 6, 2008 at 10:58 AM, Adrian Walls <awallskpoint.co.uk> wrote:
> Firstly thanks for a sensible reply.
>
> I am using Zend Studio Server and I haven't upgraded to Zend Studio for
> Eclipse as yet. It also has some CVS capability not its not what I am
> after.
>
> Google was my first stop but it didn't turn up anything which appeared to be
> in a stable enough state. Hence my email to the list to see if anyone else
> had come across such a solution. My application is built from several
> modules contained with cvs. Some of these modules are used across projects.
> I wanted to create my own web-based script to check these out of cvs and to
> build and configure the application on the fly.
>
> I had a look at cruisecontrol but its not really what I am looking for
> either.
>
> Adrian.
>
>
>
>
>
>
> -----Original Message-----
> From: Wolf [mailto:lonewolfnc.rr.com]
>
>
> Sent: 06 March 2008 15:42
> To: Adrian Walls
> Cc: 'Eric Butera'; php-generallists.php.net
> Subject: RE: [PHP] CVS Scripts
>
> ---- Adrian Walls <awallskpoint.co.uk> wrote:
> > 1. It is a legal thing, whether it means anything or not or regardless of
> > what anyone else's take is on it.
> >
> > 2. It was a straight forward question I asked. I guess it was my mistake
> > for thinking this was a place to ask questions rather than somewhere to
> take
> > the p*ss. I'll not make the same mistake again.
> >
> <!-- SNIP -->
>
> We're a bunch of helpful and flippant sods on this list, so take the
> criticism as constructive (trim your own sig file down and remove the white
> space and see if you can NOT send the confidentiality notices when broadcast
> mailing).
>
> As for automatic CVS via PHP, it depends on your take on it...
>
> Eclipse has a CVS piece to it which seems to work well (I've installed it,
> but most of my stuff is layered and I don't have a reason for CVS), though
> someone also posted about cruisecontrol on the sourceforge site.
>
> What have you found and tried via a google search?
>
> Wolf
>
>

Maybe look at Phing[1]? Skimming over the docs (I know you said you
use CVS) I saw a task you can define to check files out form SVN.
There might be a cvs one somewhere or you could extend it and write
your own.

[1] http://phing.info/

attached mail follows:


At 3:31 PM +0000 3/6/08, Adrian Walls wrote:
>2. It was a straight forward question I asked. I guess it was my mistake
>for thinking this was a place to ask questions rather than somewhere to take
>the p*ss. I'll not make the same mistake again.

Before you take that attitude -- oh, but wait you already have.

You come here to ask a question and we're all here to help. But
realize that no one is paying us to answer while I am sure that your
employer is paying you to ask.

If you want to ask, and have answered, a question that's important to
you, then consider asking it in a way that's respectful. That's
understandable, is it not?

Now, either ask your question or leave -- makes no difference to any
of us either way. But don't tell us how to answer.

Cheers,

tedd

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

attached mail follows:


> -----Original Message-----
> From: Wolf [mailto:lonewolfnc.rr.com]
> Sent: Thursday, March 06, 2008 11:02 AM
> To: Adrian Walls
> Cc: php-generallists.php.net; 'Eric Butera'
> Subject: RE: [PHP] CVS Scripts
>
> > I am using Zend Studio Server and I haven't upgraded to Zend Studio for
> > Eclipse as yet. It also has some CVS capability not its not what I am
> > after.
> >
> > Google was my first stop but it didn't turn up anything which appeared to
> be
> > in a stable enough state. Hence my email to the list to see if anyone
> else
> > had come across such a solution. My application is built from several
> > modules contained with cvs. Some of these modules are used across
> projects.
> > I wanted to create my own web-based script to check these out of cvs and
> to
> > build and configure the application on the fly.
> >
> > I had a look at cruisecontrol but its not really what I am looking for
> > either.
> <!-- SNIP -->
>
> You're probably going to have to code that sucker on your own and slide it
> in as a cron job on your build server to get the latest/greatest whenever
> needed. I haven't come across anything like it before, but I definitely
> like the concept.
>
> Wolf

Just a note about "Confidentiality" footers. Mine is as follows:

Confidentiality:
"All information in this email message, including images, attachments, contains confidential and proprietary information of BESTPLACE CORPORATION and should only be used or serves for the intended purpose and should not be copied, used or disclosed to anyone other than the sole recipient of this e-mail message."

It makes a lot of sense if you, for example, signed an NDA with a customer/partner.
However, on a public list like this, it would be a nonsense to include it, as every post here is broadcasted to everyone else and will be published on one zillon sites that track this list. So, when I first rolled in here, I told my company's president that I would be removing the confidentiality warning or I would be using my personal gmail address if that was not allowed. She was pretty reasonable about it. Still, I kept the other part of the signature (which you can see at the bottom) because it contains information that can be of some value for anybody reading my posts. It says who I am, who I work with, where we are and the many to contact us.
It's not about bandwidth, it's just about removing "noise". Many times I even remove the whole footer so the messages are more readable. If it was only my decision, I wouldn't have a footer at all.

Regards,

Rob(inet)

Andrés Robinet | Lead Developer | BESTPLACE CORPORATION
5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale, FL 33308 | TEL 954-607-4207 | FAX 954-337-2695 |
Email: infobestplace.net | MSN Chat: bestbestplace.net | SKYPE: bestplace | Web: bestplace.biz | Web: seo-diy.com

attached mail follows:


At 10:54 AM -0500 3/6/08, Daniel Brown wrote:
> And for those who say it's a waste of bandwidth (I'm staring in
>your direction, old man! ;-P) I'd say that there's no such thing as a
>"waste of bandwidth," because it's an unlimited, indefinite resource.
>Not even just renewable, but infinite. And unless you're checking all
>messages on a Nokia 3390 or still have 300bps dial-up, that signature
>loaded on your screen faster than it took the time to hit the keyboard
>for the first letter in that sentence.
>
> So there! ;-P

Buzzzt wrong answer -- but your pre-wife will fix that.

It's not a question of quantity, youngster -- it's a question of quality. :-)

Additional unnecessary text doesn't do anything to enhance the
quality of life, nor the speed of search engines, nor increase our
ability to read. It's nothing but noise and noise doesn't do anything
beneficial -- it only distracts.

Later in life when you eventually marry, have kids, and a house full
of noise -- you'll understand the value of less noise.

Cheers,

tedd

PS: Besides, when you get to my age, every millisecond counts. :-)
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com

attached mail follows:


At 11:30 AM -0500 3/6/08, Andrés Robinet wrote:
> Still, I kept the other part of the signature
>(which you can see at the bottom) because it
>contains information that can be of some value
>for anybody reading my posts. It says who I am,
>who I work with, where we are and the many to
>contact us.
>It's not about bandwidth, it's just about
>removing "noise". Many times I even remove the
>whole footer so the messages are more readable.
>If it was only my decision, I wouldn't have a
>footer at all.
>
>Regards,
>
>Rob(inet)
>
>Andrés Robinet | Lead Developer | BESTPLACE CORPORATION
>5100 Bayview Drive 206, Royal Lauderdale
>Landings, Fort Lauderdale, FL 33308 | TEL
>954-607-4207 | FAX 954-337-2695 |
>Email: infobestplace.net | MSN Chat:
>bestbestplace.net | SKYPE: bestplace | Web:
>bestplace.biz | Web: seo-diy.com

Personally, I don't see much wrong/right about
signatures provided they are short -- your's is
fine.

If one has a disclaimer of some sort, then
provide a link -- that way IF anyone is
interested, they can follow the link and read.
But, outside of a link, I don't think any of us
need to see the disclaimer repeated with every
post.

As it is now, not trimming post to what is
relevant plagues this list -- we don't need
billboards of nonsense to adding to the noise.

Enough said.

Cheers,

tedd

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

attached mail follows:


On Thu, Mar 6, 2008 at 12:10 PM, tedd <tedd.sperlinggmail.com> wrote:
> At 11:30 AM -0500 3/6/08, Andrés Robinet wrote:
> > Still, I kept the other part of the signature
> >(which you can see at the bottom) because it
> >contains information that can be of some value
> >for anybody reading my posts. It says who I am,
> >who I work with, where we are and the many to
> >contact us.
> >It's not about bandwidth, it's just about
> >removing "noise". Many times I even remove the
> >whole footer so the messages are more readable.
> >If it was only my decision, I wouldn't have a
> >footer at all.
> >
> >Regards,
> >
> >Rob(inet)
> >
> >Andrés Robinet | Lead Developer | BESTPLACE CORPORATION
> >5100 Bayview Drive 206, Royal Lauderdale
> >Landings, Fort Lauderdale, FL 33308 | TEL
> >954-607-4207 | FAX 954-337-2695 |
> >Email: infobestplace.net | MSN Chat:
> >bestbestplace.net | SKYPE: bestplace | Web:
> >bestplace.biz | Web: seo-diy.com
>
> Personally, I don't see much wrong/right about
> signatures provided they are short -- your's is
> fine.
>
> If one has a disclaimer of some sort, then
> provide a link -- that way IF anyone is
> interested, they can follow the link and read.
> But, outside of a link, I don't think any of us
> need to see the disclaimer repeated with every
> post.
>
> As it is now, not trimming post to what is
> relevant plagues this list -- we don't need
> billboards of nonsense to adding to the noise.
>
> Enough said.
>
> Cheers,
>
> tedd
>
> --
> -------
> http://sperling.com http://ancientstones.com http://earthstones.com
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

You know most people do break the rules. :)

http://us.php.net/reST/php-src/README.MAILINGLIST_RULES

Specifically:
7. Please configure your email client to use a real name and keep
message signatures to a maximum of 2 lines if at all necessary.

attached mail follows:


Eric Butera wrote:
> On Thu, Mar 6, 2008 at 10:58 AM, Adrian Walls <awallskpoint.co.uk> wrote:
>> Firstly thanks for a sensible reply.
>>
>> I am using Zend Studio Server and I haven't upgraded to Zend Studio for
>> Eclipse as yet. It also has some CVS capability not its not what I am
>> after.
>>
>> Google was my first stop but it didn't turn up anything which appeared to be
>> in a stable enough state. Hence my email to the list to see if anyone else
>> had come across such a solution. My application is built from several
>> modules contained with cvs. Some of these modules are used across projects.
>> I wanted to create my own web-based script to check these out of cvs and to
>> build and configure the application on the fly.
>>
>> I had a look at cruisecontrol but its not really what I am looking for
>> either.
>>
>> Adrian.
>>
>>
>>
>>
>>
>>
>> -----Original Message-----
>> From: Wolf [mailto:lonewolfnc.rr.com]
>>
>>
>> Sent: 06 March 2008 15:42
>> To: Adrian Walls
>> Cc: 'Eric Butera'; php-generallists.php.net
>> Subject: RE: [PHP] CVS Scripts
>>
>> ---- Adrian Walls <awallskpoint.co.uk> wrote:
>> > 1. It is a legal thing, whether it means anything or not or regardless of
>> > what anyone else's take is on it.
>> >
>> > 2. It was a straight forward question I asked. I guess it was my mistake
>> > for thinking this was a place to ask questions rather than somewhere to
>> take
>> > the p*ss. I'll not make the same mistake again.
>> >
>> <!-- SNIP -->
>>
>> We're a bunch of helpful and flippant sods on this list, so take the
>> criticism as constructive (trim your own sig file down and remove the white
>> space and see if you can NOT send the confidentiality notices when broadcast
>> mailing).
>>
>> As for automatic CVS via PHP, it depends on your take on it...
>>
>> Eclipse has a CVS piece to it which seems to work well (I've installed it,
>> but most of my stuff is layered and I don't have a reason for CVS), though
>> someone also posted about cruisecontrol on the sourceforge site.
>>
>> What have you found and tried via a google search?
>>
>> Wolf
>>
>>
>
> Maybe look at Phing[1]? Skimming over the docs (I know you said you
> use CVS) I saw a task you can define to check files out form SVN.
> There might be a cvs one somewhere or you could extend it and write
> your own.
>
> [1] http://phing.info/
>

Another option would be to write your own. If your requirements are
super specific, then that might be the best route. I can't imagine it
would be too difficult.

You can use shell_exec to execute the CVS checkout, and any other CVS
command necessary. Don't forget to use escapeshellcmd() either:

http://us3.php.net/manual/en/function.escapeshellcmd.php

After it's checked out, then you can use shell_exec() again to run the
compile command. If it takes a long time, you might be best just
sending the command to the output so you can copy and paste and run it
yourself, or just make sure you set_time_limit(0), or some amount of
time it should finish compiling in.

I assume it's an internal app, so you wouldn't have to worry too much
about it looking pretty or any of the other time consuming operations.

<?php

//
// NOTE: Paths are for Linux. Change for Windows as necessary
//

$cmd = escapeshellcmd('/usr/bin/cvs -d :ext:usercvshost:/.../cvsroot
checkout module');

$output = shell_exec($cmd);

// do something with output if you need

$cmd = escapeshellcmd('/path/to/module/configure');

$output = shell_exec($cmd);

echo "done!";

?>

Something like that anyway. That's overly simplified of course, but it
should get you a start if you want to write it yourself.

--
Ray Hauge
www.primateapplications.com

attached mail follows:


Wolf wrote:
>> I am using Zend Studio Server and I haven't upgraded to Zend Studio for
>> Eclipse as yet. It also has some CVS capability not its not what I am
>> after.
>>
>> Google was my first stop but it didn't turn up anything which appeared to be
>> in a stable enough state. Hence my email to the list to see if anyone else
>> had come across such a solution. My application is built from several
>> modules contained with cvs. Some of these modules are used across projects.
>> I wanted to create my own web-based script to check these out of cvs and to
>> build and configure the application on the fly.
>>
>> I had a look at cruisecontrol but its not really what I am looking for
>> either.
> <!-- SNIP -->
>
> You're probably going to have to code that sucker on your own and slide it in as a cron job on your build server to get the latest/greatest whenever needed. I haven't come across anything like it before, but I definitely like the concept.
>
> Wolf
>

I had an idea to tie a ticket system with SVN. Each ticket would be
associated to a change in the code. In the ticket system you put in the
different revisions that were checked in for that ticket. Then when you
go to "promote" the ticket for testing, it'll check and make sure that
there were no conflicting changes and merge it if possible to the next
branch. The details are a little fuzzy after a few months of not
thinking about it. The XML output from SVN would come in quite handy at
that point though.

It would have been cool, but it would have been complicated. We didn't
have the time to work on it. I think Trac is somewhat similar.

PS. sorry for the thread hijack :)

--
Ray Hauge
www.primateapplications.com

attached mail follows:


At 12:43 PM -0500 3/6/08, Eric Butera wrote:
>You know most people do break the rules. :)
>
>http://us.php.net/reST/php-src/README.MAILINGLIST_RULES
>
>Specifically:
>7. Please configure your email client to use a real name and keep
>message signatures to a maximum of 2 lines if at all necessary.

No question -- we all have. But, I think that most will take the time
to understand the problem instead of fighting it.

Thanks for providing that link -- I knew I read that somewhere.

Cheers,

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

attached mail follows:


On Thu, Mar 6, 2008 at 1:03 PM, tedd <tedd.sperlinggmail.com> wrote:
> At 12:43 PM -0500 3/6/08, Eric Butera wrote:
> >You know most people do break the rules. :)
> >
> >http://us.php.net/reST/php-src/README.MAILINGLIST_RULES
> >
> >Specifically:
> >7. Please configure your email client to use a real name and keep
> >message signatures to a maximum of 2 lines if at all necessary.
>
> No question -- we all have. But, I think that most will take the time
> to understand the problem instead of fighting it.
>
> Thanks for providing that link -- I knew I read that somewhere.
>
>
>
> Cheers,
>
> tedd
> --
> -------
> http://sperling.com http://ancientstones.com http://earthstones.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

I didn't know it existed either until I saw someone post it [1] on
php-dev the other day. *shrug* Apparently there is an RFC for
"Netiquette Guidelines" too. ;)

[1] http://aspn.activestate.com/ASPN/Mail/Message/php-Dev/3609763

attached mail follows:


Skip Evans schreef:
> (Apologies to Shawn for sending this directly to him and not the entire
> list, that was an accident. Here it is for the list.)
>
> Shawn McKenzie wrote:
> <SNIP!>
>>
>> Rewrite rule would look something like:
>>
>> <IfModule mod_rewrite.c>
>> RewriteEngine On
>> RewriteCond %{REQUEST_FILENAME} !-d
>> RewriteCond %{REQUEST_FILENAME} !-f
>> RewriteRule ^(.*)$ index.php?path=$1 [QSA,L]
>> </IfModule>
>>
>> -Shawn
>>
>
> My httpd.conf file has this
>
> LoadModule rewrite_module
> libexec/apache2/mod_rewrite.so
>
> But your .htaccess sample has
>
> IfModule mod_rewrite.c
>
> Is that okay?

yes the 'IfModule' means only parse the directive in that
block if the given module is loaded.

>
> Also, it does look like .htaccess is enabled in
> httpd.conf with entries like:
>
> #
> # AllowOverride controls what directives may be
> placed in .htaccess files.
> # It can be "All", "None", or any combination of
> the keywords:
> # Options FileInfo AuthConfig Limit
> #
> AllowOverride All
>
> #
> # AccessFileName: The name of the file to look for
> in each directory
> # for additional configuration directives. See
> also the AllowOverride
> # directive.
> #
> AccessFileName .htaccess
>
> But when I tried out Shawn's file I got 404 errors
> on the URLs (after renaming the wi directory, to
> be sure the .htaccess file was in control.)
>
> Any suggestions would be greatly appreciated.

use a rewritelog as Shawn mentioned to see what apache is
doing when it tries to rewrite the incoming urls.

>
> I'm going through a pretty good page on htaccess files at
>
> http://corz.org/serv/tricks/htaccess2.php
>
> But it starts off with "Make no mistake, mod_rewrite is complex."
>
> *gulp!*

big boys use mod_rewrite, go grab a kilt :-)

> Skip
>

attached mail follows:


Stephen wrote:
> Subject says it.
>
> Is there an open source class for forms that provides for the use of CSS
> for the layout of forms?

Don't you like HTML_QuickForm, or aren't you aware about the tableless
renderer that is available in PEAR?
=> http://pear.php.net/package/HTML_QuickForm_Renderer_Tableless

Regards,
Mark

--
http://www.markwiesemann.eu

attached mail follows:


Mark Wiesemann wrote:

>> Subject says it.
>>
>> Is there an open source class for forms that provides for the use of CSS
>> for the layout of forms?
>
> Don't you like HTML_QuickForm, or aren't you aware about the tableless
> renderer that is available in PEAR?
> => http://pear.php.net/package/HTML_QuickForm_Renderer_Tableless

I did not know about this.

Thank you!
Stephen

attached mail follows:


At 8:35 AM +0100 3/6/08, David Sveningsson wrote:
>
>Sidenote: If I replace åäö with numerical html
>entities it works, but that's not a reasonable
>solution to me.

And you're right -- it isn't a reasonable solution .

Whatever is generating your characters should
generating the same characters regardless.
However, some word processing programs, like Word
for example, make substitutions to those
characters that look fine when reviewing the
documents in Word, but when viewed by other
programs don't look right.

One of the most obvious and common ones for me is reviewing things like this:

think that’s another case

I see this all the time in email where people use
some key combination to produce an apostrophe
when it translates to a comma. It would be nice
if our applications would not make substitutions
for us.

This is similar to the PUNYCODE mess that some
browsers make of IDNS. Only three percent of the
Global population use English as their native
language. The rest of the world wants on the
Internet and wants to be able to use their own
language. But some Browser developers (i.e., IE)
don't want other-than-English characters to be
shows in urls but instead show PUNYCODE, which
was never designed to be viewed by the end user.
Arrogance and ignorance are often coupled.

Cheers,

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

attached mail follows:


At 4:46 PM +0000 2/25/08, Nathan Rixham wrote:
>It may be a good time to throw in this .htaccess which just palms
>eveything [not found] off to php
>
>[.htaccess]
>RewriteEngine On
>RewriteBase /
>
>DirectoryIndex handle.urls.php
>
>RewriteCond %{REQUEST_FILENAME} !-f
>RewriteCond %{REQUEST_FILENAME} !-d
>RewriteRule . /handle.urls.php [L]
>[/.htaccess]
>
>I use this for everything nowadays, in terms of security it also
>allows me to keep every script out of the web root; and joy of joys
>don't need to change any rules for static files, as they will always
>be "found" and thus the rules won't apply:
>
>follow?

No, I don't.

Please explain. Sounds cool.

Cheers,

tedd

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

attached mail follows:


tedd wrote:
> At 4:46 PM +0000 2/25/08, Nathan Rixham wrote:
>> It may be a good time to throw in this .htaccess which just palms
>> eveything [not found] off to php
>>
>> [.htaccess]
>> RewriteEngine On
>> RewriteBase /
>>
>> DirectoryIndex handle.urls.php
>>
>> RewriteCond %{REQUEST_FILENAME} !-f
>> RewriteCond %{REQUEST_FILENAME} !-d
>> RewriteRule . /handle.urls.php [L]
>> [/.htaccess]
>>
>> I use this for everything nowadays, in terms of security it also
>> allows me to keep every script out of the web root; and joy of joys
>> don't need to change any rules for static files, as they will always
>> be "found" and thus the rules won't apply:
>>
>> follow?
>
> No, I don't.
>
> Please explain. Sounds cool.

Hi,

As far as I can follow, this looks much like a 404 redirect trick which
captures all "not found" files/paths. Based on the extension, you can
still do fun or cool stuff and get more control about virtual paths etc.

As always: TIMTOWTDI, so I'm gonna play with this .htaccess rule and see
if this is better than a 404 handler.

Aschwin Wesselius

attached mail follows:


On 05 March 2008 15:50, Jason Pruim advised:

> On Mar 5, 2008, at 10:41 AM, Ford, Mike wrote:
>
 
>> (I was also wondering to myself whether you actually really, really
>> wanted $txtNumArray = $_POST['txtNumArray'], but perhaps you can
easily
>> explain why not...?)
>
> It's a habit I picked up when I was in school and studied
> Visual basic
> for a semester... That way, I know for sure if I'm working with the
> original text verses the text stored in the variable.
>
> Is there any reason not to do it the way I am? I'm completely self
> taught (With the help of many people from here!) so I'm open to
> suggestions about stuff like this :)

I have no issue with your naming style -- I simply noted the assignment
to $NumArray followed by many references to $txtNumArray, and wondered
if in fact they shouldn't both be $txtNumArray. Of course, it may be
that you're giving $txtNumArray a value elsewhere in your script, and
$NumArray is for some other purpose entirely, but I couldn't help
wondering.... ;)

 --
Mike Ford, Electronic Information Services Adviser,
JG125, The Headingley Library,
James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS, LS6 3QS, United Kingdom
Email: m.fordleedsmet.ac.uk
Tel: +44 113 812 4730 Fax: +44 113 812 3211

To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm

attached mail follows:


Image Resize & Rotation

Hi

I have 2 scripts, one for Image rotation and other image resize and they
both are working.

Image resize scripts load the picture and resize it and Image rotation
rotate the image by 90 deg. They are

two differennt files i.e. resize.php and rotate.php.

What I want to do is to combine both rotate.php & resize.php files, so when
the script resized the image than

it will call rotate script to rotate the image and display it on the
screen.. I hope I am making sence.. I am

finding hard to explain.. If u dont understand anything please let me know..

*************************
Code for rotate.php

<?php
// File and rotation
$filename = 'image.png';
$degrees = 18;

// Content type
header('Content-type: image/png');

// Load
$source = imagecreatefrompng($filename);

// Rotate
$rotate = imagerotate($source, $degrees, 0);

// Output
imagepng($rotate);
?>

============================

Code for resize.php

<?php
$src_img = imagecreatefrompng('image.png');
$srcsize = getimagesize('image.png');

$dest_x = 200;
$dest_y = (200 / $srcsize[0]) * $srcsize[1];
$dst_img = imagecreatetruecolor($dest_x, $dest_y);

imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0,
$dest_x, $dest_y, $srcsize[0], $srcsize[1]);

header("content-type: image/png");

imagepng($dst_img);
imagedestroy($src_img);
imagedestroy($dst_img);
?>

thanks

attached mail follows:


On Wed, Mar 5, 2008 at 12:17 PM, Zeshan Uddin <uzeshangooglemail.com> wrote:
> I have 2 scripts, one for Image rotation and other image resize and they
> both are working.
[snip!]
>
> What I want to do is to combine both rotate.php & resize.php files
[snip!]

    The merged code is below, and you can see it on the web here, too:

    [Demo] http://pilotpig.net/code-library/displayresizeandrotate.php
    [Source] http://pilotpig.net/code-library/source.php?f=resizeandrotate.php
    [Source2] http://pilotpig.net/code-library/source.php?f=displayresizeandrotate.php

    New file: resizeandrotate.php

<?

$img = 'image.png';
$degrees = 18;

$src_img = imagecreatefrompng($img);
$srcsize = getimagesize($img);

$dest_x = 200;
$dest_y = (200 / $srcsize[0]) * $srcsize[1];
$dst_img = imagecreatetruecolor($dest_x, $dest_y);

imagecopyresampled($dst_img, $src_img, 0, 0, 0, 0,
$dest_x, $dest_y, $srcsize[0], $srcsize[1]);

// Content type
header('Content-type: image/png');

// Rotate
$rotate = imagerotate($dst_img, $degrees, 0);

// Output
imagepng($rotate);

imagedestroy($src_img);
imagedestroy($dst_img);

?>

--
</Dan>

Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>

attached mail follows:


At 4:19 PM -0500 3/6/08, Daniel Brown wrote:
>On Wed, Mar 5, 2008 at 12:17 PM, Zeshan Uddin <uzeshangooglemail.com> wrote:
>> I have 2 scripts, one for Image rotation and other image resize and they
>> both are working.
>[snip!]
>>
> > What I want to do is to combine both rotate.php & resize.php files

- snip code - Show off !

> New file: resizeandrotate.php

It sounds like a phrase we used in high school with a hand gesture.

Cheers,

tedd

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