Re: [PHP] Need to recompile php 4.3.4

2006-06-17 Thread Mauricio Pellegrini
Well, this is what I've done. 
First, made a test on a Fedora Core 2 installation by running
./configure  --with etc,etc  and --enable-bcmath

Then executed make in order to generate executables but 
*DID NOT* run make install

After that, copied manually libphp4.so from the build directory to
libexec under apache tree and restarted apache. It worked just fine!!

after that bcmath was shown by phpinfo() as been loaded.

Then, did the same steps on the production server 
( the diference here is that the operating System is Suse 8.2 Not Fedora
core 2.)

Repeated all steps as before and bcmath was enabled. But phpinfo()
 does not show the correct Build date for Php ( which should be today )
neither shows the configure option with the --enable-bcmath switch

but it does show a section below in wich states that bcmath support is
enabled.

And of course tested with some php module that wasn't running before,
and now it works, so I think everything is fine.


These are the steps i used 
 1. re-configure (./configure --enable-bcmath or what ever other switch)
 2. then run the Make utility
 3. after that manually copy libphp4.so to libexec under apache tree.

One last comment: The Zend optimizer continues to work perfectly
after the whole process


I would like to hear some experienced user comments about this

Thanks 
Mauricio





On Fri, 2006-06-16 at 21:48, chris smith wrote:
> On 6/17/06, Mauricio Pellegrini <[EMAIL PROTECTED]> wrote:
> > Hi ,
> > In order to enable bcmath I need to recompile php 4.3.4 on suse 8.2.
> >
> >
> > but , I would like to preserve the actual installation just in case
> > anything goes wrong ( as this is my production server)
> >
> > What files should I backup / restore if after compilation php is not
> > working?
> >
> >
> > My actual installation consists of php 4.3.4 With the Zend Optimizer
> > and apache 1.329
> 
> Install them in different paths (configure --prefix=...), it will make
> it a lot easier.
> 
> If you installed originally from rpms, you should be able to find
> where it put stuff (rpm -qpl php I think).. If you compiled then
> phpinfo will show you the original prefix and you can backup that
> structure.
> 
> Not sure whether ZO will cope with that, but I guess you'll soon find out ;)
> 
> -- 
> Postgresql & php tutorials
> http://www.designmagick.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Need to recompile php 4.3.4

2006-06-16 Thread Mauricio Pellegrini
Hi , 
In order to enable bcmath I need to recompile php 4.3.4 on suse 8.2.


but , I would like to preserve the actual installation just in case
anything goes wrong ( as this is my production server)

What files should I backup / restore if after compilation php is not
working?


My actual installation consists of php 4.3.4 With the Zend Optimizer
and apache 1.329 


Thanks 
MAuricio

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] bcdiv() function not recognized

2006-06-16 Thread Mauricio Pellegrini
Hi all, 
I'm usuing bcdiv like this

> $someVar=bcdiv($timedifference,86400);

and it works perfectly on my local server apache 1.329 , php 4.34 and
suse 8.2


But when I put that module on the production server I get this error 

Fatal error:Call to undefined function:bcdiv() in /www/tst.php on line 9




Production Server is Suse 8.2 apache 1.329 php 4.34 


What could be the problem here ?


Thanks
 Mauricio

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to execute multiples querys

2006-04-26 Thread Mauricio Pellegrini
On Wed, 2006-04-26 at 13:48, Robert Cummings wrote:
> On Wed, 2006-04-26 at 10:36, Mauricio Pellegrini wrote:
> > On Wed, 2006-04-26 at 11:09, nicolas figaro wrote:
> > > Mauricio Pellegrini a écrit :
> > > >>> $quer1 = "SET @var1=3 ;
> > > >>>   SELECt * from table1 Where [EMAIL PROTECTED] " ;
> > > >>>
> > > >>>
> > > >>> This gave a syntax error from MySQL inmmediately before the ";"
> > > >>> (semicolon),
> > > >>>
> > 
> > 
> > > >>>   
> > > did you try to run the query above
> > > 
> > > ( SET @var1=3 ; SELECt * from table1 Where [EMAIL PROTECTED] )
> > > 
> > > directly from a mysql client ?
> > 
> > Yes, I did and it Works perfectly.
> > 
> > 
> > > perhaps the @ is interpreted and you have to put a \ before it.
> > > try a print $quer1 once $quer1 is set.
> > 
> > I've tried this too. The output is sintactically correct.
> > I even copied the output of the query and pasted it to Mysqlcc an
> > executed it perfectly.
> > 
> > 
> > 
> > A few minutes ago I found that mysql_query() cannot execute more than
> > one query at a time 
> > so the form mysql_query("SET @var1=3 ; SELECT * from ") is invalid 
> > 
> > 
> > But the other way should work
> 
> Try explicitly retrieving a resource ID from mysql_connect, and
> explictly use that resource when making the query. Probably not the
> problem, but sounds like something is being lost from one query to
> another.
Thank you that's true.
Theres another module in the middle and that is getting only the last
query

