[PHP] disable_functions per vhost on apache

2004-12-21 Thread Eduardo M. Bragatto
Hi folks,
	according to this old message 
[http://www.mail-archive.com/php-general@lists.php.net/msg87293.html] 
it's not possible to use php_value disable_functions on Apache's vhost.
	Since this message is two years old I would like to know if it's still 
being true.
	I have to allow system() for my control center script but I don't want 
my users to use it.
	How can I do it?

--
Best regards,
Eduardo M. Bragatto.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] constants and sessions

2002-11-12 Thread Eduardo M. Bragatto
	I have to change the constant maximum_time_out (via
set_timeout_limit) on the first script, and keep it seted
in a session, until the second script became to be loaded.
Is that possible?

		[[]]'s Bragatto

PS: sorry for my miserable english #)



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




[PHP] time out when uploading.. PLEASE HELP ME :)

2002-11-11 Thread Eduardo M. Bragatto
I'm using a simple php script called upload.php, here's the source:

?php

move_uploaded_file($userfile, /my/dir);

?

But I keep getting an error message:

Fatal error: Maximum execution time of 20 seconds exceeded in 
D:\dominios\E\escolas-es\spe\upload.php on line 3

Then, I've tried to increase the time limit with the set_time_limit
(the server isn't running on safe-mode, so I can use it, I've tested
this function and it really works):

?php

set_time_limit(600);

move_uploaded_file($userfile, /my/dir);

?

But the error doesn't stop! When I send small files, it works, but 
larges files, that takes more than 20 seconds to upload, results in
this error. It seems that the php script begins only AFTER upload,
so when the files are big, it waits until the time exceed. How can I
workaround this problem? Please help me out!

		[[]]'s Bragatto



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



[PHP] trouble with maximum_execution_time and file upload

2002-11-03 Thread Eduardo M. Bragatto
I've send an e-mail with a doubt related with the
maximum_execution_time variable but it has no answers, so, I'm
submiting it again...

I'm using a single php script to send files named upload.php,
here is the source code:

?php

set_time_limit(500);

copy($userfile, log\\$userfile_name);

echo htmlheadtitleUploading file.../titlemeta 
http-equiv=\refresh\ content=\0; 
url=http://test.com/file_sent.html\;/headbodycenterfont 
face=\Verdana\ size=\4\Uploading 
file.../font/center/body/html;

?

I've tried to change the time limit because there's an error that
doesn't stop when trying to send big files (when the duration of
upload takes more than 20 seconds):

Fatal error: Maximum execution time of 20 seconds exceeded in
D:\dominios\E\escolas-es\spe\upload.php on line 2

As you can see, the time limit is exceeded before the
set_time_limit is executed. I thing that's because the script begins
only after the file is uploaded. My problem is that I can't change the
maximum_execution_time in the configuration file.

Does anyone knows how to solve that problem?

Thank you,
Eduardo M. Bragatto.

PS: Sorry for my miserable english #)



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



[PHP] Time limit exceeded when uploading files

2002-11-02 Thread Eduardo M. Bragatto
	I'm using a single php script to send files named upload.php,
here is the source code:

?php

set_time_limit(500);

copy($userfile, log\\$userfile_name);

echo htmlheadtitleUploading file.../titlemeta 
http-equiv=\refresh\ content=\0; 
url=http://test.com/file_sent.html\;/headbodycenterfont 
face=\Verdana\ size=\4\Uploading 
file.../font/center/body/html;

?

I've tried to change the time limit because there's an error that
doesn't stop:

Fatal error: Maximum execution time of 20 seconds exceeded in
D:\dominios\E\escolas-es\spe\upload.php on line 2

	As you can see, the time limit is exceeded before the
set_time_limit is executed. I thing that's because the script begins
only after the file is uploaded. My problem is that I can't change the
maximum_execution_time in the configuration file.
	Does anyone can help me out?

		Thank you,
		Eduardo M. Bragatto.



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