php-general Digest 30 Mar 2011 08:17:02 -0000 Issue 7250

2011-03-30 Thread php-general-digest-help
php-general Digest 30 Mar 2011 08:17:02 - Issue 7250 Topics (messages 312123 through 312137): Re: Permission Denied - Help Requested 312123 by: Adam Richardson 312126 by: Ethan Rosenberg 312127 by: Al 312128 by: Ethan Rosenberg 312132 by: HallMarc

php-general Digest 30 Mar 2011 22:46:04 -0000 Issue 7251

2011-03-30 Thread php-general-digest-help
php-general Digest 30 Mar 2011 22:46:04 - Issue 7251 Topics (messages 312138 through 312145): Re: Path question 312138 by: Richard Quadling Grasping class / controllers 312139 by: Aleksandar Skodric 312140 by: Ashley Sheridan 312141 by: Aleksandar Skodric

[PHP] Re: Resizing an image

2011-03-30 Thread Ross McKay
On Tue, 29 Mar 2011 03:21:48 +0300, Andre Polykanine wrote: [...] My questions are: 1. what are the restrictions of ImageCopyResampled()? Can I make a jpg image from a jpg one, and a png image from a png one? And what about gif's? Yes, or even a JPEG from a GIF, or a PNG from a JPEG, etc.

Re: [PHP] Path question

2011-03-30 Thread Richard Quadling
On 29 March 2011 19:41, D. Dante Lorenso da...@lorenso.com wrote: On 3/28/11 8:18 PM, Jack wrote: Hello All, Is there a smarter way to do includes by setting up a path or something where I don't have to include /home/domain.com/includes/include_file.php Apparently my path is as shown above,  

[PHP] Grasping class / controllers

2011-03-30 Thread Aleksandar Skodric
Hi all, I am using Codeigniter framework, tho' I believe my question is more PHP related in general. Problem I am having is following. Codeigniter (CI) uses general class CI_Controller for all functions. I have extended this controller with: abstract class CORE_Controller extends

Re: [PHP] Grasping class / controllers

2011-03-30 Thread Ashley Sheridan
Aleksandar Skodric aleksan...@skodric.com wrote: Hi all, I am using Codeigniter framework, tho' I believe my question is more PHP related in general. Problem I am having is following. Codeigniter (CI) uses general class CI_Controller for all functions. I have extended this controller with:

Re: [PHP] Grasping class / controllers

2011-03-30 Thread Aleksandar Skodric
Hi, Yes indeed you are correct. Found out that framework was loading libraries from array in specific order, whereby one overrules the next one. Anyway, problem solved by rearranging the order of the array :) Thanks anyway :) On 03/30/2011 04:13 PM, Ashley Sheridan wrote: Aleksandar

Re: [PHP] Re: Slow sessions.

2011-03-30 Thread Rob Adams
On 3/28/2011 3:40 PM, Bostjan Skufca wrote: Great, please report back if/when you discover the cause. After searching for some information about the error messages I was getting on the file server, I found this: http://www.spinics.net/lists/linux-nfs/msg14679.html I ran 'server nfslock

Re: [PHP] Permission Denied - Help Requested - Solved

2011-03-30 Thread Ethan Rosenberg
At 12:07 AM 3/30/2011, Adam Richardson wrote: On Tue, Mar 29, 2011 at 8:21 PM, Ethan Rosenberg eth...@earthlink.netwrote: At 05:33 PM 3/29/2011, Adam Richardson wrote: Thanks. What do you see if you run this? Can't open or create file! Ethan OK, If you're running PHP as an

[PHP] Session Variables - Error

2011-03-30 Thread Ethan Rosenberg
Dear List - Thanks for your help. Here is another one. I cannot get my session variables to work. The program will print out a chess board and show the positions of the pieces after the move Here are code snippets: The program is chess2.php ?php session_start(); error_reporting(1);

Re: [PHP] Re: Slow sessions.

2011-03-30 Thread Bostjan Skufca
Nice of you to post the resolution of your problem. Glad to hear it is fixed now. Take care, b. On 30 March 2011 17:46, Rob Adams rad...@circlepix.com wrote: On 3/28/2011 3:40 PM, Bostjan Skufca wrote: Great, please report back if/when you discover the cause. After searching for some

[PHP] Sessions - More Info

2011-03-30 Thread Ethan Rosenberg
Dear List - Thank you for your help in the past. This an update on my session problems. Here is a simple test program. It never increments the session counter; ie, does not detect that $_SESSION has been set. ?php session_start(); ? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0

Re: [PHP] Sessions - More Info

2011-03-30 Thread Ashley Sheridan
On Wed, 2011-03-30 at 19:20 -0400, Ethan Rosenberg wrote: Dear List - Thank you for your help in the past. This an update on my session problems. Here is a simple test program. It never increments the session counter; ie, does not detect that $_SESSION has been set. ?php

[PHP] is there a static constructor?

2011-03-30 Thread D. Dante Lorenso
All, I want to build a config file class that gets called statically. Is there such a thing as a static constructor? Example: class Daz_Config { public static function load() { ... } public static function get($key) { self :: load(); ... } } Daz_Config ::

Re: [PHP] is there a static constructor?

2011-03-30 Thread Ryan
There is such thing, but its not called static constructor, its called singleton pattern class SingletonA { public static instance; public SingletonA(){} public static function getInstancce() { if(self::instance != null) { return self::instanc; } return new

Re: [PHP] Sessions - More Info - SOLVED

2011-03-30 Thread Ethan Rosenberg
At 07:28 PM 3/30/2011, Ashley Sheridan wrote: On Wed, 2011-03-30 at 19:20 -0400, Ethan Rosenberg wrote: Dear List - Thank you for your help in the past. This an update on my session problems. Here is a simple test program. It never increments the session counter; ie, does not detect

Re: [PHP] is there a static constructor?

2011-03-30 Thread Peter Lind
On 31 March 2011 06:56, D. Dante Lorenso da...@lorenso.com wrote: All, I want to build a config file class that gets called statically.  Is there such a thing as a static constructor?  Example: class Daz_Config {  public static function load() {    ...  }  public static function