Build a Web server development environment for Apache, PHP, and MySQL on Mac OS x.Tools/Materials
Mac OS X 10.10
Homebrew Software
Method/Step
1. How do I turn on Apache server?There are two ways to open a Web server:One is: Open Web share (web sharing), "System Preferences (Preferences)", "Sharing (sharing)".Another: Open by running Apache'
How does php obtain the MAC address of the NIC (Windows and LINUX are supported)
For example, php obtains the physical address of the NIC, that is, the mac address.
/**
Obtain the MAC address of the NIC. Currently, Windows/LINUX ar
PHP 7 installation for Mac systems: detailed tutorial and macphp7 tutorial
After PHP version 5.6 was released, it has been waiting for a long time. When the PHP 7 version advances, the question is, where is version 6? According to the official statement, PHP7 is twice faster than PHP5.6, and some friends say it is ten
Install configuration Memcache Full process resolution in PHP Environment of Mac OS, install configuration memcache
Installing the service sideMemcache is the project name, and the hosting process on the server is called memcached (the Linux daemon typically adds a d in the back). Using brew under OSX can quickly install the memcache:
$ sudo brew install memcached
Memcache dependencies: OpenSSL and libeven
The locally tested site does not function properly after upgrading to the latest system, because the version of his Apache is upgraded with the MAC system upgradeServer version:apache/2.4.9 (Unix)Server built:sep 9 2014 14:48:20The version before upgrade is 10.9Server version:apache/2.2.26 (Unix) Server Built:dec 10 2013 22:09:38Basically, the previously configured block was overwritten.So the site doesn't work properlyThe solution is1 re-enable
After mac is upgraded to yosemite, php extensions are fixed. after mac is upgraded, php is automatically upgraded, causing php environment damage.
So we need to fix the following points:
1.
Sudo ln-s/Applications/Xcode. app/Contents/Developer/Platforms/MacOSX. pla
We all know that when the Mac shipped out of the system pre-set a PHP and we use MAMP PHP, perhaps the problem is here, in the Terminal run a bit:which PHP to see the path of PHPsudo nano ~/.bash_profile # adds a row. Note PHP5.4.10 changes to the PHP version directory name
Get Servermac>Get Clientmac Address:@exec ("Arp-a", $array); Run the ARP-A command and put the result into the array $array in the foreach ($array as $value) { //Match results are placed into the array $mac_array if (Strpos ($value, $_server[ "REMOTE_ADDR"]) Preg_match ("/(:?? [ 0-9a-f]{2}[:-]) {5}[0-9a-f]{2}/i ", $value, $mac _array)) { $mac = $
Php obtains the mac address of the server and the mac address of the client.
For_linux_ OS ();} break; default: {$ this-> for_windows_ OS ();} break;} $ temp_array = array (); foreach ($ this-> result as $ value) {if (preg_match ("/[0-9a-f] [0-9a-f] [:-]". "[0-9a-f] [0-9a-f] [:-]". "[0-9a-f] [0-9a-f] [:-]". "[0-9a-f] [0-9a-f] [:-]". "[0-9a-f] [0-9a-f] [:-]"
Mac PHP installation extension phpreids I. mac built-in php installation phpredis
$ Brew install php56-redis #56 for php 5.6.10II. install phpredis in the mamp on mac
Enter/Applications/MAMP/bin/
List some software and usage habits that you think are most comfortable with, related to PHP development. Ps: I think I have learned more about the answer. I think I have learned more than five cars. When I asked myself to answer a question, I had nothing to do with the negative energy in my mind. Haha. List some software and usage habits that you think are most comfortable with, related to PHP development.
Ask the PHP website to obtain the MAC address of the client. now there is a PHP website. if you want to obtain the MAC address of the client, which of the following solutions does anyone have? please tell me, thank you ., .................. This is impossible. You can only obtain the IP address and browser information
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 describes how to configure PHP and virtual machines for Apache that comes with Mac. For more information about PHP tutorials, see. Operating system: OS x 10.11.2
1. start apache
Open the terminal and enter the command sudo apachectl-k start;
Enter http: // localhost in the address bar of the browser. if the following information is displayed, apac
)Bin folder: Files inside to operate the database (DOS mode)
Php-5.2.6-win32 folder: PHP's library of functions, explained by Apache.
Zendoptimizer folder: accelerates PHP execution.
Htdoc (or WWW): Store Web page files. (the page file of the message book is placed here, the front desk)phpMyAdmin folder: Operating database (Windows mode)
Note:
1, the installation will prompt you to enter the My
Install PHP yourself, no Mac installation, so there is a PHP development environment. Installation is simple, run a command directly, take a few minutes, please wait slowly.Curl-s http://php-osx.liip.ch/install.sh | bash-s 5.5 (note 5.5 is PHP version can be 5.6, etc.)The
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.