[PHP] Re: session languages array.

2004-03-29 Thread Rafael Cotta
Elliot J. Balanza [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I have a very strange problem, and i don't seem to figure out what is
wrong.

 I start a session, and register $_Session['Idiomas'];
 then i go to another page and select

 require(/lanugages/.$_Session['Idiomas']./main.php)

 to require the text array to display text. Now here comes the weird
thing...
 The first time I enter a page, it loads perfectly, then I go to another
 page, use the same exact sintax coming from the exact same directory, and
 the second time, it doesn't shows the variables.

 I was wondering if by initializing an array it stats up during the whole
 session, and then the second time i require it, it conflicts... but I dont
 have a clue about what is wrong.

 please help

 vamp.

Check wheter you have register_globals on or not (you can write a test.php
with the line echo ini_get('register_globals'); if it shows '1',
congratulations, your register globals is on).

If that is the case, you are probably setting $Idiomas to a different value
on your script, and it is messing with your $_SESSION['Idiomas'].

Regards,

Rafael Cotta
http://cifradasweb.net/

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



[PHP] Re: An extension to CREATE zips??

2004-03-15 Thread Rafael Cotta
I already made something like this on Linux using the exec function and zip
command. You'll need to find a command line zip utility for Windows.

But be very careful on using data sent by the user for exec'ing.

Regards,

Rafael
http://cifradasweb.net/


Brian J. Celenza [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Is there function library capable of creating zip files and adding files
to
 a zip archive under the windows/apache platform? After some extensive
 browsing I can only turn up read-only access functions.

 Thank you,
 Brian

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