How to use external PHP file in СakePHP 2?

Need help with installing PHP for windows?

  • Im following the instructions from a book (as well as from a website). I have downloaded two files; php-5.2.6-Win32.zip and pecl-5.2.6-Win32.zip. As stated in the book, it says that: begin by unzipping the ZIP file to the directory of your choice. The usual location is c:\php, and we use this location in the following explaination. You can install the PECL libraries by unziping the PECL file to your extensions directory. Using c:\php as your base directory, this will be c:\php\ext\. Now follow these steps: 1.In the main directory you will see a file called php.exe and one called php5ts.dll. 2.Set up a php.ini configuration file. PHP comes with two prepared files: php.ini-dist and php.ini-recommended. We suggest you use php.ini-dist while you are learning PHP or on development servers AND use php.ini-recommended on production servers. Make a copy of this file and RENAME it as php.ini. 3. Edit your php.ini file. It contains many settings. The settings you need to change are as follows: - change the extension_dir directive to point to the directory where your extension DLLs reside. In teh normal install, this is C:\PHP\ext. Your php.ini will therefore contain extension_dir = c:/php/ext - Set the doc_root directive to point at the root directory from which your web server serves. This is likely to be -doc_root = "c:/Program Files/Apache Software Foundation/Apache2.2/htdocs" if you are using Apache. ......................................… So my problems are: 1. I dont see the "php.exe" in the main directory as mentioned in the book. I only found the php5ts.dll. 2.How to set up the "php.ini" configration as mentioned in step 2? and how to rename it?? And i cant open the php.ini-dist NOR php.ini-recommended file. 3. How to edit the php.ini file? and change the directory as mentioned in steps 3? I really need your help asap. Many thanks.

  • Answer:

    I've found Nettuts to be very useful, here you'll find a post on installing PhP: http://net.tutsplus.com/articles/news/diving-into-php/ So maybe you're book is a little off or maybe podcasts work better for you. Also you could learn the very basics of PhP if you haven't already w/ this hub: http://hubpages.com/hub/PHP-The-Great

Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

XAMPP will install everything for you, PHP, MySQL, Apache, Perl etc. And you wouldn't need to modify any files like you do when installing them serperatly.

cp2157

I cant answer your specific question but have you tried WAMP? It installs PHP, mySQL and Apache web server on your Windows machine for you. If you trying to learn PHP/MySQL then it is the best way to start as you dont need to know how to install PHP to learn it.

TechMonkeys

Since you are installing on windows you can directly get the binaries from http://www.php.net/get/php-5.2.14-win32-installer.msi/from/a/mirror it makes your job a lot easier

A.Jesin

as Techmonkey said try using WAMP server. makes life a whole lot easier

c0d3pRaDa

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.