How to use PHP & Connect to excel (Excel.Application) The Learn / tutorial php programming how to using PHP connect to Excel.Application (DCOM)
ShotDev Focus:
- PHP & Connect to Excel.Application (DCOM)
Example
php_connect_excel.php
<html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <?php $xlApp = new COM("Excel.Application"); if($xlApp) { echo "Excel.Application Connected"; } else { echo "Cannot Connect to Excel.Application"; } ?> </body> </html>
Create a php file and save to path root-path/myphp/
Run
http://localhost/myphp/php_connect_excel.php
Screenshot