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, for

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

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

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: ?php while(date('Y') 2010) ; exit (' Happy New Year'); -- -- Paul http://www.paulscott.za.net http://twitter.com/paulscott56 http://avoir.uwc.ac.za All Email originating from UWC is covered by disclaimer

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

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 thoroughly

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 key

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

2009-07-05 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 one machine

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 ?php ? 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

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

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

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

[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

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

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 package for me please and don't screw it up -- Paul All Email originating from UWC is covered

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 outline

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

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

Re: [PHP] permission failure with fopen

2008-11-07 Thread Paul Scott
On Fri, 2008-11-07 at 14:27 +0200, Thodoris wrote: I'm testing on Windows XP SP2 with PHP 5.2.0 As far as I remember, you need to pass the b parameter to Windows as well on fopen(), so you would do an fopen(/path/to/file,wb); --Paul All Email originating from UWC is covered by disclaimer

RE: [PHP] web shot script

2008-10-23 Thread Paul Scott
On Thu, 2008-10-23 at 22:20 -0400, Joey wrote: Really I want to do this, not pay someone to do it via those services you linked to. So nobody has seen open source code for this? I run a free (freedom and beer) webservice to do this via the Chisimba framework (http://avoir.uwc.ac.za) The docs

Re: [PHP] PHP Dev Facts

2008-10-17 Thread Paul Scott
On Fri, 2008-10-17 at 00:14 +0100, Nathan Rixham wrote: Evening All, I'd be /really/ interested to know who uses what! *Procedural or OOP?* OOP *Dev OS* Ubuntu 8.04 *Dev PHP Version* PHP-5.2.3 *Live Server OS* Debian *Live Server PHP Version* PHP-5.2.3 *Which HTTP

[PHP] ANN: Chisimba-2.0.3 Released!

2008-09-04 Thread Paul Scott
The next release of the Chisimba PHP5 framework is now available. Major enhancements included in this release are: - PDO and MDB2 support - Improved database performance - Bug fixes - Better code documentation - API integration for many more modules - Remote downloads of modules (apt like

Re: [PHP] Re: very very small CMS

2008-07-19 Thread Paul Scott
On Sat, 2008-07-19 at 10:18 -0400, tedd wrote: At 12:48 PM +0200 7/19/08, Frank Arensmeier wrote: 19 jul 2008 kl. 05.05 skrev Robert Cummings: Here's a CMS I've been working on. http://www.webbytedd.com/a/easy-page-db The idea is to allow the user edit pages in situ. Tedd, Looks

[PHP] Re: SPAM SPAM Re: [PHP] Capture homepage screenshot

2008-06-13 Thread Paul Scott
On Fri, 2008-06-13 at 14:45 -0400, Daniel Brown wrote: There are several commercial options available, but I may put together a script this afternoon capable of generating thumbnails from websites. If I do, I'll keep you informed. In my project, we do this through a small Python

[PHP] Re: SPAM SPAM [PHP] Build and Deployment Process

2008-06-10 Thread Paul Scott
On Tue, 2008-06-10 at 14:56 -0700, VamVan wrote: What is the best method to build and deploy php scripts along the different environments? You can talk about rpm's and stuff In my project(s) I use Phing. http://phing.info It is even written in PHP, so keeping this thread on topic. --Paul --

Re: [PHP] the Y2K38 BUG

2008-05-07 Thread Paul Scott
On Wed, 2008-05-07 at 00:54 -0600, Nathan Nobbe wrote: looks like mine only goes to dec. 31, =/ *Gasp!* best you get cracking on finding an alternative solution! --Paul All Email originating from UWC is covered by disclaimer

Re: [PHP] AI file and mapping with PHP

2008-05-07 Thread Paul Scott
On Wed, 2008-05-07 at 12:17 +0200, Angelo Zanetti wrote: We have a project where by we have a map in ai format (vector format). What we want to do is to programmatically come up with a solution that say on the map there is a restaurant at a certain location, that we can zoom into the map on

Re: [PHP] strange behavior, when converting float to int

2008-05-06 Thread Paul Scott
On Tue, 2008-05-06 at 09:34 -0500, Philip Thompson wrote: I got the same results. I'm not exactly sure what's happening, but I'd be curious to see if there's anyone else who can shed some light. PHP Version 5.2.4. Is this not coming from the underlying C libs that directly use the FP on

Re: [PHP] the Y2K38 BUG

2008-05-06 Thread Paul Scott
On Wed, 2008-05-07 at 10:03 +0530, Chetan Rane wrote: Have guys heard of the the Y2K38 Bug more details are on this link Nope, but I can guess what its about. Can there be a possible solution. As the system which I am developing for my client uses Unix timestamp. There are probably

Re: [PHP] the Y2K38 BUG

2008-05-06 Thread Paul Scott
On Tue, 2008-05-06 at 23:50 -0600, Nathan Nobbe wrote: true-that ;) anyway, the DateTime class is implemented as a 64-bit unsigned (i think) value. so if you use it you should be good to go. php echo date_create('2040-10-24')-format('M-d-Y'); Oct-24-2040 a 64bit unsigned int is best,

RE: [PHP] Phpstop.com project - wanna be a writer?

2008-05-05 Thread Paul Scott
On Mon, 2008-05-05 at 15:12 +0200, Chris Haensel wrote: Maybe I can have you as a writer? ;o) And maybe 2 or 3 more of this list The big names, ya know *g* Oh well, my name is only 4 letters so I guess I am out? ;) --Paul All Email originating from UWC is covered by disclaimer

