Re: [PHP] PDO Prevent duplicate field names?

2012-07-02 Thread Scott Baker
QL was easily fixed. But it woulda been nice to have PHP realize there was a dupe when it was building that array to return to me. -- Scott Baker - Canby Telcom System Administrator - RHCE - 503.266.8253 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PDO Prevent duplicate field names?

2012-07-02 Thread Scott Baker
ice if PHP saw that before I spent an hour debugging it again. - Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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] 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] 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] Benchmark two functions against each other?

2011-06-27 Thread Scott Baker
viper-7.com/ http://codepad.org/ http://ideone.com/ > Just knocked this up, should do what you > want:Â https://gist.github.com/1049335 Thanks I'll check it out! -- Scott Baker - Canby Telcom System Administrator - RHCE - 503.266.8253 -- PHP General Mailing List (http://www.php.net/)

[PHP] Benchmark two functions against each other?

2011-06-27 Thread Scott Baker
I have functions that I'd like to benchmark and compare. What are the best PHP libraries or websites to do that? Something like jsperf.com but for PHP would be ideal. - Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Get all the keys from a hierarchical hash

2011-06-23 Thread Scott Baker
I have a multi-tier hash (see below) and I'd like to be "search" the hash for a given $id, and return that section, regardless of how many layers deep it is. Sort of like how xpath works? Once I have that I'd like get ALL the children of a given node. So I could ask for 86, and get 36, 38, 56, etc

Re: [PHP] Create a hierarchical hash from flat source

2011-06-22 Thread Scott Baker
ecated. I changed assign_children to be function assign_children($id,$list,&$leaf) Which solved that also! -- Scott Baker - Canby Telcom System Administrator - RHCE - 503.266.8253 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Create a hierarchical hash from flat source

2011-06-22 Thread Scott Baker
On 06/22/2011 03:17 PM, Simon J Welsh wrote: > You still need to pass the value by reference to assign_children(), so: > $new = &$leaf[$pid]; > assign_children($pid,$list,&$new); Aha... that was it! Thanks! -- Scott Baker - Canby Telcom System Administrator - RHCE - 503.

Re: [PHP] Create a hierarchical hash from flat source

2011-06-22 Thread Scott Baker
I still get the same output though. Only one level of depth :( -- Scott Baker - Canby Telcom System Administrator - RHCE - 503.266.8253 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Create a hierarchical hash from flat source

2011-06-22 Thread Scott Baker
I have a bunch of records in a DB that look like id | parent_id -- 1 | 4 2 | 4 3 | 2 4 | 0 5 | 2 6 | 1 7 | 3 8 | 7 9 | 7 I want to build a big has that looks like: 4 -> 1 -> 6 -> 2 -> 3 -> 7 -> 9 -> 5 -> 8 I'm like 90% of the way there, but I can't get my recu

[PHP] PHP intreprets trailing slashes incorrectly?

2011-05-19 Thread Scott Baker
I have a script: http://www.perturb.org/index.php I accidentally put a trailing / on the url and it STILL loaded: http://www.perturb.org/index.php/ Is that a bug in URL interpretation? I've tried it on three servers and all seem to have the same behavior. All three were Apache on Linux, but dif

Re: [PHP] Overriding session length in existing session?

2011-03-08 Thread Scott Baker
On 03/08/2011 09:46 AM, Marc Guay wrote: > Hi Scott, > > I'm glad you resolved your problem. I'm curious about your method > though, as it seems to be an entirely different approach to my own. > How do you refer to your session data throughout the rest of the site? >

Re: [PHP] Overriding session length in existing session?

2011-03-07 Thread Scott Baker
On 03/04/2011 11:48 AM, Marc Guay wrote: > I think that my suggestion is still a valid solution, someone correct > me if I'm wrong. Let's say your code went like this: > > session_start(); I did a ton of digging and came up with session_regenerate_id() In my header.php I start the session as no

Re: [PHP] Overriding session length in existing session?

2011-03-07 Thread Scott Baker
On 03/04/2011 11:48 AM, Marc Guay wrote: > I think that my suggestion is still a valid solution, someone correct > me if I'm wrong. Let's say your code went like this: > > session_start(); I did a ton of digging and came up with session_regenerate_id() In my header.php I start the session as no

Re: [PHP] Overriding session length in existing session?

2011-03-04 Thread Scott Baker
tion on the login page "public terminal" that I want to make clear the session on browser close. The problem is that I've already (in header.php) told the session cookie that it's good for 7 days. I was just trying to override that already established session cookie. - Scott

Re: [PHP] Overriding session length in existing session?

2011-03-03 Thread Scott Baker
On 03/03/2011 04:31 PM, tedd wrote: > At 2:58 PM -0800 3/3/11, Scott Baker wrote: >> I have a global header.php file that sets up a bunch of stuff: DB, >> global variables, and does session_start(). My header.php looks like >> this: >> >> #header.php >> $coo

[PHP] Overriding session length in existing session?

2011-03-03 Thread Scott Baker
I have a global header.php file that sets up a bunch of stuff: DB, global variables, and does session_start(). My header.php looks like this: #header.php $cookie_life = (86400 * 7); // Cookies last for seven days session_set_cookie_params($cookie_life,"/",".domain.com",true); session_start(); Thi

[PHP] Re: [PDO] Re: [PHP] PDO working via Apache but not at the command line?

2010-10-18 Thread Scott Baker
for helping me think outside the box. I spent all day puzzled by this, you just made my night. - Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PDO working via Apache but not at the command line?

2010-10-18 Thread Scott Baker
. Checking the output of phpinfo() I see it's calling the same php.ini (/usr/local/lib/php.ini) though. :( -- Scott Baker - Canby Telcom System Administrator - RHCE - 503.266.8253 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PDO working via Apache but not at the command line?

2010-10-18 Thread Scott Baker
I have the following very simple script that uses PDO/FreeTDS to connect to a mssql server. I have PHP Version 5.3.3 running on Linux under Apache. When I view this script via apache/firefox I get proper output. If I try and run this via the command line like "php db_dump.php" I get an error c

[PHP] Re: Converting HTML to PDF via PHP

2010-08-05 Thread Scott Teresi
uot;; in front of the URL.] It will turn any web page into a PDF and was easy to install and use and has documentation. (I call it from a PHP script.) It renders the web page using a WebKit library that's included in the source, and there are lots of options for how to tweak the rendering engin

