Re: [PHP] multiple forms one page

2012-08-26 Thread Adam Richardson
On Mon, Aug 27, 2012 at 12:08 AM, Rosie Williams wrote: > > Hi all, > I am a newbie to PHP. I have several php forms which were originally on > separate pages now included in the one page. Each form had the following code > in it: > function mysql_fix_string($string){ if (get_magic_quotes_gp

Re: [PHP] multiple forms one page

2012-08-26 Thread tamouse mailing lists
On Sun, Aug 26, 2012 at 11:08 PM, Rosie Williams wrote: > > Hi all, > I am a newbie to PHP. I have several php forms which were originally on > separate pages now included in the one page. Each form had the following code > in it: > function mysql_fix_string($string){ if (get_magic_quotes_gp

[PHP] multiple forms one page

2012-08-26 Thread Rosie Williams
Hi all, I am a newbie to PHP. I have several php forms which were originally on separate pages now included in the one page. Each form had the following code in it: function mysql_fix_string($string){ if (get_magic_quotes_gpc()) $string = stripslashes($string);return mysql_real_escape

[PHP] What's the best way to make a dynamic plugin architecture?

2012-08-26 Thread Mark
Hi, Envision the following plugin architecture: class PluginLoader { } interface PluginInterface { .. some function definitions .. } class PluginOne implements PluginInterface { } class PluginTwo implements PluginInterface { } The PluginLoader is loading the plugins. The PluginInterface defin

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread Ashley Sheridan
On Sun, 2012-08-26 at 09:41 +0700, Duken Marga wrote: > Can you tell us what is the error shown in browser or CLI? > > On Sun, Aug 26, 2012 at 5:54 AM, Ashley Sheridan > wrote: > > > I've just inherited some (pretty awful code) that I have to make some > > edits to, and came across a bit of a pr

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread tamouse mailing lists
On Sun, Aug 26, 2012 at 5:02 AM, Ashley Sheridan wrote: > > On Sun, 2012-08-26 at 04:36 -0500, tamouse mailing lists wrote: > > On Sat, Aug 25, 2012 at 9:56 PM, Ashley Sheridan > wrote: > > On Sun, 2012-08-26 at 09:41 +0700, Duken Marga wrote: > > > >> Can you tell us what is the error shown in b

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread Daniel Brown
On Sat, Aug 25, 2012 at 6:54 PM, Ashley Sheridan wrote: > I've just inherited some (pretty awful code) that I have to make some > edits to, and came across a bit of a problem. A lot of the code breaks > in and out of PHP and into HTML code: > > while(condition) > { > ?> > some html here > } > ?

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread Ashley Sheridan
On Sun, 2012-08-26 at 09:21 -0300, Samuel Lopes Grigolato wrote: > Maybe you have a " allows short open tags? In production that setting could be disabled. > > > On Sun, Aug 26, 2012 at 9:20 AM, Ashley Sheridan > wrote: > > On Sun, 2012-08-26 at 11:02 +0100, Stuart Dallas wrote: >

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread Samuel Lopes Grigolato
Maybe you have a "wrote: > On Sun, 2012-08-26 at 11:02 +0100, Stuart Dallas wrote: > > > On 26 Aug 2012, at 03:56, Ashley Sheridan > wrote: > > > > > Through the browser I get: > > > > > > Parse error: syntax error, unexpected $end > > > in /var/www/html/siteinquestion/index.php on line 356 > > >

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread Ashley Sheridan
On Sun, 2012-08-26 at 11:02 +0100, Stuart Dallas wrote: > On 26 Aug 2012, at 03:56, Ashley Sheridan wrote: > > > Through the browser I get: > > > > Parse error: syntax error, unexpected $end > > in /var/www/html/siteinquestion/index.php on line 356 > > > > Through the CLI I get: > > > > PHP P

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread Stuart Dallas
On 26 Aug 2012, at 03:56, Ashley Sheridan wrote: > Through the browser I get: > > Parse error: syntax error, unexpected $end > in /var/www/html/siteinquestion/index.php on line 356 > > Through the CLI I get: > > PHP Parse error: syntax error, unexpected $end in index.php on line 356 > > Pars

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread Ashley Sheridan
On Sun, 2012-08-26 at 04:36 -0500, tamouse mailing lists wrote: > On Sat, Aug 25, 2012 at 9:56 PM, Ashley Sheridan > wrote: > > On Sun, 2012-08-26 at 09:41 +0700, Duken Marga wrote: > > > >> Can you tell us what is the error shown in browser or CLI? > >> > >> On Sun, Aug 26, 2012 at 5:54 AM, Ashl

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread tamouse mailing lists
On Sat, Aug 25, 2012 at 9:56 PM, Ashley Sheridan wrote: > On Sun, 2012-08-26 at 09:41 +0700, Duken Marga wrote: > >> Can you tell us what is the error shown in browser or CLI? >> >> On Sun, Aug 26, 2012 at 5:54 AM, Ashley Sheridan >> wrote: >> >> > I've just inherited some (pretty awful code) that

Re: [PHP] UTC on php log bug

2012-08-26 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 8:48 PM, Martín Marqués wrote: > Whats up with this bug?: https://bugs.php.net/bug.php?id=60723 perhaps direct the query (such as it is) to php-development -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php