Re: [PHP] Web page excerpt editor

2008-05-04 Thread Paul Scott
On Sun, 2008-05-04 at 10:12 -0500, Mike Potter wrote: Does anyone have any experience with something else? Alternately, has anyone written something they'd be willing to share under GPL? FCKEditor, TinyMCE and a host of others. All JS based, so not really relevant on a PHP list though --Paul

Re: [PHP] php framework vs just php?

2008-04-22 Thread Paul Scott
On Tue, 2008-04-22 at 13:34 +0100, Richard Heyes wrote: Absolutely. Personally I use a lot of disparate libraries, a lot of them from PEAR. Doing this I've never found the need or the inclination to use a framework. But that is kind of a framework! You get two kinds of framework in PHP

[PHP] mime_content_type and FileInfo

2008-04-21 Thread Paul Scott
I am in a bit of a pickle, or is that PECL? I need to use either mime_content_type or FileInfo to get the mime type of a file that is dumped into the system via email. Now that is the easy part, where the hard part comes in is that a commercial host that I use will do neither reason being that

Re: [PHP] April Fools Easter Egg

2008-04-01 Thread Paul Scott
On Tue, 2008-04-01 at 10:28 -0400, tedd wrote: You got me. Wobbly PHP logo on mine (PHP-5.2.5 debian) --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

Re: [PHP] new lines in textareas?

2008-03-30 Thread Paul Scott
On Sun, 2008-03-30 at 12:29 -0400, tedd wrote: At 9:26 PM -0700 3/29/08, Mary Anderson wrote: Hi all, I have a php script which produces text which is to be displayed in a textarea. I have the wrap for the text area set to 'hard'. I need to have newlines inserted in the text.

Re: [PHP] How to install PHP 5.x on Windows Server 2000 with IIS 5 and MySQL 5.x

2008-03-27 Thread Paul Scott
On Thu, 2008-03-27 at 10:32 -0400, Wolf wrote: I'd suggest going with a real operating system (linux) which keeps patches updated quicker... As much of a Free Software advocate as I am, that is not the answer to the question. That being said, however, I would replace the IIS with Apache2 at

Re: [PHP] optimilize web page loading

2008-03-26 Thread Paul Scott
On Wed, 2008-03-26 at 09:25 +0100, Alain Roger wrote: i would like to know if there is a way to know how long does a web page need to be loaded into browser ? this is interesting fact for me, as i will optimilize my PHP code in order to reduce this time to minimum. Try using microtime()

Re: [PHP] GPS Locator

2008-03-04 Thread Paul Scott
On Tue, 2008-03-04 at 11:42 -0600, Richard Lynch wrote: Almost for sure, browser security will not let you do this in a web browser. You'll probably have to write a custom desktop C application, or get the user to install some kind of glue widget... PEAR|PECL *might* have some USB stuff

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Paul Scott
On Wed, 2008-02-27 at 19:50 +0800, skylark wrote: What design patterns do you usually use? I am not sure that you are understanding what a design pattern is. It is not a piece of software or a thing to use, but it is a set of repeatable components that you use in whatever app you are writing.

