Parse error:syntax error, unexpected $end in script.php at line xx
After debugging for a while, you find that the row that generated the error is a row in the middle of the file
$str. = ">\n";
I remember. The end tag allowed by the PHP
void header (String $string [, bool $replace = true [, int $http _response_code]]): Send a raw HTTP header
Here are several uses of header:
1, use header function to jump page;
Header (' Location: '. $url);
Where $url is the URL that will
(1) All data should be hidden inside the class in which it is located.
(2) The consumer of a class must rely on the common interface of the class, but the class cannot rely on its users.
(3) Minimize the message in the class protocol.
(4) Implement
(O゜▽゜) o☆[bingo!]
OK, let's see what the cookie is first.
Cookies are small files that the server leaves on the client to identify the user or store some data (note that the session is stored on the server side, which is one of the differences).
First type
Want to traverse the entire two-dimensional array with foreach ():
$team = Array (' lk ', ' OK ');
$book = Array (' Linux server Configuration and Management ', $team);
foreach ($book as $k => $val)//for $book each $value (AS)
Program one: Responsible for the random extraction of data from the dictionary, write a new file. (1.php)
Copy Code code as follows:
* * Extract the random value from the dictionary file.
$file 1 = "./words.dic";
$file 2 =
such as: name|s:4: "Tasm";p asswd|s:6: "111111"; mode|s:1: "1", also know the location of the session stored, and can upload files, so, then did a small hacker, online friends password can be glance, Oh:
?
function Submit1 () {
Global
The Creates the fileutil.php file, and the content and how it is invoked are as follows:
Another way to call:
$fu = new Fileutil ();
$fu->copyfile (' A/1/2/3 ', ' A/1/2/4 ');
The above is a small set to introduce PHP files
php5.3 Self-belt PHP-FPM/usr/local/php/etc/php-fpm.confPID = Run/php-fpm.pidPID settings, default in the installation directory of the Var/run/php-fpm.pid, recommended to open
Error_log = Log/php-fpm.logError log, default Var/log/php-fpm.log in the
show.php Source code:
?
if ($action = = "CP") {
echo "
scrolling menu Data Input
Text One:
Link One:
Text Two:
Link two:
Text Three:
Link Three:
text Four:
Link Four:
Text Five:
Link Five:
"; exit;}
if ($action = = "Edit"
3. Delete Member Del.php3
?
Require ("common.php3");
$id =chop ($id);
if (!isset ($id)) error ("Please enter the user ID to be deleted!") ");
ElseIf ($pwd <> $adminpass) error ("Admin password Error! ");
else{
$data =dbmopen ("Class",
The examples in this article describe how people and their distances are implemented in a PHP query. Share to everyone for your reference, specific as follows:
array (' lat ' => $lat + $dlat, ' LNG ' => $lng-$dlng), ' Right-top ' =>array ('
This article illustrates a simple way to count the number of people online in PHP. Share to everyone for your reference, specific as follows:
Time ()) {
Array_push ($temp, $entry [0]. ",". $ ENTRY[1]. " \ n "); Remove the other viewer's
This article describes the simple implementation of PHP short URL restore method. Share to everyone for your reference, specific as follows:
Here take the cloud-dwelling community http://www.jb51.net short URL http://t.cn/heEHwk as an example to
Copy Code code as follows:
/**
* Function: Pagination class
* Author: phpox
* Time: Sat 18:15:02 CST 2007
*/
Defined (' phpox ') or Die (header ("http/1.1 403 Not Forbidden"));
Class page{
Public $infocount;
Public $pagecount;
The past few weeks have been a rather complicated experience for me. I was one of the big layoffs in our company, but it was a pleasure to experience. I've never been expelled, so it's hard not to think too much. I started browsing the recruiting
(1) All data should be hidden inside the class in which it is located.
(2) The consumer of a class must rely on the common interface of the class, but the class cannot rely on its users.
(3) Minimize the message in the class protocol.
(4) Implement
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