[PHP] Re: debugging remote PHP code in eclipse

2013-06-12 Thread Jason P.
I haven't tested yet but I've found yesterday some good tips that maybe could work. 1) Xdebug wizard. Simple paste there the output of phpinfo() and follow the steps. http://xdebug.org/wizard.php If you find problems with phpize, remember to run it inside the inner xdebug folder. 2) Go

[PHP] debugging remote PHP code in eclipse

2013-06-12 Thread Rafnews
Hi everybody, I have big trouble to correctly configure Eclipse/Xdebug to remotely debug a PHP website. When web server is local i have no problem, it works like a charm...but in case webserver is not local, that's a real nightmare. till now everything what i found on internet was about setti

Re: [PHP] Compiler for the PHP code

2013-03-27 Thread czirzow
ten in PHP and it is running in the interpreted way. My > problem is it is not giving the desired performance so want to try the > compiler if any. > Please suggest if we have any compiler option available for the PHP code and > more important is this new option. > -- PHP General

RE: [PHP] Re: Compiler for the PHP code (memecached)

2013-03-19 Thread Daevid Vincent
> -Original Message- > From: Alessandro Pellizzari [mailto:a...@amiran.it] > Sent: Tuesday, March 19, 2013 2:06 AM > To: php-general@lists.php.net > Subject: [PHP] Re: Compiler for the PHP code > > Il Tue, 19 Mar 2013 08:46:22 +, Kevin Peterson ha scritto: >

[PHP] Re: Compiler for the PHP code

2013-03-19 Thread Alessandro Pellizzari
Il Tue, 19 Mar 2013 08:46:22 +, Kevin Peterson ha scritto: > My webcode written in PHP and it is running in the interpreted way. My > problem is it is not giving the desired performance so want to try the > compiler if any. PHP gets compiled to bytecode on the server before being executed. Yo

Re: [PHP] Compiler for the PHP code

2013-03-19 Thread Adam Nicholls
hink about increasing resources or introducing a load balancer (in the case of PHP based websites) Cheers Ads. Sent from my BlackBerry® wireless device -Original Message- From: Camille Hodoul Date: Tue, 19 Mar 2013 09:52:14 To: Kevin Peterson Cc: Subject: Re: [PHP] Compiler for th

Re: [PHP] Compiler for the PHP code

2013-03-19 Thread Vincent Tumwijukye
ng the desired performance so want to try the > compiler if any. > Please suggest if we have aany compiler option available for the PHP code > and more important is this new option. > > -- Tumwijukye Vincent Chief Executive Officer Future Link Technologies Plot 78 Kanjokya Street, P.

Re: [PHP] Compiler for the PHP code

2013-03-19 Thread Camille Hodoul
Googling "compile php code" gave me this : http://stackoverflow.com/questions/1408417/can-you-compile-php-code It looks like you have some options but I haven't tried any yet, so I can't help you with the installation 2013/3/19 Kevin Peterson > My webcode written in P

[PHP] Compiler for the PHP code

2013-03-19 Thread Kevin Peterson
My webcode written in PHP and it is running in the interpreted way. My problem is it is not giving the desired performance so want to try the compiler if any. Please suggest if we have any compiler option available for the PHP code and more important is this new option.

Re: [PHP] code deployment through php

2012-05-14 Thread rene7705
On Sun, May 6, 2012 at 3:32 PM, rene7705 wrote: > On Sat, May 5, 2012 at 5:13 AM, tamouse mailing lists > wrote: >> >> On Wed, May 2, 2012 at 5:23 AM, rene7705 wrote: >> > On Wed, May 2, 2012 at 11:47 AM, rene7705 wrote: >> > >> >> I can't use anything like git on my shared hoster. But I suppos

Re: [PHP] code deployment through php

2012-05-06 Thread rene7705
On Sat, May 5, 2012 at 5:13 AM, tamouse mailing lists < tamouse.li...@gmail.com> wrote: > On Wed, May 2, 2012 at 5:23 AM, rene7705 wrote: > > On Wed, May 2, 2012 at 11:47 AM, rene7705 wrote: > > > >> I can't use anything like git on my shared hoster. But I suppose I could > >> use something like

Re: [PHP] code deployment through php

2012-05-04 Thread tamouse mailing lists
On Wed, May 2, 2012 at 5:23 AM, rene7705 wrote: > On Wed, May 2, 2012 at 11:47 AM, rene7705 wrote: > >> I can't use anything like git on my shared hoster. But I suppose I could >> use something like git at home, and use a sync script like I posted in my >> OP on the shared hoster. >> >> >> > Mayb

Re: [PHP] code deployment through php

2012-05-02 Thread Lester Caine
rene7705 wrote: I can't use anything like git on my shared hoster. But I suppose I could use something like git at home, and use a sync script like I posted in my OP on the shared hoster. I have some legacy hosting packages which are just ftp access and BC just lists them and allows me to mana

