Re: [PHP] PHP Source code protection

2008-02-08 Thread Per Jessen
Greg Donald wrote: Deductive reasoning leads to two possible options: 1) Don't give the code to anyone. 2) Give the code to the client and accept the fact that it may get pirated. Yep, that's all there is to it. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP Source code protection

2008-02-08 Thread Per Jessen
Casey wrote: Why not just translate it to C#? Personally I'd just go for C - that way I can just distribute a binary and be done with it. No runtime, no JVM, no mono etc. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: Recommended ORM for PHP

2008-02-08 Thread Zoltán Németh
2008. 02. 7, csütörtök keltezéssel 13.15-kor Manuel Lemos ezt írta: Hello on 02/07/2008 07:26 AM Zoltán Németh said the following: When creating a LAMP app, I always start by writing ORM myself. It's fun but it usually takes a long time. Besides, that always results in a toy-system, I

Re: [PHP] Profiling with register_tick_function / declare

2008-02-08 Thread Jochem Maas
Daniel Brown schreef: On Feb 7, 2008 7:10 PM, Jochem Maas [EMAIL PROTECTED] wrote: McNaught, Scott schreef: . Get profile results for novices without having to mess around installing php binaries such as APD / zend debugger etc I suppose that includes xdebug? If xdebug works as

Re: [PHP] PHP Source code protection

2008-02-08 Thread Richard Heyes
accept the fact that it may get pirated. It may do. But there's nothing wrong with making it as hard as possible to do so. Most people have better things to do than try to reverse engineer a piece of code. Consider: 1. People who buy code will generally do so to solve a problem that they

Re: [PHP] generate xls file on fly

2008-02-08 Thread Hiep Nguyen
On Fri, 8 Feb 2008, Per Jessen wrote: Hiep Nguyen wrote: is there anyway to generate this into xls file w/o using fopen fwrite to the server? my goal is to have a link after the table and user can click on that link and a save window pop up to allow user to save to local disk. Yes - have

Re: [PHP] Name of variable to string

2008-02-08 Thread Daniel Brown
On Feb 8, 2008 10:25 AM, Jason Pruim [EMAIL PROTECTED] wrote: On Feb 8, 2008, at 10:14 AM, tedd wrote: Hi gang: From a variable with the name of $this_variable -- how do I get a string 'this_variable' ? Hey tedd, What is the end result you want? for debugging and checking variable

Re: [PHP] generate xls file on fly

2008-02-08 Thread Hiep Nguyen
On Fri, 8 Feb 2008, Jason Pruim wrote: On Feb 8, 2008, at 10:14 AM, Hiep Nguyen wrote: On Fri, 8 Feb 2008, Per Jessen wrote: Hiep Nguyen wrote: is there anyway to generate this into xls file w/o using fopen fwrite to the server? my goal is to have a link after the table and user can

Re: [PHP] generate xls file on fly

2008-02-08 Thread Andrew Ballard
On Feb 8, 2008 10:14 AM, Hiep Nguyen [EMAIL PROTECTED] wrote: On Fri, 8 Feb 2008, Per Jessen wrote: Hiep Nguyen wrote: is there anyway to generate this into xls file w/o using fopen fwrite to the server? my goal is to have a link after the table and user can click on that link and a

Re: [PHP] Name of variable to string

2008-02-08 Thread Eric Butera
On Feb 8, 2008 10:14 AM, tedd [EMAIL PROTECTED] wrote: Hi gang: From a variable with the name of $this_variable -- how do I get a string 'this_variable' ? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List

Re: [PHP] generate xls file on fly

2008-02-08 Thread Daniel Brown
On Feb 8, 2008 8:41 AM, Hiep Nguyen [EMAIL PROTECTED] wrote: hi friends, i have a php page with the following logic: html head titleDownload/title /head table trtdTitle/tdtdAuthor/td/tr ? $sql = select title,author from book where title != null and author != null; ? ? $rs =

Re: [PHP] generate xls file on fly

2008-02-08 Thread Per Jessen
Hiep Nguyen wrote: is there anyway to generate this into xls file w/o using fopen fwrite to the server? my goal is to have a link after the table and user can click on that link and a save window pop up to allow user to save to local disk. Yes - have a link like this: a

Re: [PHP] fgets???