Re: [PHP] What design patterns do you usually use?

2008-02-27 Thread Paul Scott
On Wed, 2008-02-27 at 14:48 +0100, Jochem Maas wrote: Paul Scott schreef: there seems to be some misunderstanding ... a design pattern is not a component (or anything else of substance) but merely a conceptual strategy used to tackle a problem ... ever find yourself writing code that's

Re: [PHP] How do you send stylized email?

2008-02-27 Thread Paul Scott
On Wed, 2008-02-27 at 13:18 -0500, Andrew Ballard wrote: Seriously? All e-mail? Sorry - couldn't resist. That is one serious disclaimer. I especially like the last line. Holy crap! I had never actually looked at that stupid disclaimer before! It gets added on the way out of our network, so

Re: [PHP] How do you send stylized email?

2008-02-26 Thread Paul Scott
On Tue, 2008-02-26 at 11:44 -0500, Daniel Brown wrote: I wonder if I can just apt-get the wedding and have it all automated for me. ;-P If only! I remember the stress, and a good friend of mine is gettin' hitched on Sat - while I am in Uganda - go figure! Anyway, congrats, and enjoy the

Re: [PHP] How do you send stylized email?

2008-02-26 Thread Paul Scott
On Tue, 2008-02-26 at 11:27 -0500, Daniel Brown wrote: On Tue, Feb 26, 2008 at 10:57 AM, Robert Cummings [EMAIL PROTECTED] wrote: Marriage?? That's for backwards people stuck in ancient pointless traditions :) And moreso in today's culture... it's just a commercial suckfest when your

Re: [PHP] How do you send stylized email?

2008-02-26 Thread Paul Scott
On Tue, 2008-02-26 at 22:52 -0300, Manuel Lemos wrote: messages. I use this popular MIME message composing class. Try the test_simple_html_mail_message example script for instance. http://www.phpclasses.org/mimemessage Hehe, I was holding my breath for Manuel to come on to this thread!

Re: [PHP] PHP 24 hour processes?

2008-02-24 Thread Paul Scott
On Mon, 2008-02-25 at 07:39 +0100, Zoran Bogdanov wrote: How can you perform a timed event in PHP; for example: Count 24 hours and then delete all rows in a database... I thought that this question was answered in some detail before... Anyway, on *NIX based systems use cron.daily or on

Re: [PHP] temporary error

2008-02-21 Thread Paul Scott
On Thu, 2008-02-21 at 14:54 +0100, Mirco Soderi wrote: Consider the following code: $sqlQueryInserimentoDatiAllenamentoCalciPiazzati = INSERT INTO ... etc etc How long does it take you to write a single line of code with variable names like that? --Paul All Email originating from UWC is

Re: [PHP] Exception vs exception

2008-02-21 Thread Paul Scott
On Thu, 2008-02-21 at 21:01 -0800, Prabath Kumarasinghe wrote: In second approach for every query I have to write throw new MySQLException(My Message). It's very time consuming isn't it? In order to *be* lazy, you have to *think* lazy... Don't go and define every single query with an

Re: [PHP] Deleting all rows in a database every 24 hours?

2008-02-21 Thread Paul Scott
On Fri, 2008-02-22 at 07:28 +0100, Zoran Bogdanov wrote: The title says it all, how do I perform an action every 24 hours? $sql = TRUNCATE TABLE 'sometable'; $this-query($sql); on a cron.daily --Paul -- . | Chisimba PHP5 Framework

Re: [PHP] Sending SMS via PHP

2008-02-20 Thread Paul Scott
On Wed, 2008-02-20 at 21:01 -0800, Nick Stinemates wrote: Do you need to receive SMS? If you need to receive SMS, you will need to host your own GSM device or modem so that people can send you SMS. If not, you can just use internet SMS gateways like clickatell to do the work, and post

Re: [PHP] fail on preg_match_all

2008-02-20 Thread Paul Scott
On Wed, 2008-02-20 at 23:34 -0600, Hamilton Turner wrote: if i know the file handle is valid (i grabbed it using 'or die'), and ^ This is probably your problem, you are trying to match on a resource handle, not a string or something. Check out

RE: [PHP] What community software package gets your vote? PHPfox etc...

