How to replace a character in the middle of a string
How do I replace a character in the middle of a string?
For example: Fdsfdsfdsjkww
Replaced by: f**********w
For example: deduction of Kim Simin
To be replaced by: Buckle * * * min
For example:
Get the page remotely, just take the first few lines of HTML! How to Do ~
Get the page remotely, just take the first few lines of HTML! How to Do ~
The whole page is made with file_get_contents!
what function to take is free to choose! Fsockopen
Continue to ask for regular expression problems
$STR = "Yesterday @ Test hiaaaa dd@ Test repeatedly";$reg = "/([^@]+ (=\s))/";$arr = Preg_split ($reg, $str, -1,preg_split_delim_capture | Preg_split_no_empty);Print_r ($arr);
The result is
The
Find open source software framework recommendations
Need to transfer the relevant functions of CS ERP program to BS, ready to use PHP, do not know whether there is a ready-made software framework, including rights control, module management, menu
Why does a cookie fail to set?
I have a program like this:
if (Setcookie (' Me ', ' MyCookie '))
{
echo "Cookie has been set";
}
echo "Logged in";
The result of the run is "logged in" Yes, but "cookie is set" is not displayed. This indicates that
Uploading a video issue
Why I use $_files[' Filedata ' [' tmp_name '] to get the video upload file, can not get the upload failed, but get the image of the file can be obtained, and can upload, in the end is how to, please the heroes to point out,
Troubleshooting PHP Multithreading
On the Internet to see some of the demo, a lot of the same, their own to get the test, a bit of a problem:
a.php
function Runthread () {
$fp = Fsockopen (' localhost ', $errno, $errmsg);
Fputs ($fp, "get/a.php?act=
Apache page bad Request,cookie length setting
When testing a Web page, when the number reaches a certain value, the page error, prompt as follows:
Bad Request
Your Browser sent a request that this server could not understand.
Size of a Request
Discuz Forum Home Jump forum.php problem
I have a forum installed on my Site subdirectory bbs, but why every time I visit
Www.abc.com/bbs/will jump to www.abc.com/bbs/forum.php
The key is I set the default home page, regardless of the set which file,
Problem sending mail using Ecshop
a14504 Hello!This e-mail was sent by Meiliclub. You received this email to verify that your registered email address is valid. If you have already passed the verification, please ignore this email.Please click on
Why is the value of Activitiedropdownlist not always available?
This post was last edited by Sincor on 2013-06-22 18:17:19
Views Layer View
Controller layer
Public Function Actiondbdplist (){$m _subjectlist = new Subjectlist ();$m _gradelist =
Enter a specific character to download
is to click on the download to pop up a dialog box, enter the password, the password is correct to download, incorrect can not download, the following is a test of my, but the effect did not reach
The path is so annoying.
This code file is under/admin/with the file name a.php
$b =aa;$a = '. /'. $b;mkdir ($a, 0700);
The resulting path is the previous layer. That should be/aa/to generate a directory like this. Domain Access http://a.com/aa/
$_session Transmission between pages
$_session[' id ']= $i [id];? >
">
. jpg "/>
There are 10 messages in $i,
Click on any image to print from $_session to page B 10
How can I click on which picture to print out which image ID
session
Share
2 years ago, the rubbish written by himself was not able to understand the change, and begged the great God to run up.
This post was last edited by bbbbbjt46 on 2013-06-15 22:19:24
function Shuzu ($a 0, $a 1, $a 2, $a 3, $a 4, $a 5, $a 6, $a 7, $a 8,
Mysql_fetch_array () issue
while ($row =mysql_fetch_array ($result))
{
echo $row [0];
}
Why this will be able to put the data of the query one output, but put into the for loop inside no, shape such as:
for ($i =0; $i {
echo $row [0];
}
This will
Dede what to tell if a member is logged in
Dede what to tell if a member is logged in?
I want to be in a PHP page to judge whether the member has landed, if landed $g _isadmin is true, no landing is false.
Is this a decision to query a table? I
Excuse me, I want to take the...How do you write the regular data inside?
This post was last edited by qq_2426232528 on 2013-05-20 12:00:25
Example:
3.
regular PHP share to: ...
How do
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