2008-02-08 Thread Zoltán Németh
2008. 02. 8, péntek keltezéssel 12.17-kor Daniel Brown ezt írta: On Feb 8, 2008 12:11 PM, Pastor Steve [EMAIL PROTECTED] wrote: I think I may have written the question wrong. I only want to display the first line. It is a news story with a headline. I only want to display the headline in

Re: [PHP] fgets???

2008-02-08 Thread Daniel Brown
On Feb 8, 2008 12:11 PM, Pastor Steve [EMAIL PROTECTED] wrote: I think I may have written the question wrong. I only want to display the first line. It is a news story with a headline. I only want to display the headline in the link. The output I want is: The But I am getting: The file

Re: [PHP] Name of variable to string

2008-02-08 Thread Adrian Bruce
tedd wrote: Hi gang: From a variable with the name of $this_variable -- how do I get a string 'this_variable' ? Cheers, tedd At some point or the other you will have to define $this_variable as $this_variable, so at that point you will have access to the string 'this_variable'. Even if

Re: [PHP] generate xls file on fly

2008-02-08 Thread Adrian Bruce
Hiep Nguyen wrote: hi friends, i have a php page with the following logic: html head titleDownload/title /head table trtdTitle/tdtdAuthor/td/tr ? $sql = select title,author from book where title != null and author != null; ? ? $rs = mysql_query($sql) or die(mysql_error()); ? ?

Re: [PHP] fgets???

2008-02-08 Thread Daniel Brown
On Feb 8, 2008 12:19 PM, Zoltán Németh [EMAIL PROTECTED] wrote: 2008. 02. 8, péntek keltezéssel 12.17-kor Daniel Brown ezt írta: On Feb 8, 2008 12:11 PM, Pastor Steve [EMAIL PROTECTED] wrote: I think I may have written the question wrong. I only want to display the first line. It is a

Re: [PHP] fgets???

2008-02-08 Thread Zoltán Németh
2008. 02. 8, péntek keltezéssel 11.11-kor Pastor Steve ezt írta: I think I may have written the question wrong. I only want to display the first line. It is a news story with a headline. I only want to display the headline in the link. The output I want is: The But I am getting: The

Re: [PHP] Passing object reference to session

2008-02-08 Thread Richard Lynch
On Thu, February 7, 2008 1:15 am, Michael Moyle wrote: I am new to the list and have a question that inspired me to join the list as I can not find any answer online. When a object reference is passed to the $_SESSION array what happens to the object? Is the object serialized and saved in

Re: [PHP] re: php file extension

2008-02-08 Thread Per Jessen
MaryAnn Woodall wrote: Just starting to use php on my webpages. If I save a file as .php or .php4 are they the same file. For example is index.php the same as index.php4? If you save the same file with two different names, the contents will remain the same. How the different extensions are

Re: [PHP] problem with imagefontwidth function, It looks to be unavailable...

2008-02-08 Thread Richard Lynch
You probably do not have GD installed... Does ?php phpinfo();? list GD as one of your extensions? If not, install it. On Thu, February 7, 2008 6:57 am, Legolas wood wrote: Hi Thank you for reading my post I am trying to run a php based application using php5 and apache. but I receive an

Re: [PHP] fgets???

2008-02-08 Thread Pastor Steve
I think I may have written the question wrong. I only want to display the first line. It is a news story with a headline. I only want to display the headline in the link. The output I want is: The But I am getting: The file looks like this. Does that make more sense? Thanks, -- Steve M. on

Re: [PHP] fgets???

2008-02-08 Thread Zoltán Németh
2008. 02. 8, péntek keltezéssel 10.54-kor Pastor Steve ezt írta: Is it possible to read each line of data from a file? I have a text file that has several lines on it. I only want to display the first line only. The file I have looks like this. But outputs: The file I have looks

Re: [PHP] fgets???

2008-02-08 Thread Nirmalya Lahiri
--- Daniel Brown [EMAIL PROTECTED] wrote: On Feb 8, 2008 12:11 PM, Pastor Steve [EMAIL PROTECTED] wrote: I think I may have written the question wrong. I only want to display the first line. It is a news story with a headline. I only want to display the headline in the link. The

[PHP] fgets???

2008-02-08 Thread Pastor Steve
Is it possible to read each line of data from a file? I have a text file that has several lines on it. I only want to display the first line only. The file I have looks like this. But outputs: The file I have looks like this. Here is my code: ?php $dir = path/to/files/; // set pattern

Re: [PHP] Name of variable to string

