RE: [PHP] MySQL connection

2001-08-10 Thread B. van Ouwerkerk


>If I use extention .inc for including my connection-
>variables file then browser attempts to download this file which is
>not better then first. I searched the net on this topic and found a
>LOT of information about this problem and the best that I found is
>here I just want you to be aware of this problem

It's common knowledge that you should NOT put your database user+PW into 
your HTML root. Using .inc means Apache (or whatever kind of server you're 
using) isn't going to parse the file through php.

This has been discussed on this and other php related lists.. just have a 
look in the archive and you'll see..

Don't want to sound nasty harsh or whatever you want to call it but I think 
most tutorials will say something about it. I would suggest you read those 
before you send messages to this or any other list.. The archive is a great 
resource too. Remember.. you're most certainly not the first person who 
uses PHP to connect to MySQL.. most if not all issues you think you have 
found has been seen by others. Searching the archive and reading tutorials 
will keep you from burning bandwith and space for a non-issue.

Have fun.

Bye,



B.


-- 
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] CGI error

2001-08-10 Thread Phil Driscoll

On Thursday 09 August 2001 17:21, [EMAIL PROTECTED] wrote:
> After install PHP when I try to open in a URL the address:
> http://casa/IISSamples/Default/exemplo.php
> I receive the following error:
>
> Error 403 of HTTP
> 403.1 Forbided: forbided execution access
>

First experiment:

Put a file called test.htm in the same directory which contains any old html.
Try to access that as http://casa/IISSamples/Default/test.htm

If that works OK, then the configuration of pws is wrong. I don't have PWS so 
I'm not sure of the user interface to configuring it, although if you 
installed php using the 'Installer' distribution, it will have configured PWS 
correctly.

Sometimes, PWS seems to get itself into a strage state where you can't get it 
to work no matter what you try. Some people have had success after 
reinstalling PWS. Others just dump it and use Xitami or Apache.

Cheers
-- 
Phil Driscoll

-- 
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] Determining browser encryption strength

2001-08-10 Thread Sean C. McCarthy

Hi Bolivar,

Ciphering is something done at the network level when the connection is
done. It is done exactly at the negotiation of the SSL session and it is
done by the Server (Apache, IIS, ...). So you can use the information
provided by the CGI Environment Variables of Apache (if it happens that
you are using Apache) to determine the actual SSL enc method.

More precisely you can use the HTTPS_CIPHER, HTTPS_KEYSIZE and
HTTPS_SECRETKEYSIZE to determine the different aspects of the actual
encryption method used by the client. If you want 128bits that means
Triple-DES for simetric encryption. If you do not have a strong know-how
at SSL I recommend you these two links:

Intro to SSL
http://developer.netscape.com/docs/manuals/security/sslin/index.htm

Apache-SSL doc
http://www.apache-ssl.org/docs.html

Hope this helps you.

Sean C. McCarthy
SCI, S.L. (www.sci-spain.com)

Bolivar Shagnasty wrote:
> 
> My web site it going to be the starting point with a link to an application
> that only works with browser at 128bit strength.  What I would like to do is
> automatically determine if the user doesn't have a compatible browser and
> then direct them where to get the correct browser.  Does anyone know how I
> might go about doing this?
> 
> tia,
> bol
> 
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
> 
> --
> 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 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] charset win1251

2001-08-10 Thread Maxim Derkachev

Hello BRACK,

Thursday, August 09, 2001, 10:19:46 PM, you wrote:
B> I finished English version of my site and wanted to start Russian
B> part but realized that MySQL server returnes all data in koi-8r 
B> charset which is not very comfortable for some of the users, 
B> specially I know that A LOT of russians using Opera brawser older 
B> versions of which do not support koi-8 Any one knows how to 
B> convert koi-8 results of MySQL to win1251? 

It depends. What charset is your data in?
If you DB's data is already in koi-8r, ther only thing you can do at the
database level is to use a query:
SET CHARACTER SET  koi8_cp1251
and then execute your queries.
All the data will be converted to win1251 codepage on the fly.
Alternately, you can place all the data to the database in 1251
charset, and then compile mysqld with option
--with-charset=cp1251 (used in ./configure)
Then you'll have all the data returned in cp1251, and mysql will sort
all the text data using that charset. To have the data returned in
koi-8 in this case you'll have to issue a query
SET CHARACTER SET  cp1251_koi8

By the way, there's not so many russians, if any, using the old Opera browsers
:)


-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator & programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 


-- 
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 generating pdf with pdflib. Please help

2001-08-10 Thread Dezider Góra

Hi all,

I'm experiencing strange problem. When I try to use verdana font, all
national characters from codepage 1250 won't appear att all. Has anybody
experienced this behaviour?
I'm using pdflib 4.0.1, Mandrake 8.0, php 4.0.6.
pdflib.upr is updated as required for my machine. I've converted
verdana.ttf to verdana.afm on linux.

tia,
Dezider.



-- 
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 session start

2001-08-10 Thread Balaji Ankem



Hi! friend,
  i got the following error when i am goint to start a session.
 
This is the file. and i got the following errors.
 
Warning: 
open(/tmp\sess_4a3f421e3a28de6801941743c0632862, O_RDWR) failed: m (2) in 
c:\www\login.php on line 2Warning: 
open(/tmp\sess_4a3f421e3a28de6801941743c0632862, O_RDWR) failed: m (2) in 
Unknown on line 0
Warning: Failed to write session data (files). Please verify 
that the current setting of session.save_path is correct (/tmp) in 
Unknown on line 0
 
login.php
 
session_start();session_register(emp_id);?>