php-general Digest 5 Sep 2008 05:38:18 -0000 Issue 5664
php-general Digest 5 Sep 2008 05:38:18 - Issue 5664 Topics (messages 279515 through 279548): Re: Google Chrome 279515 by: Ovidiu Rosoiu 279516 by: Bastien Koert 279517 by: Boyd, Todd M. 279518 by: TG 279519 by: Stephen Wong 279520 by: Wolf 279523 by: Eugene Mah 279525 by: Boyd, Todd M. 279529 by: Dan Shirah 279531 by: Bastien Koert 279532 by: Jochem Maas 279533 by: Jay Moore 279537 by: Bastien Koert 279543 by: Jochem Maas 279544 by: Robert Cummings unset($_GET['i']) 279521 by: Bill 279522 by: Dan Shirah 279524 by: Bill 279526 by: Wolf 279527 by: Boyd, Todd M. 279528 by: Micah Gersten 279530 by: Dan Shirah 279538 by: Bill Summing array indexes. 279534 by: Tom Shaw 279535 by: Eric Gorr 279536 by: Micah Gersten 279539 by: Diogo Neves 279540 by: Tom Shaw 279541 by: Jochem Maas Re: Mulitiple Arrary Sort 279542 by: Jochem Maas 279547 by: Jim Lucas fsockopen in phpmailer and tls 279545 by: Larry Brown 279546 by: Robert Cummings Re: Chisimba-2.0.3 Released! 279548 by: Paul Scott Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- ---BeginMessage--- Richard Heyes wrote: Hi, Is it just me, or is everyones disk thrshing more since installing (if you have) Chrome? Oh, and to keep it in-line with list, isn't PHP great? :-) I uninstalled it precisely beacause of this behaviour. The disk was running crazy every time chrome was started. And I don't know how to do lsof | grep chrome on Windows to see what's going on. ---End Message--- ---BeginMessage--- On Thu, Sep 4, 2008 at 1:55 PM, Ovidiu Rosoiu [EMAIL PROTECTED]wrote: Richard Heyes wrote: Hi, Is it just me, or is everyones disk thrshing more since installing (if you have) Chrome? Oh, and to keep it in-line with list, isn't PHP great? :-) I uninstalled it precisely beacause of this behaviour. The disk was running crazy every time chrome was started. And I don't know how to do lsof | grep chrome on Windows to see what's going on. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Strange, I am not seeing that behavior at all. I am currently running an older Dell machine with 1.5Gb ram and have Firefox 3 (5 tabs open including gmail and yahoo) IE8 ( 1 tab open) Chrome ( 1 tab open ) among a half dozen other apps open and I am not high in the disk or cpu usage... The biggest cpu hog for me right now is WMPlayer 11 -- Bastien Cat, the other other white meat ---End Message--- ---BeginMessage--- -Original Message- From: Ovidiu Rosoiu [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2008 12:56 PM To: Richard Heyes Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Google Chrome Richard Heyes wrote: Hi, Is it just me, or is everyones disk thrshing more since installing (if you have) Chrome? Oh, and to keep it in-line with list, isn't PHP great? :-) I uninstalled it precisely beacause of this behaviour. The disk was running crazy every time chrome was started. And I don't know how to do lsof | grep chrome on Windows to see what's going on. You can at least track memory + cpu usage through the Task Manager (Ctrl-Alt-Del + T on most distros). In the Task Manager, I also noticed that GoogleUpdate.exe is running even when Chrome.exe is not. This made me a bit curious, so I went into msconfig (the Microsoft GUI utility for modifying startup programs, services, and system INI files) and saw that GoogleUpdate.exe had been added to the list of programs to run on Windows startup. I hate, hate, HATE it when programs install resident agents that eat my memory and perform background network activity. Rrgh! Points taken away from Google for this app's EULA and its methods. Slick otherwise, though (aside from the lack of XMLDOM instantiation support for Javascript)... Todd Boyd Web Programmer ---End Message--- ---BeginMessage--- There's an option for pre-buffering things, I believe. It may be doing that. Or it may be just indexing your whole HD and sending it's contents back to Google. :) -TG - Original Message - From: Ovidiu Rosoiu [EMAIL PROTECTED] To: Richard Heyes [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Date: Thu, 04 Sep 2008 20:55:33 +0300 Subject: Re: [PHP] Google Chrome Richard Heyes wrote: Hi, Is it just me, or is everyones disk thrshing more since installing (if you have) Chrome? Oh, and to keep it in-line with list, isn't PHP great? :-) I uninstalled it precisely beacause of this behaviour. The disk was running crazy
Re: [PHP] How to set sending e-mail address?
mike skrev: Return-path is used by mail daemons, not usually shown in client emails That's what From or Reply-to is for... Return-path is valuable for capturing bounces and stuff. I always set it to a bounce@ alias, and then the From: is always the friendly display address. I also use popen() to open a connection directly to my sendmail binary (/usr/sbin/sendmail -t -f -i [EMAIL PROTECTED]) it seems to act instantly where I've had some oddities with PHP's mail() in the past. Thanks Mike, but it didn't really help me out in this app... This one is making use of PEAR Mail:Mime and Mail, and that seems to work really good, set aside that I can't alter the Return-Path. I really do want the return path to be different, just because of the bounce capture, there's a special address for those on the system where this thing runs.. Therefor I'd like to set it. Anders On Wed, Sep 3, 2008 at 10:53 PM, Anders Norrbring [EMAIL PROTECTED] wrote: I'm trying to figure out how to set the sending address when sending e-mail from PHP, but it doesn't seem like I'm having much success.. When I look in the mail queue, I always see '[EMAIL PROTECTED]' as the origin (the web server user). In my sending routine I set headers like this: $hdrs = array( 'From'= $MAILFROM, 'Subject' = iconv(strtoupper(CHARSET), ISO-8859-1, $subject), 'Reply-To' = $MAILFROM, 'Date' = date(r), 'Return-Path' = '[EMAIL PROTECTED]' ); Oh, the mail sent doesn't use the Return-Path I set, it's still set as [EMAIL PROTECTED] What else can I do, and what have I missed? Anders -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] Re: [PHP] PHP 5.3.0alpha2
Good to know. And it makes it easier to use the Apache builds from http://apachelounge.com. On Wed, Sep 3, 2008 at 9:06 PM, Andi Gutmans [EMAIL PROTECTED] wrote: Btw, contrary to what many believe, 32bit PHP tends to perform better than 64bit PHP. So unless there's a really good reason why you want 64bit I wouldn't waste too much time on that. Andi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to set sending e-mail address?
On Wed, Sep 3, 2008 at 11:06 PM, Anders Norrbring [EMAIL PROTECTED] wrote: Thanks Mike, but it didn't really help me out in this app... This one is making use of PEAR Mail:Mime and Mail, and that seems to work really good, set aside that I can't alter the Return-Path. I really do want the return path to be different, just because of the bounce capture, there's a special address for those on the system where this thing runs.. Therefor I'd like to set it. Anders can't help you there then. i don't use PEAR stuff :) look at the PEAR code, perhaps there's a way to override/set it (that's my only helpful tip) or maybe look at extending the base class? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] Re: [PHP] PHP 5.3.0alpha2
Try with IIS7 + FCGI, it is _fast_ :) It's a same-across-platforms thing. Mostly to do with the fact we use mod-rewrite. :( PHP is so much slower on windows, though a lot of it has to do with file handling, a Windows specific slowdown I guess. That's something I really to fix for 5.3.0 or later. That's part of my fresh new job to optimize PHP on Windows. If you have cases where the slowdown is identified (from a scripts point of view), please let me know and I will spend some time to solve them :) It is pretty much include() and its relatives. Autoloading with a lot of possible include paths. I'm sure if you had a Zend Framework App and put it on Windows, and took out all the require_onces with paths in them and instead added all those folders to the include path, you would see what I mean. However, on Linux it would fly. Not that it matters to me, since I parse all our files and find a dependancy tree and merge them before deploying to a webfarm. (I do parsing / combining of CSS also, but need to keep a distance vector when compressing them, otherwise the order of some rules shifts too much when combined... hmm... guess what I am working on today?) -Ru PS: The http://windows.php.net/downloads.php site *looks* good too... :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PHP on 64bit Ubuntu
A word boundary usually matches the natural integer size for the processor. In the case of a 32 bit processor it would be 32 bits, in the case of a 64 bit processor it would be 64 bits. This may or may not hold for windows, but more than likely the word size doubles between the 32 bit architecture and the 64 bit architecture. As such due to alignment we would still see only a maximal doubling of space. Fringe cases may exist to satisfy your argument, but I doubt PHP falls into this category... especially as relates to a packaged binary or default configure. I didn't mean for the PHP binary itself, but the PHP code written in PHP that is parsed: $test = true; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PHP on 64bit Ubuntu
On Wed, 2008-09-03 at 23:39 -0700, steve wrote: A word boundary usually matches the natural integer size for the processor. In the case of a 32 bit processor it would be 32 bits, in the case of a 64 bit processor it would be 64 bits. This may or may not hold for windows, but more than likely the word size doubles between the 32 bit architecture and the 64 bit architecture. As such due to alignment we would still see only a maximal doubling of space. Fringe cases may exist to satisfy your argument, but I doubt PHP falls into this category... especially as relates to a packaged binary or default configure. I didn't mean for the PHP binary itself, but the PHP code written in PHP that is parsed: $test = true; But the PHP binary is what allocates the memory. It all comes down to how the PHP binary was compiled. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PHP on 64bit Ubuntu
Yes and No. PHP could be storing bools as a bit packed in a long word. But your point about compiling is sill more valid. Compiling 32bit instructions may use instructions that offer off-alignment memory referencing. That is -- a bool may actual take only a byte in a 32bit system. That instruction may not be available in 64bit mode. Thus that bool taking a whole long word. 8x the space, not twice. Let's write some assembly! On Wed, Sep 3, 2008 at 11:41 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2008-09-03 at 23:39 -0700, steve wrote: A word boundary usually matches the natural integer size for the processor. In the case of a 32 bit processor it would be 32 bits, in the case of a 64 bit processor it would be 64 bits. This may or may not hold for windows, but more than likely the word size doubles between the 32 bit architecture and the 64 bit architecture. As such due to alignment we would still see only a maximal doubling of space. Fringe cases may exist to satisfy your argument, but I doubt PHP falls into this category... especially as relates to a packaged binary or default configure. I didn't mean for the PHP binary itself, but the PHP code written in PHP that is parsed: $test = true; But the PHP binary is what allocates the memory. It all comes down to how the PHP binary was compiled. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PHP on 64bit Ubuntu
On Wed, 2008-09-03 at 23:59 -0700, steve wrote: Yes and No. PHP could be storing bools as a bit packed in a long word. But your point about compiling is sill more valid. Compiling 32bit instructions may use instructions that offer off-alignment memory referencing. That is -- a bool may actual take only a byte in a 32bit system. That instruction may not be available in 64bit mode. Thus that bool taking a whole long word. 8x the space, not twice. It's hardly likely that a bool taking only a byte in a 32 bit environment would suddenly take 8 bytes in a 64 bit environment. Processors usually retain backward instructions and just pile on more. And in the case of compilers, compilers generally get smarter as technology advances and not dumber. The opposite might be true of user code though as developers become presumptive of the compiler doing their work for them :) Let's write some assembly! Why torture ourselves? ;) Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] Re: [PHP] PHP 5.3.0alpha2
On Thu, Sep 4, 2008 at 8:36 AM, steve [EMAIL PROTECTED] wrote: Try with IIS7 + FCGI, it is _fast_ :) It's a same-across-platforms thing. Mostly to do with the fact we use mod-rewrite. :( I did not try it yet but IIS has a rewrite module. There is also a commercial product being 100% compatible with mod_rewrite (http://www.micronovae.com/ModRewrite/ModRewrite.html). -- Pierre http://blog.thepimp.net | http://www.libgd.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] Re: [PHP] PHP 5.3.0alpha2
hi, On Thu, Sep 4, 2008 at 6:06 AM, Andi Gutmans [EMAIL PROTECTED] wrote: Btw, contrary to what many believe, 32bit PHP tends to perform better than 64bit PHP. So unless there's a really good reason why you want 64bit I wouldn't waste too much time on that. And do not forget that the x64 builds are highly experimental. I would not suggest to use them for anything else but testing. They are also incomplete as some libraries are not yet ported to x64 or other needs tweaks. Cheers. -- Pierre http://blog.thepimp.net | http://www.libgd.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PECL-DEV] Geometrical library
On 03.09.2008 20:54, Yannick Warnier wrote: Hi there, I've been looking for a PHP library that would allow me to calculate superpositions of geometrical surfaces defined by polygones (defined themselves by points bound with lines) in 2D (surface of a polygone, intersections between two vectors, surface of intersection - considering the polygons could be complex and superpose themselves in more than one point). The closest to what I'm looking for, I guess, would be the PEAR Math_Vector package, but it is mainly based on vectors as mathematical arrays, whereas I would need calculations based on surfaces. Does anyone know of something that could help me? You can always find an open source C/C++ library and write a PECL extension for it. Quick search shows there are quite a number of such libs, so you just need to choose the one that fits your needs best. -- Wbr, Antony Dovgal -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Google Chrome
Hi, Is it just me, or is everyones disk thrshing more since installing (if you have) Chrome? Oh, and to keep it in-line with list, isn't PHP great? :-) -- Richard Heyes HTML5 Graphing for IE7, FF, Opera and Safari: http://www.phpguru.org/RGraph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] CMS-Blog system
On 3 Sep 2008, at 22:01, Martin Zvarík wrote: I am working on CMS-Blog system, which will be using approx. 10 000 users. I have a basic question - I believe there are only two options - which one is better? 1) having separate databases for each blog = fast (problem: what if I will need to do search in all of the blogs for some article?) 2) having all blogs in one database - that might be 10 000 * 100 articles = too many rows, but easy to search and maintain, hmm? --- I am thinking of having some file etc. cms-core.php in some base directory and every subdirectory (= users subdomains) would include this cms-core file with some individual settings. Is there better idea? I appreciate your discussion on this topic. This wheel already exists, and it's called Wordpress. Wordpress is completely free, has great support for multiple blogs with multiple users and central management. It's been built for scalability (think wordpress.com) and has been extensively tested (think wordpress.com + a huge number of other sites). If Wordpress doesn't cover your search requirements it's simple to add something like sphinx to index everything to match the way you want to search. But, if you want to waste your time reinventing this wheel don't let me stop you, but I guarantee it's more complex than you initially think. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Google Chrome
Richard Heyes wrote: Hi, Is it just me, or is everyones disk thrshing more since installing (if you have) Chrome? Oh, and to keep it in-line with list, isn't PHP great? :-) I didn't even manage to download it - with FF+Linux there's no downloadable version (ok, not yet ready), but then I tried downloading from Windows, and I still got no link - which is when I spotted that Chrome is only for XP and Vista - not W2K. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] CMS-Blog system
On 4 Sep 2008, at 06:56, Yannick Warnier wrote: Le mercredi 03 septembre 2008 à 22:07 +0100, Luke a écrit : seperate databases is a hassle, since you have to mess with multiple connections, I would go with the one database. Just cut down on data storage, use userids instead of usernames for identification in the tables and such. Not only is it a hassle, it is also a major system bottleneck on most filesystems. If using MySQL for example, each database creates one directory. If you get to 10.000 directories in /var/lib/mysql for example (based on Debian systems), you will start to feel the weight of having so many items in only one directory. If you ever reach 30.000, you'll start to think it *really* was a bad idea. Not to mention any database backup will be accordingly slower. Personal recommendation: don't go for the multiple database solution if you plan to have more than 100 and you can avoid it. How bad this is depends on the OS and filesystem you're using. One of the sites I manage has a directory with over 300k files in it, and it's never a problem unless I want to list the contents (which I never do!). Accessing the files (for backups or other purposes) is just as fast as it is with only a few files. That's a CentOS box using ext3. It's possible the limitation you're seeing is related to MySQL rather than the filesystem, but I've never had anywhere near that number of databases on a single box so I can't speak to that. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re: [PHP] CMS-Blog system
Thank you for all the comments. Thanks for the WP tip: I don't know much about wordpress (it looks good), but I have tryed enough of open-source CMS to say that they are based on messy solutions (one for all = joomla) + it won't be free blog system, so I don't think using this free system would be fair. So, I will stick with separate databases for each user + central databases used for searches etc. I am pretty sure I am up for this wheel reinventing ;-) The only thing I am not strong in is the MySQL, but with you guys there is nothing impossible! Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] CMS-Blog system
On 4 Sep 2008, at 11:04, Martin Zvarík wrote: Thank you for all the comments. Thanks for the WP tip: I don't know much about wordpress (it looks good), but I have tryed enough of open-source CMS to say that they are based on messy solutions (one for all = joomla) + it won't be free blog system, so I don't think using this free system would be fair. That's really not a problem. WP is released under the GPL (http://wordpress.org/about/gpl/ ) which effectively means you can use it in any way your want, the only limits are on changes you make to the code. If they didn't want you to use it to build paid-for services that would be restricted by the license, but it's not. If you have a moral objection to using open source software to run a paid-for service, be sure to avoid Apache, MySQL and Linux too!! So, I will stick with separate databases for each user + central databases used for searches etc. If you still intend to go down the road of building it yourself I strongly urge you to check out Sphinx (http://www.sphinxsearch.com/) for searching. It kicks the crap out of any other system I've come across. I am pretty sure I am up for this wheel reinventing ;-) Your funeral :) The only thing I am not strong in is the MySQL, but with you guys there is nothing impossible! Seriously? You want to build a blogging system with support for 10k users and your MySQL is not strong? Good luck. 'Nuff said. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] CMS-Blog system
Please keep replies on the list. On 4 Sep 2008, at 11:38, Martin Zvarík wrote: On 4 Sep 2008, at 11:04, Martin Zvarík wrote: Thank you for all the comments. Thanks for the WP tip: I don't know much about wordpress (it looks good), but I have tryed enough of open-source CMS to say that they are based on messy solutions (one for all = joomla) + it won't be free blog system, so I don't think using this free system would be fair. That's really not a problem. WP is released under the GPL (http://wordpress.org/about/gpl/ ) which effectively means you can use it in any way your want, the only limits are on changes you make to the code. If they didn't want you to use it to build paid-for services that would be restricted by the license, but it's not. If you have a moral objection to using open source software to run a paid-for service, be sure to avoid Apache, MySQL and Linux too!! :-D good point So, I will stick with separate databases for each user + central databases used for searches etc. If you still intend to go down the road of building it yourself I strongly urge you to check out Sphinx (http:// www.sphinxsearch.com/) for searching. It kicks the crap out of any other system I've come across. I am pretty sure I am up for this wheel reinventing ;-) Your funeral :) The only thing I am not strong in is the MySQL, but with you guys there is nothing impossible! Seriously? You want to build a blogging system with support for 10k users and your MySQL is not strong? Good luck. http://www.spiritualthingsmatter.com/2007/11/07/hope-there-is-always-hope/ Not sure I see the relevance of that link, but if you think praying will help I'll repeat my good luck. :-) I'm not saying you can't learn what's needed to get it done, but you can save yourself a world of pain by making use of what's already out there. I'm a big advocate of learning new things, but when you need to get something done I see nothing wrong with standing on the shoulders of giants. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Recursive Iteration over a collection of objects
Hi I am getting myself quite confused while trying to use SPL to recursively iterate through a collection of objects, and any help would be greatly appreciated! My collection of objects is contained in a class (which I frequently use to iterate through objects stored in an array in the class), and I think my hasChildren() and getChildren() methods are working ok, but I am unable to make it recursive. I am particularly confused by where I have to use RecursiveIteratorIterator (do I have to at all?), and the getIterator() method (again, do I need it and why?). Am I going about this totally the wrong way to start with? I have tried to summarise my code below. Sorry for the long post, and thanks again. David == Script... == $categories = new RecursiveIteratorIterator(new Categories); $categories-loadAll(); foreach ($categories as $category) { echo 'ID: ' . $category-getID(); echo 'Level: ' . $category-getLevel(); } === classes... = abstract class ObjCollection implements RecursiveIterator { // class stores objects in an array public $objs = array(); public function current(); public function hasChildren(); // etc etc } class Categories extends ObjCollection { // concrete class which loads the Category objects into // the ObjCollection array public function loadAll() {// ...load Category classes // into parent:: !} } class Category { private $id; private $level public function getID() {return $this-id;} public function getLevel() {return $this-level;} } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] Re: [PHP] PHP 5.3.0alpha2
On Wed, 2008-09-03 at 23:36 -0700, steve wrote: It is pretty much include() and its relatives. Autoloading with a lot of possible include paths. I'm sure if you had a Zend Framework App and put it on Windows, and took out all the require_onces with paths in them Try 5.3 please, our implementation of realpath(), one of the biggest require_once slowdowns, as well as other parts were improved quite a lot. Feedback is welcome :-) johannes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] CMS-Blog system
Le jeudi 04 septembre 2008 à 10:31 +0100, Stut a écrit : On 4 Sep 2008, at 06:56, Yannick Warnier wrote: Le mercredi 03 septembre 2008 à 22:07 +0100, Luke a écrit : seperate databases is a hassle, since you have to mess with multiple connections, I would go with the one database. Just cut down on data storage, use userids instead of usernames for identification in the tables and such. Not only is it a hassle, it is also a major system bottleneck on most filesystems. If using MySQL for example, each database creates one directory. If you get to 10.000 directories in /var/lib/mysql for example (based on Debian systems), you will start to feel the weight of having so many items in only one directory. If you ever reach 30.000, you'll start to think it *really* was a bad idea. Not to mention any database backup will be accordingly slower. Personal recommendation: don't go for the multiple database solution if you plan to have more than 100 and you can avoid it. How bad this is depends on the OS and filesystem you're using. One of the sites I manage has a directory with over 300k files in it, and it's never a problem unless I want to list the contents (which I never do!). Accessing the files (for backups or other purposes) is just as fast as it is with only a few files. That's a CentOS box using ext3. Yes, I know. I'm talking about a Debian system with ext3, so I wouldn't really consider it as a low configuration/OS/FS, but I'm reporting, nevertheless, that it can have important drawbacks. On the other hand, 120.000 files in the same directory seemed to be the limit on one of the disks we have (the system reported: max number of inodes assigned, impossible to create new file). I'm sure there are also ways to improve performance by setting ext3 to use larger inodes, but you have to plan that from the start. It's possible the limitation you're seeing is related to MySQL rather than the filesystem, but I've never had anywhere near that number of databases on a single box so I can't speak to that. I think that isn't MySQL (system usage shows the system itself is overwhelmed, apart from MySQL). Thanks for the suggestions anyway. Yannick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Sending out mass emails
Hi all, We would like to send out mass emails for some of our clients, these are HTML email and text alternative for the email clients that cant read those HTML emails. We have developed some scripts to send the emails using phpmailer. Now we anticipate sending emails in batches but not sure how many at once. Also what is the best way about going around being black listed due to spam issues. I know that the headers need to be set to avoid being detected as spam. Any advice is appreciated. Thanks Angelo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Sending out mass emails
[snip] We would like to send out mass emails for some of our clients [/snip] Have you searched the list archives for the answers? These points have been covered numerous times. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Warning: libxml2 2.7.1
Hi, I've not 100% confirmed this as a problem yet but I'm getting some fairly serious problems when parsing xml documents with this version of libxml2. I've reported it to the libxml guys, but if you are interested my test code is here: https://qa.mandriva.com/show_bug.cgi?id=43486 I'm not totally sure yet on this one, but as it can be a little hard to spot the problem, I thought I'd post a warning. Could end up just being a Mandriva problem (our libxml2 is vanilla but PHP is patched), but I figured I'd post a heads up all the same. PHP 5.2.6 + patches (mostly upstream) FWIW. Oh and this is a x86_64 machine but I think it was also confirmed on a i586 by a colleague. FWIW, this is only on the development version of Mandriva (cooker) so shouldn't affect any real sites etc, but as others may be rolling their own libxml2 packages for live hosting, I thought it's worth noting on this list. Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited [http://www.tribalogic.net/] Open Source: Mandriva Linux Contributor [http://www.mandriva.com/] PulseAudio Hacker [http://www.pulseaudio.org/] Trac Hacker [http://trac.edgewall.org/] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Development Environment
Dear general list Members, I did fly three month ago from germany to california as a software engineer for the development of international dotcoms. I am specialized in the development of content management, media asset management and shop system solutions by use of PHP5. I had a couple of business contacts here, but it seems that the ameri- can economy is at the moment not really open enough to found new or at least provide financial support for new businesses. A couple of weeks ago my suitcase got stolen, so I now only run around with my laptop computer and my content management system I developed thruout the past five years. As I am not really getting the help I would need from the environment I am at, and I am not really sure where in the US to go to, to start out a proper living somewhere, I would like to ask you members out here of there are projects I could take part in or positions where somebody would like to hire me. Since conversations with one of the best three seo's in germany and an old IT guru in Frankfurt/Main I might be one of the best PHP5 develop- ers and seos on the market at the moment, based on values like usability concepts, inventiveness and search engine marketing capabilities. So who ever wants to have me, is going to have a nice golden pott around. I would really be happy if I would find a chance to dress myself nicely again or even to find a new home :)) Please help if you can. Sincerily, Sascha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sending out mass emails
!-- SNIP -- Also what is the best way about going around being black listed due to spam issues. I know that the headers need to be set to avoid being detected as spam. !-- SNIP -- Check the list archives for these answers. Someone asked about this within the last 14 days even. As for the spamming, you spam me and I send the spam to the national DBs (ftc.gov) and other spam reception/cleaning points. Either way, you spam people and the users who report will report you. Those who don't want it will report it as spam, and others will set up mail filters to just auto-delete at the mail server so they never see it. Wolf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Sending out mass emails
Pear has exactly what you need. class Mail_Queue Angelo Zanetti wrote: Hi all, We would like to send out mass emails for some of our clients, these are HTML email and text alternative for the email clients that cant read those HTML emails. We have developed some scripts to send the emails using phpmailer. Now we anticipate sending emails in batches but not sure how many at once. Also what is the best way about going around being black listed due to spam issues. I know that the headers need to be set to avoid being detected as spam. Any advice is appreciated. Thanks Angelo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sending out mass emails
In my opinion, this is what MTAs are designed for... Personally I throw every email I need to send at the MTA (postfix is the best!) and then let it handle processing the queue. If it goes too slow or too fast that's when you can alter the configuration (Side note: I'm pretty sure phpmailer would have some sort of delay built in, it seems to be quite feature-rich) or you can always build in your own manual loop, use sleep() or just launch the script and only run $x number of emails each time... On Thu, Sep 4, 2008 at 6:47 AM, Angelo Zanetti [EMAIL PROTECTED] wrote: Hi all, We would like to send out mass emails for some of our clients, these are HTML email and text alternative for the email clients that cant read those HTML emails. We have developed some scripts to send the emails using phpmailer. Now we anticipate sending emails in batches but not sure how many at once. Also what is the best way about going around being black listed due to spam issues. I know that the headers need to be set to avoid being detected as spam. Any advice is appreciated. Thanks Angelo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: Re: [PHP] CMS-Blog system
-Original Message- From: Martin Zvarík [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2008 5:05 AM To: php-general@lists.php.net Subject: Re: Re: [PHP] CMS-Blog system Thank you for all the comments. Thanks for the WP tip: I don't know much about wordpress (it looks good), but I have tryed enough of open-source CMS to say that they are based on messy solutions (one for all = joomla) + it won't be free blog system, so I don't think using this free system would be fair. So, I will stick with separate databases for each user + central databases used for searches etc. I am pretty sure I am up for this wheel reinventing ;-) The only thing I am not strong in is the MySQL, but with you guys there is nothing impossible! Seriously? Well, let us know how it goes in a couple years, after all of your hair has fallen out and you've chewed your fingernails down to the wick. Also, not all open source CMS solutions are messy. Have you checked out Drupal? There's a billion others, but I've seen Drupal used in so many commercial applications that it boggles the mind. Also--might consider joining a MySQL list if you're going to have problems in that area. In a nod to the movie 300... Madness? THIS... IS... PHP-GENERAL! Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Google Chrome [0T]
-Original Message- From: Andrew Ballard [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 03, 2008 2:53 PM To: PHP General list Subject: Re: [PHP] Google Chrome On Wed, Sep 3, 2008 at 1:33 PM, Wolf [EMAIL PROTECTED] wrote: Since gmail won't take exe files... http://lonewolf.homelinux.net/ChromeSetup.exe Andrew Ballard wrote: I tried to grab it, but it seems that my employer is protecting me from it. Interesting. Andrew That wouldn't work here. I could grab the ChromeSetup.exe, but when I ran it I kept getting an error message: Download error. The downloaded file failed verification. Error code = 0x80040508 It seems that ChromeSetup.exe is a downloader that tries to pull the actual installer named chrome_installer.exe from another hidden URL, and it's that other site that is blocked here. At any rate, I found it the installer somewhere else. On another (somewhat unrelated) note, Chrome--and apparently WebKit as a whole (Safari, etc.)--does not support the creation of XML DOM elements using Javascript. I realize it has little or nothing to do with PHP, but I thought it was worth bringing up. I'm working on a Google Maps mash-up right now, and I figured I'd test it out in Chrome after I downloaded the browser here at work. It breaks on document.implementation and (of course) the ActiveX method. Todd Boyd Web Programmer
[PHP] Google Auth Scripts
Hi, I am looking for a script that can authenticate a user against the gmail database - except what I need back is the name of the person thats doing it automagically, as well as if they have an avatar set etc. Does anyone know of any scripts that do this? I have done some googling for this and only really come up with scripts that import your contacts - which is great - but not really what I need. Thanks in advance, Ian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Google Auth Scripts
-Original Message- From: Ian [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2008 10:10 AM To: php-general@lists.php.net Subject: [PHP] Google Auth Scripts Hi, I am looking for a script that can authenticate a user against the gmail database - except what I need back is the name of the person thats doing it automagically, as well as if they have an avatar set etc. Does anyone know of any scripts that do this? I have done some googling for this and only really come up with scripts that import your contacts - which is great - but not really what I need. None of those scripts can be leveraged, then? I'm unsure about having an avatar set, but if there's a script that can pull someone's contacts, I think the authentication half of your problem is already taken care of. Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Google Auth Scripts
On Thu, Sep 4, 2008 at 11:09 AM, Ian [EMAIL PROTECTED] wrote: Hi, I am looking for a script that can authenticate a user against the gmail database - except what I need back is the name of the person thats doing it automagically, as well as if they have an avatar set etc. Does anyone know of any scripts that do this? I have done some googling for this and only really come up with scripts that import your contacts - which is great - but not really what I need. Thanks in advance, Ian Maybe the code for GMail-Lite/libgmailer would help you out? http://gmail-lite.sourceforge.net/wordpress/index.php/about/libgmailer/ http://gmail-lite.sourceforge.net/wordpress/index.php/about/gmail-lite/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sending out mass emails
mike wrote: In my opinion, this is what MTAs are designed for... Personally I throw every email I need to send at the MTA (postfix is the best!) and then let it handle processing the queue. If it goes too slow or too fast that's when you can alter the configuration Agree 100%. Postfix (or any other MTA) is much better at this. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Warning: libxml2 2.7.1
Colin Guthrie wrote: Hi, I've not 100% confirmed this as a problem yet but I'm getting some fairly serious problems when parsing xml documents with this version of libxml2. I've reported it to the libxml guys, but if you are interested my test code is here: https://qa.mandriva.com/show_bug.cgi?id=43486 I'm not totally sure yet on this one, but as it can be a little hard to spot the problem, I thought I'd post a warning. Could end up just being a Mandriva problem (our libxml2 is vanilla but PHP is patched), but I figured I'd post a heads up all the same. PHP 5.2.6 + patches (mostly upstream) FWIW. Oh and this is a x86_64 machine but I think it was also confirmed on a i586 by a colleague. FWIW, this is only on the development version of Mandriva (cooker) so shouldn't affect any real sites etc, but as others may be rolling their own libxml2 packages for live hosting, I thought it's worth noting on this list. For reference: http://bugs.php.net/bug.php?id=45996 Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited [http://www.tribalogic.net/] Open Source: Mandriva Linux Contributor [http://www.mandriva.com/] PulseAudio Hacker [http://www.pulseaudio.org/] Trac Hacker [http://trac.edgewall.org/] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Google Chrome
Richard Heyes wrote: Hi, Is it just me, or is everyones disk thrshing more since installing (if you have) Chrome? Oh, and to keep it in-line with list, isn't PHP great? :-) I uninstalled it precisely beacause of this behaviour. The disk was running crazy every time chrome was started. And I don't know how to do lsof | grep chrome on Windows to see what's going on. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Google Chrome
On Thu, Sep 4, 2008 at 1:55 PM, Ovidiu Rosoiu [EMAIL PROTECTED]wrote: Richard Heyes wrote: Hi, Is it just me, or is everyones disk thrshing more since installing (if you have) Chrome? Oh, and to keep it in-line with list, isn't PHP great? :-) I uninstalled it precisely beacause of this behaviour. The disk was running crazy every time chrome was started. And I don't know how to do lsof | grep chrome on Windows to see what's going on. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Strange, I am not seeing that behavior at all. I am currently running an older Dell machine with 1.5Gb ram and have Firefox 3 (5 tabs open including gmail and yahoo) IE8 ( 1 tab open) Chrome ( 1 tab open ) among a half dozen other apps open and I am not high in the disk or cpu usage... The biggest cpu hog for me right now is WMPlayer 11 -- Bastien Cat, the other other white meat
RE: [PHP] Google Chrome
-Original Message- From: Ovidiu Rosoiu [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2008 12:56 PM To: Richard Heyes Cc: php-general@lists.php.net Subject: Re: [PHP] Google Chrome Richard Heyes wrote: Hi, Is it just me, or is everyones disk thrshing more since installing (if you have) Chrome? Oh, and to keep it in-line with list, isn't PHP great? :-) I uninstalled it precisely beacause of this behaviour. The disk was running crazy every time chrome was started. And I don't know how to do lsof | grep chrome on Windows to see what's going on. You can at least track memory + cpu usage through the Task Manager (Ctrl-Alt-Del + T on most distros). In the Task Manager, I also noticed that GoogleUpdate.exe is running even when Chrome.exe is not. This made me a bit curious, so I went into msconfig (the Microsoft GUI utility for modifying startup programs, services, and system INI files) and saw that GoogleUpdate.exe had been added to the list of programs to run on Windows startup. I hate, hate, HATE it when programs install resident agents that eat my memory and perform background network activity. Rrgh! Points taken away from Google for this app's EULA and its methods. Slick otherwise, though (aside from the lack of XMLDOM instantiation support for Javascript)... Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Google Chrome
There's an option for pre-buffering things, I believe. It may be doing that. Or it may be just indexing your whole HD and sending it's contents back to Google. :) -TG - Original Message - From: Ovidiu Rosoiu [EMAIL PROTECTED] To: Richard Heyes [EMAIL PROTECTED] Cc: php-general@lists.php.net Date: Thu, 04 Sep 2008 20:55:33 +0300 Subject: Re: [PHP] Google Chrome Richard Heyes wrote: Hi, Is it just me, or is everyones disk thrshing more since installing (if you have) Chrome? Oh, and to keep it in-line with list, isn't PHP great? :-) I uninstalled it precisely beacause of this behaviour. The disk was running crazy every time chrome was started. And I don't know how to do lsof | grep chrome on Windows to see what's going on. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Google Chrome
Wow, didn't notice the GoogleUpdate.exe, thanks for the heads up on that. Agreed about programs adding items in our startup. On Thu, Sep 4, 2008 at 2:23 PM, Boyd, Todd M. [EMAIL PROTECTED] wrote: -Original Message- From: Ovidiu Rosoiu [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2008 12:56 PM To: Richard Heyes Cc: php-general@lists.php.net Subject: Re: [PHP] Google Chrome Richard Heyes wrote: Hi, Is it just me, or is everyones disk thrshing more since installing (if you have) Chrome? Oh, and to keep it in-line with list, isn't PHP great? :-) I uninstalled it precisely beacause of this behaviour. The disk was running crazy every time chrome was started. And I don't know how to do lsof | grep chrome on Windows to see what's going on. You can at least track memory + cpu usage through the Task Manager (Ctrl-Alt-Del + T on most distros). In the Task Manager, I also noticed that GoogleUpdate.exe is running even when Chrome.exe is not. This made me a bit curious, so I went into msconfig (the Microsoft GUI utility for modifying startup programs, services, and system INI files) and saw that GoogleUpdate.exe had been added to the list of programs to run on Windows startup. I hate, hate, HATE it when programs install resident agents that eat my memory and perform background network activity. Rrgh! Points taken away from Google for this app's EULA and its methods. Slick otherwise, though (aside from the lack of XMLDOM instantiation support for Javascript)... Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Google Chrome
!-- SNIP -- You can at least track memory + cpu usage through the Task Manager (Ctrl-Alt-Del + T on most distros). In the Task Manager, I also noticed that GoogleUpdate.exe is running even when Chrome.exe is not. This made me a bit curious, so I went into msconfig (the Microsoft GUI utility for modifying startup programs, services, and system INI files) and saw that GoogleUpdate.exe had been added to the list of programs to run on Windows startup. I hate, hate, HATE it when programs install resident agents that eat my memory and perform background network activity. Rrgh! Points taken away from Google for this app's EULA and its methods. Slick otherwise, though (aside from the lack of XMLDOM instantiation support for Javascript)... startup monitor - sure it runs at startup, but that little bugger keeps an eye on my startup and asks me if I want to allow my startup to be modified. :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] unset($_GET['i'])
Hi given page1 has a list of goods and sends $i as a variable into a link to page2, ie, a href=page2.php?i=3send/a Page2 adds the items recieved in an array. In page2 how can I unset the $_GET['i'] so that if I press F5(refresh) it doesn't add the same item to the array ? I tried unset($_GET['i']) but no success. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] unset($_GET['i'])
Hi given page1 has a list of goods and sends $i as a variable into a link to page2, ie, a href=page2.php?i=3send/a Page2 adds the items recieved in an array. In page2 how can I unset the $_GET['i'] so that if I press F5(refresh) it doesn't add the same item to the array ? I tried unset($_GET['i']) but no success. Thanks How about just adding a simple counter on your page. if ($count == 0) { Run through your script At the end update the variable: $count == 1; } else { Don't run throught script because the value has already been added }
Re: [PHP] Google Chrome
Shawn McKenzie wrote: Will somebody volunteer to test on Wine or Mono? -Shawn already done by this guy http://www.myscienceisbetter.info/2008/09/install-google-chrome-on-linux-using-wine.html eugene -- - Eugene Mah, M.Sc., DABR [EMAIL PROTECTED] Medical Physicist/Misplaced Canuck[EMAIL PROTECTED] Department of Radiology [EMAIL PROTECTED] Medical University of South Carolina For I am a Bear of Very Little Charleston, South Carolina Brain, and long words Bother http://www.netcom.com/~eugenem/me. Winnie the Pooh http://radinfo.musc.edu/~eugenem/blog/ PGP KeyID = 0x1F9779FD, 0x319393F4 PGP keys available on request ICQ 3113529 O- - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] unset($_GET['i'])
Dan Shirah a écrit : How about just adding a simple counter on your page. That's what I do but that counter resets when you press F5 and is not functionnal. Why $_GET['i'] doesn't unsets ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Google Chrome
-Original Message- From: Wolf [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2008 1:34 PM To: Boyd, Todd M. Cc: php-general@lists.php.net Subject: RE: [PHP] Google Chrome !-- SNIP -- You can at least track memory + cpu usage through the Task Manager (Ctrl-Alt-Del + T on most distros). In the Task Manager, I also noticed that GoogleUpdate.exe is running even when Chrome.exe is not. This made me a bit curious, so I went into msconfig (the Microsoft GUI utility for modifying startup programs, services, and system INI files) and saw that GoogleUpdate.exe had been added to the list of programs to run on Windows startup. I hate, hate, HATE it when programs install resident agents that eat my memory and perform background network activity. Rrgh! Points taken away from Google for this app's EULA and its methods. Slick otherwise, though (aside from the lack of XMLDOM instantiation support for Javascript)... startup monitor - sure it runs at startup, but that little bugger keeps an eye on my startup and asks me if I want to allow my startup to be modified. Yeah, I used to use a program that had similar functionality. Haven't really bothered putting much of my familiar software on my work PC, but maybe I should after this... it has been bogging down a bit lately, after all. Todd Boyd Web Programmer
Re: [PHP] unset($_GET['i'])
Bill [EMAIL PROTECTED] wrote: Dan Shirah a écrit : How about just adding a simple counter on your page. That's what I do but that counter resets when you press F5 and is not functionnal. Why $_GET['i'] doesn't unsets ? Because you get a new i from the URL, hence the GET What you can do is set a session variable when you GET the first i, then just check and if the session variable is present, you don't process the next time you GET i. Wolf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] unset($_GET['i'])
-Original Message- From: Bill [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2008 3:23 PM To: php-general@lists.php.net Subject: Re: [PHP] unset($_GET['i']) Dan Shirah a écrit : How about just adding a simple counter on your page. That's what I do but that counter resets when you press F5 and is not functionnal. Why $_GET['i'] doesn't unsets ? Your page URL has ?i=asdf in it. As such, $_GET['i'] is being set every time you refresh that particular URL. Unsetting $_GET['i'] will only erase the variable for that instance of that PHP script. As soon as you refresh, you are calling a new instance of that PHP script and assigning $_GET['i'] the value asdf (or whatever). If clearing that value on refresh is truly important to you, then don't use GET. Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] unset($_GET['i'])
The $_GET array comes from the URL which is resent every time someone hits F5. unset works on the server, not on the browser. You could capture it, add it to the session and then redirect without it in the URL. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Bill wrote: Dan Shirah a écrit : How about just adding a simple counter on your page. That's what I do but that counter resets when you press F5 and is not functionnal. Why $_GET['i'] doesn't unsets ? -- Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Google Chrome
Yippie, Chrome already exploited for DoS attacks? http://blogs.zdnet.com/security/?p=1847tag=nl.e539
Re: [PHP] unset($_GET['i'])
Dan Shirah a écrit : How about just adding a simple counter on your page. That's what I do but that counter resets when you press F5 and is not functionnal. Why $_GET['i'] doesn't unsets ? Are you saving the array to a database once it is created? If not, wouldn't the array be recreated once someone refreshes the page as well?
Re: [PHP] Google Chrome
On Thu, Sep 4, 2008 at 4:31 PM, Dan Shirah [EMAIL PROTECTED] wrote: Yippie, Chrome already exploited for DoS attacks? http://blogs.zdnet.com/security/?p=1847tag=nl.e539 Its not a DoS, its just a browser crash -- Bastien Cat, the other other white meat
Re: [PHP] Google Chrome
Bastien Koert schreef: On Thu, Sep 4, 2008 at 4:31 PM, Dan Shirah [EMAIL PROTECTED] wrote: Yippie, Chrome already exploited for DoS attacks? http://blogs.zdnet.com/security/?p=1847tag=nl.e539 Its not a DoS, its just a browser crash so forcing a browser to crash is not 'Denial of Service'? I think your confused with DDoS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Google Chrome
Jochem Maas wrote: Bastien Koert schreef: On Thu, Sep 4, 2008 at 4:31 PM, Dan Shirah [EMAIL PROTECTED] wrote: Yippie, Chrome already exploited for DoS attacks? http://blogs.zdnet.com/security/?p=1847tag=nl.e539 Its not a DoS, its just a browser crash so forcing a browser to crash is not 'Denial of Service'? I think your confused with DDoS It depends on what site he planned to visit. Google - DoS Zombo.com - Not DoS. ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Summing array indexes.
Is there an easy way to loop thru the array below and add the incremented total price indexes so the order_total_price index contains the correct sum. Any help would be greatly appreciated. array(5) { [0] = array(15) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 10.00 [order_product_price_2] = string(5) 20.00 [order_total_price] = string(0) } [1] = array(19) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 25.00 [order_product_price_2] = string(5) 15.00 [order_total_price] = string(0) } Like this. array(5) { [0] = array(15) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 10.00 [order_product_price_2] = string(5) 20.00 [order_total_price] = string(0) 30.00 } [1] = array(19) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 25.00 [order_product_price_2] = string(5) 15.00 [order_total_price] = string(0) 40.00 } Tom Shaw [EMAIL PROTECTED]
Re: [PHP] Summing array indexes.
Not a direct answer to your question (don't worry, I hate it when people do this to me too), but one thought I had was to have all of the products ordered as their own array. [0] = array(15) { [order_date] = string(8) 09-01-08 [order_products] = array(2) { [0] = string(5) 10.00 [1] = string(5) 20.00 } [order_total_price] = string(0) } In this case, it would be trivial to write a foreach loop on the 'order_products' array to calculate the total. Otherwise, run a foreach over the array, looking for keys which begin with order_product_price_ and, when found, grab the price and add it to order_total_price. On Sep 4, 2008, at 6:02 PM, Tom Shaw wrote: --=_NextPart_000_004B_01C90EAF.FA964EB0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Is there an easy way to loop thru the array below and add the incremented total price indexes so the order_total_price index contains the correct sum. Any help would be greatly appreciated. array(5) { [0] = array(15) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 10.00 [order_product_price_2] = string(5) 20.00 [order_total_price] = string(0) } [1] = array(19) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 25.00 [order_product_price_2] = string(5) 15.00 [order_total_price] = string(0) } Like this. array(5) { [0] = array(15) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 10.00 [order_product_price_2] = string(5) 20.00 [order_total_price] = string(0) 30.00 } [1] = array(19) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 25.00 [order_product_price_2] = string(5) 15.00 [order_total_price] = string(0) 40.00 } Tom Shaw [EMAIL PROTECTED] --=_NextPart_000_004B_01C90EAF.FA964EB0-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Summing array indexes.
This should help: http://us.php.net/array_walk Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Tom Shaw wrote: Is there an easy way to loop thru the array below and add the incremented total price indexes so the order_total_price index contains the correct sum. Any help would be greatly appreciated. array(5) { [0] = array(15) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 10.00 [order_product_price_2] = string(5) 20.00 [order_total_price] = string(0) } [1] = array(19) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 25.00 [order_product_price_2] = string(5) 15.00 [order_total_price] = string(0) } Like this. array(5) { [0] = array(15) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 10.00 [order_product_price_2] = string(5) 20.00 [order_total_price] = string(0) 30.00 } [1] = array(19) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 25.00 [order_product_price_2] = string(5) 15.00 [order_total_price] = string(0) 40.00 } Tom Shaw [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Google Chrome
On Thu, Sep 4, 2008 at 5:22 PM, Jochem Maas [EMAIL PROTECTED] wrote: Bastien Koert schreef: On Thu, Sep 4, 2008 at 4:31 PM, Dan Shirah [EMAIL PROTECTED] wrote: Yippie, Chrome already exploited for DoS attacks? http://blogs.zdnet.com/security/?p=1847tag=nl.e539 Its not a DoS, its just a browser crash so forcing a browser to crash is not 'Denial of Service'? I think your confused with DDoS DDoS is a Distributed Denial of Service attack where a server is attacked via multiple computers (like a bot net) at the same time AFAIK -- Bastien Cat, the other other white meat
Re: [PHP] unset($_GET['i'])
Why $_GET['i'] doesn't unsets ? Your page URL has ?i=asdf in it. As such, $_GET['i'] is being set every time you refresh that particular URL. Unsetting $_GET['i'] will only erase the variable for that instance of that PHP script. As soon as you refresh, you are calling a new instance of that PHP script and assigning $_GET['i'] the value asdf (or whatever). Not using GET means rewriting all the pages. Ok then I'll use a session variable. Thanks you all. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Summing array indexes.
On Thu, Sep 4, 2008 at 11:02 PM, Tom Shaw [EMAIL PROTECTED] wrote: Is there an easy way to loop thru the array below and add the incremented total price indexes so the order_total_price index contains the correct sum. Any help would be greatly appreciated. array(5) { [0] = array(15) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 10.00 [order_product_price_2] = string(5) 20.00 [order_total_price] = string(0) } [1] = array(19) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 25.00 [order_product_price_2] = string(5) 15.00 [order_total_price] = string(0) } Like this. array(5) { [0] = array(15) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 10.00 [order_product_price_2] = string(5) 20.00 [order_total_price] = string(0) 30.00 } [1] = array(19) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 25.00 [order_product_price_2] = string(5) 15.00 [order_total_price] = string(0) 40.00 } Tom Shaw [EMAIL PROTECTED] foreach( $arr_top as $arr_top_elem ) { $total = 0; foreach( $arr_top_elem as $key = $elem ) { if ( strpos( 'order_product_price_' ) === 0 ) { $total += $elem; } } $arr_top_elem['order_total_price'] = $total; } This should do da trick... -- Thanks, Diogo Neves Web Developer @ SAPO.pt by PrimeIT.pt
RE: [PHP] Summing array indexes.
Thanks for every ones help. I just used a bunch of control structures and issest's to add it up. Not pretty but works. if (isset($data['order_product_amount_0'])) { $data['order_product_total'] = number_format($data['order_product_amount_0'], 2, '.', ''); } if (isset($data['order_product_amount_1'])) { $data['order_product_total'] = number_format($data['order_product_total'] + $data['order_product_amount_1'], 2, '.', ''); } -Original Message- From: Eric Gorr [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2008 5:17 PM To: PHP General; Tom Shaw Subject: Re: [PHP] Summing array indexes. Not a direct answer to your question (don't worry, I hate it when people do this to me too), but one thought I had was to have all of the products ordered as their own array. [0] = array(15) { [order_date] = string(8) 09-01-08 [order_products] = array(2) { [0] = string(5) 10.00 [1] = string(5) 20.00 } [order_total_price] = string(0) } In this case, it would be trivial to write a foreach loop on the 'order_products' array to calculate the total. Otherwise, run a foreach over the array, looking for keys which begin with order_product_price_ and, when found, grab the price and add it to order_total_price. On Sep 4, 2008, at 6:02 PM, Tom Shaw wrote: --=_NextPart_000_004B_01C90EAF.FA964EB0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Is there an easy way to loop thru the array below and add the incremented total price indexes so the order_total_price index contains the correct sum. Any help would be greatly appreciated. array(5) { [0] = array(15) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 10.00 [order_product_price_2] = string(5) 20.00 [order_total_price] = string(0) } [1] = array(19) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 25.00 [order_product_price_2] = string(5) 15.00 [order_total_price] = string(0) } Like this. array(5) { [0] = array(15) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 10.00 [order_product_price_2] = string(5) 20.00 [order_total_price] = string(0) 30.00 } [1] = array(19) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 25.00 [order_product_price_2] = string(5) 15.00 [order_total_price] = string(0) 40.00 } Tom Shaw [EMAIL PROTECTED] --=_NextPart_000_004B_01C90EAF.FA964EB0-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Summing array indexes.
Tom Shaw schreef: Thanks for every ones help. I just used a bunch of control structures and issest's to add it up. Not pretty but works. if (isset($data['order_product_amount_0'])) { $data['order_product_total'] = number_format($data['order_product_amount_0'], 2, '.', ''); } if (isset($data['order_product_amount_1'])) { $data['order_product_total'] = number_format($data['order_product_total'] + $data['order_product_amount_1'], 2, '.', ''); } foreach ($orders as $data) { $total = 0; foreach ($data as $key = $val) { if (strpos('order_product_amount', $key) === 0) $total += (float)$val; } $data['order_product_total'] = number_format($total, 2, '.', ''); } -Original Message- From: Eric Gorr [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2008 5:17 PM To: PHP General; Tom Shaw Subject: Re: [PHP] Summing array indexes. Not a direct answer to your question (don't worry, I hate it when people do this to me too), but one thought I had was to have all of the products ordered as their own array. [0] = array(15) { [order_date] = string(8) 09-01-08 [order_products] = array(2) { [0] = string(5) 10.00 [1] = string(5) 20.00 } [order_total_price] = string(0) } In this case, it would be trivial to write a foreach loop on the 'order_products' array to calculate the total. Otherwise, run a foreach over the array, looking for keys which begin with order_product_price_ and, when found, grab the price and add it to order_total_price. On Sep 4, 2008, at 6:02 PM, Tom Shaw wrote: --=_NextPart_000_004B_01C90EAF.FA964EB0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Is there an easy way to loop thru the array below and add the incremented total price indexes so the order_total_price index contains the correct sum. Any help would be greatly appreciated. array(5) { [0] = array(15) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 10.00 [order_product_price_2] = string(5) 20.00 [order_total_price] = string(0) } [1] = array(19) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 25.00 [order_product_price_2] = string(5) 15.00 [order_total_price] = string(0) } Like this. array(5) { [0] = array(15) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 10.00 [order_product_price_2] = string(5) 20.00 [order_total_price] = string(0) 30.00 } [1] = array(19) { [order_date] = string(8) 09-01-08 [order_product_price_1] = string(5) 25.00 [order_product_price_2] = string(5) 15.00 [order_total_price] = string(0) 40.00 } Tom Shaw [EMAIL PROTECTED] --=_NextPart_000_004B_01C90EAF.FA964EB0-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP: Mulitiple Arrary Sort
Diogo Neves schreef: On Wed, Sep 3, 2008 at 12:35 AM, Vernon [EMAIL PROTECTED] wrote: I've gotten the one array down and I've figured out how to sort that array, however, I need to sort the array by the modified date of the file. Here's what I got so far: ?php // Open current directory if($handle = opendir($dir)){ // Loop through all files while(false !== ($file = readdir($handle))){ // Ignore hidden files if(!preg_match(/^\./, $file)){ // Put dirs in $dirs[] and files in $files[] if(is_dir($file)){ $dirs[] = $file; }else{ $files[] = $file; } } } // Close directory closedir($handle); // if $files[] exists, sort it and print all elements in it. if(is_array($files)){ //HERE IS MY CURRENT SORT WHICH I KNOW I NEED TO CHANGE BUT AM UNSURE HOW sort($files); foreach($files as $file){ $completeFileName = $dir . $file; //I WANT TO SORT BY THIS echo date(m-d-Y, filemtime($completeFileName)) . br; } } } ? Any ideas on how to fix this? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Hi, ?php $dir= '/tmp'; $files= scandir( $dir); $files_new= array( ); foreach( $files as $file ) { if( strrpos( $file, 'sess_' ) !== false ) { $files_new[filemtime( $dir . '/' . $file )] = $file; this totally breaks because file modification time is only accurate to a second (many files can be modified in that time) ... appending the file name to the key will fix that: $files_new[filemtime( $dir . '/' . $file ).$file] = $file; } } ksort( $files_new ); var_dump( $filesnew ); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Google Chrome
Bastien Koert schreef: On Thu, Sep 4, 2008 at 5:22 PM, Jochem Maas [EMAIL PROTECTED] wrote: Bastien Koert schreef: On Thu, Sep 4, 2008 at 4:31 PM, Dan Shirah [EMAIL PROTECTED] wrote: Yippie, Chrome already exploited for DoS attacks? http://blogs.zdnet.com/security/?p=1847tag=nl.e539 Its not a DoS, its just a browser crash so forcing a browser to crash is not 'Denial of Service'? I think your confused with DDoS DDoS is a Distributed Denial of Service attack where a server is attacked via multiple computers (like a bot net) at the same time AFAIK no shit. so if you drop the 'Distributed' you get 'Denial of Service'. DoS is rather general, code that keeps crashing your browser on purpose is denying you the service it provides (viewing webpages). rather like someone running off with your girlfriend ... you get denied service. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Google Chrome
On Fri, 2008-09-05 at 03:15 +0200, Jochem Maas wrote: Bastien Koert schreef: On Thu, Sep 4, 2008 at 5:22 PM, Jochem Maas [EMAIL PROTECTED] wrote: Bastien Koert schreef: On Thu, Sep 4, 2008 at 4:31 PM, Dan Shirah [EMAIL PROTECTED] wrote: Yippie, Chrome already exploited for DoS attacks? http://blogs.zdnet.com/security/?p=1847tag=nl.e539 Its not a DoS, its just a browser crash so forcing a browser to crash is not 'Denial of Service'? I think your confused with DDoS DDoS is a Distributed Denial of Service attack where a server is attacked via multiple computers (like a bot net) at the same time AFAIK no shit. so if you drop the 'Distributed' you get 'Denial of Service'. DoS is rather general, code that keeps crashing your browser on purpose is denying you the service it provides (viewing webpages). rather like someone running off with your girlfriend ... you get denied service. I thought Chrome was set up so if your current page caused a crash other loaded pages didn't crash also. In which case DoS doesn't apply if only the requested page crashes since you're still getting service. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] fsockopen in phpmailer and tls
I am having a ball of a time trying to figure this one out... If anyone has dealt with this before I'd love to get some morsels of wisdom from you... I am trying to connect to a postfix server I have set up remotely using smtp auth with tls. The postfix appears to be configured correctly at this point. I can telnet to port 25 and it will list tls as an option as the howto describes it should. I try to connect from php and get: PHP Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:func(143):reason(267) in /opt/scriptsMain/include/class.smtp.php on line 122 I've googled this and someone seems very knowledgeable about it yet describes the solution in a way that a mere mortal like myself can't follow. He states in part: Look at the error message: error:1408F10B:SSL routines:func(143):reason(267) Take the reason code (267) and determine the error: grep 267 /usr/include/openssl/ssl.h /usr/include/openssl/ssl.h:#define SSL_R_WRONG_VERSION_NUMBER 267 Now google for SSL_R_WRONG_VERSION_NUMBER... ...So in your server method configuration you must put: SSL_CTX *ctx = SSL_CTX_new (SSLv23_server_method()) to correctely analyse the first client_hello message instead of SSL_CTX *ctx = SSL_CTX_new (SSLv3_server_method()) which i suppose you did So is he talking about modifying the source code in postfix and rebuilding it? Have any of you guys dealt with this?... By the way, when I started out I had a typo in the postfix config for the path to the certificates for ssl and was getting the same error message. It wasn't until I saw in the postfix mail log that it couldn't read the cert. So that was fixed but I continue to get the same message which I'm now thinking might be a red herring. -- Larry Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] fsockopen in phpmailer and tls
On Thu, 2008-09-04 at 23:20 -0400, Larry Brown wrote: I am having a ball of a time trying to figure this one out... If anyone has dealt with this before I'd love to get some morsels of wisdom from you... I am trying to connect to a postfix server I have set up remotely using smtp auth with tls. The postfix appears to be configured correctly at this point. I can telnet to port 25 and it will list tls as an option as the howto describes it should. I try to connect from php and get: PHP Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:func(143):reason(267) in /opt/scriptsMain/include/class.smtp.php on line 122 I've googled this and someone seems very knowledgeable about it yet describes the solution in a way that a mere mortal like myself can't follow. He states in part: Look at the error message: error:1408F10B:SSL routines:func(143):reason(267) Take the reason code (267) and determine the error: grep 267 /usr/include/openssl/ssl.h /usr/include/openssl/ssl.h:#define SSL_R_WRONG_VERSION_NUMBER 267 Now google for SSL_R_WRONG_VERSION_NUMBER... ...So in your server method configuration you must put: SSL_CTX *ctx = SSL_CTX_new (SSLv23_server_method()) to correctely analyse the first client_hello message instead of SSL_CTX *ctx = SSL_CTX_new (SSLv3_server_method()) which i suppose you did So is he talking about modifying the source code in postfix and rebuilding it? Have any of you guys dealt with this?... By the way, when I started out I had a typo in the postfix config for the path to the certificates for ssl and was getting the same error message. It wasn't until I saw in the postfix mail log that it couldn't read the cert. So that was fixed but I continue to get the same message which I'm now thinking might be a red herring. Possibly a complete waste of your time... but maybe you need to configure this setting: smtp_tls_mandatory_protocols http://www.postfix.org/postconf.5.html Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP: Mulitiple Arrary Sort
Jochem Maas wrote: Diogo Neves schreef: On Wed, Sep 3, 2008 at 12:35 AM, Vernon [EMAIL PROTECTED] wrote: I've gotten the one array down and I've figured out how to sort that array, however, I need to sort the array by the modified date of the file. Here's what I got so far: ?php // Open current directory if($handle = opendir($dir)){ // Loop through all files while(false !== ($file = readdir($handle))){ // Ignore hidden files if(!preg_match(/^\./, $file)){ // Put dirs in $dirs[] and files in $files[] if(is_dir($file)){ $dirs[] = $file; }else{ $files[] = $file; } } } // Close directory closedir($handle); // if $files[] exists, sort it and print all elements in it. if(is_array($files)){ //HERE IS MY CURRENT SORT WHICH I KNOW I NEED TO CHANGE BUT AM UNSURE HOW sort($files); foreach($files as $file){ $completeFileName = $dir . $file; //I WANT TO SORT BY THIS echo date(m-d-Y, filemtime($completeFileName)) . br; } } } ? Any ideas on how to fix this? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Hi, ?php $dir= '/tmp'; $files= scandir( $dir); $files_new= array( ); foreach( $files as $file ) { if( strrpos( $file, 'sess_' ) !== false ) { $files_new[filemtime( $dir . '/' . $file )] = $file; this totally breaks because file modification time is only accurate to a second (many files can be modified in that time) ... appending the file name to the key will fix that: $files_new[filemtime( $dir . '/' . $file ).$file] = $file; or flip the association around, because files are uniq and that file can only have one modification time. } } ksort( $files_new ); var_dump( $filesnew ); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ANN: Chisimba-2.0.3 Released!
The next release of the Chisimba PHP5 framework is now available. Major enhancements included in this release are: - PDO and MDB2 support - Improved database performance - Bug fixes - Better code documentation - API integration for many more modules - Remote downloads of modules (apt like module installations) and, of course, new modules to add onto your installation! Please take a look, download it and give it a test drive! Chisimba, for those that don't know it already, is a PHP5 framework made in Africa, for Africa. It is a collaboration between around 16 African Universities, as well as around 35 active developers from around the continent. It can be downloaded from AVOIR at: http://trac.uwc.ac.za/trac/chisimba/downloader/download/release/5 and the docs can be found at: http://avoir.uwc.ac.za/ There are server setup instructions, as well as installation walkthroughs available linking from the main AVOIR site: For those interested in developing a module, or just getting some additional info please join our mailing list and ask some questions: http://mailman.uwc.ac.za/mailman/listinfo/nextgen-online --Paul -- . | Chisimba PHP5 Framework - http://avoir.uwc.ac.za | :: All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php