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] 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 > ass it is when you re-us

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

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

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

2010-12-12 Thread a...@ashleysheridan.co.uk
And the obvious difference, print returns true on success. I'm not sure what would cause an echo it print to ever fail, so it really doesn't make a huge difference. Thanks, Ash http://www.ashleysheridan.co.uk - Reply message - From: "Alexandru Patranescu" Date: Sun, Dec 12, 2010 18:56

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

Re: [PHP] code quest

2010-12-04 Thread Kirk Bailey
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.net/dirlisting.php and is live right now. Th

Re: [PHP] code quest

2010-12-04 Thread Kirk Bailey
Ok, let's kick this around. iterating an array(?; 1 dimensional listing of things) in php, I am creating a list of direcoties. I want to open and read in a file in each directory with a standard name, which contains a 1 line description of the directory and it's purpose. Now, here's the exis

Re: [PHP] code quest

2010-12-04 Thread Matt Graham
From: Kirk Bailey > OK, now here's a giggle; I like ssi includes. If I put the script > in as an ssi include, will it still work? If you're using Apache, and you do ...the PHP in something.php will execute and produce output, but something.php will not have any access to $_GET or $_POST or $_S

Re: [PHP] code quest

2010-12-04 Thread Kirk Bailey
my current code is as follows: * '.$d.''.PHP_EOL; } } ?> * The page containing this is at this url: http://www.howlermonkey.net/dirlisting.php I believe this will be a starting point for the functionality I am looking for- an automatic menu of areas in a website one may g

Re: [PHP] code quest

2010-12-04 Thread Kirk Bailey
Now Now, fight nice. We don need no stinkin' @$^*$^(! woids here. :-P Steve Staples wrote: On Thu, 2010-12-02 at 10:07 -0500, Daniel P. Brown wrote: On Wed, Dec 1, 2010 at 23:13, Kirk Bailey wrote: [snip!] Can this be improved to exclude anything with a '.' or a '-' in it's name? Th

Re: [PHP] code quest

2010-12-04 Thread Kirk Bailey
A good point, but in this application there WILL be AT LEAST 1 legitimate directory at all times, or else the script would not be used, so this ought not be a problem. My problem is that I understand the basic functions to implement, but have not yet aquired sufficient command of php to implem

Re: [PHP] code quest

2010-12-04 Thread Kirk Bailey
OK, now here's a giggle; I like ssi includes. If I put the script in as an ssi include, will it still work? The functionality would also be useful on a page besides the default landing page, such as a 404error.html page, or a thank you page. -- end Very Truly yours, - Kirk B

Re: [PHP] code quest

2010-12-02 Thread Steve Staples
On Thu, 2010-12-02 at 10:07 -0500, Daniel P. Brown wrote: > On Wed, Dec 1, 2010 at 23:13, Kirk Bailey wrote: > [snip!] > > > > Can this be improved to exclude anything with a '.' or a '-' in it's name? > > This will exclude the smileys and cgi-bin and such. If it can be persuaded > > to read a 1 l

Re: [PHP] code quest

2010-12-02 Thread Daniel P. Brown
On Wed, Dec 1, 2010 at 23:13, Kirk Bailey wrote: [snip!] > > Can this be improved to exclude anything with a '.' or a '-' in it's name? > This will exclude the smileys and cgi-bin and such. If it can be persuaded > to read a 1 line description from each subdirectory it could then use THAT > as the

Re: [PHP] code quest

2010-12-01 Thread Kirk Bailey
OK, the quest thus far: php experimental page body { margin-left: 5%; margin-right: 5%; } A:link, A:visited, A:active { text-decoration:none; } A:hover { text-decoration:underline; } Subdirectory listing experimental menuing page '.$d.''.PHP_EOL; } } ?>   The results may be seen on

Re: [PHP] code quest

2010-12-01 Thread Kirk Bailey
OK, answered my own question; no, an ssi statement inside a php echo statement is simply sent out as is, unparxsed. But if it is external to the php area, it works fine, so we have to include a function in there that will read anything I want to spew- like the 1 line contents of a desciptor fil

Re: [PHP] code quest

2010-12-01 Thread Kirk Bailey
Daniel, this is so close to bang on it's unbelivable. Only prob is my host provided me with this $^@&%^^$&! dir which is named .smileys, which holds icons for use in the control panel. It should NOT list it, nor list the /cgi-bin, nor /images. Can it somehow exclude those 3, or maybe a list of

Re: [PHP] code quest

