Skip to content
This repository was archived by the owner on Jun 13, 2019. It is now read-only.

Commit 70c9367

Browse files
author
Modus Create
committed
Merge pull request #3 from jacobandresen/patch-1
Patch 1
2 parents b8e7a86 + 0d9ff32 commit 70c9367

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

examples/ch07/README.txt

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
To run the serverside php + mysql example code in this chapter you need php5 and mysql support.
2+
3+
4+
Installing the software
5+
-----------------------
6+
7+
ubuntu linux:
8+
sudo apt-get install php5-mysqlnd php5-json
9+
10+
centos linux:
11+
sudo yum install httpd mysql-server php
12+
13+
Mac osx:
14+
use homebrew (further instructions at http://brew.sh )
15+
16+
Windows:
17+
Use the installers available from php.net and mysql.com
18+
19+
20+
Mysql database setup
21+
--------------------
22+
23+
The example file crud.php assumes that you have a database called "extjsinaction" accessible as user root with no pasword. Feel free to change this to your liking.
24+
25+
You can find further instructions on user account management in section 6.3 in the mysql manual (available here: http://dev.mysql.com/doc/refman/5.6/en/user-account-management.html )
26+
27+
Here is an example to load data.sql and grant access to the user
28+
"extjsinaction" from the mysql admin client:
29+
30+
\. data.sql
31+
grant all on extjsinaction.* to extjsinaction@localhost identified by 'extjsinaction'
32+
33+
you could then tweak the top line in crud.php to :
34+
mysql_connect("localhost", "extjsinaction", "extjsinaction") or die ("could not connect:" . mysql_error());
35+
36+
37+
38+
39+
40+
Tweaking the datastores to run locally
41+
--------------------------------------
42+
43+
In 7.4_The_Employee_Store.html you can tweak urlRoot to match your local crud.php installation. Just remove "http://extjsinaction.com/" from urlRoot and you should pickup you local file. Remember to alter the proxy type from "jsonp" to "ajax" now that you are running locally. Now you should be able to experiment with datastores from your console in your browser.
44+
45+
46+

0 commit comments

Comments
 (0)