This is the time I spent more than a year, while working, while writing code to get out, more suitable for private, primary and secondary use.
The system for my original development, the code is not mature, but can meet the general needs of schools,
I used wamp myself to build a local site to learn PHP, the system is WINDOWS8, Web page is:
Coding
However, in the processing of Chinese directories and filenames garbled, search on the internet said to be used
$dir =iconv (' UTF-8 ', ' GB2312 '
Session_Start ();
$page = "PageID". $_get["page"];
$_session[$page]= "dddd";
$_session[$page] How to write
Reply to discussion (solution)
Write what, do not understand
You are right to write like that.
Session_Start (); $page = "PageID".
if ((Debug_mode & 2)! = 2)
{
$smarty->caching = true;
}
Where I looked for a $smarty this instance did not, so presumably it is ready for smarty reserved, do not know whether this is
Reply to discussion (solution)
This is to avoid debugging
First download the Phpexcel online
Download and unzip to get these two files
Refer to this file after download
Finally write the relevant code:
The first is the picture insert Export
$objDrawing = new phpexcel_worksheet_drawing ();$
PHP General page, first look at the style
The code is as follows:
0? Intval ($page): 1; $conn = mysql_connect ("127.0.0.1", "Root", "") or Die (' connection database failed '); mysql_select_db ("Demo", $conn); MySQL _query ("SET NAMES UTF8");
I'm going to do a picture-cutting program
The way I see it online is to upload the original image to the server.
And then cut it with PHP's own function.
What I want to ask is, is there a way
No uploading of original artwork
Upload a cropped picture
User A in Beijing login a website, generate $_session[' success ']=1;
User B login to the same website in Shanghai, generate $_session[' success ']=2;
Will the two session values conflict and affect? b user's value will not overwrite a user's Ah,
function Autoexecute ($table, $field _values, $mode = ' INSERT ', $where = ', $querymode = ')
{
。。。 }
How to call: $b = $new->autoexecute ("Fish", Array (' repass ' = ' ss '), ',name=> ' Zhu ');? How is the Where condition written?
function
The teacher said Mysql_free_result ($query); is used to free up memory.
But I recently found a problem writing a program. I'd like to discuss it with you.
Mysql_free_result ($query); Can I use it only after the query record has ended?
Such
Ask a question:
I want to use PHP to do a message publishing system, the database has a user table and an article table, now need to determine whether an article is read according to the user click, I have more than 3,000 users, if you want to
1. Manual:
Executes when the script has been executed and has been sent out of the PHP header;
A; }
Since it is the end of the script, execute;
So why is the result: 1---1 = = =
Rather than 1 1---= = =
Reply to discussion
Overview
Queue concept: Slightly, do not know the self-resolution. (PS: here Laravel version:5.1)This is often the case with App server development:
A large task can be divided into 1,2,3,4 small tasks, where 2 of the completion depends on the
This kind of chat, which predecessor did AH? Do you have any plugins? What PHP does, thank you
Reply to discussion (solution)
If you want to use it quickly, you can use the ring letterIf you want to write your own, it's still more
Now more and more sites are beginning to use Chinese character verification code, not only to increase the intimacy of our people, but also to increase the difficulty of the machine crack, here I will simply rough said ...
Create a background
'">'">
I want to pass a $mark_id that is defined above to true_delete.php.
But to the true_delete.php display error undefined index:mark_id
Did I not upload the value? Do I have a wrong statement?
Reply to discussion (solution)
I
The Ajax return value of PHP starts with
Then lead to parse error, cannot parse, normal should not have above this meta head, what solution ah?
Prompt parsing error:
The return value of the Ajax received:
Reply to discussion
Document
Please enter the height of the triangle you want to display:
Reply to discussion (solution)
You re-assigned every time, so the last oneCovered, should not be used = and with + = to connect.for (;
"Arr": [
{
"A": "XXX"
},
{
"A": "YYY"
}
]
This is the data from the previous paragraph Print_r.
I want to change to:
"Arr": [
{
"XXX",
"YYY"
}
]
Reply to discussion (solution)
Is anyone here??This point
$s =
Array ([ arr] = =
This document records the implementation of custom sorting in PHP
Array (' name ' = ' = ' Zeopean ', ' Grade ' and ' 89.3 '), and the array (' name ' = ' = ' daming ', ' Grade ' =>34.5), ' = ' Name ' = = ' zpp ', ' Grade ' =>333),//Sort by name
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