Run the php file in cmd.

Source: Internet
Author: User
Run the php file in cmd. first, I created a bat file and wrote
D: \ wamp \ bin \ php \ php5.3.3 \ php-cgi.exe-f D: \ wamp1 \ www \ php_bat \ test. php

Test. php file
$ Fp = @ fopen ("test.txt", "a + ");
Fwrite ($ fp, date ("Y-m-d H: I: s"). "Let PHP run regularly! \ N ");
Fclose ($ fp );
?>

When you double-click bat locally, you can run the php file successfully.

However, the following error occurs on the win2003 server:


Reply to discussion (solution)

The specified module cocould not be found
The specified module cannot be found.

You should modify
C: \ Program Files (x86) \ PHP \ php. ini
Comment out all unnecessary extensions.

The specified module cocould not be found
The specified module cannot be found.

You should modify
C: \ Program Files (x86) \ PHP \ php. ini
Comment out all unnecessary extensions.

However, all the extensions mentioned above can be found in ext.

Oracle OCI8 is pecl. In addition, it is not installed in the php installation package. Are you sure you have installed it?

All errors are caused by database extensions, and database extensions require the support of running databases, or even the installation of clients.

The databases cannot be installed on your server at the same time, which is the main cause of the error.

All errors are caused by database extensions, and database extensions require the support of running databases, or even the installation of clients.

The databases cannot be installed on your server at the same time, which is the main cause of the error.

If you do not enable the extensions in php. ini, you will not save the errors.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.