Re: [PHP] code deployment through php

2012-05-02 Thread rene7705
On Wed, May 2, 2012 at 11:47 AM, rene7705 wrote: > I can't use anything like git on my shared hoster. But I suppose I could > use something like git at home, and use a sync script like I posted in my > OP on the shared hoster. > > > Maybe you git gurus can help me along a bit further. I've manag

Re: [PHP] code deployment through php

2012-05-02 Thread rene7705
I can't use anything like git on my shared hoster. But I suppose I could use something like git at home, and use a sync script like I posted in my OP on the shared hoster.

Re: [PHP] code deployment through php

2012-05-01 Thread Lester Caine
rene7705 wrote: Well, I want to work on 1 copy of my common code on my windows machine, then sync those changes to all my sites (hosted on the win dev box) to see if it messes up the other sites, then FTP those changes to my hosting account, and run the sync script there as well. I have a numbe

Re: [PHP] code deployment through php

2012-05-01 Thread Larry Garfield
On 5/1/12 4:19 AM, rene7705 wrote: On Tue, May 1, 2012 at 11:11 AM, Camilo Sperberg wrote: If I understood the problem correctly, you want to keep a single copy of your code on every machine you work, including the final server. Well, I want to work on 1 copy of my common code on my windows

RE: [PHP] code deployment through php

2012-05-01 Thread admin
-Original Message- From: Stuart Dallas [mailto:stu...@3ft9.com] Sent: Tuesday, May 01, 2012 8:19 AM To: rene7705 Cc: Camilo Sperberg; php-general Subject: Re: [PHP] code deployment through php On 1 May 2012, at 10:19, rene7705 wrote: > On Tue, May 1, 2012 at 11:11 AM, Camilo Sperb

Re: [PHP] code deployment through php

2012-05-01 Thread Stuart Dallas
On 1 May 2012, at 10:19, rene7705 wrote: > On Tue, May 1, 2012 at 11:11 AM, Camilo Sperberg wrote: > >> If I understood the problem correctly, you want to keep a single copy of >> your code on every machine you work, including the final server. >> >> > Well, I want to work on 1 copy of my comm

Re: [PHP] code deployment through php

2012-05-01 Thread rene7705
On Tue, May 1, 2012 at 11:11 AM, Camilo Sperberg wrote: > If I understood the problem correctly, you want to keep a single copy of > your code on every machine you work, including the final server. > > Well, I want to work on 1 copy of my common code on my windows machine, then sync those changes

Re: [PHP] code deployment through php

2012-05-01 Thread Camilo Sperberg
On 1 mei 2012, at 10:59, rene7705 wrote: > Hi folks. > > I was here a while ago, trying to figure out how to keep deployment > instances of my common code, running on more than 1 site, in sync with > eachother. > > I've looked at rsync which was recommended here, but didn't like it much, > nor

Re: [PHP] Re: updating code asap to multiple domains, windows to unix, with source control software (was: Re: [PHP] including PHP code from another server..)

2012-03-28 Thread tamouse mailing lists
On Tue, Mar 27, 2012 at 7:24 AM, Curtis Maurand wrote: > > > rene7705 wrote: >> On Tue, Mar 27, 2012 at 1:21 PM, Peter Ford > wrote: >> >>> On 27/03/12 > 12:13, rene7705 wrote: >>> hey, I just read > the rsync man page for the first time, and while it > sure looks simple enough for

Re: [PHP] Re: updating code asap to multiple domains, windows to unix, with source control software (was: Re: [PHP] including PHP code from another server..)

2012-03-28 Thread tamouse mailing lists
On Tue, Mar 27, 2012 at 5:47 AM, rene7705 wrote: > Yea, i'm quite sure I want to develop on Windows 7. Ubuntu still has > quircks when it comes to using 3 monitors on a single system, as far as I > know. I just like windows 7 a lot better at the moment. > And how would it be dangerous to do so? Y

Re: [PHP] Re: updating code asap to multiple domains, windows to unix, with source control software (was: Re: [PHP] including PHP code from another server..)

2012-03-27 Thread Curtis Maurand
rene7705 wrote: > On Tue, Mar 27, 2012 at 1:21 PM, Peter Ford wrote: > >> On 27/03/12 12:13, rene7705 wrote: >> >>> hey, I just read the rsync man page for the first time, and while it >>> sure >>> looks simple enough for my taste, wouldn't updating multiple remote >>> domains >>> be like a who

Re: [PHP] Re: updating code asap to multiple domains, windows to unix, with source control software (was: Re: [PHP] including PHP code from another server..)

2012-03-27 Thread rene7705
On Tue, Mar 27, 2012 at 1:21 PM, Peter Ford wrote: > On 27/03/12 12:13, rene7705 wrote: > >> hey, I just read the rsync man page for the first time, and while it sure >> looks simple enough for my taste, wouldn't updating multiple remote >> domains >> be like a whole series of the same FTP update