2008-02-08 Thread Jason Pruim
On Feb 8, 2008, at 10:14 AM, tedd wrote: Hi gang: From a variable with the name of $this_variable -- how do I get a string 'this_variable' ? Hey tedd, What is the end result you want? for debugging and checking variable contents, I've simply: echo this_variable = $this_variable; But

Re: [PHP] generate xls file on fly

2008-02-08 Thread Jason Pruim
On Feb 8, 2008, at 10:14 AM, Hiep Nguyen wrote: On Fri, 8 Feb 2008, Per Jessen wrote: Hiep Nguyen wrote: is there anyway to generate this into xls file w/o using fopen fwrite to the server? my goal is to have a link after the table and user can click on that link and a save window pop

Re: [PHP] Directory

2008-02-08 Thread Richard Lynch
On Thu, February 7, 2008 12:30 pm, Steve Marquez wrote: Greetings, Could someone please point me in the right direction? I am trying to have PHP find out if a directory has files in it and then if it does, display and include, if it does not, then not display the include. I have looked

Re: [PHP] Name of variable to string

2008-02-08 Thread David Giragosian
On 2/8/08, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, February 8, 2008 9:14 am, tedd wrote: From a variable with the name of $this_variable -- how do I get a string 'this_variable' ? You don't... Consider this: function foo($bar){ //what would your function output? } $baz = 3;

Re: [PHP] problem with imagefontwidth function, It looks to be unavailable...

2008-02-08 Thread Børge Holen
On Thursday 07 February 2008 17:17:30 David Giragosian wrote: On 2/7/08, Daniel Brown [EMAIL PROTECTED] wrote: On Feb 7, 2008 8:23 AM, Jochem Maas [EMAIL PROTECTED] wrote: Legolas wood schreef: Hi Thank you for reading my post I am trying to run a php based application using php5

Re: [PHP] Name of variable to string

2008-02-08 Thread David Giragosian
On 2/8/08, Eric Butera [EMAIL PROTECTED] wrote: On Feb 8, 2008 1:53 PM, David Giragosian [EMAIL PROTECTED] wrote: On 2/8/08, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, February 8, 2008 9:14 am, tedd wrote: From a variable with the name of $this_variable -- how do I get a

Re: [PHP] Name of variable to string