2008-02-19 Thread Paul Scott
On Tue, 2008-02-19 at 23:21 -0500, TS wrote: On Feb 19, 2008 8:41 PM, TS [EMAIL PROTECTED] wrote: Hello everyone. I'm not sure what the budget is but, obviously inexpensive would be nice. Someone turned me on to PHPfox. Yet I don't have any others to compare it to. If you all would be so

Re: [PHP] Template system in PHP

2008-02-14 Thread Paul Scott
On Thu, 2008-02-14 at 09:29 +0100, Zoltán Németh wrote: and by the way, symfony has YAML configuration files and a plugin for REST services. and Chisimba does YAML configs in the blog module, REST, SOAP and XML-RPC services as well as a whole whack of XML-ish things. --Paul --

Re: [PHP] Better DB Class MySQL

2008-02-14 Thread Paul Scott
On Thu, 2008-02-14 at 16:17 -0600, Richard Lynch wrote: And some have figured out that PDO does not quite live up to its promise (yet) and needs some more work... I am finding this out the hard way, but just with MySQL and PostgreSQL support (including MySQLi). Portable, kinda, stable, not

Re: [PHP] Session and Multi Server Architecture

2008-02-11 Thread Paul Scott
On Mon, 2008-02-11 at 23:03 +0530, chetan rane wrote: Can any one tell me what will be the best way to maintain session information on a Multi Server Architecture i.e a Web Cluster. Memcached session handler. Provides failover as well as speeding things up significantly. Either that or in a

Re: [PHP] Session and Multi Server Architecture

2008-02-11 Thread Paul Scott
On Mon, 2008-02-11 at 12:48 -0500, Nathan Nobbe wrote: http://us.php.net/manual/en/ref.memcache.php and http://www.danga.com/memcached/ --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm -- PHP General

Re: [PHP] Name of variable to string

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

Re: [PHP] Order directory output

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

Re: [PHP] Exception handling in PHP

2008-02-07 Thread Paul Scott
On Wed, 2008-02-06 at 23:37 -0800, Prabath Kumarasinghe wrote: Does that mean for every exception do we have to write our custom exception and describe it from our own message No, it means that when you want to throw a meaningful exception, you need to type in a message. I mentioned custom

Re: [PHP] Exception handling in PHP

2008-02-07 Thread Paul Scott
On Thu, 2008-02-07 at 00:20 -0800, Prabath Kumarasinghe wrote: Understood, Thanks Paul Pleasure, but please don't top post, it makes it really hard to follow a thread easily. Most people on this list take time out from their really busy day jobs to help out, and the more time that everyone

Re: [PHP] Re: Multiple MySQL INSERT into loop

2008-02-07 Thread Paul Scott
On Thu, 2008-02-07 at 10:55 +, Colin Guthrie wrote: Simplest way would be to define your data in an array instead: e.g. $data = array(1 = array('id' = x, 'entry' = y, 'name' = z), ...). And of course to tie it all into a transaction that can be rolled back in case of problems. --Paul

Re: [PHP] Directory

2008-02-07 Thread Paul Scott
On Thu, 2008-02-07 at 12:30 -0600, Steve Marquez wrote: Could someone please point me in the right direction? I am trying to have PHP find out if a directory has files in it and then if it does, display and include, if it does not, then not display the include. oooh, goodie! You get to play

Re: [PHP] killing a process through php webservice

2008-02-07 Thread Paul Scott
On Fri, 2008-02-08 at 09:56 +0500, Fahad javed wrote: I still think the problem is access rights. question is how to solve it. Any help will be greatly appreciated. Yes it is access rights. You will probably have to add PHP to the root or wheel group as a user or something insane like

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 should

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 idea

Re: [PHP] Exception handling in PHP

2008-02-06 Thread Paul Scott
On Wed, 2008-02-06 at 23:10 -0800, Prabath Kumarasinghe wrote: Is this following code work in PHP if mysql_connect fails. try{ mysql_connect('localhost','user',''); }catch(Exception $e){ echo $e-getMessage(); Probably not. I don't think that the mysql functions throw exceptions on

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 set

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 correct

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 key

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

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

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

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] 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 really like to see

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 to

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 Chisimba

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

[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

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 could

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=blogaction=viewsinglepostid=gen9Srv59Nme5_7092_1182404204 --Paul All Email

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

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) Uh, could you

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

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

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] 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? It could be

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

[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

  1   2   3   >