javascript-Excuse me, what is the reason for this?  [Network security, nginx, php, js related]

javascript-Excuse me, what is the reason for this? [Network security, nginx, php, js related]

Solved, replaced jquery import with Qiniu Cloud static resource acceleration. Then this problem no longer occurs. It means there is a problem inside the js file. I also reminded myself not to use external js indiscriminately. Thank you to those who answered! After occasionally refreshing the page, normally it should all come from the same address. Why are there three things requested from external addresses? (The black lines above are all from the same address, and the yellow lines are from other addresses) Normally it should look like this: I am a front-end person, I don’t quite understand why? (Guess whether the router or server was hijacked?) 1. CDN is not used. 2.js references only jquery and layui. 3. It is just a login page and does not use js from external resources. 4. This is the page header: Reply content: Solved, replaced jquery import with Qiniu Cloud static resource acceleration. Then this problem no longer occurs. It means there is a problem inside the js file. I also reminded myself not to use external js indiscriminately. Thank you to those who answered! After occasionally refreshing the page, normally it should all come from the same address. Why are there…

Comparison of perl, php, python, java and ruby

Preview ◆ The development trend of language must be the combination of dynamic and static, hard and soft ◆ Perl is concise and obscure, Python is elegant and clear, Ruby is exquisite and agile, and PHP is concise and simple ◆ Perhaps elegance comes from paying attention to details and specifications ◆ After (RoR) is combined with Ruby, it is like a civet cat that immediately sets off the elephant-like appearance of Java and .NET. Figure Ask a question ◆ What are the characteristics of Perl, Python, Ruby and PHP? ◆ Why are dynamic languages ​​mostly used as lightweight solutions? ◆ Why is LAMP popular? ◆ Why is Ruby on Rails popular? ◆ What is the development trend of programming languages? Explanation “There are four remaining dynamic languages, which we classify as background scripting languages.” Colon said and drew a chart—— Quotation marks Listen carefully: “I remember that you initially divided these languages ​​into three categories: C-family static languages, non-C-family static languages, and dynamic languages.” Colon explanation: “That is based on grammar. , focusing on theory; now it is divided according to application, focusing on practice.” Period immediately thought: “This division method looks like a three-layer architecture – the front-end…

For a person with no programming foundation and a high school diploma, which one is easier to find a job in Beijing, IOS, software testing, or Java, PHP, and Python?

Mainly because it is easier to find a job and get started quickly. I have heard of training institutions such as Beida Jade Bird Reply content: 1. If you are not interested in the IT industry, you will not be able to join any organization. 2. If you don’t work hard, Ye Gong is very fond of dragons. He only looks at the high salary of programmers and yearns for them, and shrinks back when encountering difficulties. 3. High school diploma, English, and academic qualifications are all flaws, but as long as you are interested and work hard, it is not a problem. Tell me a story: A young man graduated from high school and worked in an electronics factory. Later, he changed his career to become a programmer. vim is super easy to use. 4. It’s not a day’s work, come on! How to train your own programming ideas – learn programming through python – Zhihu column Never go to a training institution. If the interviewer is technical, he will know if you have come from a training class by asking a few professional questions. There is so much information online now, why not learn it yourself. Python is…

C++, PHP, Javascript,…, support for lambda expressions

lambda lambda expression, also called Closure (closure), also called anonymous function. Due to its power, it is supported by almost all mainstream development languages. This article attempts to list sample codes for lambda expressions in most languages ​​and will be continuously updated in the future. PHP support for lambda <?php$i = 12 ; $j = 33; $callable = function()use($i, &$j) {echo$i . “\n”; echo$j . “\n”; }; $callable(); $i++; $j++; $callable(); External variables must be referenced explicitly, distinguishing between value and reference transfer. C++ support for lambda #include usingnamespace std; int main(int argc, char** argv) { int i = 12; int j = 33; auto callable = [i, &j](){ cout <<i <<endl; cout <<j <<endl; }; callable(); i++; j++; callable(); } External variables must be explicitly referenced, distinguishing between value transfer and reference transfer. Support simple syntax such as [=][&] to reference all external variables. Javascript No need to reference external variables, external variables are automatically available. All variables are passed by reference. The above has introduced the support for lambda expressions in C++, PHP, Javascript, …, including aspects of it. I hope it will be helpful to friends who are interested in PHP tutorials.

