PHP Regular Expression error,

PHP Regular expression error, Master Please enter. $str = Preg_replace ("/(? ) *) (TEA) (?! \ "|)/sui", ' tea ', $str, 5); The error is as follows: Warning:preg_replace () [Function.preg-replace]: compilation Failed:lookbehind assertion is a

Upload file name Chinese failed, how to deal with

Upload file name Chinese failed $dir = $_server[' Document_root '). " /uploads/"; Uploaded file Rename $filename = $_files[$myfile [' name ']; $filename = mb_convert_encoding ($_files[$myfile [' name '], "UTF-8", "GBK"); $filename = Iconv ("gb2312",

How to change the PHP array to string

How to change the PHP array to string For example, array: $myarr = Array ("fruits" = = Array ("A" and "Orange", "b" = "banana", "c" = "apple")); How to convert into a string: $str = ' Array ("fruits" = = Array ("A" = "orange", "b" = "banana", "c" = "

How to submit content from the same form to two different pages

How do I submit the contents of the same form to two different pages? There is a form, action= "a.php", in this form has an input tag, want to submit its value to b.php, how to do? ------Solution-------------------- Ajax, you put the form

The array is randomly evaluated. Solution Solutions

The array is randomly evaluated. PHP Code $json = Album. ', Track: '. $row->truck. ' ';} There is an array in JSON format. Store albums and tracks. How do I randomly take out 4 albums, remove one track from each record, and do not

There's a little bit of doubt at the critical moment, master.

There's a little bit of a problem at the critical moment, master. [code=php] [/code] Ession_start () [Function.session-start]: Cannot send session cache Limiter-headers already sent there's a situation like this. Include ("conn.php"); $username =

"Share: Php send mail SMTP class" workaround

"Share: Php send mail SMTP Class" Free Share address: http://download.csdn.net/source/2507571 This is the SMTP send message class that separates from the PHP168 system, it is very useful. You can successfully send messages by configuring

How PHP sends a byte to a port on an IP

How does PHP send a byte to a port on an IP? Title, such as sending a byte to 202.117.120.241 's 2012 port, the byte 8 bits is 00100000, how to implement? ------Solution-------------------- $fp = Fsoctopen (' 202.117.120.241 ', 2012); Fwrite ($FP,

PHP has a way to implement output JS code like this? How to solve it

PHP has a way to implement output JS code like this? For example, there is a value for this variable. PHP Code $a = ""; On the Web page is displayed directly but does not execute JS: Assembly Code Look at the

How to traverse an infinite array with a return

How do I iterate through an infinite array with a return? $arr =array (Array (6,66), 8); function Arr_p ($arr) { foreach ($arr as $v) { if (Is_array ($v)) { Arr_p ($v); }else{ echo $v. " ";} } } Arr_p ($arr); ?> This paragraph is the direct echo

The picture shows, what to do with

Picture Display PHP read out the path of the database g:/network/upload_files/2008/1331734471966.jpg, and then put it in the why can't I display the picture? Can't I use the full path? ------Solution-------------------- /network/upload_files/2008/13

Array of small doubts about the image, the parents

Array of small problems with the image, pro. Print_r ($GLOBALS [$class]); The output results are as follows: Ot_cod_fee Object ( [Title] = Cash payment handling fee [Output] = = Array ( ) [Code] = Ot_cod_fee ) Ot_total Object ( [Title] =

Circular nesting related issues. Looks like it's not hard, bro, I'm so confused.

Loop nesting issues. It's not hard, I'm confused. There are 4 categories of items: Category 1: (I, II) Category 2: (a,b,c,d) Category 3: (a,b,c,d) Category 4: (A, B, C, ding) Want to achieve the following effect, how to cycle? How to build a table?

How to get the next 12 months from this month

How to get the next 12 months from this month? How to get the next 12 months from this month? What I'm using now is: PHP Code for ($i =1; $i '. $nextdate;} Seems to be no problem, can print but found that March is repeated, I do

A data format related problems, Master to help, thank you.

A data format problem, online, etc., master to help, thank you Table 1: ID GroupName attribute OP value 1 ABC Download: = 151-250 2 ABC Upload: = 50-150 3 EFG Download: = 152-250 4 EFG Upload: = 50-150 How to convert the data in the table above into

To find a pseudo-static writing, how to deal with

To find a pseudo-static notation Now I have a requirement that the dynamic PHP file address map be the static address of the suffix. But now there is the original static HTM file is not found! My static rule is as follows: Rewriteengine

A simple regular, may I ask

A simple regular, ask PHP Code $content = html; $parr = "/href=\" \/html5\/(. *) \ "/I";p reg_match_all ($parr, $content, $result); Var_dump ($result); The results match to the following String

What about MYSQL special characters

How do I handle MYSQL special characters? This statement mysql_query ("update users set active_date = ' 2012-3-13 ' where Computer_key = ' 18:a9:05:a1:3d:83 90:4c:e5:a1:36:2a '"); It cannot be updated because there is a colon or a space behind it.

Meet a get parameter about the problem! Wait 100 minutes!

Meet a Get parameter problem! Ask for help, hurry up and wait 100 minutes!!! Address: Region.php? Act=modify&province= Beijing &city= Haidian will appear: Internal? Server? Error The? Server? Encountered? An? Internal? Error? Or? Misconfiguration?

Here comes the question again, Daniel.

Here's the problem again, Daniel. Error_reporting (E_all | E_STRICT); Class mycls{ Private $p = 1; /** the overloaded data is stored here */ Private $data = Array (); function func () { echo "None static"; } /* Public Function __set

Total Pages: 5208 1 .... 5157 5158 5159 5160 5161 .... 5208 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.