Re: [PHP] Re: MOSSCon in Louisville in May! Submit your proposal this week!

2013-03-27 Thread Sorin Badea
You can unsubscribe.

On Wed, Mar 27, 2013 at 3:07 PM, Jim Giner 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


Re: [PHP] __autoload not work in cgi?

2013-03-27 Thread Sorin Badea
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 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


Re: [PHP] __autoload not work in cgi?

2013-03-27 Thread Sorin Badea
__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,





Re: [PHP] Re: 4/1/2013 3:46:37 AM

2013-03-31 Thread Sorin Badea
No spam filters for this list ?


On Mon, Apr 1, 2013 at 5:46 AM, Adil Adil  wrote:

> http://www.siamphotographer.com/clvrcng/nikoffbkvvnjjcgwapmay.xmhpwcbrd




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


Re: [PHP] Is there a PHP based authentication library?

2013-04-01 Thread Sorin Badea
Hi Mark,
I think a simple Google search would be faster. Anyway, an unified way for
3rd party authentication doesn't exist from my knowledge, but for Persona
you could use the sample from mozilla github account
https://github.com/mozilla/browserid-cookbook .

Good luck,
Sorin!


On Tue, Apr 2, 2013 at 12:26 AM, Mark  wrote:

> Hi,
>
> I stumbled upon this payment library: http://ci-merchant.org/ which
> abstracts the different payment backends away and exposes a new easy
> to use interface for the app developer to use. Thus making it very
> easy to use different payment providers.
>
> I was wondering if something like that is also existing for
> authentication? For example, in authentication you have quite a few
> different ones:
> - Mozilla Persona
> - openid
> - facebook connect
> - google (openid?)
> - use/pass based authentication (a.k.a. the self made version that
> every dev begins with)
> - oauth
> - twitter connect
> - etc...
>
> Is there such a library in existence? I'm especially looking for one
> with mozilla persona implemented.
>
> Kind regards,
> Mark
>
> --
> 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


[PHP] Set process custom identifier

2013-04-02 Thread Sorin Badea
Hi guys,
I'm trying to find a solution to identify a php process that is spawned
with pnctl_fork. I've tried to set a custom gid but this isn't viable
because I have to run the parent proc with administrative permissions. I
need to do this native without any pecl extensions.
Is there a way to do this ?

Regards,
-- 
Badea Sorin (unu.sorin)
sorin.bade...@gmail.com
unu_so...@yahoo.com


Re: [PHP] Set process custom identifier

2013-04-02 Thread Sorin Badea
I don't want to wait for it and surely I don't want to safe that pid in
same place. I just want to use `ps` with a pattern to return my forked
process.


On Tue, Apr 2, 2013 at 4:48 PM, Matijn Woudt  wrote:

> Hi,
>
> pcntl_fork will return the pid of the fork, what is wrong with using that
> pid to identify the process?
>
> - Matijn
>
>
> On Tue, Apr 2, 2013 at 3:38 PM, Sorin Badea wrote:
>
>> Hi guys,
>> I'm trying to find a solution to identify a php process that is spawned
>> with pnctl_fork. I've tried to set a custom gid but this isn't viable
>> because I have to run the parent proc with administrative permissions. I
>> need to do this native without any pecl extensions.
>> Is there a way to do this ?
>>
>> Regards,
>> --
>> Badea Sorin (unu.sorin)
>> sorin.bade...@gmail.com
>> unu_so...@yahoo.com
>>
>
>


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


Re: [PHP] Set process custom identifier

