Recently working on a project, you need to integrate the development environment with XAMPP. XAMPP is the latest version, and PHP Intl extension no, no PHP extension of the source code.
You need to manually compile the intl extension.
Environment: Mac XAMPP
Steps:
(1) Php-v: Check the version of
Install and configure Apache, PHP, and MySQL with homebrew under Title:mac
DATE:2015/03/22 20:07:00
Tags:homebrew
We use the PHP runtime environment always like to use the integration package, in fact, under the Mac, with homebrew can also quickly install these things, configuration is very simple.Homebrew
Homebrew is a Package installation management tool und
Install PHP extensions under Mac-MCrypt
MCrypt is a powerful cryptographic algorithm extension library that includes 22 algorithms, phpMyAdmin relies on this PHP extension, as follows:
Download and unzip the libmcrypt-2.5.8.tar.gz.
Execute the following command at the terminal:Tar zxvf libmcrypt-2.5.8.tar.gzCD libmcrypt-2.5.8/./configure--disable-posix-t
Label:The most recent project is the development of the public platform, the official demo is PHP, found that most of the learning material is also PHP, then well, give up Java, to paragraph PHP barLet's talk about setting up a PHP environment under Mac Database: mysql-5.6.2
This article to give you a detailed introduction of the Mac PHP NetBeans xdebug configuration method, I hope this tutorial for your classmates help Oh.
PHP Configuration
/opt/local/var/db/php5/xdebug.ini
The code is as follows
Copy Code
Zend_extension=/opt/local/lib/php/extensions/no-debug-n
In MAC, you can change the apache configuration file to switch to multiple php versions,
Preface
Some time ago, I upgraded php on my computer. Although php7.0 has some updates, the speed has also improved a lot. However, during development recently, I found that many engines do not support php7, so I thought I could not install two versions to switch between th
How to build the basic runtime environment of php on mac Machine 1, Mac OS X has built-in Apache and PHP
Methods for detecting php inclusion: Enter
php -v
Check whether apache exists: enter sudo apachectl-v on the terminal
su
" ' ' $http _user_agent ' $http _x_forwarded_for '; access_log /usr/local/var/log/nginx/access.log Main; Port_in_redirect off; sendfile on; keepalive_timeout 65; include/usr/local/etc/nginx/conf.d/*.conf; } default.conf file contents,
server {Listen 8080;server_name localhost;root/users/user_name/nginx_sites/; # This item is to be modified for you to store the path to the relevant pageLocation/{Index index.php;AutoIndex on;}#proxy the PHP
Apache comes with a few extensions under MAC lion. In addition, I tried to use PHP source code compilation but failed because I decided to use an integrated mamp, Which is XAMPP (the XAMPP development package must be installed, otherwise, PHP extensions may fail to be compiled ). There is a lot of information about installing some programs or extensions of
Want to see the detailed interpretation of can point here only need to solve the problem just look down.---------------------------------------------------Split Line-------------------------------------------------------Mac OS Sierra installs PHP extensions, and at the time of make install, a similarCP:/usr/lib/php/extensions/no-debug-non-zts-20131226/#[email pro
-master.zip
CD Mongo-php-driver-master Configure and Build Phpize
./configure make any
sudo make install Check the extension was successfully created: ls/usr/lib/php/extensions/no-debug-non-zts-20090626/ You should see the mongo.so extension file in there. Make sure the previous directory are the same as the PHP extension directory by running:
Label:Tried before the system comes with PHP and XAMPP integration package, or encountered a variety of problems, but chose to use virtualbox+windows2003+phpsduty (or familiar flavor), simply say the problem of shared folders encountered, VirtualBox comes with sharing function, but it is to share the folder in the Mac, and we build the environment in it is sure to want to Windows2003 the following WWW folde
Today, I tried to debug the PHP code on a MAC and found that netbeans could not be connected to a breakpoint, but it could not be debugged at all. Some searches found a third-party PHP module called xdebug. although I only found some information in windows, I tried to build the debugging environment successfully. Configuration process: install xdeb... SyntaxHighl
1. Mac system with PHP version of 5.6, with brew upgrade to php7.0
If you have used brew to install PHP, first use
Brew Unlink Php56
Php56 that (php5.6 version), if you are using a Mac-led PHP, you can ignore the command.
Next Install php7.0
Brew Install PHP70 --with-gmp--
This article introduces the contents of the Mac Apache PHP and CGI configuration, has a certain reference value, now share to everyone, the need for friends can refer to
Today read a lot about PHP and CGI on the Mac Apache configuration of the tutorial, follow the steps to operate or not, finally through the attempt t
Today, I used PHP to connect to MySQL database on my Mac, and there wasMac PHP Warning:mysql_connect (): [2002] No such file ...Details such as the following are seen:Dirkmacbook:vote dirk$ PHPUnit mytest.phpWarning:mysql_connect (): No such file or directory in/applications/xampp/xamppfiles/htdocs/myvote/vote/conn.php on Line 25This error, very easy to overcome
Make an application that automatically logs on to Windows Server based on the MAC address in the intranet. the function is as follows:
Copy codeThe code is as follows:
Function ce_getmac ()
{
If (PHP_ OS = 'winnt ')
{
$ Return_array = array ();
$ Temp_array = array ();
$ Mac_addr = "";
@ Exec ("arp-a", $ return_array );
Foreach ($ return_array as $ value)
{
If (strpos ($ value, $ _ SERVER ["HTTP_CLIENT_IP"])! = False
Preg_match ("/(:? [0-9a-f] {2} [:
Title I can not display the error message on the Mac, only the correct code page to normal display, or a blank, the test method I have tried once, is no way, configure
Ask God to guide, are with the Mac comes with, do not like to use xampp because I like trouble, so as to understand the reasons for these problems!
Reply content:
Title I can not display the error message on the
The installation environment is as follows:
Mac OS 10.10.1
Apache 2.4.9
PHP 5.5.14
MySQL 5.6.22
Apache ConfigurationIn Mac OS 10.10.1 comes with Apache software, we just need to start the corresponding service, the following command is the operation of Apache commonly used in several commands:// 启动Apache服务sudo apachectl start// 重新启动Apach
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.