php-windows Digest 12 Mar 2004 01:34:18 -0000 Issue 2160

Topics (messages 23104 through 23110):

Regular expression to remove non-ascii text from a string
        23104 by: David Felton

Login security, server and client level.
        23105 by: pe
        23106 by: Svensson, B.A.T. (HKG)

MSSQL inserting into a table with a valid result set
        23107 by: Gerardo Rojas
        23108 by: Svensson, B.A.T. (HKG)

Apache running...now what?
        23109 by: jota
        23110 by: jota

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Can anyone help me out with a regular expression to remove all non-ascii
characters from a String?

I've got as far as:

$newfilecontents = ereg_replace("[^\x01-\x7f]","",$newfilecontents);

but this seems to strip all the characters from the String!

Any help would be appreciated. Thanks.


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
**********************************************************************

--- End Message ---
--- Begin Message ---
G'day!

I've got two questions that are related to login functionalities with web pages.

  a.. I noticed on a login page that the form element contained the following: <FORM 
METHOD=POST>. I suppose that the ACTION element is defined on a webserver level (?). 
I've searched the documentation for the Apache server, but can't find anything about 
it. Any tips?
  b.. I'm securing certain web pages with user names/passwords stored in a database, 
which I then simply match with the user credentials entered by a user. Now I'm 
thinking about using encryption for the database contents and matching the hash with 
the hash of the entered credentials. But my question is: Using PHP to encrypt the 
entered user credentials doesn't have effect on the client level, right? So that still 
leaves the unsecured communication between client and server. How to remedy that?
K. Sharp

--- End Message ---
--- Begin Message ---
On Thu, 2004-03-11 at 16:27, pe wrote:
> G'day!
> 
> I've got two questions that are related to login functionalities with
> web pages.


>   b.. I'm securing certain web pages with user names/passwords stored in

[...]

>  So that still leaves the
> unsecured communication between client and server. How to remedy that?

use https...

--- End Message ---
--- Begin Message ---
I have a valid result set from running a simple query.  Is there a way of inserting 
this into an existing table or creating a new table with the result set?  All ideas 
are welcome!

MSSQL Server 2000
PHP 4.3.4
Windows 2000 pro
IIS 5.0


--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
You can do a insert into with a SELECT instead of VALUE,
but the attribute in the select must agree with the table
definition. 


-----Original Message-----
From: Gerardo Rojas
To: [EMAIL PROTECTED]
Sent: 11-3-2004 21:54
Subject: [PHP-WIN] MSSQL inserting into a table with a valid result set

I have a valid result set from running a simple query.  Is there a way
of inserting this into an existing table or creating a new table with
the result set?  All ideas are welcome!

MSSQL Server 2000
PHP 4.3.4
Windows 2000 pro
IIS 5.0


--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
I believe I have already done everything to install PHP, and Apache starts
up fine for me (Apache 1.3.29).

But, it seems that Apache still doesn't know what to do with the PHP files.

I added the following lines to my httpd.conf file:

LoadModule php4_module c:/php/php4apache.dll

AddType application/x-httpd-php .php

AddType application/x-httpd-php .php3

(I did not use php4apache2.dll because my thoughts are that php4apache2.dll
is for Apache 2.)

I edited my index.html.en file by adding the following line:

<p>Click <a href="test.php">PHP test</a> to test your PHP file.</p>

When I start the Apache service and click my test link, I get odd results.

At first it would launch DreamWeaver. I noticed in my registry that .php was
registered as a DreamWeaver application. So I pointed it to IE, and then to
PHP.exe. I have no idea what it is supposed to point to.

If anyone has PHP on their Windows machine, could you export your
HKEY_CLASSES_ROOT\phpfile registry key to a file and e-mail it to me?
([EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>)

Otherwise, I have no idea what I am doing wrong.

Thank you!

--- End Message ---
--- Begin Message ---
I found my answer at:
http://quanta.sourceforge.net/docs/php/install-windows95-nt.html


"Jota" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I believe I have already done everything to install PHP, and Apache starts
> up fine for me (Apache 1.3.29).
>
> But, it seems that Apache still doesn't know what to do with the PHP
files.
>
> I added the following lines to my httpd.conf file:
>
> LoadModule php4_module c:/php/php4apache.dll
>
> AddType application/x-httpd-php .php
>
> AddType application/x-httpd-php .php3
>
> (I did not use php4apache2.dll because my thoughts are that
php4apache2.dll
> is for Apache 2.)
>
> I edited my index.html.en file by adding the following line:
>
> <p>Click <a href="test.php">PHP test</a> to test your PHP file.</p>
>
> When I start the Apache service and click my test link, I get odd results.
>
> At first it would launch DreamWeaver. I noticed in my registry that .php
was
> registered as a DreamWeaver application. So I pointed it to IE, and then
to
> PHP.exe. I have no idea what it is supposed to point to.
>
> If anyone has PHP on their Windows machine, could you export your
> HKEY_CLASSES_ROOT\phpfile registry key to a file and e-mail it to me?
> ([EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>)
>
> Otherwise, I have no idea what I am doing wrong.
>
> Thank you!

--- End Message ---

Reply via email to