Re: [PHP] Re: updating code asap to multiple domains, windows to unix, with source control software (was: Re: [PHP] including PHP code from another server..)

2012-03-27 Thread rene7705
hey, I just read the rsync man page for the first time, and while it sure looks simple enough for my taste, wouldn't updating multiple remote domains be like a whole series of the same FTP updates to these different domain directories there? In other words, take a long time because of my 200kb/s li

Re: [PHP] Re: updating code asap to multiple domains, windows to unix, with source control software (was: Re: [PHP] including PHP code from another server..)

2012-03-27 Thread rene7705
On Tue, Mar 27, 2012 at 1:02 PM, Matijn Woudt wrote: > On Tue, Mar 27, 2012 at 12:47 PM, rene7705 wrote: > > > > > > On Tue, Mar 27, 2012 at 12:45 PM, Matijn Woudt > wrote: > >> > >> On Tue, Mar 27, 2012 at 12:31 PM, rene7705 wrote: > >> > On Tue, Mar 27, 2012 at 12:22 PM, ma...@behnke.biz >

Re: [PHP] Re: updating code asap to multiple domains, windows to unix, with source control software (was: Re: [PHP] including PHP code from another server..)

2012-03-27 Thread Matijn Woudt
On Tue, Mar 27, 2012 at 12:47 PM, rene7705 wrote: > > > On Tue, Mar 27, 2012 at 12:45 PM, Matijn Woudt wrote: >> >> On Tue, Mar 27, 2012 at 12:31 PM, rene7705 wrote: >> > On Tue, Mar 27, 2012 at 12:22 PM, ma...@behnke.biz >> > wrote: >> > >> >> >> >> >> >> rene7705 hat am 27. März 2012 um 12:1

Re: [PHP] Re: updating code asap to multiple domains, windows to unix, with source control software (was: Re: [PHP] including PHP code from another server..)

2012-03-27 Thread rene7705
On Tue, Mar 27, 2012 at 12:45 PM, Matijn Woudt wrote: > On Tue, Mar 27, 2012 at 12:31 PM, rene7705 wrote: > > On Tue, Mar 27, 2012 at 12:22 PM, ma...@behnke.biz > wrote: > > > >> > >> > >> rene7705 hat am 27. März 2012 um 12:16 > geschrieben: > >> > >> > On Tue, Mar 27, 2012 at 12:08 PM, rene7

Re: [PHP] Re: updating code asap to multiple domains, windows to unix, with source control software (was: Re: [PHP] including PHP code from another server..)

2012-03-27 Thread Matijn Woudt
On Tue, Mar 27, 2012 at 12:31 PM, rene7705 wrote: > On Tue, Mar 27, 2012 at 12:22 PM, ma...@behnke.biz wrote: > >> >> >> rene7705 hat am 27. März 2012 um 12:16 geschrieben: >> >> > On Tue, Mar 27, 2012 at 12:08 PM, rene7705 wrote: >> > > I've done a search for "rsync windows", and I get some rs

Re: [PHP] Re: updating code asap to multiple domains, windows to unix, with source control software (was: Re: [PHP] including PHP code from another server..)

2012-03-27 Thread rene7705
On Tue, Mar 27, 2012 at 12:22 PM, ma...@behnke.biz wrote: > > > rene7705 hat am 27. März 2012 um 12:16 geschrieben: > > > On Tue, Mar 27, 2012 at 12:08 PM, rene7705 wrote: > > > I've done a search for "rsync windows", and I get some rsync apps > > > allright, but it's not clear to me yet how I

Re: [PHP] Re: updating code asap to multiple domains, windows to unix, with source control software (was: Re: [PHP] including PHP code from another server..)

2012-03-27 Thread ma...@behnke.biz
rene7705 hat am 27. März 2012 um 12:16 geschrieben: > On Tue, Mar 27, 2012 at 12:08 PM, rene7705 wrote: > > I've done a search for "rsync windows", and I get some rsync apps > > allright, but it's not clear to me yet how I would use these windows rsync > > clones to get done what I want. > > >

[PHP] Re: updating code asap to multiple domains, windows to unix, with source control software (was: Re: [PHP] including PHP code from another server..)

2012-03-27 Thread rene7705
On Tue, Mar 27, 2012 at 12:08 PM, rene7705 wrote: > On Mon, Mar 26, 2012 at 9:16 PM, Stuart Dallas wrote: > >> Rene: please read a book / website / something on PHP security. Some >> things are important whether you believe they are or not. >> >> Yea, I will do that within a week or so.. > > I c

[PHP] updating code asap to multiple domains, windows to unix, with source control software (was: Re: [PHP] including PHP code from another server..)

2012-03-27 Thread rene7705
On Mon, Mar 26, 2012 at 9:16 PM, Stuart Dallas wrote: > Rene: please read a book / website / something on PHP security. Some > things are important whether you believe they are or not. > > Yea, I will do that within a week or so.. I can also confirm that I'm not using any source of source contro

