[PHP] Problems when running Java program

2007-04-04 Thread Fernando M M
Hello, I have a Java program that gives me a string. When i run this program on the shell everything works fine but when i try to run using shell_exec i get Error occurred during initialization of VM Could not reserve enough space for code cache This script is currently on a VPS server with php

Re: [PHP] Re: date() and timezone

2006-12-15 Thread Fernando M. M.
> > that will teach not to use global include files to init your apps. > > even if you we stuck with editing 10,000 scripts (btw it sounds very fishy > to 10,000 scripts with date() calls in them - can anyone say 'code reuse'?) > exactly how hard would it be to write something that would go thr

[PHP] Curl and cookies

2006-12-15 Thread Fernando M. M.
Hello, I have just started using curl and i have some question about cookies. The website i'm logging in controls everything using cookies (from login to the actions inside it). Is there a way to store the cookie values into a php session variable ($_SESSION['cookie'])? How do i make curl rec

Re: [PHP] Re: date() and timezone

2006-12-15 Thread Fernando M. M.
Hello, >>> But like i said i have lots of scripts inside this >>> folder, is there a way to set something on .htaccess to change the timezone? >> > > why? ;-) Because i can't set the timezone for every single script. Inside this folder and subfolders i guess there are about 10,000 scripts.

Re: [PHP] date() and timezone

2006-12-14 Thread Fernando M. M.
I´m using php5 here. But like i said i have lots of scripts inside this folder, is there a way to set something on .htaccess to change the timezone? > Fernando M. M. wrote: >> >> Hello, >> >> I have a lot of php scripts that uses date() for some important >

[PHP] date() and timezone

2006-12-14 Thread Fernando M. M.
Hello, I have a lot of php scripts that uses date() for some important operations. Yesterday those scripts were moved to another server which is on an different timezone. I haven't predicted this so my scripts aren't working anymore. The servers timezone is GMT -4 and mine is GMT -2. Is there a

[PHP] Retransmiting post variables

2006-12-12 Thread Fernando M. M.
Hello, I have a script called redir.php that is used only for redirecting using the following code: header('Location: ', $_GET['url']); But now i need to redirect post varibles too. Example: If someone access redir.php?url=my_page.php and post: &a=1&b=2 I need to send this post string (as p

Re: [PHP] Error with array and include

2006-12-05 Thread Fernando M. M.
ng as a string and not an array. On Tue, 05 Dec 2006 13:11:12 -0200, "Fernando M. M." <[EMAIL PROTECTED]> wrote: Hi, I'm having a strange problem when trying to show a array after its value was defined on a file that was included. Something like this: On the file lang/pt_BR

[PHP] Error with array and include

2006-12-05 Thread Fernando M. M.
Hi, I'm having a strange problem when trying to show a array after its value was defined on a file that was included. Something like this: On the file lang/pt_BR/login.php i have this... But the result of the first script is 'S' (without quotes). If i change lang/pt_BR/login.php to I