php-general Digest 28 Mar 2013 00:39:07 -0000 Issue 8176

Topics (messages 320694 through 320704):

What is an easiest way to port a PHP Web App to Android?
        320694 by: Kevin Peterson
        320695 by: Ashley Sheridan

Re: MOSSCon in Louisville in May! Submit your proposal this week!
        320696 by: Jim Giner
        320697 by: Sorin Badea

__autoload not work in cgi?
        320698 by: Radek Krejèa
        320699 by: Sorin Badea
        320700 by: Radek Krejèa
        320701 by: Sorin Badea

wrong open_basedir warning
        320702 by: Markus Falb
        320703 by: Markus Falb

magic_quotes_gpc stays on even when disabled in php.ini
        320704 by: Madan Thapa

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
I have a web application written in PHP. It have been running for several 
years. Now I want to run it as a stand-alone application on an Android 
smartphone or tablet. How can I do it?



--- End Message ---
--- Begin Message ---

Kevin Peterson <qh.res...@gmail.com> wrote:

>I have a web application written in PHP. It have been running for
>several years. Now I want to run it as a stand-alone application on an
>Android smartphone or tablet. How can I do it?

There are simple web servers you can run on Android, and also standalone PHP 
parsers too (i'm using one myself - search the play store for php server). Is 
that the sort of thing you wanted?

Thanks,
Ash
http://www.ashleysheridan.co.uk

--- End Message ---
--- Begin Message ---
On 3/27/2013 3:35 AM, John List wrote:
Preparations are in full swing for the very first Midwest Open Source
Software Conference (MOSSCon), to be held in Louisville on May 18-19.
Your help in spreading the word and helping us fill out our schedule of
presentations and workshops would be appreciated.

This is going to be a great networking event for the whole region!
Louisville is in such a central location, it can draw from a very wide
area.

We have a great venue: the University of Louisville's Student Activities
Center, with several large halls, a number of smaller meeting rooms, and
plenty of exhibit space available for groups and businesses to make
their presence known.

We are working on a broadly based "Open" theme, that can include open
source hardware, open data, etc., as well as the full gamut of open
source software.

We already have some super presentations lined up. But there are still
plenty of pieces that need to come together. Right now we are
concentrating on filling out our schedule with more presentations and
workshops. And soliciting sponsors.

If you're involved with Open Source (or open anything) you definitely
want to be a part of this. I encourage you to consider speaking or doing
a presentation or workshop on a subject in your area of interest and/or
expertise.

Check out the conference website at http://mosscon.org/. Click on "Be a
Speaker" for details on submitting your proposal.

But get to it! The deadline for submitting your preliminary proposal is
this Friday, March 29!

http://mosscon.org/

Spread the word and submit your proposal.

Thanks,

John Hicks

pls lose my address.

--- End Message ---
--- Begin Message ---
You can unsubscribe.

On Wed, Mar 27, 2013 at 3:07 PM, Jim Giner <jim.gi...@albanyhandball.com>wrote:

> On 3/27/2013 3:35 AM, John List wrote:
>
>> Preparations are in full swing for the very first Midwest Open Source
>> Software Conference (MOSSCon), to be held in Louisville on May 18-19.
>> Your help in spreading the word and helping us fill out our schedule of
>> presentations and workshops would be appreciated.
>>
>> This is going to be a great networking event for the whole region!
>> Louisville is in such a central location, it can draw from a very wide
>> area.
>>
>> We have a great venue: the University of Louisville's Student Activities
>> Center, with several large halls, a number of smaller meeting rooms, and
>> plenty of exhibit space available for groups and businesses to make
>> their presence known.
>>
>> We are working on a broadly based "Open" theme, that can include open
>> source hardware, open data, etc., as well as the full gamut of open
>> source software.
>>
>> We already have some super presentations lined up. But there are still
>> plenty of pieces that need to come together. Right now we are
>> concentrating on filling out our schedule with more presentations and
>> workshops. And soliciting sponsors.
>>
>> If you're involved with Open Source (or open anything) you definitely
>> want to be a part of this. I encourage you to consider speaking or doing
>> a presentation or workshop on a subject in your area of interest and/or
>> expertise.
>>
>> Check out the conference website at http://mosscon.org/. Click on "Be a
>> Speaker" for details on submitting your proposal.
>>
>> But get to it! The deadline for submitting your preliminary proposal is
>> this Friday, March 29!
>>
>> http://mosscon.org/
>>
>> Spread the word and submit your proposal.
>>
>> Thanks,
>>
>> John Hicks
>>
>>  pls lose my address.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Badea Sorin (unu.sorin)
sorin.bade...@gmail.com
unu_so...@yahoo.com
Pagina personala:
http://badeasorin.com

--- End Message ---
--- Begin Message ---
Hello,

I have installed lighttp with php support. It looks like, that function 
__autoload doesnt work in cgi mode (in the manual I only see, that it should 
not work in cli mode).

I have this code fragment:

function __autoload($class) 
{
if(File_Exists(PATH_EXTRAS_CLASSES.$class.".php"))
{
require_once(PATH_EXTRAS_CLASSES.$class.".php");
}
}
$CNeplatici = New CNeplatici();

And I get message:
2013-03-27 15:21:14: (mod_fastcgi.c.2676) FastCGI-stderr: PHP Fatal error:  
Class 'CNeplatici' not found in 
/usr/local/www/data/sys/web/templates_p/neplatici.php on line 12
(this code is working on other project, but on apache).

And if I switch to:

require_once(PATH_EXTRAS_CLASSES."CNeplatici.php");
$CNeplatici = New CNeplatici();
It works.

I have this lighttp configuration:

fastcgi.server = ( ".php" =>
                   ( "php-local" =>
                     (
                       "socket" => "/tmp/php-fastcgi-1.socket",
                       "bin-path" => "/usr/local/bin/php-cgi",
                       "max-procs" => 1,
                       "broken-scriptfilename" => "enable",
                     )
                   ),
                )

This is cgi configuration not cli isnt it? I thing that autoload should work.

Thank you
Radek

--- End Message ---
--- Begin Message ---
Did you tried with spl_autoload_register ?
http://php.net/manual/en/function.spl-autoload-register.php

Kind regards,
Sorin!

On Wed, Mar 27, 2013 at 4:28 PM, Radek Krejča <radek.kre...@starnet.cz>wrote:

> Hello,
>
> I have installed lighttp with php support. It looks like, that function
> __autoload doesnt work in cgi mode (in the manual I only see, that it
> should not work in cli mode).
>
> I have this code fragment:
>
> function __autoload($class)
> {
> if(File_Exists(PATH_EXTRAS_CLASSES.$class.".php"))
> {
> require_once(PATH_EXTRAS_CLASSES.$class.".php");
> }
> }
> $CNeplatici = New CNeplatici();
>
> And I get message:
> 2013-03-27 15:21:14: (mod_fastcgi.c.2676) FastCGI-stderr: PHP Fatal error:
>  Class 'CNeplatici' not found in
> /usr/local/www/data/sys/web/templates_p/neplatici.php on line 12
> (this code is working on other project, but on apache).
>
> And if I switch to:
>
> require_once(PATH_EXTRAS_CLASSES."CNeplatici.php");
> $CNeplatici = New CNeplatici();
> It works.
>
> I have this lighttp configuration:
>
> fastcgi.server = ( ".php" =>
>                    ( "php-local" =>
>                      (
>                        "socket" => "/tmp/php-fastcgi-1.socket",
>                        "bin-path" => "/usr/local/bin/php-cgi",
>                        "max-procs" => 1,
>                        "broken-scriptfilename" => "enable",
>                      )
>                    ),
>                 )
>
> This is cgi configuration not cli isnt it? I thing that autoload should
> work.
>
> Thank you
> Radek
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Badea Sorin (unu.sorin)
sorin.bade...@gmail.com
unu_so...@yahoo.com
Pagina personala:
http://badeasorin.com

--- End Message ---
--- Begin Message ---
spl_autoload_register is working. Thank you.

So - __autoload isnt already supported?

Radek


Did you tried with spl_autoload_register ? 
http://php.net/manual/en/function.spl-autoload-register.php

Kind regards,

--- End Message ---
--- Begin Message --- __autoload is kinda old. It allows you a single autoload callback and so on. You can google on this topic to find more details .

Sorin!

On 03/27/2013 04:40 PM, Radek Krejča wrote:

spl_autoload_register is working. Thank you.

So - __autoload isnt already supported?

Radek

Did you tried with spl_autoload_register ? http://php.net/manual/en/function.spl-autoload-register.php

Kind regards,



--- End Message ---
--- Begin Message ---
in my test.php I put

file_exists('/usr/share/wordpress/wp-config.php');

this throws an error

Warning: file_exists(): open_basedir restriction in effect.
File(/usr/share/wordpress/wp-config.php) is not within the allowed
path(s): (/var/www/blog:/usr/share/wordpress) in
/var/www/blog/www/test.php on line 2

The configuration of my apache virtual host says

php_admin_value open_basedir '/var/www/blog:/usr/share/wordpress'

What is going on?
/usr/share/wordpress/wp-config.php is definitily within
/usr/share/wordpress, isnt it?
-- 
Markus Falb

--- End Message ---
--- Begin Message ---
On 27.3.2013 17:00, Markus Falb wrote:

> Warning: file_exists(): open_basedir restriction in effect.
> File(/usr/share/wordpress/wp-config.php) is not within the allowed
> path(s): (/var/www/blog:/usr/share/wordpress) in
> /var/www/blog/www/test.php on line 2

I found it out.

/usr/share/wordpress/wp-config.php
is a symlink to /etc/wordpress/wp-config and /etc/wordpress is outside
the open_basedirs.
-- 
Markus Falb

--- End Message ---
--- Begin Message ---
Hi,

I installed php 5.3.23 recently on a CentOS sever  and magic_quotes_gpc
stays on even when disabled in php.ini


root@server [~]# grep magic_quo  /usr/local/php5.3/lib/php.ini
; magic_quotes_gpc
;magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
root@server [~]#




php info results:

magic_quotes_gpcOnOnmagic_quotes_runtimeOffOffmagic_quotes_sybaseOffOff



Is anyone aware of such issues for php 5.3.23 ?  or any  where i might look
at in troubleshooting this?


Please advise.

Thank you

--- End Message ---

Reply via email to