Click to See Complete Forum and Search --> : PHP...install???


ashwin
12-22-2003, 11:51 PM
Hello,
I need to know whether I need to install PHP on my machine or not. I typed this code

<?
phpinfo();
?>

and saved it as phpinfo.php and when I opened it in the browser a blank page was displayed. How do I know that the server which I am working on is installed with PHP.

Thanks

PunkSktBrdr01
12-23-2003, 12:06 AM
If you're hosting the site on your own computer (Windows), run a search for php.exe. If you have that, then the server needs to be configured properly. If it's not there, download PHP from http://www.php.net .

If you're paying for hosting, ask the company.

ashwin
12-23-2003, 12:18 AM
It's not on my machine. It's on a server. Sorry about that. I need to enquire with the company I guess. I need to receive the clicked answers in a form written in HTML and Javascript to my email account. Can I use CGI for this...if they doesnt support PHP.

Thanks again.

ashwin
12-23-2003, 12:46 AM
Hi,
I have created a form using HTML and Javascript and with a Submit button. So, when the user clicks on the Submit button the selected answers need to be sent to an email account. Do you think that PHP would be fine or shall I go with CGI/Perl. May be also when the user clicks on the Submit button I need these values to be stored in an excel file(if possible). Hope I was clear.

Thanks again.

PunkSktBrdr01
12-23-2003, 09:59 AM
PHP can do the mailing easily. See the mail() function (http://us2.php.net/manual/en/function.mail.php). I found this:

http://pear.php.net/package/Spreadsheet_Excel_Writer

Not sure how it works, but I think it's what you're looking for.

ashwin
12-23-2003, 11:57 AM
Thanks a lot. I will try this and keep you posted

PunkSktBrdr01
12-23-2003, 12:09 PM
Good luck! :)