Thanks to all
Mauricio

> 
> Cheers,
> Rob.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to execute multiples querys,IT is SOLVED!!

2006-04-26 Thread Mauricio Pellegrini
On Wed, 2006-04-26 at 13:07, Martin Alterisio wrote:
> You should be able to do this in two calls to the mysql_query()
> function.
> mysql_query("SET @var1=3");
> mysql_query("SELECT * from table1 Where [EMAIL PROTECTED]");
It worked this way!

It seems I musta had some other problem somewhere else thank you

Thank you all
MAuricio

> 
> 2006/4/26, Mauricio Pellegrini <[EMAIL PROTECTED]>:
> Hi all
> 
> I'm trying to execute two querys and they execute perfectly in
> fact,
> but after the execution of the first query there suposed to be
> some
> variable setted to a certain value.
> 
> The problem is this variable is not available at the time the
> second 
> query runs.
> 
> I`ll try to explain a little bit further
> 
> //This is my first query
> 
> $quer1=" SET @var1=3 ";//Here I`m suposed to set the value for
> var1 to 3
> mysql_query($quer1);
> 
> // This is query #2 
> 
> $query2="SELECT * from table1 where [EMAIL PROTECTED] "//Here @var1
> doesn`t
> exist
> 
> 
> That wasn't really my first attempt. Originally
> I've tryied the whole thing in just one single query but mysql
> gave me 
> an error message complinning about the semicolon
> 
> Please look at this
> 
> $quer1 = "SET @var1=3 ;
> SELECt * from table1 Where [EMAIL PROTECTED] " ;
> 
> 
> This gave a syntax error from MySQL inmmediately before the
> ";" 
> (semicolon),
> 
> 
> Please any help greatefully appreciated
> 
> Thanks
> Mauricio
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to execute multiples querys

2006-04-26 Thread Mauricio Pellegrini
On Wed, 2006-04-26 at 11:04, chris smith wrote:
> On 4/26/06, Mauricio Pellegrini <[EMAIL PROTECTED]> wrote:
> > On Wed, 2006-04-26 at 10:32, nicolas figaro wrote:
> > > Mauricio Pellegrini a écrit :
> > > > Hi all
> > > >
> > > > I'm trying to execute two querys and they execute perfectly in fact,
> > > > but after the execution of the first query there suposed to be some
> > > > variable setted to a certain value.
> > > >
> > > > The problem is this variable is not available at the time the second
> > > > query runs.
> > > >
> > > > I`ll try to explain a little bit further
> > > >
> > > > //This is my first query
> > > >
> > > > $quer1=" SET @var1=3 ";//Here I`m suposed to set the value for var1 to 3
> > > > mysql_query($quer1);
> > > >
> > > > // This is query #2
> > > >
> > > > $query2="SELECT * from table1 where [EMAIL PROTECTED] "//Here @var1 
> > > > doesn`t
> > > > exist
> 
> If you try this through a mysql console or through something like
> phpmyadmin does it work?
> 

Yes, it works.

> --
> Postgresql & php tutorials
> http://www.designmagick.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to execute multiples querys

2006-04-26 Thread Mauricio Pellegrini
On Wed, 2006-04-26 at 11:09, nicolas figaro wrote:
> Mauricio Pellegrini a écrit :
> >>> $quer1 = "SET @var1=3 ;
> >>>   SELECt * from table1 Where [EMAIL PROTECTED] " ;
> >>>
> >>>
> >>> This gave a syntax error from MySQL inmmediately before the ";"
> >>> (semicolon),
> >>>


> >>>   
> did you try to run the query above
> 
> ( SET @var1=3 ; SELECt * from table1 Where [EMAIL PROTECTED] )
> 
> directly from a mysql client ?

Yes, I did and it Works perfectly.


> perhaps the @ is interpreted and you have to put a \ before it.
> try a print $quer1 once $quer1 is set.

I've tried this too. The output is sintactically correct.
I even copied the output of the query and pasted it to Mysqlcc an
executed it perfectly.



A few minutes ago I found that mysql_query() cannot execute more than
one query at a time 
so the form mysql_query("SET @var1=3 ; SELECT * from ") is invalid 


But the other way should work

Thanks 
Mauricio


> >>> Please any help greatefully appreciated
> >>>
> >>> Thanks 
> >>> Mauricio 
> >>>
> >>>   
> >>>   
> >
> >
> > Yes, I need to do it exactly this way.
> > I mean , SET the value for the variable @var1 first.
> > Then execute an undefined number of querys that reference this variable
> > and its value.
> >
> > Thanks 
> > Mauricio
> >
> >   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to execute multiples querys

2006-04-26 Thread Mauricio Pellegrini
On Wed, 2006-04-26 at 11:04, chris smith wrote:
> On 4/26/06, Mauricio Pellegrini <[EMAIL PROTECTED]> wrote:
> > On Wed, 2006-04-26 at 10:32, nicolas figaro wrote:
> > > Mauricio Pellegrini a écrit :
> > > > Hi all
> > > >
> > > > I'm trying to execute two querys and they execute perfectly in fact,
> > > > but after the execution of the first query there suposed to be some
> > > > variable setted to a certain value.
> > > >
> > > > The problem is this variable is not available at the time the second
> > > > query runs.
> > > >
> > > > I`ll try to explain a little bit further
> > > >
> > > > //This is my first query
> > > >
> > > > $quer1=" SET @var1=3 ";//Here I`m suposed to set the value for var1 to 3
> > > > mysql_query($quer1);
> > > >
> > > > // This is query #2
> > > >
> > > > $query2="SELECT * from table1 where [EMAIL PROTECTED] "//Here @var1 
> > > > doesn`t
> > > > exist
> 
> If you try this through a mysql console or through something like
> phpmyadmin does it work?

Yes, It works perfectly!.

>From Mysql console or MysqlCC or EMS MySQLmanager


> --
> Postgresql & php tutorials
> http://www.designmagick.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to execute multiples querys

2006-04-26 Thread Mauricio Pellegrini
On Wed, 2006-04-26 at 10:32, nicolas figaro wrote:
> Mauricio Pellegrini a écrit :
> > Hi all
> >
> > I'm trying to execute two querys and they execute perfectly in fact,
> > but after the execution of the first query there suposed to be some
> > variable setted to a certain value. 
> >
> > The problem is this variable is not available at the time the second
> > query runs. 
> >
> > I`ll try to explain a little bit further
> >
> > //This is my first query 
> >
> > $quer1=" SET @var1=3 ";//Here I`m suposed to set the value for var1 to 3
> > mysql_query($quer1);
> >
> > // This is query #2
> >
> > $query2="SELECT * from table1 where [EMAIL PROTECTED] "//Here @var1 doesn`t
> > exist 
> >
> >   
> why don't you build the second query directly with the value ?
> $query2 = "SELECT * from table where col1=".$value;
> 
> why do you need a query to set @VAR1=3 ?
> (do you plan to use @VAR in another query ?).
> 
> N F
> 
> > That wasn't really my first attempt. Originally
> > I've tryied the whole thing in just one single query but mysql gave me
> > an error message complinning about the semicolon
> >
> > Please look at this
> >
> > $quer1 = "SET @var1=3 ;
> > SELECt * from table1 Where [EMAIL PROTECTED] " ;
> >
> >
> > This gave a syntax error from MySQL inmmediately before the ";"
> > (semicolon),
> >
> >
> > Please any help greatefully appreciated
> >
> > Thanks 
> > Mauricio 
> >
> >   


