[PHP] Problem with sessions

2003-07-17 Thread Peda
I'm working on a website.
Begining of my script is:


But when I conect to website I get this warning message:


Warning: session_start(): open(tmp/sess_41e301350c11c38d0249bc8c72ffb2ec,
O_RDWR) failed: Permission denied (13) in
/home2/pena/public_html/listing1.php on line 3

Can anyone tell me what is wrong?

Thankx in advance!







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



[PHP] Problem with sessions

2003-07-17 Thread Peda
I'm working on a website.
Begining of my script is:


But when I conect to website I get this warning message:


Warning: session_start(): open(tmp/sess_41e301350c11c38d0249bc8c72ffb2ec,
O_RDWR) failed: Permission denied (13) in
/home2/pena/public_html/listing1.php on line 3

Can anyone tell me what is wrong?

Thankx in advance!









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



[PHP] mail function

2003-07-20 Thread Peda
I put this PHP script on web server:



But It seems that mail function doesn't work. I don't get any e-mail.

Can anyone tell me what is wrong.

Greetings.



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



Re: [PHP] mail function

2003-07-20 Thread Peda
sendmail_path = /usr/sbin/sendmail
OS is Linux




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



[PHP] Re: mail function

2003-07-21 Thread Peda
Thank you!!!
Headers solved my problem.



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



[PHP] File upload

2003-07-25 Thread Peda
I want to upload some file to my web site.

I'm using this script:



 Upload Form




Upload a file: 






The upload_single.php script is just this:


I just want for begining to print the name of file.

But It doesn't work.

Operating system is Linux.
Web server is Apache.

Can anyone help me.

Greetings!
Peda.



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



Re: [PHP] File upload

2003-07-25 Thread Peda
> Do you have file uploads enabled in php.ini? Take a look at a phpinfo()
> page for details.

Yes I have.



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



Re: [PHP] File upload

2003-07-25 Thread Peda

>
> maybe you should try $HTTP_POST_FILES?
>
I have tryed that too, but nothing happened.



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



[PHP] Re: File upload

2003-07-25 Thread Peda
> did you look what comes from your form? try:
> var_export($_FILES);


It comes the empty array:
array( )



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



[PHP] Sessions

2003-08-16 Thread Peda
Hi!!

I have some problem on my site.

When I'm using this PHP script:




 Getting Started With Sessions: Page 1


" );
print( "Current Account: $aAccount" );
?>

Go to page 2



I'm getting this warning messages:

Warning: session_start(): open(/tmp/sess_cbd07ca5b53347ca5003404053754bde,
O_RDWR) failed: Permission denied (13) in
/home2/pena/public_html/listing1.php on line 2

Warning: session_start(): Cannot send session cookie - headers already sent
by (output started at /home2/pena/public_html/listing1.php:2) in
/home2/pena/public_html/listing1.php on line 2

Warning: session_start(): Cannot send session cache limiter - headers
already sent (output started at /home2/pena/public_html/listing1.php:2) in
/home2/pena/public_html/listing1.php on line 2

Warning: Unknown(): open(/tmp/sess_cbd07ca5b53347ca5003404053754bde, O_RDWR)
failed: Permission denied (13) in Unknown on line 0

Warning: Unknown(): Failed to write session data (files). Please verify that
the current setting of session.save_path is correct (/tmp) in Unknown on
line 0


It looks like I don't have permission to write in /tmp/ directory.
Can I change that permission?

Greetings, Peda!!!



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



Re: [PHP] Sessions

2003-08-17 Thread Peda
Thank you all for your help.

I solved the problem using
session_save_path("/some/dir/") in php script.

But now I have another question.

Every time when I'm using .htaccess file and try to connect to my site I get
this message:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator, and inform them of the time the
error occurred, and anything you might have done that may have caused the
error.

More information about this error may be available in the server error log.


Additionally, a 500 Internal Server Error error was encountered while trying
to use an ErrorDocument to handle the request.

When I put in .htaccess file:

php_value session.save_path "/full/path/to/your/own/tmp/directory"

as you told me, I get the same message and in my error_log I get this
message:
[Sun Aug 17 12:31:42 2003] [alert] [client 213.240.5.14]
/home2/pena/public_html/.htaccess: Invalid command 'php_value', perhaps
mis-spelled or defined by a module not included in the server configuration

Thank you again!





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



Re: [PHP] Sessions

2003-08-17 Thread Peda
Thank you all for your help.

I solved the problem using
session_save_path("/some/dir/") in php script.

But now I have another question.

Every time when I'm using .htaccess file and try to connect to my site I get
this message:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to complete your request.
Please contact the server administrator, and inform them of the time the
error occurred, and anything you might have done that may have caused the
error.

More information about this error may be available in the server error log.


Additionally, a 500 Internal Server Error error was encountered while trying
to use an ErrorDocument to handle the request.

When I put in .htaccess file:

php_value session.save_path "/full/path/to/your/own/tmp/directory"

as you told me, I get the same message and in my error_log I get this
message:
[Sun Aug 17 12:31:42 2003] [alert] [client 213.240.5.14]
/home2/pena/public_html/.htaccess: Invalid command 'php_value', perhaps
mis-spelled or defined by a module not included in the server configuration

Thank you again!







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