Re: [PHP] Re: Is there a simple way to enforce a private method in a subclass?

2010-12-22 Thread Richard Quadling
On 21 December 2010 19:12, Carlos Medina wrote: > Am 21.12.2010 17:36, schrieb Richard Quadling: >> >> Hi. >> >> If I have an abstract class of Task and I want all subclasses of Task >> to have a private method _runTask, is there a way to enforce this? >> >> Currently an abstract private function

[PHP] accessing magic parent set

2010-12-22 Thread Alexandru Patranescu
Is this the only way to access the magic __set from the parent class: public function __set($columnName, $value) { if ($value !== $this->$columnName) { parent::__set($columnName, $value); } } I would have liked to work this way: public function __set(

[PHP] MP3 Player and PHP

2010-12-22 Thread Don Wieland
Hello, Can someone recommend a web MP3 player? I need the following options: 1) Location and Duration of mp3 display (seconds) 2) The ability to pass a start and end parameter and play a part of the song 3) Loop parameter 4) Call to the player to grab the mp3 Location and set it to a field

[PHP] Server response very poor again

2010-12-22 Thread Al
It was fixed about 3 or 4 weeks ago; but, has reverted to poor again. Many times outs etc. Took me 4 tries to post this. Al... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MP3 Player and PHP

2010-12-22 Thread a...@ashleysheridan.co.uk
You've missed a crucial part of php; its not a client-side language, its all run on the server. So you can't have a music player built in it running in a web browser. For that you need something like flash or java. There is a way potentially with html5, but not all support the tag (internet ex

Re: [PHP] Server response very poor again

2010-12-22 Thread Steve Staples
On Wed, 2010-12-22 at 10:19 -0500, Al wrote: > It was fixed about 3 or 4 weeks ago; but, has reverted to poor again. Many > times outs etc. > > Took me 4 tries to post this. > > Al... > Not trying to sound rude or prickish... but is it your ISP or connection to the intertubes? Or co

Re: [PHP] MP3 Player and PHP

2010-12-22 Thread Richard Quadling
On 22 December 2010 15:06, Don Wieland wrote: > Hello, > > Can someone recommend a web MP3 player? I need the following options: > > 1) Location and Duration of mp3 display (seconds) > 2) The ability to pass a start and end parameter and play a part of the song > 3) Loop parameter > 4) Call to the

Re: [PHP] Re: Warning when calling session_start()

2010-12-22 Thread Ravi Gehlot
session_start (); should be before everything...first thing in the page. Ravi. On Wed, Dec 22, 2010 at 12:51 AM, wrote: > Hi, folks, > > On Tue, 21 Dec 2010 21:35:17 -0800 [06:35:17 AM CET], > Michael Shadle wrote: > > > first - this is probably your culprit: > > don't output empty lines befo

Re: [PHP] empty() in email message