2010-12-01 Thread Jim Lucas
On 11/26/2010 4:03 PM, Kirk Bailey wrote: > Hello all, my name is Kirk Bailey, and I am new to php, so please be > forbearing. > I code in python, and am trying to learn this language as our new client runs > a > web business based in it. > > I need a routine that will return a list of every dir

Re: [PHP] code quest

2010-11-27 Thread Daniel P. Brown
On Sat, Nov 27, 2010 at 12:36, Daniel P. Brown wrote: > >   If you want something more powerful - and often quicker - check > into SPL: specifically FilesystemIterator[1], DirectoryIterator[2], > and RecursiveDirectoryIterator[3].  A quick example to link all child > files and directories with rel

Re: [PHP] code quest

2010-11-27 Thread Daniel P. Brown
On Fri, Nov 26, 2010 at 19:03, Kirk Bailey wrote: > > I need a routine that will return a list of every directory immediately > under the current directory- but nothing else, just a list of directories, 1 > level deep, NO FILES, no listing of current dir or prior dir either. Simple: '.$d

Re: [PHP] code quest

2010-11-27 Thread Ashley Sheridan
On Fri, 2010-11-26 at 20:27 -0500, Bastien wrote: > > > > On 2010-11-26, at 7:33 PM, Adam Richardson wrote: > > > On Fri, Nov 26, 2010 at 7:03 PM, Kirk Bailey > > wrote: > > > >> Hello all, my name is Kirk Bailey, and I am new to php, so please be > >> forbearing. I code in python, and am t

Re: [PHP] code quest

2010-11-26 Thread Bastien
On 2010-11-26, at 7:33 PM, Adam Richardson wrote: > On Fri, Nov 26, 2010 at 7:03 PM, Kirk Bailey wrote: > >> Hello all, my name is Kirk Bailey, and I am new to php, so please be >> forbearing. I code in python, and am trying to learn this language as our >> new client runs a web business bas

Re: [PHP] code quest

2010-11-26 Thread Adam Richardson
On Fri, Nov 26, 2010 at 7:03 PM, Kirk Bailey wrote: > Hello all, my name is Kirk Bailey, and I am new to php, so please be > forbearing. I code in python, and am trying to learn this language as our > new client runs a web business based in it. > > I need a routine that will return a list of every

Re: [PHP] code documentation

2010-10-09 Thread Laruence
Hi: yep , I thinks so. On 10/09/2010 18:22, Tommy Pham wrote: Hi everyone, It's been a couple of years since I started a PHP project. Are there any other document formats other than phpDocumentor? Is phpDocumentor still the preferred format? TIA, Tommy -- PHP General Mailing List (http:

Re: [PHP] Code samples in OOo Presenter

2010-03-21 Thread Paul M Foster
On Sun, Mar 21, 2010 at 07:14:56PM -0500, Larry Garfield wrote: > On Sunday 21 March 2010 05:41:55 pm Ashley Sheridan wrote: > > > > I don't like any of these options. :-) I don't know what the alternative > > > is, though. Ideally I'd love to have a custom text region or format or > > > someth

Re: [PHP] Code samples in OOo Presenter

2010-03-21 Thread Larry Garfield
On Sunday 21 March 2010 05:41:55 pm Ashley Sheridan wrote: > > I don't like any of these options. :-) I don't know what the alternative > > is, though. Ideally I'd love to have a custom text region or format or > > something that is "take this and highlight it properly", but I don't know > > if

Re: [PHP] Code samples in OOo Presenter

2010-03-21 Thread Ashley Sheridan
On Sun, 2010-03-21 at 17:25 -0500, Larry Garfield wrote: > Hi all. > > I have a busy conference season coming up, and will be giving a number of > presentations that involve code, specifically PHP. I am going to want to put > code onto slides in OpenOffice (3.1 specifically, using Kubuntu 9.

Re: [PHP] Code Not entering the value in the Database

2009-01-21 Thread Murray
You don't appear to be doing anything with this line of your code. You build a string variable, but you don't call anything like mysql_query($sql) to actually execute the INSERT statement. M is for Murray On Wed, Jan 21, 2009 at 12:34 AM, Chris Carter wrote: > $sql = "insert into `userstable` (

Re: [PHP] Code Not entering the value in the Database

2009-01-20 Thread Jan G.B.
2009/1/20 Chris Carter : > > Hi, > > My code is not giving error but not doing the desired action. > But it can do a lot more than your desired action. > // insert new entry in the database if entry submitted > > $emailAddress = $_POST['emailAddress']; > $passw

Re: [PHP] Code Not entering the value in the Database

2009-01-20 Thread HostWare Kft.
Did I miss something, or you really left the execution of the last $sql? After you put the 'INSERT INTO...' string in $sql, you have to mysql_query it, or you won't get any result. SanTa - Original Message - From: "Chris Carter" To: Sent: Tuesday, January 20, 2009 3:34 PM Subject

Re: [PHP] Code beautifier

2008-07-28 Thread tedd
At 11:20 AM -0400 7/28/08, Jason Pruim wrote: On Jul 28, 2008, at 11:10 AM, tedd wrote: As I've said many times before: "I've learned something new every day of my life... and I'm getting damned tried of it!" Butt... You're still alive to be apart of it :) As long as my butt is, I guess yo