Re: [PHP] including PHP code from another server..

2012-03-26 Thread Alex Pojarsky
; script on the server is then able to include/require URLs. It just needs one > of them to have a related vulnerability and suddenly people can execute > arbitrary PHP code on the server. > > * Rene mentioned that the code is open source. This implies that the security > risk is

Re: [PHP] including PHP code from another server..

2012-03-26 Thread Stuart Dallas
le script on the server is then able to include/require URLs. It just needs one of them to have a related vulnerability and suddenly people can execute arbitrary PHP code on the server. * Rene mentioned that the code is open source. This implies that the security risk is lessened because the

Re: [PHP] including PHP code from another server..

2012-03-26 Thread Alex Pojarsky
Now, as the issue adressed and script removed, can you please explain what exactly are the issues of using such approach? I mean security ones, not performance. 2012/3/26 Lester Caine : > Curtis Maurand wrote: >> >> rsync is your friend. > > and is even available for windows machines ... > > -- >

Re: [PHP] including PHP code from another server..

2012-03-26 Thread Lester Caine
Curtis Maurand wrote: rsync is your friend. and is even available for windows machines ... -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engin

Re: [PHP] including PHP code from another server..

2012-03-26 Thread Curtis Maurand
rsync is your friend. --C Stuart Dallas wrote: > On 26 Mar 2012, at 14:53, rene7705 wrote: > >> My last thread got derailed into a javascript and even photoshop >> discussion, and while I can't blame myself for that really, this time I >> would like to bring a pure PHP issue to your scrutiny.

Re: [PHP] including PHP code from another server..

2012-03-26 Thread Stuart Dallas
On 26 Mar 2012, at 14:53, rene7705 wrote: > My last thread got derailed into a javascript and even photoshop > discussion, and while I can't blame myself for that really, this time I > would like to bring a pure PHP issue to your scrutiny. > > I run several sites now, on the same shared hoster, b

Re: [PHP] including PHP code from another server..

2012-03-26 Thread Stuart Dallas
On 26 Mar 2012, at 15:17, Simon Schick wrote: > Hi, Rene > > I just want to say the same ... whatever you're trying to do here - it > will end up in a major security-isse that (I think) you won't fix that > soon as someone has hacked your server. I couldn't care less about Rene's stuff. It's com

Re: [PHP] including PHP code from another server..

2012-03-26 Thread Simon Schick
Hi, Rene I just want to say the same ... whatever you're trying to do here - it will end up in a major security-isse that (I think) you won't fix that soon as someone has hacked your server. That sounds like you don't wanna pay 10$ per month for a good multiple-domain-hosting solution. If you're

Re: [PHP] including PHP code from another server..

2012-03-26 Thread Stuart Dallas
REMOVE THAT SCRIPT FROM YOUR SERVER RIGHT NOW! See follow-up email direct to you for the reason! On 26 Mar 2012, at 14:53, rene7705 wrote: > Hi. > > My last thread got derailed into a javascript and even photoshop > discussion, and while I can't blame myself for that really, this time I > w

[PHP] including PHP code from another server..

2012-03-26 Thread rene7705
Hi. My last thread got derailed into a javascript and even photoshop discussion, and while I can't blame myself for that really, this time I would like to bring a pure PHP issue to your scrutiny. I run several sites now, on the same shared hoster, but with such a setup that I cannot let PHP requi

RE: [PHP] PHP code problem with pages

2012-01-22 Thread HallMarc Websites
> > Maybe my subject line is not descriptive as I wish, but I just did not know > how to put on it. > > I have the following problem, I'm using jQuery to make a slide effect > (horizontal), everything seems to be working find, but I have to add a mask > with a white color background, I did this b

Re: [PHP] PHP code problem with pages

2012-01-21 Thread Daniel Brown
On Sat, Jan 21, 2012 at 20:07, Carlos Sura wrote: > Hello Mates, > > Maybe my subject line is not descriptive as I wish, but I just did not know > how to put on it. > > I have the following problem, I'm using jQuery to make a slide effect > (horizontal), everything seems to be working find, but I

[PHP] PHP code problem with pages

2012-01-21 Thread Carlos Sura
Hello Mates, Maybe my subject line is not descriptive as I wish, but I just did not know how to put on it. I have the following problem, I'm using jQuery to make a slide effect (horizontal), everything seems to be working find, but I have to add a mask with a white color background, I did this by

Re: [PHP] What's the problem with this PHP code?

2011-11-04 Thread tamouse mailing lists
On Fri, Nov 4, 2011 at 2:52 AM, shiplu wrote: > On Fri, Nov 4, 2011 at 1:47 PM, Sophia wrote: > >> Here is the PHP code: >> >> >> > >> >> $panka = "   c:can-it-rock- >>    :the-boat-of- >> :love-  "; >> >> $pankb

Re: [PHP] What's the problem with this PHP code?