Yes, I need to do it exactly this way.
I mean , SET the value for the variable @var1 first.
Then execute an undefined number of querys that reference this variable
and its value.

Thanks 
Mauricio

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] How to execute multiples querys

2006-04-26 Thread Mauricio Pellegrini
Hi all

I'm trying to execute two querys and they execute perfectly in fact,
but after the execution of the first query there suposed to be some
variable setted to a certain value. 

The problem is this variable is not available at the time the second
query runs. 

I`ll try to explain a little bit further

//This is my first query 

$quer1=" SET @var1=3 ";//Here I`m suposed to set the value for var1 to 3
mysql_query($quer1);

// This is query #2

$query2="SELECT * from table1 where [EMAIL PROTECTED] "//Here @var1 doesn`t
exist 


That wasn't really my first attempt. Originally
I've tryied the whole thing in just one single query but mysql gave me
an error message complinning about the semicolon

Please look at this

$quer1 = "SET @var1=3 ;
SELECt * from table1 Where [EMAIL PROTECTED] " ;


This gave a syntax error from MySQL inmmediately before the ";"
(semicolon),


Please any help greatefully appreciated

Thanks 
Mauricio 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Help retrieving an HTML array

2006-02-01 Thread Mauricio Pellegrini
Thank you all for your valuable support.