Re: [PHP] Code beautifier

2008-07-28 Thread Jason Pruim
On Jul 28, 2008, at 11:10 AM, tedd wrote: At 9:06 AM +0100 7/28/08, Peter Ford wrote: At 6:47 PM -0400 7/25/08, Daniel Brown wrote: On Fri, Jul 25, 2008 at 6:29 PM, tedd <[EMAIL PROTECTED]> wrote: But, there's nothing wrong with starting a sentence with but. Correct, as I said, in "Rea

Re: [PHP] Code beautifier

2008-07-28 Thread tedd
At 9:06 AM +0100 7/28/08, Peter Ford wrote: At 6:47 PM -0400 7/25/08, Daniel Brown wrote: On Fri, Jul 25, 2008 at 6:29 PM, tedd <[EMAIL PROTECTED]> wrote: But, there's nothing wrong with starting a sentence with but. Correct, as I said, in "Reader's Digest" English. In proper grammar, i

Re: [PHP] Code beautifier

2008-07-28 Thread Philip Thompson
On Jul 24, 2008, at 5:48 AM, Richard Heyes wrote: Anyone know of an unintrusive code beautifier written specifically with in mind? With 'what' in mind? Sorry, PHP. Not that this thread got off topic at all, but here's a listing (more than PHP): http://en.wikipedia.org/wiki/Prettypr

Re: [PHP] Code beautifier

2008-07-28 Thread Peter Ford
tedd wrote: At 6:47 PM -0400 7/25/08, Daniel Brown wrote: On Fri, Jul 25, 2008 at 6:29 PM, tedd <[EMAIL PROTECTED]> wrote: > But, there's nothing wrong with starting a sentence with but. There, I even started AND ended with one. Correct, as I said, in "Reader's Digest" English. In pro

Re: [PHP] Code beautifier

2008-07-26 Thread tedd
At 10:53 PM -0400 7/25/08, Daniel Brown wrote: On Fri, Jul 25, 2008 at 10:02 PM, tedd <[EMAIL PROTECTED]> wrote: [snip="1920's_anecdote"] LOL > So in the end, these were the things I remember being taught by "English" teachers. They taught me well -- but, nothing about writing. :-)

Re: [PHP] Code beautifier

2008-07-25 Thread Daniel Brown
On Fri, Jul 25, 2008 at 10:02 PM, tedd <[EMAIL PROTECTED]> wrote: > [snip="1920's_anecdote"] > > So in the end, these were the things I remember being taught by "English" > teachers. They taught me well -- but, nothing about writing. :-) That's one thing about being a teacher in an official c

Re: [PHP] Code beautifier

2008-07-25 Thread mike
On 7/25/08, tedd <[EMAIL PROTECTED]> wrote: > I do it all the time. In fact, I enjoy doing it (no I don't want to do it > for anyone else). > > What I find interesting/entertaining is reducing the amount of code down to > what's actually necessary and then reorganizing the code to make routines >

Re: [PHP] Code beautifier

2008-07-25 Thread tedd
At 6:47 PM -0400 7/25/08, Daniel Brown wrote: On Fri, Jul 25, 2008 at 6:29 PM, tedd <[EMAIL PROTECTED]> wrote: > But, there's nothing wrong with starting a sentence with but. There, I even started AND ended with one. Correct, as I said, in "Reader's Digest" English. In proper grammar,

Re: [PHP] Code beautifier

2008-07-25 Thread Daniel Brown
On Fri, Jul 25, 2008 at 6:29 PM, tedd <[EMAIL PROTECTED]> wrote: > At 1:59 PM -0400 7/25/08, Daniel Brown wrote: >> >> On Fri, Jul 25, 2008 at 12:56 PM, tedd <[EMAIL PROTECTED]> wrote: >>> >>> At 8:10 PM +0100 7/24/08, Richard Heyes wrote: > (and anal retentive) when you code :) >>

Re: [PHP] Code beautifier