2011-11-04 Thread shiplu
On Fri, Nov 4, 2011 at 1:47 PM, Sophia wrote: > Here is the PHP code: > > > > > $panka = " c:can-it-rock- >:the-boat-of- > :love- "; > > $pankb = preg_split(':',$panka); > It should be preg_split('/:/', $panka); > $p

[PHP] What's the problem with this PHP code?

2011-11-04 Thread Sophia
Here is the PHP code: I keep getting the following error: Sophia-Shapiras-MacBook-Pro:tmp red_angel$ Sophia-Shapiras-MacBook-Pro:tmp red_angel$ php testo.php Warning: preg_split(): No ending delimiter ':' found in /Users/red_angel/tmp/testo.php on line 8 ( c:can-it-rock

Re: [PHP] Code should be selv-maintaining!

2011-09-01 Thread Tedd Sperling
On Sep 1, 2011, at 8:16 AM, Tim Streater wrote: > On 01 Sep 2011 at 11:42, Richard Quadling wrote: > >> On 30 August 2011 23:25, Richard Quadling wrote: >>> On 30 August 2011 20:09, Robert Cummings wrote: You're just saying that so Tedd will be your friend!! Come now, let's be hones

Re: Re: [PHP] Code should be selv-maintaining!

2011-09-01 Thread Tim Streater
On 01 Sep 2011 at 11:42, Richard Quadling wrote: > On 30 August 2011 23:25, Richard Quadling wrote: >> On 30 August 2011 20:09, Robert Cummings wrote: >>> You're just saying that so Tedd will be your friend!! Come now, let's be >>> honest with everyone... Whitesmith's is -GLEE! ;)

Re: [PHP] Code should be selv-maintaining!

2011-09-01 Thread Richard Quadling
On 30 August 2011 23:25, Richard Quadling wrote: > On 30 August 2011 20:09, Robert Cummings wrote: >> You're just saying that so Tedd will be your friend!! Come now, let's be >> honest with everyone... Whitesmith's is -GLEE! ;) > > Beauty is in the eye of the beholder. So I think we'

Re: [PHP] Code should be selv-maintaining!

2011-09-01 Thread Robert Cummings
On 11-09-01 02:39 AM, Ross McKay wrote: Robert Cummings wrote: That's because JavaScript is broken in some ways. As much as I like JavaScript, some parts of the language were thrown together by flinging crap at a fan and seeing what sticks to the wall... this being a prime example. Sounds a l

Re: [PHP] Code should be selv-maintaining!

2011-08-31 Thread Ross McKay
Robert Cummings wrote: >That's because JavaScript is broken in some ways. As much as I like >JavaScript, some parts of the language were thrown together by flinging >crap at a fan and seeing what sticks to the wall... this being a prime >example. Sounds a lot like PHP :) which I must add I lov

Re: [PHP] Code should be selv-maintaining!

2011-08-31 Thread Robert Cummings
On 11-09-01 01:44 AM, Ross McKay wrote: On Tue, 30 Aug 2011 10:04:54 -0400, Tedd Sperling wrote: I prefer the Whitesmiths style: http://rebel.lcc.edu/sperlt/citw229/brace-styles.php But "style" is really up to the individual -- what works best for you is the "best" (unless it's a team effort

Re: [PHP] Code should be selv-maintaining!

2011-08-31 Thread George Langley
On 2011-08-31, at 11:44 PM, Ross McKay wrote: > On Tue, 30 Aug 2011 10:04:54 -0400, Tedd Sperling wrote: > >> I prefer the Whitesmiths style: >> >> http://rebel.lcc.edu/sperlt/citw229/brace-styles.php >> >> But "style" is really up to the individual -- what works best for you >> is the "best"

Re: [PHP] Code should be selv-maintaining!

2011-08-31 Thread Robert Cummings
On 11-08-31 08:20 PM, Tedd Sperling wrote: On Aug 30, 2011, at 3:09 PM, Robert Cummings wrote: On 11-08-30 11:36 AM, Richard Quadling wrote: On 30 August 2011 15:04, Tedd Sperling wrote: To all: I prefer the Whitesmiths style: http://rebel.lcc.edu/sperlt/citw229/brace-styles.php But "sty

Re: [PHP] Code should be selv-maintaining!

2011-08-31 Thread Ross McKay
On Tue, 30 Aug 2011 10:04:54 -0400, Tedd Sperling wrote: >I prefer the Whitesmiths style: > >http://rebel.lcc.edu/sperlt/citw229/brace-styles.php > >But "style" is really up to the individual -- what works best for you >is the "best" (unless it's a team effort or the clients demand). I note on y

Re: [PHP] Code should be selv-maintaining!

2011-08-31 Thread Paul M Foster
On Wed, Aug 31, 2011 at 08:20:14PM -0400, Tedd Sperling wrote: > On Aug 30, 2011, at 3:09 PM, Robert Cummings wrote: > > > On 11-08-30 11:36 AM, Richard Quadling wrote: > >> On 30 August 2011 15:04, Tedd Sperling > >> wrote: > >>> To all: > >>> > >>> I prefer the Whitesmiths style: > >>> > >>>

Re: [PHP] Code should be selv-maintaining!

2011-08-31 Thread Tedd Sperling
On Aug 30, 2011, at 3:09 PM, Robert Cummings wrote: > On 11-08-30 11:36 AM, Richard Quadling wrote: >> On 30 August 2011 15:04, Tedd Sperling wrote: >>> To all: >>> >>> I prefer the Whitesmiths style: >>> >>> http://rebel.lcc.edu/sperlt/citw229/brace-styles.php >>> >>> But "style" is really up

RE: [PHP] Code should be selv-maintaining!

2011-08-31 Thread Jen Rasmussen
Genius! -Original Message- From: Matt Graham [mailto:danceswithcr...@usa.net] Sent: Tuesday, August 30, 2011 5:59 PM To: php-general@lists.php.net Subject: Re: [PHP] Code should be selv-maintaining! From: David Harkness > I don't always use braces, but when I do I use Compact

Re: [PHP] Code should be selv-maintaining!

2011-08-30 Thread Matt Graham
From: David Harkness > I don't always use braces, but when I do I use Compact Control Readability > style. Stay coding, my friends. ...and when you use CCR style, you can sing, "I see a bad brace a-risin'"? -- Matt G / Dances With Crows The Crow202 Blog: http://crow202.org/wordpress/ There is

Re: [PHP] Code should be selv-maintaining!

2011-08-30 Thread Jason Pruim
On Aug 30, 2011, at 6:25 PM, Richard Quadling wrote: > On 30 August 2011 20:09, Robert Cummings wrote: >> You're just saying that so Tedd will be your friend!! Come now, let's be >> honest with everyone... Whitesmith's is -GLEE! ;) > > Beauty is in the eye of the beholder. I always

Re: [PHP] Code should be selv-maintaining!

2011-08-30 Thread Richard Quadling
On 30 August 2011 20:09, Robert Cummings wrote: > You're just saying that so Tedd will be your friend!! Come now, let's be > honest with everyone... Whitesmith's is -GLEE! ;) Beauty is in the eye of the beholder. -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com

RE: [PHP] Code should be selv-maintaining!

2011-08-30 Thread Jen Rasmussen
et Subject: Re: [PHP] Code should be selv-maintaining! I don't always use braces, but when I do I use Compact Control Readability style. Stay coding, my friends. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Code should be selv-maintaining!

2011-08-30 Thread Daevid Vincent
LOLercopter! > -Original Message- > From: David Harkness [mailto:davi...@highgearmedia.com] > Sent: Tuesday, August 30, 2011 12:57 PM > To: Robert Cummings > Cc: rquadl...@gmail.com; Tedd Sperling; php-general@lists.php.net > Subject: Re: [PHP] Code should be selv-m

Re: [PHP] Code should be selv-maintaining!

2011-08-30 Thread David Harkness
I don't always use braces, but when I do I use Compact Control Readability style. Stay coding, my friends.

Re: [PHP] Code should be selv-maintaining!

2011-08-30 Thread Robert Cummings
On 11-08-30 11:36 AM, Richard Quadling wrote: On 30 August 2011 15:04, Tedd Sperling wrote: To all: I prefer the Whitesmiths style: http://rebel.lcc.edu/sperlt/citw229/brace-styles.php But "style" is really up to the individual -- what works best for you is the "best" (unless it's a team ef

Re: [PHP] Code should be selv-maintaining!

2011-08-30 Thread Richard Quadling
On 30 August 2011 15:04, Tedd Sperling wrote: > To all: > > I prefer the Whitesmiths style: > > http://rebel.lcc.edu/sperlt/citw229/brace-styles.php > > But "style" is really up to the individual -- what works best for you is the > "best" (unless it's a team effort or the clients demand). > > Che

Re: [PHP] Code should be selv-maintaining!

2011-08-30 Thread Tedd Sperling
On Aug 29, 2011, at 4:32 PM, George Langley wrote: > "The One True Brace Style": > > > > Didn't know there was a name for the way I learned to indent! Make sense to > me - looks so much cleaner and less scrolling/printing. > And, I already add a

Re: [PHP] Code should be selv-maintaining!

2011-08-29 Thread Geoff Shang
On Mon, 29 Aug 2011, Rico Secada wrote: You go into your homemade library of code to re-use some piece that you already are using 12 other places in production. Now, last time you worked on the code you thought it was almost perfect. While working on the code this time you find an undiscovered b

RE: [PHP] Code should be selv-maintaining!

2011-08-29 Thread admin
> -Original Message- > From: Rico Secada [mailto:coolz...@it.dk] > Sent: Monday, August 29, 2011 3:42 PM > To: php-general@lists.php.net > Subject: [PHP] Code should be selv-maintaining! > > Dont get me wrong, I love programming! But what an absolute pain in the &g

Re: [PHP] Code should be selv-maintaining!

2011-08-29 Thread Robert Cummings
On 11-08-29 03:42 PM, Rico Secada wrote: You go into your homemade library of code to re-use some piece that you already are using 12 other places in production. Now, last time you worked on the code you thought it was almost perfect. While working on the code this time you find an undiscovered b

[PHP] Code should be selv-maintaining!

2011-08-29 Thread Rico Secada
Dont get me wrong, I love programming! But what an absolute pain in the ass it is when you re-use old code only to discover something "less well made". You all know about this right? You go into your homemade library of code to re-use some piece that you already are using 12 other places in produ

Re: [PHP] execute my php code before every php call

2011-06-12 Thread Stuart Dallas
On 12 Jun 2011, at 19:46, "techloop" wrote: > Hi all, > > I have a simple code that override some env vars but i need it to run before > any other php code on every php execution. > I would like to avoid any change of all php code (even if its only to > include th

Re: [PHP] execute my php code before every php call

2011-06-12 Thread Tamara Temple
On Jun 12, 2011, at 1:46 PM, techloop wrote: I have a simple code that override some env vars but i need it to run before any other php code on every php execution. Have you looked at http://us.php.net/manual/en/ini.core.php#ini.auto-prepend-file ? -- PHP General Mailing List (http

[PHP] execute my php code before every php call

2011-06-12 Thread techloop
Hi all, I have a simple code that override some env vars but i need it to run before any other php code on every php execution. I would like to avoid any change of all php code (even if its only to include the include command). Any one knows of such way ? I dont mind overriding this vars on

Re: [PHP] Log Rotation, leave it to OS or do it in PHP code?

2011-02-26 Thread Ashley Sheridan
ask from a different view: > > Is it a good approach to implement the Rotation mechanism to PHP? (Code Level) > Or leave the job to the operating system and other utilities? > > Where is the right place to implmenet the Rotation? In Code? In OS? > PHP? or a Bash Script? > > Thank

[PHP] Log Rotation, leave it to OS or do it in PHP code?

2011-02-26 Thread AmirBehzad Eslami
Dear list, It seems that Python has already a Log Rotation mechanism, which solves the problem of log file growth. I'm wondering whether there is any PHP-based solution around? Now let me ask from a different view: Is it a good approach to implement the Rotation mechanism to PHP? (Code

[PHP] Re:[PHP] code quest

2011-02-15 Thread Kirk Bailey
Frankly, while that modulo looks like something worthy of learning, for my immediate time critical need I went with a quicker method, which is working. The complete script is below. It simply counts cells and resets the row when a number is exceeded. # The next several lines declare an array of

Re: [PHP] code quest

2011-02-14 Thread Kirk Bailey
Very nice; I am leaning in the direction of doing it this way. Thank you! :-) On 2/14/2011 9:24 PM, Jim Lucas wrote: On 2/14/2011 4:53 PM, Kirk Bailey wrote: Now I have a situation. I need to take the code from my former home page and modify it to lay out a table (let's say 5 cells wide) and

Re: [PHP] code quest

2011-02-14 Thread Jim Lucas
On 2/14/2011 4:53 PM, Kirk Bailey wrote: > Now I have a situation. I need to take the code from my former home page and > modify it to lay out a table (let's say 5 cells wide) and as many rows deep to > contain all the items. Each item is the name of the directory, under which is > an > icon image

Re: [PHP] code quest

2011-02-14 Thread Kirk Bailey
well, this ends the row after every cell. I am trying to get a row of 5 cells across, then end it and start a new row. If the routines stops before the end of the count of 5 due to lack of further directories, closing out the table following the loops will onclude a tag. On 2/14/2011 8:30 P

Re: [PHP] code quest

2011-02-14 Thread Richard Quadling
On 15 February 2011 00:53, Kirk Bailey wrote: > Now I have a situation. I need to take the code from my former home page and > modify it to lay out a table (let's say 5 cells wide) and as many rows deep > to contain all the items. Each item is the name of the directory, under > which is an icon im

[PHP] code quest

2011-02-14 Thread Kirk Bailey
Now I have a situation. I need to take the code from my former home page and modify it to lay out a table (let's say 5 cells wide) and as many rows deep to contain all the items. Each item is the name of the directory, under which is an icon image from that directory, under which is a descripti

Re: [PHP] Code formatter

2011-02-02 Thread Ken Guest
ke > > Cc: php-general@lists.php.net > > Subject: Re: [PHP] Code formatter > > > > > > > > On Mon, Jan 31, 2011 at 8:27 PM, Hansen, Mike > > wrote: > > > > > > I've got an application that I'm fixing up and I'd like > &g

RE: [PHP] Code formatter

2011-02-02 Thread Hansen, Mike
> -Original Message- > From: ken.gu...@gmail.com [mailto:ken.gu...@gmail.com] On > Behalf Of Ken Guest > Sent: Monday, January 31, 2011 3:26 PM > To: Hansen, Mike > Cc: php-general@lists.php.net > Subject: Re: [PHP] Code formatter > > > > On Mon

Re: [PHP] Code formatter

2011-01-31 Thread Ken Guest
On Mon, Jan 31, 2011 at 8:27 PM, Hansen, Mike wrote: > I've got an application that I'm fixing up and I'd like to run it through a > code formatter. Is there something like Perl Tidy for PHP? If so, what are > you experiences with it. No prob running it on the command line. It'd be > great if it

[PHP] Code formatter

2011-01-31 Thread Hansen, Mike
I've got an application that I'm fixing up and I'd like to run it through a code formatter. Is there something like Perl Tidy for PHP? If so, what are you experiences with it. No prob running it on the command line. It'd be great if it followed the PEAR coding standards. Thx -- PHP General Mai

Re: [PHP] code quest - ECHO?!?

2010-12-12 Thread a...@ashleysheridan.co.uk
Sun, Dec 12, 2010 18:56 Subject: [PHP] code quest - ECHO?!? To: "Kirk Bailey" Cc: They are almost identical. Echo supports multiple parameters like "echo $a, $b;" print is 20% slower than echo (by some tests). "echo" is shorter than "print" so it's easy

Re: [PHP] code quest - ECHO?!?

2010-12-12 Thread Alexandru Patranescu
They are almost identical. Echo supports multiple parameters like "echo $a, $b;" print is 20% slower than echo (by some tests). "echo" is shorter than "print" so it's easy to write. In fact it's all a matter of taste. The same reason we user die instead of exit. Alex On Sun, Dec 12, 2010 at 6:2

Re: [PHP] code quest - ECHO?!?

2010-12-12 Thread Kirk Bailey
Groovy; they appear to be identical in all but name. IDENTICAL. Or am I missing a subtle definition difference? David Robley wrote: Kirk Bailey wrote: Ok, so what is echo, and how is it different from print. The code in code quest used echo. I have a copy of learning php 5.0 from O'Reill

Re: [PHP] code quest - ECHO?!?

2010-12-12 Thread David Robley
Kirk Bailey wrote: > Ok, so what is echo, and how is it different from print. > > The code in code quest used echo. I have a copy of learning php 5.0 from > O'Reilly, and noplace does it mention echo. Why? What's the difference? > IS there a difference? Is there an advantage to either? Please cla

Re: [PHP] code quest - ECHO?!?

2010-12-10 Thread Kirk Bailey
Ok, so what is echo, and how is it different from print. The code in code quest used echo. I have a copy of learning php 5.0 from O'Reilly, and noplace does it mention echo. Why? What's the difference? IS there a difference? Is there an advantage to either? Please clarify for this newbie. --

Re: [PHP] code quest

2010-12-04 Thread Tamara Temple
On Dec 4, 2010, at 2:58 PM, Kirk Bailey wrote: the code is now: '; echo include($d.'/desc.txt' ); There should be no echo here echo ''.PHP_EOL; } } ?> And it works! BUT! Where is the "1" coming from?!? Please inspect the page and see what I mean. This is no

Re: [PHP] code quest

2010-12-04 Thread Daniel P. Brown
On Sat, Dec 4, 2010 at 15:58, Kirk Bailey wrote: > > And it works! >   BUT! > Where is the "1" coming from?!? No need to see the page. You're echo'ing an include. No need to do that; including the file is enough, and that's what's working. Adding the echo makes it print the status retur

Re: [PHP] code quest

2010-12-04 Thread Richard Quadling
On 4 December 2010 20:58, Kirk Bailey wrote: > the code is now: > >     are NOT to be listed! >   $excludes[] = 'images'; >   $excludes[] = 'cgi-bin'; >   $excludes[] = 'vti_cnf'; >   $excludes[] = 'private'; >   $excludes[] = 'thumbnail'; > >   $ls = scandir(dirname(__FILE__)); >   foreach ($ls

Re: [PHP] code quest

2010-12-04 Thread Kirk Bailey
the code is now: '; echo include($d.'/desc.txt' ); echo ''.PHP_EOL; } } ?> And it works! BUT! Where is the "1" coming from?!? Please inspect the page and see what I mean. This is not in the code, and it's not in the source file. Link: http://www.howlermon

Re: [PHP] code quest

2010-12-04 Thread Tamara Temple
On Dec 4, 2010, at 2:15 PM, Kirk Bailey wrote: The hound barks, but does not yet properly hunt, and we need to bring home the bacon. OK, here is the current code: '.include('./'.$d.'/desc.txt') ;#.''.PHP_EOL; } } ?> the url again, to view the results, is http://www.howlermonkey

  1   2   3   4   5   6   7   8   9   10   >