php-windows Digest 14 Feb 2002 15:13:04 -0000 Issue 1001

Topics (messages 12071 through 12079):

Classes
        12071 by: Brian Feliciano

Re: Getting PHP to behave with MS SQL Server 7
        12072 by: Todd Williamsen

Frontpage 2000 and PHP
        12073 by: Laurence Smith
        12076 by: Svensson, B.A.T. (HKG)

Re: mail() on windows - problem
        12074 by: Christoph Grottolo

Re: Remote PHP files bug?
        12075 by: Christoph Grottolo

Re: IP address reference
        12077 by: Christian Blichmann

Re: htaccess password encryption
        12078 by: Christian Blichmann

Re: Loading DLL Extension
        12079 by: Zach Curtis

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 ---
i've seen a code like this...
-----------
$conn = DB::Connect($connstr);
$conn->query($sql);
-----------
i think this is from PEAR's DB abstraction layer..
but my problem is, i don't know how to create a class 
like the 'DB'. I tried to, but i failed.

How can i create an instance of a class without using
"new" ?






-- 
=============================
B r i a n   F e l i c i a n o
=============================
Server Administrator
The Websense Group Co.
-----------------------------
Unit 103 Terris Villa Sikap St.
Mandaluyong City, Philippines
Tel. No.: (632) 7462449
Fax. No.: (632) 7462482
Mobile Phone No.: +639176189153
--- End Message ---
--- Begin Message ---
Frank,

I reinstalled PHP and it doesn't like me or my configuration very well.
PHP is installed as CGI.  I tried ISAPI filters, but that crapped out
too.  Yes, I have rebooted, restarted the services many many times and
still doesn't work.

What do you mean client libraries?

I see this mentioned, but I don't get what they are asking, and what
files are they?  How come PHP didn't document this or did they just whip
up the documentation for MS SQL?