2008-07-25 Thread tedd
At 1:59 PM -0400 7/25/08, Daniel Brown wrote: On Fri, Jul 25, 2008 at 12:56 PM, tedd <[EMAIL PROTECTED]> wrote: At 8:10 PM +0100 7/24/08, Richard Heyes wrote: > (and anal retentive) when you code :) I am; the problem is no one lives up to my standards... :-) Anyone else find the two se

Re: [PHP] Code beautifier

2008-07-25 Thread Børge Holen
On Friday 25 July 2008 20:10:30 Daniel Brown wrote: > On Fri, Jul 25, 2008 at 2:04 PM, Wolf <[EMAIL PROTECTED]> wrote: > > True, but "but" and "butt" are two very distinct words... ;) I know > > Dan, it's that grammar thing.. Even using the Queen's English makes it a > > "tush for the push". ;)

Re: [PHP] Code beautifier

2008-07-25 Thread Daniel Brown
On Fri, Jul 25, 2008 at 2:04 PM, Wolf <[EMAIL PROTECTED]> wrote: > > True, but "but" and "butt" are two very distinct words... ;) I know Dan, > it's that grammar thing.. Even using the Queen's English makes it a "tush > for the push". ;) Just reading that opening sentence aloud was fun.

Re: [PHP] Code beautifier

2008-07-25 Thread Wolf
Daniel Brown <[EMAIL PROTECTED]> wrote: > On Fri, Jul 25, 2008 at 12:56 PM, tedd <[EMAIL PROTECTED]> wrote: > > At 8:10 PM +0100 7/24/08, Richard Heyes wrote: > >> > >> > (and anal retentive) when you code :) > >> > >> I am; the problem is no one lives up to my standards... :-) > > > > Anyon

Re: [PHP] Code beautifier

2008-07-25 Thread Daniel Brown
On Fri, Jul 25, 2008 at 12:56 PM, tedd <[EMAIL PROTECTED]> wrote: > At 8:10 PM +0100 7/24/08, Richard Heyes wrote: >> >> > (and anal retentive) when you code :) >> >> I am; the problem is no one lives up to my standards... :-) > > Anyone else find the two sentences above used together disturbing?

Re: [PHP] Code beautifier

2008-07-25 Thread Wolf
tedd <[EMAIL PROTECTED]> wrote: > At 8:10 PM +0100 7/24/08, Richard Heyes wrote: > > > (and anal retentive) when you code :) > > > >I am; the problem is no one lives up to my standards... :-) > > Anyone else find the two sentences above used together disturbing? > Something about "anal" an

Re: [PHP] Code beautifier

2008-07-25 Thread tedd
At 8:10 PM +0100 7/24/08, Richard Heyes wrote: > (and anal retentive) when you code :) I am; the problem is no one lives up to my standards... :-) Anyone else find the two sentences above used together disturbing? Something about "anal" and "up" that doesn't sound good. :-) tedd -- --

Re: [PHP] Code beautifier

2008-07-25 Thread tedd
At 7:22 PM +0100 7/24/08, Stut wrote: On 24 Jul 2008, at 19:14, mike wrote: On 7/24/08, Thiago H. Pojda <[EMAIL PROTECTED]> wrote: That doesn't work when you get code from someone else that wasn't prudent enough ;) I figured that'd be the reply - "it's not my code" ... sadly, I still go and

Re: [PHP] Code beautifier

2008-07-25 Thread tedd
At 3:17 PM -0300 7/24/08, Thiago H. Pojda wrote: On Thu, Jul 24, 2008 at 3:14 PM, mike <[EMAIL PROTECTED]> wrote: On 7/24/08, Thiago H. Pojda <[EMAIL PROTECTED]> wrote: sadly, I still go and reformat other coworker's code anyway, heh. Yeah, I'm > -that bad- That's why I looked for a tool

Re: [PHP] Code works alone but not with other code.

2008-07-25 Thread Wolf
Ed Curtis <[EMAIL PROTECTED]> wrote: > I've got this chunk of code (included) that used to work fine in a > script up until a couple of weeks ago. Nothing has changed in the php > page at all, it just quit working. If I take this chunk of code and > place it alone in a php script it works

Re: [PHP] Code beautifier

2008-07-24 Thread Aschwin Wesselius
Richard Heyes wrote: Anyone know of an unintrusive code beautifier written specifically with in mind? Thanks. Hi, I want to narrow down to why I looked into PHP_Beautifier from PEAR. First, it's written in PHP (and uses the PHP tokenizer at it and not some regex wizardry) and so it's not

  1   2   3   4   >