2013-04-02 Thread Sorin Badea
I'm trying to implement a standalone threading component, and in current
implementation I'm using `popen` to run a separate process with some
arguments that I'm using to identify them (for example `php
some_dummy_file.php -thread_id=`). This way when I'm trying to
see which are my threads I don't have to check every stored pid and see if
they are still up.


On Tue, Apr 2, 2013 at 5:02 PM, Stuart Dallas  wrote:

> On 2 Apr 2013, at 14:50, Sorin Badea  wrote:
>
> I don't want to wait for it and surely I don't want to safe that pid in
> same place. I just want to use `ps` with a pattern to return my forked
> process.
>
>
> Storing the PID of a process you need to monitor is the established
> method, and is certainly the most reliable. Why can't you use the PID as
> the pattern to look for? If there's a reason then please explain it as that
> will help us assist you. If there's no reason then I don't understand why
> you're trying to over-complicate it.
>
> If you're just wanting to monitor it from the process that forked it then
> you don't need to store the PID anywhere other than a variable, and you
> don't need to wait for it.
>
> If you absolutely must do this then the only way is via an extension such
> as proctitle: http://php.net/setproctitle
>
> -Stuart
>
> --
> Stuart Dallas
> 3ft9 Ltd
> http://3ft9.com/
>
> On Tue, Apr 2, 2013 at 4:48 PM, Matijn Woudt  wrote:
>
> Hi,
>
> pcntl_fork will return the pid of the fork, what is wrong with using that
> pid to identify the process?
>
> - Matijn
>
>
> On Tue, Apr 2, 2013 at 3:38 PM, Sorin Badea  >wrote:
>
> Hi guys,
> I'm trying to find a solution to identify a php process that is spawned
> with pnctl_fork. I've tried to set a custom gid but this isn't viable
> because I have to run the parent proc with administrative permissions. I
> need to do this native without any pecl extensions.
> Is there a way to do this ?
>
> Regards,
> --
> Badea Sorin (unu.sorin)
> sorin.bade...@gmail.com
> unu_so...@yahoo.com
>
>
>
>
>
> --
> Badea Sorin (unu.sorin)
> sorin.bade...@gmail.com
> unu_so...@yahoo.com
> Pagina personala:
> http://badeasorin.com
>
>
>


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


Re: [PHP] Set process custom identifier

2013-04-02 Thread Sorin Badea
I'm not storing the hashes, just generate them when starting the thread. I
think that storing the thread pid in a local file (pids/threadx.pid) is the
only way but I don't think is the best.
Thanks anyway Stuard!


On Tue, Apr 2, 2013 at 5:18 PM, Stuart Dallas  wrote:

> On 2 Apr 2013, at 15:11, Sorin Badea  wrote:
>
> I'm trying to implement a standalone threading component, and in current
> implementation I'm using `popen` to run a separate process with some
> arguments that I'm using to identify them (for example `php
> some_dummy_file.php -thread_id=`). This way when I'm trying to
> see which are my threads I don't have to check every stored pid and see if
> they are still up.
>
>
> Personally I would be storing the PIDs somewhere, but that's just me.
>
> The other way you could probably do it is by having the main script (the
> one executed on the command line) named something unique, the use
> dirname(__FILE__) to get that name from within that script. Then parse the
> PS output for that script name. You may need to exclude lines containing
> bash or similar depending on how the script was executed.
>
> Seriously, PIDs are the way to go! Based on what you've put above you
> already have some sort of storage that's tracking threads (they have a
> hash), so why not add the PID to that? Or, even better, use the PID as that
> hash?
>
> -Stuart
>
> --
> Stuart Dallas
> 3ft9 Ltd
> http://3ft9.com/
>
>
> On Tue, Apr 2, 2013 at 5:02 PM, Stuart Dallas  wrote:
>
>> On 2 Apr 2013, at 14:50, Sorin Badea  wrote:
>>
>> I don't want to wait for it and surely I don't want to safe that pid in
>> same place. I just want to use `ps` with a pattern to return my forked
>> process.
>>
>>
>> Storing the PID of a process you need to monitor is the established
>> method, and is certainly the most reliable. Why can't you use the PID as
>> the pattern to look for? If there's a reason then please explain it as that
>> will help us assist you. If there's no reason then I don't understand why
>> you're trying to over-complicate it.
>>
>> If you're just wanting to monitor it from the process that forked it then
>> you don't need to store the PID anywhere other than a variable, and you
>> don't need to wait for it.
>>
>> If you absolutely must do this then the only way is via an extension such
>> as proctitle: http://php.net/setproctitle
>>
>> -Stuart
>>
>> --
>> Stuart Dallas
>> 3ft9 Ltd
>> http://3ft9.com/
>>
>> On Tue, Apr 2, 2013 at 4:48 PM, Matijn Woudt  wrote:
>>
>> Hi,
>>
>> pcntl_fork will return the pid of the fork, what is wrong with using that
>> pid to identify the process?
>>
>> - Matijn
>>
>>
>> On Tue, Apr 2, 2013 at 3:38 PM, Sorin Badea > >wrote:
>>
>> Hi guys,
>> I'm trying to find a solution to identify a php process that is spawned
>> with pnctl_fork. I've tried to set a custom gid but this isn't viable
>> because I have to run the parent proc with administrative permissions. I
>> need to do this native without any pecl extensions.
>> Is there a way to do this ?
>>
>> Regards,
>> --
>> Badea Sorin (unu.sorin)
>> sorin.bade...@gmail.com
>> unu_so...@yahoo.com
>>
>>
>>
>>
>>
>> --
>> Badea Sorin (unu.sorin)
>> sorin.bade...@gmail.com
>> unu_so...@yahoo.com
>> Pagina personala:
>> http://badeasorin.com
>>
>>
>>
>
>
> --
> Badea Sorin (unu.sorin)
> sorin.bade...@gmail.com
> unu_so...@yahoo.com
> Pagina personala:
> http://badeasorin.com
>
>
>


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


Re: [PHP] webform spam prevention

2013-04-02 Thread Sorin Badea
You can take a look at this article
http://coding.smashingmagazine.com/2011/03/04/in-search-of-the-perfect-captcha/


On Tue, Apr 2, 2013 at 10:13 PM, Jen Rasmussen  wrote:

> Can someone recommend a best practice for blocking spam on web forms (aside
> from captcha) ?
>
>
>
> I've been for the most part utilizing a honeypot method and then
> individually blocking IPs and am looking for a more efficient method that
> won't require daily maintenance.
>
>
>
> I've come across this module: http://spam-ip.com/phpnuke-spam-module.php
>
>
>
> Has anyone used this method or have any other better suggestions?
>
>
>
> Thanks in advance!
>
>
>
> Jen Rasmussen
>
> Web Development Manager | Cetacea Sound Corp.
>
> 763-225-8465 | www.cetaceasound.com
>
>
> P Before printing this message, make sure that it's necessary. The
> environment is in your hands
>
>
>
>


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


Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Sorin Badea
Hi,
Did you tried a print_r($_POST) or a var_dump ?


On Thu, Apr 4, 2013 at 1:10 PM, Ninad  wrote:

> Dear all,
>
> I am having 2 servers. One is running fedora 10 with php 5.2.6-5 and
> second one is running
> fedora17 with php 5.4.13.
> Below given code is working absolutely fine on fedora10 with php5.2 But
> the same code is not working on fedora17 with php 5.4.13. After submit I am
> getting $_POST variable empty.
>
> Please guide me in the same.
>
>
>  if (isset($_POST['lastname'], $_POST['lastname']))
> {
>echo("First name: " . $_POST['firstname'] . "\n");
>echo("Last name: " . $_POST['lastname'] . "\n");
> }
> ?>
>
> 
> 
> 
> 
> 
>First name: 
>Last name: 
>
> 
> 
> 
>
>
> Thanks & Regards,
> Ninad.
>
> --
> 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


Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Sorin Badea
What are you using on the server for http ? nginx or apache ? can you give
us more details about your configuration (mods, configuration, htaccess ) ?


On Thu, Apr 4, 2013 at 1:25 PM, Ninad  wrote:

>  Hello,
>
> Thanks for such a fast response.
>
> Yes I tried bellow things but result is same --- no output..
>
> $postdata = file_get_contents('php://input');
> var_dump($postdata);
> var_dump($_POST);
>
> Regards,
> Ninad.
>
>
> On 04/04/2013 03:50 PM, Sorin Badea wrote:
>
> Hi,
> Did you tried a print_r($_POST) or a var_dump ?
>
>
> On Thu, Apr 4, 2013 at 1:10 PM, Ninad  wrote:
>
>> Dear all,
>>
>> I am having 2 servers. One is running fedora 10 with php 5.2.6-5 and
>> second one is running
>> fedora17 with php 5.4.13.
>> Below given code is working absolutely fine on fedora10 with php5.2 But
>> the same code is not working on fedora17 with php 5.4.13. After submit I am
>> getting $_POST variable empty.
>>
>> Please guide me in the same.
>>
>>
>> > if (isset($_POST['lastname'], $_POST['lastname']))
>> {
>>echo("First name: " . $_POST['firstname'] . "\n");
>>echo("Last name: " . $_POST['lastname'] . "\n");
>> }
>> ?>
>>
>> 
>> 
>> 
>> 
>> 
>>First name: 
>>Last name: 
>>
>> 
>> 
>> 
>>
>>
>> Thanks & Regards,
>> Ninad.
>>
>> --
>> 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
>
>
>


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


Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Sorin Badea
So you have a single php file with the code from the first email and the
$_POST var is empty. Am I right ?


On Thu, Apr 4, 2013 at 1:49 PM, Ninad  wrote:

>  Hi,
>
> I am using httpd as a web server with default configuration.
>
> Regards,
> Ninad.
>
>
> On 04/04/2013 04:11 PM, Sorin Badea wrote:
>
> What are you using on the server for http ? nginx or apache ? can you give
> us more details about your configuration (mods, configuration, htaccess ) ?
>
>
>  On Thu, Apr 4, 2013 at 1:25 PM, Ninad  wrote:
>
>>  Hello,
>>
>> Thanks for such a fast response.
>>
>> Yes I tried bellow things but result is same --- no output..
>>
>> $postdata = file_get_contents('php://input');
>> var_dump($postdata);
>> var_dump($_POST);
>>
>> Regards,
>> Ninad.
>>
>>
>> On 04/04/2013 03:50 PM, Sorin Badea wrote:
>>
>> Hi,
>> Did you tried a print_r($_POST) or a var_dump ?
>>
>>
>> On Thu, Apr 4, 2013 at 1:10 PM, Ninad  wrote:
>>
>>> Dear all,
>>>
>>> I am having 2 servers. One is running fedora 10 with php 5.2.6-5 and
>>> second one is running
>>> fedora17 with php 5.4.13.
>>> Below given code is working absolutely fine on fedora10 with php5.2 But
>>> the same code is not working on fedora17 with php 5.4.13. After submit I am
>>> getting $_POST variable empty.
>>>
>>> Please guide me in the same.
>>>
>>>
>>> >> if (isset($_POST['lastname'], $_POST['lastname']))
>>> {
>>>echo("First name: " . $_POST['firstname'] . "\n");
>>>echo("Last name: " . $_POST['lastname'] . "\n");
>>> }
>>> ?>
>>>
>>> 
>>> 
>>> 
>>> 
>>> 
>>>First name: 
>>>Last name: 
>>>
>>> 
>>> 
>>> 
>>>
>>>
>>> Thanks & Regards,
>>> Ninad.
>>>
>>> --
>>> 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
>>
>>
>>
>
>
>  --
> Badea Sorin (unu.sorin)
> sorin.bade...@gmail.com
> unu_so...@yahoo.com
> Pagina personala:
> http://badeasorin.com
>
>
>


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


Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Sorin Badea
I've tried the same code on a instance with fedora 17 and php 5.4.13. It 
seems to work fine. Can you provide us a link with the url to your page ?


On 04/04/2013 01:59 PM, Ninad wrote:


yes you are right



On 04/04/2013 04:23 PM, Sorin Badea wrote:
So you have a single php file with the code from the first email and 
the $_POST var is empty. Am I right ?



On Thu, Apr 4, 2013 at 1:49 PM, Ninad <mailto:ninadsh...@iitb.ac.in>> wrote:


Hi,

I am using httpd as a web server with default configuration.

Regards,
Ninad.


On 04/04/2013 04:11 PM, Sorin Badea wrote:

What are you using on the server for http ? nginx or apache ?
can you give us more details about your configuration (mods,
configuration, htaccess ) ?


On Thu, Apr 4, 2013 at 1:25 PM, Ninad mailto:ninadsh...@iitb.ac.in>> wrote:

Hello,

Thanks for such a fast response.

Yes I tried bellow things but result is same --- no output..

$postdata = file_get_contents('php://input');
var_dump($postdata);
var_dump($_POST);

Regards,
Ninad.


    On 04/04/2013 03:50 PM, Sorin Badea wrote:

Hi,
Did you tried a print_r($_POST) or a var_dump ?


On Thu, Apr 4, 2013 at 1:10 PM, Ninad
mailto:ninadsh...@iitb.ac.in>> wrote:

Dear all,

I am having 2 servers. One is running fedora 10 with
php 5.2.6-5 and second one is running
fedora17 with php 5.4.13.
Below given code is working absolutely fine on fedora10
with php5.2 But the same code is not working on
fedora17 with php 5.4.13. After submit I am getting
$_POST variable empty.

Please guide me in the same.


\n");
   echo("Last name: " . $_POST['lastname'] . "\n");
}
?>






   First name: 
   Last name: 
   





Thanks & Regards,
Ninad.

-- 
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 <mailto:sorin.bade...@gmail.com>
unu_so...@yahoo.com <mailto:unu_so...@yahoo.com>
Pagina personala:
http://badeasorin.com





-- 
Badea Sorin (unu.sorin)

sorin.bade...@gmail.com <mailto:sorin.bade...@gmail.com>
unu_so...@yahoo.com <mailto:unu_so...@yahoo.com>
Pagina personala:
http://badeasorin.com





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






Re: [PHP] exec and system do not work

2013-08-25 Thread Sorin Badea
*/var/www* is usually under *www* user. It may be a permissions problem.


On Mon, Aug 26, 2013 at 6:41 AM, Ethan Rosenberg <
erosenb...@hygeiabiomedical.com> wrote:

> Dear List -
>
> I'm lost on this one -
>
> This works -
>
> $out = system("ls -l ",$retvals);
> printf("%s", $out);
>
> This does -
>
> echo exec("ls -l");
>
> This does not -
>
> if( !file_exists("/var/www/orders.**txt"));
> {
>$out = system("touch /var/www/orders.txt", $ret);
>$out2 = system("chmod 766 /var/www/orders.txt", $ret);
>echo 'file2';
>echo file_exists("/var/www/orders.**txt");
> }
>
> and this does not -
>
> if( !file_exists("/var/www/orders.**txt"));
> {
>exec("touch /var/www/orders.txt");
>exec("chmod 766 /var/www/orders.txt");
>echo 'file2';
>echo file_exists("/var/www/orders.**txt");
> }
>
> Ethan
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Sorin Badea - Software Engineer


Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Sorin Badea
There are few tutorials about home made dic. How does your dic stand out
from the crowd ?

Regards.

On Thu, Sep 5, 2013 at 10:56 PM, Juan Sebastian Scatularo <
sebastianscatul...@gmail.com> wrote:

> Hello people, I want to share with you a simple and small Dependency
> Injector made for me.
>
> https://github.com/abloos/Sofia
>
> Regards
>
> --
> Facebook: www.facebook.com/JuanSebastianScatularo
> Twitter: www.twitter.com/js_scatularo
> Web: www.sebastianscatularo.com.ar
>



-- 
Sorin Badea - Software Engineer


Re: [PHP] PHP Dependency Injector

2013-09-05 Thread Sorin Badea
Juan, the problem with this list is that that there are too damn many dumb
questions. You did something nice but it doesn't stand out. You can check
Symfony2 DiC. You can use it as a stand alone component.


On Thu, Sep 5, 2013 at 11:30 PM, Juan Sebastian Scatularo <
sebastianscatul...@gmail.com> wrote:

> Sorry guys if disturbed.
>
>
> 2013/9/5 Bastien Koert 
>
>> Jee, that should have been a friday comment..."how does your dic standout"
>>
>>
>> On Thu, Sep 5, 2013 at 4:06 PM, Sorin Badea wrote:
>>
>>> There are few tutorials about home made dic. How does your dic stand out
>>> from the crowd ?
>>>
>>> Regards.
>>>
>>> On Thu, Sep 5, 2013 at 10:56 PM, Juan Sebastian Scatularo <
>>> sebastianscatul...@gmail.com> wrote:
>>>
>>> > Hello people, I want to share with you a simple and small Dependency
>>> > Injector made for me.
>>> >
>>> > https://github.com/abloos/Sofia
>>> >
>>> > Regards
>>> >
>>> > --
>>> > Facebook: www.facebook.com/JuanSebastianScatularo
>>> > Twitter: www.twitter.com/js_scatularo
>>> > Web: www.sebastianscatularo.com.ar
>>> >
>>>
>>>
>>>
>>> --
>>> Sorin Badea - Software Engineer
>>>
>>
>>
>>
>> --
>>
>> Bastien
>>
>> Cat, the other other white meat
>>
>
>
>
> --
> Facebook: www.facebook.com/JuanSebastianScatularo
> Twitter: www.twitter.com/js_scatularo
> Web: www.sebastianscatularo.com.ar
>



-- 
Sorin Badea - Software Engineer