-----Original Message-----
From: Frank M. Kromann [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 13, 2002 5:48 PM
To: Todd WIlliamsen
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Getting PHP to behave with MS SQL Server 7


Hi Todd,

If you are using the ISAPI version you need to restart the web server in
order to use the mssql_extension.

If you are using CGI and getting undefined function for mssql_connect,
you might have more than one php.ini file on your system ?

You also need to install the client libraries for mssql server. These
can be found on the server CD, or you can copy ntwdblib.dll from the
server to your cplient pc (the pc running your php scripst).

- Frank


> Ok, I followed the instructions very closely, to what vague 
> instruction there are.
> 
> I umcommented out the .dll files and I get undefined variable for
> 
> mssql_connect()
> 
> Now there is barely any documentation on this and the tech support has

> gotten me ZERO results, I am hoping since this is a WINDOWS PHP list 
> that someone will be able to help me.
> 
> I am running Win2k Server IIS5, MS SQL Server7
> 
> Anyone?
> 
> Next is Oracle...anyone with answers on that?  LOL!!
> 
> 
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 



--- End Message ---
--- Begin Message ---
I would like to include PHP functionality in FrontPage but when I
rename the file to either ".php" or ".phtml" I lose the FrontPage
features.  If I name the files ".htm" or ".html" I get the FrontPage
functionality but lose PHP.

Is these a way I can get both?

This may be an obvious thing for some of you, but I am really stuck
with this.

Thanks.

Laurence Smith
Hamilton, ON


--- End Message ---
--- Begin Message ---
Can't you name the pages as *.asp (Active Server pages)?

>-----Original Message-----
>From: Laurence Smith
>Sent: Thursday, February 14, 2002 5:28 AM
>To: [EMAIL PROTECTED]
>Subject: [PHP-WIN] Frontpage 2000 and PHP
>
>
>I would like to include PHP functionality in FrontPage but when I
>rename the file to either ".php" or ".phtml" I lose the FrontPage
>features.  If I name the files ".htm" or ".html" I get the FrontPage
>functionality but lose PHP.
>
>Is these a way I can get both?
>
>This may be an obvious thing for some of you, but I am really stuck
>with this.
>
>Thanks.
>
>Laurence Smith
>Hamilton, ON
>
--- End Message ---
--- Begin Message ---
Hi

Maybe you should test your php-installation by running a script containing
only

<?php phpinfo(); ?>

In the output you'll see if your php.ini file is parsed correctly. Watch out
for php.ini location an the SMTP value.

Christoph

"George Pitcher" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
008201c1b470$41373b00$630db092@HLATITUDE">news:008201c1b470$41373b00$630db092@HLATITUDE...
| Hi all,
|
| Doing a little testing in advance of doing the scripting next week, I
| thought I'd try the mail() function.
|
| In php.ini, I have filled in the details of my SMTP server (University
| service) and the return address and I can't see anything else to
configure.
|
| A simple script, called as a web page, contains the following script:
|
| <?php
| mail("[EMAIL PROTECTED]","Mailtest from php","message");
| ?>
|
| and when I run this, I get an 'unknown' error and i [fairly obviously]
don't
| get the email it should be sending.
|
| Is there something else to configure?
|
| I know that the smtp part is correct as I am mailing that way using both
| Lasso (NT) and Frontier (Mac) with no problems.
|
| HYCH,
|
| George in Edinburgh
|


--- End Message ---
--- Begin Message ---
It seems you didn't search the bug database good enough ;-)

You'll need php 4.10 to be able to access UNC-Paths (\\server\share)
correctly. Before, UNC paths did not work correctly, you had to work with a
mapped drive.

See also some recent threads in this group for more info on this. Make sure,
IUSR_MACHINNAME has access rights on the remote share and check 'check that
file exists' in IIS Admin on the panel where you enter the path to php.exe.

Christoph

"Thomas Davis" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
|
| I have searched the bug database to the best of my ability and not been
able
| to find any reference. Perhaps someone on the list knows of the problem
| and/or the solution. I wanted to ask one more time before submitting a bug
| report.
|
| Platform: Windows 2000/ IIS 5.0/ PHP 4.0.6 CGI
| Issue: If I store the document root on a remote server. Such us
| \\server\share\htdocs\index.php
| I get the ol':
|
| CGI Error
| The specified CGI application misbehaved by not returning a complete set
of
| HTTP headers. The headers it did return are:
|
| Normally this would mean the file doesn't exist, but it does exist, the
| permissions are fine cuz I can access the other files that are not PHP in
| the same directory with the same permissions.
|
| PHP acts normally under all other circumstances.
|
| Anyone?
|
| Thomas Davis
| Web System Administrator
| TiVo Inc.
|
|
|


--- End Message ---
--- Begin Message ---
Hi there!
I am using this code to get the users IP, it also allows you
to retrieve the IP of AOL users.
Btw, the @ before $_SERVER["HTTP_X_FORWARD_FOR"]
prevents an error message, if the user is not using AOL...
Oh, I almost forgot: The $ip variable is an integer (I did this for
efficiently storing the IP in an MySQL database).

    // Get user's IP and user agent
    $ip = ip2long(($tmp = @$_SERVER["HTTP_X_FORWARD_FOR"]) ? $tmp :
$_SERVER["REMOTE_ADDR"]);

Hope it helps,

--
Christian Blichmann

_____________________________________________
don't hesitate - email me with your thoughts:
e-mail: [EMAIL PROTECTED]
 - please remove the ".nospam" from address.
_____________________________________________
do you want to know more?
web:    http://www.blichmann.de


--- End Message ---
--- Begin Message ---
"Martin.Andrew" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Does anyone know how to encrypt a password for use in htaccess?
>

I'm not sure, but you may try to use the crypt()-function (see the docs),
since it implements the standard Unix DES-based algorithm...

--
Christian Blichmann

_____________________________________________
don't hesitate - email me with your thoughts:
e-mail: [EMAIL PROTECTED]
 - please remove the ".nospam" from address.
_____________________________________________
do you want to know more?
web:    http://www.blichmann.de


--- End Message ---
--- Begin Message ---
I'm not sure how I'm mixing two versions of PHP...how is that possible?

The extensions are located in this path extension_dir = j:\php\extensions. I
have tried different combinations of this as well, such as:

"j:\php\extensions"
j:/php/extensions
"j:/php/extensions"

>From what I had read in the manual and the php.ini file, I thought all I had
to do to use an extension was to edit the php.ini such that extension_dir =
path to extensions, verify enable_dl = On, and remove the comment for each
particular extension that was needed extension=php_pdf.dll.

Any additional help you provide would be appreciated. Thanks.


Zach

-----Original Message-----
From: Shane Caraveo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 4:46 PM
To: Zach Curtis; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Loading DLL Extension


You're mixing two versions of PHP which happen to be incompatible in the
extension API itself.  Be sure your ini file points to the correct extension
directory.

----- Original Message -----
From: "Zach Curtis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 13, 2002 3:15 PM
Subject: [PHP-WIN] Loading DLL Extension


> I can't seem to be able to load any of the DLL extensions included with
PHP.
> For example when I try to load the pdf extension using:
>
> dl("php_zlib.dll");    or
> displaying phpinfo()
>
> I get this message in a warning window:
>
> pdf: Unable to initialize module
> Module compiled with debug=o, thread-safety=1 module API=20000809
> PHP compiled with debug=o, thread-safety=1 module API=20001222
> These options need to match
>
> I am running:
> WINNT 4.0 SP 6a
> Apache 1.3.12
> PHP 4.0.6
>
> php.ini settings:
> extension_dir = j:\php\extensions
> enable_dl = On
> extension=php_pdf.dll
>
>
> Any thoughts? Thanks.
>
>
> Zach Curtis
> POPULUS
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


--- End Message ---

Reply via email to