2008-02-08 Thread Jason Pruim
On Feb 8, 2008, at 2:41 PM, Paul Scott wrote: On Fri, 2008-02-08 at 14:37 -0500, Daniel Brown wrote: On Feb 8, 2008 2:18 PM, Eric Butera [EMAIL PROTECTED] wrote: And look who chimes in with some helpful advice! ;-P lol (now isn't that even more useless?) Not worse then this... :)

Re: [PHP] Name of variable to string

2008-02-08 Thread Paul Scott
On Fri, 2008-02-08 at 14:37 -0500, Daniel Brown wrote: On Feb 8, 2008 2:18 PM, Eric Butera [EMAIL PROTECTED] wrote: And look who chimes in with some helpful advice! ;-P lol (now isn't that even more useless?) --Paul All Email originating from UWC is covered by disclaimer

Re: [PHP] shopping carts

2008-02-08 Thread Richard Lynch
On Thu, February 7, 2008 9:51 am, Eric Butera wrote: On Feb 7, 2008 9:59 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Feb 7, 2008 9:24 AM, Eric Butera [EMAIL PROTECTED] wrote: If you look at plugin architectures of projects such as drupal, phorum, or serendipity you can see there are better

Re: [PHP] Name of variable to string

2008-02-08 Thread Daniel Brown
On Feb 8, 2008 2:45 PM, David Giragosian [EMAIL PROTECTED] wrote: On 2/8/08, Eric Butera [EMAIL PROTECTED] wrote: Did you see the function that I published in this thread this morning? I'm nearly positive that's what he's looking for, and it worked for me. -- /Dan Daniel P. Brown Senior

Re: [PHP] Name of variable to string

2008-02-08 Thread Daniel Brown
On Feb 8, 2008 2:18 PM, Eric Butera [EMAIL PROTECTED] wrote: That is ridiculous. And look who chimes in with some helpful advice! ;-P -- /Dan Daniel P. Brown Senior Unix Geek ? while(1) { $me = $mind--; sleep(86400); } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Name of variable to string

2008-02-08 Thread Eric Butera
On Feb 8, 2008 1:53 PM, David Giragosian [EMAIL PROTECTED] wrote: On 2/8/08, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, February 8, 2008 9:14 am, tedd wrote: From a variable with the name of $this_variable -- how do I get a string 'this_variable' ? You don't... Consider

[PHP] Name of variable to string

2008-02-08 Thread tedd
Hi gang: From a variable with the name of $this_variable -- how do I get a string 'this_variable' ? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] php 4.x + mysql 5

2008-02-08 Thread Jim Lucas
ahlist wrote: Hi, I have a client who requires php 4.x with mysql 5 (cannot use php 5 for this project). Too bad... Can anyone confirm that it is possible to use this combination without setting mysql to use old-style passwords. Not sure I have a clean php 4.4.7 compile but it still

Re: [PHP] problem with imagefontwidth function, It looks to be unavailable...

2008-02-08 Thread Daniel Brown
On Feb 8, 2008 2:50 PM, Børge Holen [EMAIL PROTECTED] wrote: am I readin an comercial but wait, there's more! Order within the next 6.3 seconds and you'll receive a cloned version of my first born, ABSOLUTELY FREE! -- /Dan Daniel P. Brown Senior Unix Geek ? while(1) { $me = $mind--;

Re: [PHP] issues with calling methods twice in a row

2008-02-08 Thread nihilism machine
that was just an example. yes they both provide 5 input variables. On Feb 8, 2008, at 4:18 PM, Jim Lucas wrote: nihilism machine wrote: i have a method called CreateUser() which is public and takes 5 variables as its data, then adds them to a db. it only executes the first method not the

Re: [PHP] issues with calling methods twice in a row

2008-02-08 Thread Nathan Nobbe
On Feb 8, 2008 4:10 PM, nihilism machine [EMAIL PROTECTED] wrote: i have a method called CreateUser() which is public and takes 5 variables as its data, then adds them to a db. it only executes the first method not the other although its all the same but the variable. ex: $auth = new

Re: [PHP] issues with calling methods twice in a row

2008-02-08 Thread Jim Lucas
nihilism machine wrote: i have a method called CreateUser() which is public and takes 5 variables as its data, then adds them to a db. it only executes the first method not the other although its all the same but the variable. Here you say that the method takes five (5) variables. ex:

[PHP] php 4.x + mysql 5

2008-02-08 Thread ahlist
Hi, I have a client who requires php 4.x with mysql 5 (cannot use php 5 for this project). Can anyone confirm that it is possible to use this combination without setting mysql to use old-style passwords. I have a clean php 4.4.7 compile but it still shows the old mysql lib version. I can't find

[PHP] issues with calling methods twice in a row

2008-02-08 Thread nihilism machine
i have a method called CreateUser() which is public and takes 5 variables as its data, then adds them to a db. it only executes the first method not the other although its all the same but the variable. ex: $auth = new auth(); $auth-CreateUser(fake email, 1, fake name, 4);

Re: [PHP] issues with calling methods twice in a row

2008-02-08 Thread Nathan Nobbe
On Feb 8, 2008 4:25 PM, nihilism machine [EMAIL PROTECTED] wrote: that was just an example. yes they both provide 5 input variables. well theres something preventing successive calls from doing what you expect. php has no issue in calling the same instance method successively, which you could

Re: [PHP] Name of variable to string [SOLVED]

2008-02-08 Thread Daniel Brown
On Feb 8, 2008 4:17 PM, tedd [EMAIL PROTECTED] wrote: At 10:31 AM -0500 2/8/08, Daniel Brown wrote: On Feb 8, 2008, at 10:14 AM, tedd wrote: Hi gang: From a variable with the name of $this_variable -- how do I get a string 'this_variable' ? What Tedd means is this:

Re: [PHP] fgets???

2008-02-08 Thread Richard Lynch
The first possible issue is that the newline character[s] is different for Mac, Windows, and Linux... So if your file is one format, and fgets is expecting the other, it won't do what you want. The next is that if your code is wrong, and is showing it all as one line, it PROBABLY means you are

Re: [PHP] fgets???

2008-02-08 Thread Zoltán Németh
2008. 02. 8, péntek keltezéssel 12.46-kor Daniel Brown ezt írta: On Feb 8, 2008 12:35 PM, Richard Lynch [EMAIL PROTECTED] wrote: I knew it. After silence, Lynch comes back with a vengeance three hours before the week's stats come out. And not only that he top-posts. ;-P

Re: [PHP] Re: Recommended ORM for PHP

2008-02-08 Thread Zoltán Németh
2008. 02. 8, péntek keltezéssel 11.38-kor Manuel Lemos ezt írta: Hello, on 02/08/2008 06:15 AM Zoltán Németh said the following: Another aspect is that Metastorage features what is called report classes. These are classes that perform queries that you define and generates SQL and PHP at

[PHP] Order directory output

2008-02-08 Thread Pastor Steve
Hi, thanks for all your help today. I have the following code and I am trying to order the output. Currently it seems really random. Can anyone point me in the right direction? ?php $dir = content/current/breaking_news/; // set pattern $pattern = .txt*|.TXT*; // open directory and parse file

Re: [PHP] Name of variable to string

2008-02-08 Thread Daniel Brown
On Feb 8, 2008 2:41 PM, Paul Scott [EMAIL PROTECTED] wrote: On Fri, 2008-02-08 at 14:37 -0500, Daniel Brown wrote: On Feb 8, 2008 2:18 PM, Eric Butera [EMAIL PROTECTED] wrote: And look who chimes in with some helpful advice! ;-P lol (now isn't that even more useless?) That's

Re: [PHP] Name of variable to string [SOLVED]

2008-02-08 Thread tedd
At 4:56 PM -0500 2/8/08, Robert Cummings wrote: On Fri, 2008-02-08 at 16:51 -0500, tedd wrote: At 10:42 PM +0100 2/8/08, Jochem Maas wrote: $post_var = @sessionize_post('post_var'); so why exactly is that not an option (or good idea)? It IS an option -- and that's what I was doing

Re: [PHP] Name of variable to string [SOLVED]

2008-02-08 Thread Jim Lucas
tedd wrote: At 10:31 AM -0500 2/8/08, Daniel Brown wrote: On Feb 8, 2008, at 10:14 AM, tedd wrote: Hi gang: From a variable with the name of $this_variable -- how do I get a string 'this_variable' ? What Tedd means is this: ;-P BINGO! We have a winner! For those of you

Re: [PHP] Re: Recommended ORM for PHP

2008-02-08 Thread Manuel Lemos
Hello, on 02/08/2008 06:15 AM Zoltán Németh said the following: Another aspect is that Metastorage features what is called report classes. These are classes that perform queries that you define and generates SQL and PHP at compile time to retrieve data from the persistent objects for

[PHP] generate xls file on fly

2008-02-08 Thread Hiep Nguyen
hi friends, i have a php page with the following logic: html head titleDownload/title /head table trtdTitle/tdtdAuthor/td/tr ? $sql = select title,author from book where title != null and author != null; ? ? $rs = mysql_query($sql) or die(mysql_error()); ? ? while($row =

Re: [PHP] generate xls file on fly

2008-02-08 Thread Per Jessen
Hiep Nguyen wrote: let say that user searched and found 10 records, in the meantime, other users may change any of these 10 records, so if we saved mysql statement and re-run mysql statement again, the result might be different. to prevent this problem, i only want to download records that

Re: [PHP] re: php file extension

2008-02-08 Thread Richard Lynch
On Thu, February 7, 2008 1:49 pm, MaryAnn Woodall wrote: Just starting to use php on my webpages. If I save a file as .php or .php4 are they the same file. For example is index.php the same as index.php4? They are not the same file at all, unless you use really old Windows that only let you

Re: [PHP] Name of variable to string

2008-02-08 Thread Richard Lynch
On Fri, February 8, 2008 9:14 am, tedd wrote: From a variable with the name of $this_variable -- how do I get a string 'this_variable' ? You don't... Consider this: function foo($bar){ //what would your function output? } $baz = 3; foo($baz); -- Some people have a gift link here. Know

Re: [PHP] Name of variable to string [SOLVED]

2008-02-08 Thread tedd
At 1:39 PM -0800 2/8/08, Jim Lucas wrote: So, how is this any better then just doing this $_SESSION = array_merge(array_merge($_SESSION, $_POST), $_GET); If I replace the two calls to sessionize_*() with the above line, I get the same results. Not sure what I am missing. First, I didn't

Re: [PHP] Name of variable to string [SOLVED]

2008-02-08 Thread Robert Cummings
On Fri, 2008-02-08 at 16:51 -0500, tedd wrote: At 10:42 PM +0100 2/8/08, Jochem Maas wrote: $post_var = @sessionize_post('post_var'); so why exactly is that not an option (or good idea)? It IS an option -- and that's what I was doing (except for the suppress error) via this:

Re: [PHP] fgets???

2008-02-08 Thread Daniel Brown
On Feb 8, 2008 12:35 PM, Richard Lynch [EMAIL PROTECTED] wrote: I knew it. After silence, Lynch comes back with a vengeance three hours before the week's stats come out. And not only that he top-posts. ;-P -- /Dan Daniel P. Brown Senior Unix Geek ? while(1) { $me = $mind--;

Re: [PHP] issues with calling methods twice in a row

2008-02-08 Thread Jochem Maas
nihilism machine schreef: i have a method called CreateUser() which is public and takes 5 variables as its data, then adds them to a db. it only executes the first method not the other although its all the same but the variable. ex: $auth = new auth(); $auth-CreateUser(fake email, 1, fake

Re: [PHP] Name of variable to string [SOLVED]

2008-02-08 Thread tedd
At 10:31 AM -0500 2/8/08, Daniel Brown wrote: On Feb 8, 2008, at 10:14 AM, tedd wrote: Hi gang: From a variable with the name of $this_variable -- how do I get a string 'this_variable' ? What Tedd means is this: ;-P BINGO! We have a winner! For those of you who want to

Re: [PHP] Name of variable to string [SOLVED]

2008-02-08 Thread Jochem Maas
Daniel Brown schreef: On Feb 8, 2008 4:17 PM, tedd [EMAIL PROTECTED] wrote: At 10:31 AM -0500 2/8/08, Daniel Brown wrote: On Feb 8, 2008, at 10:14 AM, tedd wrote: Hi gang: From a variable with the name of $this_variable -- how do I get a string 'this_variable' ? What Tedd

Re: [PHP] Order directory output

2008-02-08 Thread Jim Lucas
Pastor Steve wrote: Hi, thanks for all your help today. I have the following code and I am trying to order the output. Currently it seems really random. Can anyone point me in the right direction? ?php $dir = content/current/breaking_news/; // set pattern $pattern = .txt*|.TXT*; // open

Re: [PHP] Name of variable to string [SOLVED]

2008-02-08 Thread tedd
At 10:42 PM +0100 2/8/08, Jochem Maas wrote: $post_var = @sessionize_post('post_var'); so why exactly is that not an option (or good idea)? It IS an option -- and that's what I was doing (except for the suppress error) via this: $post_var = sessionize_post('post_var'); I just wanted to

Re: [PHP] php 4.x + mysql 5

2008-02-08 Thread ahlist
On Feb 8, 2008 4:16 PM, Jim Lucas [EMAIL PROTECTED] wrote: ahlist wrote: Hi, I have a clean php 4.4.7 compile but it still shows the old mysql lib version. I can't find where it is picking that up at. Is it just built into the php sources that way? Yes, it is included with the php

[PHP] Re: Order directory output

2008-02-08 Thread Shawn McKenzie
Pastor Steve wrote: Hi, thanks for all your help today. I have the following code and I am trying to order the output. Currently it seems really random. Can anyone point me in the right direction? ?php $dir = content/current/breaking_news/; // set pattern $pattern = .txt*|.TXT*;

Re: [PHP] Order directory output

2008-02-08 Thread Nathan Nobbe
i hooked up an spl example; and the files are sorted by name. also, did you want that p inside or outside the span w/ class=NormalText, because the opening and closing tags are mixed up.. ?php class FileIterator extends FilterIterator { public function __construct(Iterator $it) {

Re: [PHP] Order directory output

2008-02-08 Thread Nathan Nobbe
On Fri, Feb 8, 2008 at 9:19 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: i hooked up an spl example; and the files are sorted by name. also, did you want that p inside or outside the span w/ class=NormalText, because the opening and closing tags are mixed up.. damnit; i had a couple of

Re: [PHP] Order directory output

2008-02-08 Thread Paul Scott
On Fri, 2008-02-08 at 21:19 -0500, Nathan Nobbe wrote: i hooked up an spl example; and the files are sorted by name. also, did you want that p inside or outside the span w/ class=NormalText, because the opening and closing tags are mixed up.. Here is another, generic extension filter with

[PHP] Posting Summary for Week Ending 8 February, 2008: php-general@lists.php.net

2008-02-08 Thread PostTrack [Dan Brown]
Posting Summary for PHP-General List Week Ending: Friday, 8 February, 2008 Messages| Bytes | Sender ++-- 391 (100%) 581347 (100%) EVERYONE 32 (8.2%)