[PHP] How to upload via SFTP with allow_url_open disabled?

2010-07-29 Thread Scott Teresi
ver, to get a stream for the remote file. I maintain the server but would like to keep "allow_url_fopen" disabled. If I do that, how can I send a file over SFTP? Thanks for any help people can provide!! Scott Teresi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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] 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] 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] 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: 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] 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] 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] 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 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] Visibility of class constant

2009-02-03 Thread Chris Scott
> -Original Message- > From: leledumbo [mailto:leledumbo_c...@yahoo.co.id] > Sent: 03 February 2009 05:03 > To: php-general@lists.php.net > Subject: [PHP] Visibility of class constant > > > I got a weird behaviour of class constant. Suppose I have Index_Controller > and Another_Controller

RE: [PHP] Global Changes With Loop To Allow Nulls In A Table...

2009-01-27 Thread Chris Scott
>> Hi Folks, >> >> Newbie question >> >> I have a mysql table with 100 fields, currently all do not allow nulls. >> Rather than hand typing in phpMyAdmin, I would like a way to loop through >> all fields and update them to allow nulls >> >> My Beginning attempt needs help... >> >> >>

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

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

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 do

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

[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

FW: FW: [PHP] getting info from video formats

2008-07-28 Thread Chris Scott
> -Original Message- > From: mike [mailto:[EMAIL PROTECTED] > Sent: Monday, July 28, 2008 2:17 PM > To: Chris Scott > Cc: php-general@lists.php.net > Subject: Re: FW: [PHP] getting info from video formats > > On 7/28/08, Chris Scott <[EMAIL PROTECTED]> wro

FW: [PHP] getting info from video formats

2008-07-28 Thread Chris Scott
I agree. I use MPlayer to process videos. One script gets the video length like this. //use mplayer to pull some info from the video $info = exec("\"$mplayer\" $videoPath/$videoName -identify -nosound -frames 0 > $tmpInfoFile"); //and open the file it stores the data in $infoFile = fopen("$tmpIn

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.

[PHP] FW: [SPAM] [PHP] No Database Connection possible (mySQL)

2008-07-04 Thread Chris Scott
> -Original Message- > From: Aviation Coding [mailto:[EMAIL PROTECTED] > Sent: Friday, July 04, 2008 10:15 AM > To: php-general@lists.php.net > Subject: [SPAM] [PHP] No Database Connection possible (mySQL) > Importance: Low > > Hi all, > > I am having problems with a connection to a mysql

[PHP] FW: [SPAM] Re: [PHP] how to create a slide show using PHP5

2008-07-03 Thread Chris Scott
> -Original Message- > From: philip [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 02, 2008 10:03 PM > To: Bastien Koert > Cc: php-general@lists.php.net > Subject: [SPAM] Re: [PHP] how to create a slide show using PHP5 > Importance: Low > > Bastien Koert wrote: > > > > > > On Wed, Jul

[PHP] FW: [SPAM] [PHP] FIFO files on PHP?

2008-07-02 Thread Chris Scott
> -Original Message- > From: Waynn Lue [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 01, 2008 11:06 PM > To: php-general@lists.php.net > Subject: [SPAM] [PHP] FIFO files on PHP? > Importance: Low > > I'm trying to build a queue out using FIFO files (someone on the MySQL > list suggested

[PHP] FW: [SPAM] RE: [PHP] FW: [SPAM] RE: [PHP] fwrite() Append Files

2008-06-27 Thread Chris Scott
>> -Original Message- >> From: Chris Scott [mailto:[EMAIL PROTECTED] >> Sent: Friday, June 27, 2008 8:48 AM >> To: php-general@lists.php.net >> Subject: [PHP] FW: [SPAM] RE: [PHP] fwrite() Append Files >> Importance: Low >> >> I don'

[PHP] FW: [SPAM] RE: [PHP] fwrite() Append Files

2008-06-27 Thread Chris Scott
I don't think you can open files for writing over http, you get an error: failed to open stream: HTTP wrapper does not support writeable connections. -Original Message- From: Per Jessen [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2008 2:39 PM To: php-general@lists.php.net Subject: [

FW: [PHP] fwrite() Append Files

2008-06-27 Thread Chris Scott
Please post the code, I'm not clear on the problem. -Original Message- From: Wei, Alice J. [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2008 12:02 PM To: php-general@lists.php.net Subject: [PHP] fwrite() Append Files Hi, I wonder if anyone on the list could tell me how to append t

[PHP] FW: [SPAM] Re: [PHP] Inspiration for a Tombstone.

2008-06-27 Thread Chris Scott
410 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] escape character in query string

2008-06-23 Thread Chris Scott
%20 -Original Message- From: joaquinbordado [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2008 3:35 AM To: php-general@lists.php.net Subject: [SPAM] [PHP] escape character in query string Importance: Low would someone happen to know the escape character for query string? here is my

RE: [PHP] RE: [SPAM] [PHP] format mobile number

2008-06-20 Thread Chris Scott
Sorry that should have been a quoted string: $mobileNumber = "078"; For the strlen and substr. -Original Message- From: Chris Scott [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 1:15 PM To: php-general@lists.php.net Subject: [PHP] RE: [SPAM] [PHP] format mob

[PHP] RE: [SPAM] [PHP] format mobile number

2008-06-20 Thread Chris Scott
Something like: $mobileNumber = 078; $lastTen = substr($mobileNumber, strlen($mobileNumber) - 10); $formatedNumber = "0" . $lastTen; -Original Message- From: joaquinbordado [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 12:15 PM To: php-general@lists.php.net Subject: [SPAM

Re: [PHP] Newbie Question: How to pass URL info to .php script ?

2008-06-19 Thread Chris Scott
You could just use an apache (or other web server) alias: www.test.com/article -> www.test.com/article.php where article.php uses: "; ?>

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

[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] Re: APC + PHP Problem (apc_fcntl_lock failed: Bad file descriptor)

2008-06-03 Thread Scott McNaught [Synergy 8]
+ PHP Problem (apc_fcntl_lock failed: Bad file descriptor) Scott McNaught [Synergy 8] wrote: > Hello, > > I am running a production server with APC and php. We recently had a crash > where APC bombed out. When it does this, the server serves empty, white > pages. > > Here

RE: [PHP] Avoid object twice

2008-06-02 Thread Scott McNaught [Synergy 8]
Try removing from a.php the lines: $obj=new my("Hello"); $obj->buff(); I think this will achieve what you want. -Original Message- From: Yui Hiroaki [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2008 11:01 PM To: php-general@lists.php.net Subject: [PHP] Avoid object twice Please tak

[PHP] APC + PHP Problem (apc_fcntl_lock failed: Bad file descriptor)

2008-06-01 Thread Scott McNaught [Synergy 8]
Hello, I am running a production server with APC and php. We recently had a crash where APC bombed out. When it does this, the server serves empty, white pages. Here is what the error_log says. [Mon Jun 2 11:20:36 2008] [apc-error] apc_fcntl_lock failed: Bad file descriptor [Mon Jun 02 11:20:37

[PHP] $_SESSION v. Cookies

2008-05-07 Thread Scott Campbell
cant difference. Is $_SESSION slowing down my site? Is there a faster alternative to global variables then using $_SESSION? Are using regular cookies faster? Any help is appreciated. Thanks, Scott -- Scott Campbell "If you do what you've always done, you'

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 o

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 http://www.uwc.ac.za/portal/public/portal_services/disclai

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 i

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] Incorrect version shown in phpinfo() and phpversion() in 5.2.6

2008-05-06 Thread Scott Lerman
se others were having the same problem. On Tue, May 6, 2008 at 12:49 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On Tue, May 6, 2008 at 11:57 AM, Scott Lerman <[EMAIL PROTECTED]> wrote: > > Has anyone else seen incorrect information on a phpinfo() page on the > >

[PHP] Incorrect version shown in phpinfo() and phpversion() in 5.2.6

2008-05-06 Thread Scott Lerman
on, though. -- Scott Lerman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 F

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 http:/

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

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

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 un

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

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() h

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

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

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 c

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

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 th

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 whe

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

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 exc

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 i

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 http://www.php.net/pre

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

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 woul

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

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

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

  1   2   3   4   5   6   7   8   9   10   >