PHP, ASP.JAVA, JAVA code formatting tool arrangement_PHP tutorial

PHP code formatting tool http://www.waterproof.fr/products/phpCodeBeautifier/I recently modified a code, which has no indentation at all. I can use this to format it. Equivalent to the previous indent of cBy the way, write indent in other languagesc, c++ c# ==> indent Astylejava ==> astyle Jalopy Jacobe ImportScrbberphp ==> phpCodeBeautifierperl ==> perlTidypython ==> Pydentasp ==> VBSBeaut Tool name Applicable languages Introduction Installation/Usage indent c indent is synonymous with code beautification tools indent is a standard tool that comes with gcc,indent [options] [input-files]indent [options] [single-input-file] [-o output-file ] perltidy perl perltidy itself is also written in perl After downloading: perl Makefile.PL;make;make installperltidy [ options ] file1 file2 file3 …(output goes to file1.tdy, file2.tdy, file3 .tdy, …)perltidy [ options ] file1 -o outfileperltidy [ options ] file1 -st >outfileperltidy [ options ] outfile astyle c c++ java (php) A fast C/C++/Java source code beautification tool. Astyle is better than indent in that it has many complete sets of style definitions: ansi java linux… You don’t have to remember complex indentation specific options. After downloading and unpacking the source code, make, generate astyle executable fileastyle [options] Beautifiedastyle [options] Foo.cpp Bar.cpp [.. .]astyle –style=ansi *.cppI have tried using it to format PHP programs and it is…

Comparison of Perl, PHP, Python, Java and Ruby_PHP Tutorial

Preview ◆ The development trend of languages ​​must be a combination of dynamic and static, hard and soft ◆ Perl is concise and obscure, Python is elegant and clear, Ruby is exquisite and flexible, and PHP Simple and simple ◆ Perhaps elegance comes from paying attention to details and specifications ◆ After (RoR) is combined with Ruby, it is like a civet cat that immediately sets off Java And the elephant-like figure of .NET Question ◆ What are the characteristics of Perl, Python, Ruby and PHP? ◆ Why are dynamic languages ​​mostly used as lightweight solutions? ◆ Why is LAMP popular? ◆ Why is Ruby on Rails popular? ◆ Programming What is the development trend of languages? Explanation “There are four remaining dynamic languages, which we classify as background scripting languages.” Colon said Draw a chart—— http://www.bkjia.com/PHPjc/445730.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/445730.htmlTechArticlePreview◆ The development trend of languages ​​must be a combination of dynamic and static, rigid and soft. ◆ Perl is concise and obscure, Python is elegant and clear, Ruby is exquisite and agile, and PHP is concise and simple. ◆ Perhaps elegance comes from the details…

Overview of the advantages and disadvantages of Java, .Net, PHP, and Ruby_PHP Tutorial

[Quoted from the blog] I recently learned some things about PHP and Ruby, and suddenly wanted to compare the applications of these things. First of all, let’s compare the share of Java .Net PHP applications and simply divide the current mainstream applications into two major categories, one is enterprise applications and the other is Web website applications. The following table is What I summarized may not be accurate, but it can give a rough idea. Application/LanguageJava.NetPHPLarge enterprise applicationsMoreLess Less Mid-sized enterprise applicationsMultipleMediumLittleSmall business ApplicationMediummediumsmallLarge Web ApplicationMoreLess中Medium-sized Web ApplicationMedium 中 MultipleSmall Web applicationLess中Multiple As can be seen from the table, Java and PHP have their own areas of expertise, but .Net has no outstanding ones. In terms of occupancy, the situation is very embarrassing. Let’s take a look at the technical aspects. First of all, let me state that I am not very familiar with each of the language technologies. I can only give a rough analysis… Let’s talk about Java first. At the enterprise level, it can be said to be the absolute leader. Many enterprise-level technologies and development ideas are developed from Java. The disadvantage is that Java development and deployment is more troublesome and is not suitable for…

PHP, Javades encryption and decryption examples, des encryption and decryption_PHP tutorial