The problem is solved.

Note: 
This kind of input definition (without the brackets)  actually *DOES*
create an array under HTML 4.x (and its subindexes are accesible thru
javascript)
 You forgot the array append operator:
> 
> 
>
> I also took the liberty of adding double quotes to your attributes. There's no
> excuse for writing slop.
> 
> To see what that produces... get used to doing:
> 
> echo ''."\n";
> print_r( $_POST );
> echo "\n".'';
> 
> Cheers,
> Rob.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Help retrieving an HTML array

2006-02-01 Thread Mauricio Pellegrini
Hi ,
 I have a HTML page with a form in which there are some inputs like
these:

input type=text  name=xname value="3303"
input type=text  name=xname value="9854"

input type=text  name=xname value="n..."


the name of the input is always the same ( xname )

This generates automatically generates an array named xname in HTML 
with all the diferent values assigned to a diferent position.


My question is :

How do I retrieve that array from within PHP ?


I've tryed the following

$xname=$_REQUEST['xname'];

and then
echo $xname[0][0] ; // this returns nothing
echo $xname[0] ;// this returns only first digit of the first input 

None of the above seem to recognize that xname is ( in HTML ) an array .

Any help greatly appreciated

Thanks
Mauricio







On Sun, 2005-10-02 at 19:38, adriano ghezzi wrote:
> if i understand well you need to get an array from html post
> 
> 
> if you use the same name for your html fields you automatically have
> an array in $_POST
> 
> eg
> 
> input type=text  name=myfield value="field_1"
> input type=text name=myfield value="field_2"
> 
> you'll get the array  ar_myfield = $_POS['myfield']
> 
> you should achieve the same result using myfield[key] in the name of html
> 
> hyh
> 
> by ag.
> 
> 
> 2005/10/2, Martin van den Berg <[EMAIL PROTECTED]>:
> > Newbe question:
> >
> > How does one convert an array into a HTML GET request easely? Are
> > there any standard functions?
> >
> > Same for HTML POST requests.
> >
> > Thanks,
> >
> > Martin.
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Session expires randomly

2005-09-08 Thread Mauricio Pellegrini
On Tue, 2005-09-06 at 19:43, Philip Hallstrom wrote:
> On Tue, 6 Sep 2005, Mauricio Pellegrini wrote:
> 
> > You were right! That was exactly the problem
> > after reading your message, I 've verified the value for gc_maxlifetime
> > and found that it was set to 1440 secs in other words 24 minutes.
> >
> > Thank you for that.
> >
> > But, now I need to come up with something to avoid this behaviour.
> >
> > The problem is that there's a second php application ruuning on the same
> > server and I don't want to change the default for gc_maxlilfetime,
> 
> 
> Why not just change it on your pages?  The manual says it can get changed 
> anywhere... so just make a call to ini_set() on your pages and other 
> scripts will remain unaffected.
> 
> ?


