php-general Digest 8 Aug 2012 16:53:22 -0000 Issue 7914

Topics (messages 318644 through 318649):

Re: [PECL-DEV] php-rsync installation howto
        318644 by: Mihamina Rakotomandimby
        318646 by: Lester Caine

using phar and compression
        318645 by: Hajo Locke

PHP session variables
        318647 by: Ansry User 01
        318648 by: Daniel Brown
        318649 by: David Harkness

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 ---
On 08/08/2012 08:29 AM, tamouse mailing lists wrote:
It's not just:

phpize
./configure
make
sudo make install


To be honnest, I dont know.
If it's really just about that, I'll submit a patch for this.

Is "phpize; ./configure; make; sudo make install" the default *manual* INSTALL process for a PECL package?

Thank you.

--
RMA.

--- End Message ---
--- Begin Message ---
Mihamina Rakotomandimby wrote:
On 08/08/2012 08:29 AM, tamouse mailing lists wrote:
It's not just:

phpize
./configure
make
sudo make install


To be honnest, I dont know.
If it's really just about that, I'll submit a patch for this.

Is "phpize; ./configure; make; sudo make install" the default *manual* INSTALL
process for a PECL package?

That IS the manual process, but the rsync package has not been updated since June 07 so while it says 5.2.6 or later, that may not be the case now?
So what is not working?
./configure --help should show what phpize has built, and librsync probably needs to be installed

Personally I have rsync running via it's own admin pack running scheduled backups so don't need it from php ...

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk



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

i do some tests with phar. I have following script which is just adding some file and index.php is echoing "hello";

<?php
$phar = new Phar('project.phar', 0, 'project.phar');
$phar->buildFromDirectory(dirname(__FILE__) . '/web');
$phar->setStub($phar->createDefaultStub('index.php'));
$compressed = $phar->convertToExecutable(Phar::PHAR,Phar::GZ, '.phar.tgz');
?>

This is working and i can call resulting by: "php project.phar"
Now i change last line to:
$compressed = $phar->convertToExecutable(Phar::TAR,Phar::GZ, '.phar.tgz');

Now the final phar archive should be compressed with tar. Creating the archive works without errors, but i cant run it. Viewing file project.phar.tgz shows only binary-content, no php-header. Running "php project.phar.tgz" shows no output. As i understood i can run any phar archive, regardless of used compressionmethod. Is this right? Am i using phar the correct way?

Thanks,
Hajo
--- End Message ---
--- Begin Message ---
I am setting the _SESSION variables in one of my file, but whenever I leave the 
php page session variables are not accessible. Not sure what I need to do 
additionally other then defining _SESSION[]. 
Any pointer.




--- End Message ---
--- Begin Message ---
On Wed, Aug 8, 2012 at 11:24 AM, Ansry User 01 <yrsna.res...@gmail.com> wrote:
> I am setting the _SESSION variables in one of my file, but whenever I leave 
> the php page session variables are not accessible. Not sure what I need to do 
> additionally other then defining _SESSION[].
> Any pointer.

    If you're not telling PHP (in php.ini) to auto-start the session,
then you'll need session_start() before accessing $_SESSION.  If
you're certain the session is being properly instantiated in the code,
make sure that the user as which the web server (Apache, et al) is
running has permission and available disk space to access the session
storage media (file system such as /tmp, database table, et cetera).

-- 
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/

--- End Message ---
--- Begin Message ---
On Wed, Aug 8, 2012 at 8:24 AM, Ansry User 01 <yrsna.res...@gmail.com>wrote:

> I am setting the _SESSION variables in one of my file, but whenever I
> leave the php page session variables are not accessible.


As always, post some code demonstrating what you're doing. Help us help
you! :)

David

--- End Message ---

Reply via email to