PHP, Java des encryption and decryption examples, des encryption and decryption des encryption is an encryption method that is widely used on the Internet in symmetric encryption. PHP supports it through the mcrypt extension library. des encryption. To use des encryption in Php, you need to install the mcrypt extension library first The following is an example of encryption and decryption The code is as follows: $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB); $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); $key = “This is a very secret key”;//Key $text = “Meet me at 11 o’clock behind the monument.”;//Content that needs to be encrypted echo ($text) . “\n”; $crypttext =base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $text, MCRYPT_MODE_ECB, $iv)); echo $crypttext . “\n”;//Encrypted content echo mcrypt_decrypt(MCRYPT_RIJNDAEL_256,$key,base64_decode($crypttext),MCRYPT_MODE_ECB,$iv);//Decrypted content In the AES encryption algorithm, MCRYPT_RIJNDAEL_128, MCRYPT_RIJNDAEL_192, and MCRYPT_RIJNDAEL_256 are usually used. The following 128, 192, and 256 represent the number of bits of the secret key (that is, the encrypted Key). For example, MCRYPT_RIJNDAEL_128 is used. Then when using this algorithm to encrypt, the length of the secret key is 128 bits. For example, $key = ‘fjjda0&9^$$#+*%$fada’ is 20 characters. Then only the first 16 characters are used for encryption ( 16*8=128), if it is less than 128bit, ‘\0’ will be used to fill…

PHP, Javades encryption and decryption examples_PHP tutorial

PHP, Java des encryption and decryption examples This article mainly introduces PHP, Java des encryption and decryption examples. des encryption is a type of symmetric encryption that is widely used on the Internet. Encryption method, this article gives the implementation code of PHP and JAVA versions respectively, friends in need can refer to it Des encryption is an encryption method that is widely used on the Internet in symmetric encryption. PHP supports des encryption through the mcrypt extension library. To use des encryption in Php, you need to install the mcrypt extension library first The following is an example of encryption and decryption The code is as follows: $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB); $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); $key = “This is a very secret key”;//Key  $text = “Meet me at 11 o’clock behind the monument.”;//Content that needs to be encrypted echo ($text) . “\n”; $crypttext =base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $text, MCRYPT_MODE_ECB, $iv)); echo $crypttext . “\n”;//Encrypted content echo mcrypt_decrypt(MCRYPT_RIJNDAEL_256,$key,base64_decode($crypttext),MCRYPT_MODE_ECB,$iv);//Decrypted content In the AES encryption algorithm, MCRYPT_RIJNDAEL_128, MCRYPT_RIJNDAEL_192, and MCRYPT_RIJNDAEL_256 are usually used. The following 128, 192, and 256 represent the number of bits of the secret key (that is, the encrypted Key). For example, MCRYPT_RIJNDAEL_128 is used. Then when using this algorithm to…

How to clean up temporary system files in batches (language: C#, C/C++, php, python, java), _PHP tutorial

How to clean up temporary system files in batches (languages: C#, C/C++, php, python, java), The language debate has been around for a long time. Let’s do some IO experiments (traversal Files with more than 9G, deleted in batches), try to use facts to compare who is better and who is worse. Operating system: win7 64-bit, file package size: 9.68G. 1. Language: C# Development environment: vs 2013 Total number of lines of code: 43 lines Time taken: 7 seconds Code: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespaceBatchDelete { class Program { static void Main(string[] args) { //Input directory e:\tmp string path; Console.WriteLine(“Enter the directory to be cleaned:”); path = Console.ReadLine(); // start the timer Console.WriteLine(“Start timing:”+DateTime.Now.ToString(“HH:mm:ss”)); // First traverse the matching search and then loop to delete if (Directory.Exists(path)) { Console.Write(“Deleting”); foreach (string fileName in Directory.GetFileSystemEntries(path)) { if (File.Exists(fileName) && fileName.Contains(“cachegrind.out”)) { File.Delete(fileName); } } Console.WriteLine(“”); } else { Console.WriteLine(“This directory does not exist!”); } // Timer ends Console.WriteLine(“End time:” + DateTime.Now.ToString(“HH:mm:ss”)); Console.ReadKey(); } } } Operation renderings: 2. Language: C/C++ Development environment: vs 2013 Total number of lines of code: 50 lines Time taken: 36 seconds Code: #include #include #include #include #include #include…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索