简体   繁体   中英

Need to run a php file in my site

I have a .php file to send mail from my website. How I can run the php file in my domain ? Do I need to install any server in my domain space ?

Create a file with filename 'test.php'

Put following code in it:

<?php

echo 'test';

?>

Upload the file to your server

Open it in Browser via http://yourdomain.tld/test.php

Does it show the word test?

Yes! Your server must run some php interpreter , that in this case will be the Apache Server .

Also you have to configure his modules to send mail also.

In must of hosting servers Apache is free and It's already installed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM