Ask a question about mvc-php Tutorial

Ask me a question about mvc. I am a newbie. I am studying ci 3.x by myself. I recently encountered a question in my practice and would like to ask: The specific situation is that I want to create a video vod, and the homepage will display the

I am eager to ask a php question online. thank you!

I am eager to ask a php question online. thank you! Function number ($ str) { Preg_replace ('/\ D/S', '', $ str ); } Echo number ('text mosquito 38 '); The extracted number $ asd = preg_replace ('/\ D/S', '', $ str); cannot be obtained.

How to create a multi-dimensional array-php Tutorial

How to create a multi-dimensional array, my data has three columns, id (such as a1 \ a2 .. d1 \ d2), name (name), and age (age, number ). How to use PHP to create this multi-dimensional array? Include ("IncDB. php "); $ Result = mysql_query

PHP uploads FILES $ _ FILES unable to receive information

Uploading FILES in PHP $ _ FILES is unacceptable. Hello, everyone! I wrote a small program for uploading video files. When testing in windows: Php5.5 + apache2.4.9. The maximum php Upload size has been set to 1024 MB. At this time, it is okay to

Php magic method sleep () wakeup ()

Php magic methods sleep () wakeup () _ sleep () and _ wakeup () Public array_ Sleep(Void) Void_ Wakeup(Void) The serialize () function checks whether a magic method _ sleep () exists in the class (). If this method exists, it is called first

PHP obtains the real IP address of the current user.

PHP obtains the real IP address of the current user. Function getIp () {$ onlineip = ''; if (getenv ('http _ CLIENT_IP ') & strcasecmp (getenv ('http _ CLIENT_IP'), 'Unknown ')) {$ onlineip = getenv ('http _ CLIENT_IP ');} elseif (getenv ('http _ X_

I did not understand the result of array looping and print it out when I was learning it.

I did not understand the result of array loop traversal when I was learning it. I would like to ask you if I saw the output result of array loop traversal when I was learning php. The code is as follows: $ Arr [0] = 1; $ Arr [1] = 2; $ Arr [2] = 3;

DB: update ('pvtbs ', "setviews = views + 1", "lm =". $ lm. "anduid = $ uid", 1); what should I do if it cannot be executed?

DB: update (pvtbs, setviewsviews + 1, lm. $ lm. andu, 1); cannot execute how to write DB: update ('pvtbs ', "set views = views + 1", "lm = ". $ lm. "and uid = $ uid", 1); cannot execute how to write Reply to discussion (solution) You use your

Are you sure you want to modify, delete, verify, and delete?

Are you sure you want to rewrite and delete the verification code? Delete Add return ('Are you sure you want to delete it? ') You cannot run the query or click "yes" or "delete ". If you want to add a judgment point, do not delete it.

Post data problems

The problem of post data is that I use the debugging tool provided by the browser to intercept the data transmitted as follows: Remote Address:110.173.51.13:80Request URL:http://1.cp556677.com/index.php/game/postCodeRequest Method:POSTStatus Code:2

The cookie is valid and cannot be executed normally. Take a look at the php Tutorial.

The cookie is valid and cannot be executed normally. Take a look at the file directory structure logon interface and the main file in the root directory, and other files in the main folder, $ Name = "James "; Setcookie ("F_user", $ name, time () + 90

Php pattern design-Observer pattern

The Observer pattern of php pattern design is the fifth article I wrote "php pattern design. The previous four articles continue to learn and deepen their understanding. today, I think it is very easy to understand the observer model. This may be

Review of regular expressions in PHP (2) -- Basic syntax

Review of regular expressions in PHP (2) -- Basic syntax 1. add "/… /"You can also use" #... #" 2. minimum unit of atomic visible and invisible atoms Visible atom: characters that can be seen by the naked eye Invisible Atom: Invisible Atom, for

The loss of mysql storage Chinese characters in IE is so strange in the world.

The loss of mysql storage in IE is so strange in the world. First of all, my database and page use UTF-8 encoding. the page code is as follows: Header ("Content-type: text/html; charset = utf8 "); $ Result = $ mysqli-> query ("select * from 'com _

Memcache cannot be installed

Memcache cannot be installed. please kindly ask me if you have installed memcache. But no matter what version I want to change, I can't install it. I opened phpinfo () and didn't install memcache. thank you very much for your help! Reply to

How to read the results of key values in redis

How to read the results of the key value in redis now there is a key in redis, the key name is wz_user I read wz_user $ Redis-> hGetAll ("wz_user "); Value: ??? Array ([1170202] => a: 52: {s: 2: "id"; s: 7: "1170202"; s: 3: "pid"; s: 1: "0"; s: 8

Learning about MOOC php fuzzy search technology

Learning MOOC php fuzzy query technology ①. database design If the password is md5, char (32) is used. if the password stores half of the data, char is used. Gender. int is used for normal development. Input condition, with default setting default

Question about the return value of mysql_query

Error code about mysql_query return value Code to run All usersAdd user "; For ($ I = 1; $ I Modify'> Delete";} Echo"";?> The return value of mysql_query in the two sections of code is the same, but why does a function warn when

Cainiao's question: small questions about PHP and MySQL

Cainiao's question: small questions about PHP and MySQL What I want to achieve is Order multiple dishes Then select a box Then click Submit Order The unit price of the selected option is automatically added Then assign the result to the cost of the

Please match {my: abc} to <myname = "abc"/>

Please match {my: abc} to & lt; mynameabc & gt; and {my: abc} $ Content = '{my: abc} {my: CBA} {my: 123} {sys: abc} {field: CBA} {tag: aaa }'; This write is invalid. please modify it. $ Content = preg_replace ('/{(\ w. +) :( \ w. +)}/I ',' '

Total Pages: 12780 1 .... 4330 4331 4332 4333 4334 .... 12780 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.