2010-12-22 Thread Ravi Gehlot
Hello Gary, Please research the difference between a single quote and a double quote. Also, you can use the operator .=(dot + equal) in this manner: if(!empty($_POST['fname'])) { $msg .= "$lname\n"; } else if(!empty($_POST['lname'])) { $msg

Re: [PHP] Server response very poor again

2010-12-22 Thread Nicholas Kell
On Dec 22, 2010, at 10:09 AM, Steve Staples wrote: > On Wed, 2010-12-22 at 10:19 -0500, Al wrote: >> It was fixed about 3 or 4 weeks ago; but, has reverted to poor again. Many >> times outs etc. >> >> Took me 4 tries to post this. >> >> Al... >> > > Not trying to sound rude or prick

Re: [PHP] accessing magic parent set

2010-12-22 Thread Ravi Gehlot
Hello, $this only calls variables inside of a method. In your function, you are calling a variable that was defined inside of your function called $columnName. You should past the whole class. Not just the methods. "The pseudo-variable $this is available when a method is called from within an obj

Re: [PHP] Server response very poor again

2010-12-22 Thread Daniel P. Brown
On Wed, Dec 22, 2010 at 10:19, Al wrote: > It was fixed about 3 or 4 weeks ago; but, has reverted to poor again.  Many > times outs etc. > > Took me 4 tries to post this. Al, are you using NNTP? -- Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www

Re: [PHP] Server response very poor again

2010-12-22 Thread Daniel P. Brown
On Wed, Dec 22, 2010 at 12:17, Nicholas Kell wrote: > > I am with Steve. Well, what I mean is, on this topic I am in agreement with > Steve. My connection, etc. seems to be quite responsive. Oh, that's what you mean! Several of us were speaking about it the other day and thought you two wer

Re: [PHP] Re: Warning when calling session_start()

2010-12-22 Thread Daniel P. Brown
On Wed, Dec 22, 2010 at 11:43, Ravi Gehlot wrote: > session_start (); should be before everything...first thing in the page. Unlike the body of your email, Ravi, which is why I've asked you before not to top-post. Please follow the formats as outlined in the list rules. -- Dedicated Serve

Re: [PHP] Stripslashes

2010-12-22 Thread Ravi Gehlot
What are these magic quotes anyways?. What are they used for? escaping? Regards, Ravi. On Tue, Nov 16, 2010 at 11:44 PM, Adam Richardson wrote: > On Tue, Nov 16, 2010 at 10:10 PM, Gary wrote: > > > I was doing a test of stripslashes on a $_POST, when I recieved the > email, > > all of the slash

Re: [PHP] [SOLVED] Re: Upgraded system and now $_SERVER['SERVER_NAME'] is not more working

2010-12-22 Thread Ravi Gehlot
You probably have error_reporting turned on and that caught on errors. There are new tougher rules/requirements with newer PHP versions. Ravi.

Re: [PHP] Server response very poor again

2010-12-22 Thread Al
On 12/22/2010 12:17 PM, Nicholas Kell wrote: On Dec 22, 2010, at 10:09 AM, Steve Staples wrote: On Wed, 2010-12-22 at 10:19 -0500, Al wrote: It was fixed about 3 or 4 weeks ago; but, has reverted to poor again. Many times outs etc. Took me 4 tries to post this. Al... Not tryin

Re: [PHP] Server response very poor again

2010-12-22 Thread Daniel Brown
On Wed, Dec 22, 2010 at 12:39, Al wrote: > > I should have been more explicit. I meant to say the newsgroup access. Okay, that's what I figured. I've been saying for months now that I'd set up an NNTP-only mirror, and keep getting sidetracked with other things. I'll try to focus on that aft

Re: [PHP] Server response very poor again

2010-12-22 Thread Steve Staples
On Wed, 2010-12-22 at 12:49 -0500, Daniel P. Brown wrote: > On Wed, Dec 22, 2010 at 12:17, Nicholas Kell wrote: > > > > I am with Steve. Well, what I mean is, on this topic I am in agreement with > > Steve. My connection, etc. seems to be quite responsive. > > Oh, that's what you mean! Seve

Re: [PHP] Server response very poor again

2010-12-22 Thread Daniel P. Brown
On Wed, Dec 22, 2010 at 13:07, Steve Staples wrote: >> > whoa... wait a sec there...  i seem to recall this statement... ;) > > "This seems to be the most likely, and considering how all messages > are permanently and independently archived and propagate throughout > the Internet, it might be a go

Re: [PHP] Server response very poor again

2010-12-22 Thread Bastien Koert
On Wed, Dec 22, 2010 at 1:13 PM, Daniel P. Brown wrote: > On Wed, Dec 22, 2010 at 13:07, Steve Staples wrote: >>> >> whoa... wait a sec there...  i seem to recall this statement... ;) >> >> "This seems to be the most likely, and considering how all messages >> are permanently and independently ar

Re: [PHP] accessing magic parent set

2010-12-22 Thread David Harkness
On Wed, Dec 22, 2010 at 6:35 AM, Alexandru Patranescu wrote: > Is this the only way to access the magic __set from the parent class: > >parent::__set($columnName, $value); > Other than referencing the parent class by name which is worse, yes. > I would have liked to work this way: > >pa

RE: [PHP] Stripslashes

2010-12-22 Thread Bob McConnell
From: Ravi Gehlot > What are these magic quotes anyways?. What are they used for? escaping? I wasn't there at the time, but I gather that the general idea was to automagically insert escape characters into data submitted from a form. However, they used a backslash as the escape character, which i

Re: [PHP] Stripslashes

2010-12-22 Thread Ravi Gehlot
On Wed, Dec 22, 2010 at 3:34 PM, Bob McConnell wrote: > From: Ravi Gehlot > > > What are these magic quotes anyways?. What are they used for? > escaping? > > I wasn't there at the time, but I gather that the general idea was to > automagically insert escape characters into data submitted from a f

Re: [PHP] Stripslashes

2010-12-22 Thread Russell Dias
stripslashes() is rife with gaping security holes. For mysql insertion rely on mysql_real_escape_string() or alternatively, you can use prepared statements. For outputting data on the page you should ideally be using htmlspecialchars($var, ENT_QUOTES); cheers, Russ On Thu, Dec 23, 2010 at 6:48

Re: [PHP] Stripslashes

2010-12-22 Thread Ravi Gehlot
On Wed, Dec 22, 2010 at 4:21 PM, Russell Dias wrote: > stripslashes() is rife with gaping security holes. For mysql > insertion rely on mysql_real_escape_string() or alternatively, you can > use prepared statements. > > For outputting data on the page you should ideally be using > htmlspecialcha

Re: [PHP] MP3 Player and PHP

2010-12-22 Thread Sharl.Jimh.Tsin
search PHP、LAME keyword. Best regards, Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**) 2010/12/23 Richard Quadling : > On 22 December 2010 15:06, Don Wieland wrote: >> Hello, >> >> Can someone recommend a web MP3 player? I need the following options: >> >> 1) Location and Duration o