php-windows Digest 29 Jul 2001 04:17:25 -0000 Issue 673

Topics (messages 8543 through 8546):

Re: PHP problems -permissions
        8543 by: Joel

php-newbie is wondering ...
        8544 by: Hagen Möbius
        8545 by: G Schneider

Having PHP inside of ASP using the #include VIRUTAL= directive??
        8546 by: Kevin Costain

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]


----------------------------------------------------------------------


Hi Emerald,

You shouldn't have messed with the DLLs. I know that's what
the PHP documentation says but all I did was copy 3 lines
of code into the httpd.conf file of Apache. Thats it, I didn't do
anything else and it worked fine. I can execute any PHP script
on my computer.

These are the 3 lines of code you have to put in the httpd.conf file.

#---------------
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php .phtml .php3
Action application/x-httpd-php "/php/php.exe"
#---------------

That's it! Copy that to your httpd.conf file and don't do anything else, everything
should work fine. Do a test on your local computer.
In your browser, enter : http://127.0.0.1/mycode.php
127.0.0.1 is the root directory and you must specify which directory should
it be or you'll get an error.

Not sure but I think the problem was you didn't mention the directory of PHP.
You missed this line : ScriptAlias /php/ "c:/php/"
You don't have to change the permission of files in Windows ME.

I use PHP4, Apache 1.3.19 with Windows Millenium Edition and was able to install
PHP successfully. Since you've already messed with PHP and Apache, if you still
fail to install PHP, I suggest you do a reinstall of PHP and Apache and follow the
above the method. If you have any more problems, let me know.

Hope this helps,
--
Joel Agnel.

--------
Sign up for our Free Weekly Newsletter that delivers
Cool Sites directly to you by e-mail. You'll have Fun!
Click Here : http://www.siteskool.com/sites/
--------

"Emerald Shop" <[EMAIL PROTECTED]> wrote in message 
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Dear sirs,
>
> Does anyone use Apache and PHP on Windows ME ? I have not been able to work
> with because I have not intalled the software as requiered !
>
> I have installed Apache 1.3.19 and PHP4 over Windows Millenium.
>
> #I put this in httpd.conf file:
>
> LoadModule php4_module c:/php/sapi/php4apache.dll
> AddType application/x-httpd-php .php .phtml
>
> I copied the files MSVCRT.DLL and PHP4TS.DLL to c:/windows/system.
>
> I wrote a script file named test.php with the following information:
> <? phpinfo(); ?>
>
> When I open the test.php file at my browser, I get a DOS window running a
> lot of HTML code quickly. My browser doesn`t show me anything. The
> documentation explains that file permissions on my php script, php.exe,
> php4ts.dll, php.ini or any php extensions I am trying to load are such that
> the anonymous internet user ISUR_<machinename> cannot access them.
>
> How do I change permissions for these files over Windows ME ?
>
> Thank you very much for your cooperation.
>
> Emerald Shop
> Eng. Aldemar Martin B.
> Manager
> Calle 22 #20-26
> Santa Fe de Bogota, D.C. - COLOMBIA
> Phone: (571) 562 29 11
> Fax: (571) 268 45 60
> email: [EMAIL PROTECTED]
>
> P.D. Sorry for my english, I am learning.
>








Hi all!

I was really wondering wether there is any way to make the mail(..) function
working with a W2K-IIS System. Can anybody help me please??

thanks in advance ... Hagen






Your problem is probably that the mail() function doesn't work, yes?

Well, this is usually because providers will not allow their SMTP server
accept things called 'relays'. PHP needs to use a SMTP server that *does*
accept relays. Ask you provider to either:

1) Allow their SMTP server to accept relays, or,
2) Get them to set up a second SMTP server on a different port that *will*
allow relays

the latter is what my webhost did for me when I asked them. They set up a
nice new relay-accepting SMTP server on port 26 for me (other than the usual
port 25 that the normal SMTP server is on).

There is a great set of PHP classes (that some very kind person gave me on
this newsgroup)... they allow you to specifiy the SMTP server AND it's
port - things the mail() function doesn't allow you to do!

You can download them in a ZIP file from this address:

http://www.webmastersdog.com/phpEmail.zip

It includes an example file.

Hope this helps,
Jefferrs


"Hagen MöBius" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all!
>
> I was really wondering wether there is any way to make the mail(..)
function
> working with a W2K-IIS System. Can anybody help me please??
>
> thanks in advance ... Hagen
>
>






Hello,

I was wondering if anyone had done this before, i would like to add a 
counter to a page that is asp and use the asp directive #include VIRUTAL= 
to include say, count.php and treat this as php script. Has anyone tried 
this? Is there a way to run PHP from within ASP itself ?

Thanks,
Kevin Costain



===============================
KCTS: http://www.kevincostain.com
416-463-6655
===============================




Reply via email to