Get permission List
Public Function Getprivelist ($id) {
$sql = "Select M.id, M.name
From Jh_user as U, jh_role as R, Jh_role_user as Ru, jh_prive as P, jh_menu as M
WHERE u.id = ru.user_id
and ru.role_id = R.id
and r.id = p.role_id
and m.id =
Callback, no explanation, we'll see how PHP implements Callbacks
1. First build an ObjectClass product{Public $name; For easy testingfunction __construct ($name) {$this->name= $name;}}
2. Using callbacksClass processsale{Private $callbacks;
Setting
PHP supports a total of 4 tag styles:
1)
echo "This is an XML style tag"; Recommended Use
?>
2)
3)
4)
echo "This is an ASP-style tag";
%>
/*
If you want to use a short style and ASP style, you need to configure it in php.ini, and then set
One. Comment Methods for PHP
1.//(single-line comment) 2./**/(multiline comment) 3.# (more for Unix SHELL) two. Embedding method
Can be specified on its own, the general situation is
Recommended use
three. Reference file
Include and
This article briefly describes the operation of AD through PHP
Tool adldap.php
Download location http://adldap.sourceforge.net/download.php
API (below from http://adldap.sourceforge.net, translation level is limited, if there is any irregularities
Last article http://www.BkJia.com/kf/201202/118458.html
Technical knowledge of regular expressions
[] Define character sets and example [A-z] [a-z] [0-9] [\f\r\n\t]
Locator ^[a-z][0-9]$ Start end
Quantifier * +? {n} {m,n} {N.} Refers to
Start a PHP application using Zend Studio August 28, 2011 Sunday 12:28 a.m. The following steps will help you master the basic process of developing and running a PHP application using Zend Studio.
The first time you open Zend Studio, a welcome page
This article is mainly from the principles, manuals and source code analysis in PHP query MySQL return a large number of results when the memory footprint of the problem, while the use of MySQL C API is also involved.
Yesterday, a colleague in the
PHP Output All error report Error_reporting=e_all settings
For example do not show warning Error_reporting=e_all & ~e_warning
Use PHP functions to set php.ini ini_set () as
Ini_set ("error_reporting", E_all)
Gets the value inside the php.ini can
Original: Http://dotnet.dzone.com/articles/php-scripting-language-c
When we are going to create a. NET program, including a desktop program or Web application, it will certainly be useful if you can use other languages to extend the functionality
How to use PHP Ignore_user_abort and Connection_status and Register_shutdown_function
Implementing PHP Planning tasks with Ignore_user_abort ()
Syntax: int ignore_user_abort (int [setting]);
return value: Integer
Function type: PHP system
/**
* Pagination Class
* 2011/8/31
* KCJ
* */
Class page{
Private $total; Querying the total data record
Private $page; Current page
Private $pagesize; Number of bars to display per page
Private $pagenum; Total number of pages
Private $num; Shows
Php.net recently updated the PHP documentation, the more useful is the new Pman tool. Pman is a command-line gadget that makes it easy to see the local Help documentation for PHP functions, but does not include php.net comment data. The simple trial
Mysql:
CREATE TABLE Persons
(
id_p int not NULL,
LastName varchar (255) is not NULL,
FirstName varchar (255),
Address varchar (255),
City varchar (255),
UNIQUE (id_p)
)
Data reference: http://www.knowsky.com/540964.htmlAuthor "My PHP Learning
You can use command-line variables in PHP. Too much text is too abstract to speak with a script:
Command behavior when running a script: PHP argvtest.php TQ TQx
The output is:
The TQ TQx $argv is an array of 3 note $ARGC variables, which
The PHP StdClass () is something this isn ' t well documented but I'll try to shed some light into the matter. StdClass is a default PHP object which have no predefined members. The name StdClass is used internally by Zend and is reserved. So, means,
Apache
Tar XF Httpd-2.2.19.tar
CD httpd-2.2.19 ls
Compile:./configure--prefix=/usr/loacl/apache--sysconfdir=/etc/httpd--enable-ssl--enable-modules=most-- Enable-mods-shared=most--enable-so
Make
Make install
Get a httpd,
VI/ETC/INIT.D/HTTPD Apachectl=
The previous article documented the PHP process of creating an XML document, which records how data and attribute values in the received XML string are parsed for further processing of the data.
XML file
1.
2.
3.
4.
5.
6.
7.
8.
9
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