[PHP] I have a problem with uploading files, can anybody help me!!!

2001-01-25 Thread Securez

I have a form that permit a user to upload files, but if the file is 1 or 2
Mb the time excess the script live time,
how i can change this, keeping the global value for script live time.

And if i want to permit a user to upload a file, wath is the best mayway to
do this, at this moment i need to make a chmod 701 to dir on which the user
want to upload files.

Can anybody help me??






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] I have a problem with uploading files, can anybody help me!!!

2001-01-25 Thread Securez

The seep function, it can sleep for a number of seconds, if i have
configured into php.ini the live time of a script to 30 sec. and if the
upload's time is more greather than 30 sec, the script dies.

What means the sleep function?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] I have a great problem with sessions, can anybody help me!!!

2001-02-22 Thread Securez

I install a new system RH6.2 width some updates the kernel is a 2.2.17-14
I use Apache 3.1.14 whit PHP 4.0.4pl1 compiles as a module.

I use a test page that is very simple to check sessions:

";

?>
reload

In the new machine this code every show 1, don't save session data.
I see in /tmp and all the sess_* files are empty.
I check configuration, etc, and don't found anything.

I check the same code in other machine with the same configuration, and
works fine.

Can anybody help me??



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] My system don't store session data, anybody can help me!!

2001-02-26 Thread Securez

In my system i have apache-1.3.17, (i probe 1.3.14 but the problem persist),
when i register a variable the session is generatet and a file sess_f5g ...
is generated under /tmp but the file is empty size=0, and no data is stored.

";

?>
reload

this example that works fine in other system with the same configuration,
don't work in my machine, everytime he say 1.

my system is a red hat 6.2 with 2.2.14 and my php is 4.0.4pl1



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] My system don't store session data, anybody can help me!!

2001-02-26 Thread Securez

This is a correction:

I create a new dir

/usr/local/tmp with this perms:

rwxrwxrwtrootroot

and change the dir for store session data to /usr/local/tmp and works, but
in certain situation the some data aren't sotored, :(.
in /tmp don't store data why??

I set loogin to a file if i set the file in /tmp/php.log the file is created
but empty, why??
i set this file in /usr/local/tmp it works fine.

i don't understand what is the problem, both dirs have the same permisions.





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Probem with headers. HELP ME!!!

2001-02-02 Thread Securez

I want to make a php script that outputs a file in a secure dir (outside of
web root), this scripts checks the permisions of the user to download the
file, i use phplib, and my probmem is when i call it from a browser the
filename to save is set always to test.php, can i send a header to specify
the name of file to save, or other form to make this.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Problem with headers, HELP ME!!!!!

2001-02-02 Thread Securez

I want to make a php script that outputs a file in a secure dir (outside of
web root), this scripts checks the permisions of the user to download the
file, i use phplib, and my probmem is when i call it from a browser the
filename to save is set always to test.php, can i send a header to specify
the name of file to save, or other form to make this.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Problems with error handling.

2001-02-19 Thread Securez

When I change the error handler, i set the error_reporting to:

error_reporting ( E_ALL ^ E_NOTICE);

but when i call a is_file function that return false a E_NOTICE error is
generated and my error handle trap it.

I know that error_reporting works, becouse if i set it to 0, the parse
errors aren't printed, but E_NOTICE stat failed appears when a is_file,
is_dir function return false.

Can anybody help me on this




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]