Well I`ve just tryed that but didn't work.

I think that ini_set("session.gc_maxlifetime","28800") is useless,
because after setting the value for gc.maxlifetime the scripts ends
normally.

 I mean the html is displayed and the application waits for user input.
But at that time ( after the script has finished ) the original value
for session.gc_maxlifetime is restored (defaults to 1440).

So , does any one have any other ideas?

Thanks 
Mauricio






> 
> 
> 
> 
> >
> > So I was thinking on implementing some sort of automatic session refresh
> > after a short period, let's say every 20 minutes of inactivity.
> >
> > And of course I should provide the users with a manual way to make
> > session end, sort of a logout from the application.( no problem with
> > that)
> >
> > My question is:
> >
> >  Is there a way to set sort of a timer as to invoke an hipothetical
> > "refresh_session.php" without reloading the current page on the client?
> >
> > Thanks
> > Mauricio.
> >
> >
> >
> > On Fri, 2005-09-02 at 14:20, [EMAIL PROTECTED] wrote:
> >>> On Fri, 2 Sep 2005, Mauricio Pellegrini wrote:
> >>>
> >>>> Hi, I have this problem , When I start a Session everything seems to
> >> be
> >>>> ok but sometimes with no reason the session vanishes.
> >>>>
> >>>> All settings are default , I mean session_cache_expire is 180 min.
> >>>> I understand that this setting should make sessions last for at least
> >> 3
> >>>> hours but in my case it seems not to be true since the real duration
> >>>> varies from 20 minutes to an hour
> >>
> >> I think the parameter you need to look at in php.ini is
> >> session.gc_maxlifetime. It sets the session lifetime, not
> >> session_cache_expire. The default lifetime is probably 1440 seconds,
> >> roughly 20 minutes, so the behavior you are seeing is completely normal -
> >> it's all working as it should.
> >>
> >> Kirk
> >
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Session expires randomly

2005-09-06 Thread Mauricio Pellegrini
You were right! That was exactly the problem
after reading your message, I 've verified the value for gc_maxlifetime
and found that it was set to 1440 secs in other words 24 minutes.

Thank you for that.

But, now I need to come up with something to avoid this behaviour.

The problem is that there's a second php application ruuning on the same
server and I don't want to change the default for gc_maxlilfetime,

So I was thinking on implementing some sort of automatic session refresh
after a short period, let's say every 20 minutes of inactivity.

And of course I should provide the users with a manual way to make
session end, sort of a logout from the application.( no problem with
that)

My question is:

 Is there a way to set sort of a timer as to invoke an hipothetical
"refresh_session.php" without reloading the current page on the client?

Thanks
 Mauricio.



On Fri, 2005-09-02 at 14:20, [EMAIL PROTECTED] wrote:
> > On Fri, 2 Sep 2005, Mauricio Pellegrini wrote:
> > 
> > > Hi, I have this problem , When I start a Session everything seems to 
> be
> > > ok but sometimes with no reason the session vanishes.
> > >
> > > All settings are default , I mean session_cache_expire is 180 min.
> > > I understand that this setting should make sessions last for at least 
> 3
> > > hours but in my case it seems not to be true since the real duration
> > > varies from 20 minutes to an hour
> 
> I think the parameter you need to look at in php.ini is 
> session.gc_maxlifetime. It sets the session lifetime, not 
> session_cache_expire. The default lifetime is probably 1440 seconds, 
> roughly 20 minutes, so the behavior you are seeing is completely normal - 
> it's all working as it should.
> 
> Kirk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Session expires randomly

2005-09-02 Thread Mauricio Pellegrini
Hi, I have this problem , When I start a Session everything seems to be
ok but sometimes with no reason the session vanishes.

I'm using PHP 4.3.4 as a Apache module. 
Apache version is 1.3 under Suse Linux 8.2

All settings are default , I mean session_cache_expire is 180 min.
I understand that this setting should make sessions last for at least 3
hours but in my case it seems not to be true since the real duration
varies from 20 minutes to an hour

I use session_start()
and then on any routine I verify the existence of certain session
variables.

Is the server expiring the session automatically for some reason?

Thanks
Mauricio

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] How to add .zip or gzip compression to the php module

2005-08-09 Thread Mauricio Pellegrini
Hi ,

This time I'm trying to add support for compressed files
into the PHP module version 4.3.4 running with Apache 1.3.29

I remember adding dbase and mysql support with the following command

> './configure' '--with-mysql' '--with-apxs=/usr/local/apache/bin/apxs'
> '-enable-dbase' 

Now I need to be able to create .zip files from within my php scripts,so
my questions are:

1 ) Which command should I use when recompiling ?

2 ) Is it possible to save my actual compiled module just in case the
new one has any problem? 


Thanks a lot
Mauricio

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Can I retrieve a stored php session variable from within a javascript function?

2005-08-08 Thread Mauricio Pellegrini
Thanks Rick, it helped.
also I'll do some reading about AJAX (as soon as I can..)

Regards 
Mauricio

On Sat, 2005-08-06 at 11:58, Rick Emery wrote:
> Quoting Mauricio Pellegrini <[EMAIL PROTECTED]>:
> 
> > Hi ,
> > I wonder if it's possible to retrieve the value from a php session
> > variable from within a javascript function.
> 
> I'm no PHP expert, but I'll give it a try (there are plenty of smart 
> people on this list who will correct me if Im wrong :-)
> 
> > Does anyone have any ideas about this?
> 
> Yes, two of the top of my head.
> 
> 1. You can send the session variable to the client along with the script.
> 
> ex.
> function doSomething()
> {
>sessVar = ;
> 
>// Do some stuff.
> }
> 
> Of course, sessVar won't be updated if the session variable changes 
> unless the script is reloaded.
> 
> 2. My favorite, but probably overkill. Write a php page that outputs 
> the session variables (as XML would be cool). Then use xmlhttprequest 
> to retrieve them from javascript (Google AJAX for more information).
> 
> Hope this helps,
> Rick
> -- 
> Rick Emery
> 
> "When once you have tasted flight, you will forever walk the Earth
> with your eyes turned skyward, for there you have been, and there
> you will always long to return"
>   -- Leonardo Da Vinci

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Can I retrieve a stored php session variable from within a javascript function?

2005-08-08 Thread Mauricio Pellegrini
Thanks for your advice.
 I've heard of this technique before but wanted to know if there was
another way to do it from Javascript.

Regards 
Mauricio


On Sat, 2005-08-06 at 11:05, Burhan Khalid wrote:
> Mauricio Pellegrini wrote:
> > Hi , 
> > I wonder if it's possible to retrieve the value from a php session
> > variable from within a javascript function.
> > 
> > Does anyone have any ideas about this?
> 
> No. You cannot retrieve it, restore it, read it, send it, anything else.
> 
> You can write it from PHP :
> 
> echo 'var sess = 
> '.$_SESSION['somevar'].'';
> 
> But that's it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Can I retrieve a stored php session variable from within a javascript function?

2005-08-05 Thread Mauricio Pellegrini
Hi , 
I wonder if it's possible to retrieve the value from a php session
variable from within a javascript function.

Does anyone have any ideas about this?

Thank you 
Mauricio

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to execute local applications on the client

2005-06-08 Thread Mauricio Pellegrini
First, thanks to all who replied!
and yes I was aware of that kind of security issues and expected no
positive results upon my question.
But I've forgotten about the wsh.
Now I think I would use it in case it is *absolutely* necessary

Thanks again 
Mauricio

On Tue, 2005-06-07 at 21:28, Rory Browne wrote:
> Sort of. There are two ways to do this(that I can think of, and
> neither of them are too reliable. Consider this: how would you like if
> any random website, could run any program they liked on your computer?
> This could range from word/excel, to less amicable programs like ones
> that control your speakers/microphone, etc.
> 
> Having that said, you can use nsiProcess(in netscape/gecko based
> browsers.), or wsh for MSIE. I'm not sure exactly how to do this. I
> just remember reading some code that needed this. On
> netscape/mozilla/gecko you'll have to tell the script to override the
> security preventing this(the user will be shown a dialog box, asking
> them to confirm this). I'm not sure what the situation is with MSIE,
> but expect to encounter some security issues.
> 
> I don't know any examples for nsIProcess off-hand, but you can check
> out the PHUI Code for an example on doing this on MSIE.
> 
> On 6/7/05, Mauricio Pellegrini <[EMAIL PROTECTED]> wrote:
> > Hi, sorry if what I am asking makes no sense, but here it goes..
> > 
> > Some one has asked me to set a web page from within wich users could
> > launch local applications. Those applications are allready installed in
> > the client PC.
> > 
> > The link on the web page would act as a simple link to start the
> > application.
> > 
> > This page would be something that resembles the windows desktop with all
> > its links on it.
> > 
> > My question is would it be possible to start in example word or excel
> > from a link in a web page?
> > 
> > Thanks for your answers
> > Mauricio
> > 
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> > 
> >
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] How to execute local applications on the client

2005-06-07 Thread Mauricio Pellegrini
Hi, sorry if what I am asking makes no sense, but here it goes..

Some one has asked me to set a web page from within wich users could
launch local applications. Those applications are allready installed in
the client PC.

The link on the web page would act as a simple link to start the
application.

This page would be something that resembles the windows desktop with all
its links on it.

My question is would it be possible to start in example word or excel
from a link in a web page?

Thanks for your answers
Mauricio

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to add Zlib support

2004-08-24 Thread Mauricio Pellegrini
Curt Zirzow wrote:

> * Thus wrote Mauricio Pellegrini:
>> 
>> It's a requisite that the compression library has to be zlib.
>> 
>> I don't know how to do that.
>> 
>> I guess I should reconfigure with
>> 
>> './configure'
>> '--with-mysql'
>> '--with-apxs=/usr/local/apache/bin/apxs'
>> '--with-zlib'
>> '-enable-dbase'
>> 
>> then run ./make and ./make install
>> 
>> But I'm afraid tha something could go wrong and end-up
>> with a whole useless installation
> 
> These procdures should go without any flaws. If you're extra parnoid,
> the best thing to do is back up your current stuff so incase there
> is something wrong, you can restore them:
> 
> php module for apache should be located in:
>   /usr/local/apache/libexec/libphp.so
> 
> php config files:
>   /usr/local/lib/php*.ini
> 
> php misc files (aka pear, headers, etc.):
>   /usr/local/lib/php/*
> 
> And finaly the executables for php:
>   /usr/local/bin/php*
> 
> 
> HTH,
> 
> Curt


Ok, Thanks .

But should I recompile only php or do I have to recompile
apache,mysql,etcetera,etcetera?


-- 
Mauricio

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] How to add Zlib support

2004-08-23 Thread Mauricio Pellegrini

Hi ,

 On  March 9th this year I 've compiled and installed php 4.3.4 on
SuSe linux Server with apache 1.3.


The configure command was this:

'./configure'
'--with-mysql'
'--with-apxs=/usr/local/apache/bin/apxs'
'-enable-dbase' 

Nowadays I'm urged to install zlib support in order to let the
developers to make use of compressed files.

It's a requisite that the compression library has to be zlib.

I don't know how to do that. 

I guess I should reconfigure with 

'./configure'
'--with-mysql'
'--with-apxs=/usr/local/apache/bin/apxs'
'--with-zlib'
'-enable-dbase' 

then run ./make and ./make install

But I'm afraid tha something could go wrong and end-up
with a whole useless installation 



Could someone point me in the right direction?


Thanks 
Mauricio

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] How to add zlib support

2004-08-23 Thread Mauricio Pellegrini
Hi ,

 On  March 9th this year I 've compiled and installed php 4.3.4 on
SuSe linux Server with apache 1.3.


The configure command was this:

'./configure'
'--with-mysql'
'--with-apxs=/usr/local/apache/bin/apxs'
'-enable-dbase' 

Nowadays I'm urged to install zlib support in order to let the
developers to make use of compressed files.

It's a requisite that the compression library has to be zlib.

I don't know how to do that. 

I guess I should reconfigure with 

'./configure'
'--with-mysql'
'--with-apxs=/usr/local/apache/bin/apxs'
'--with-zlib'
'-enable-dbase' 

then run ./make and ./make install

But I'm afraid tha something could go wrong and end-up
with a whole useless installation 



Could someone point me in the right direction?


Thanks 
Mauricio

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php