Analyze \r and \n from java, windows, linux
First give the ASCII values of \r and \n In Windows, \r\n means line break: Create a new txt file, enter A and line feed B, and then check the hexadecimal value of the txt. Refer to the picture above. 0D 0A means carriage return and line feed (\r\n). The result is as follows: In Linux, \n means line break: Also create a new txt file in Linux, enter A and line break B, and then check the hexadecimal value of the txt. There is only 0A, which is line break (\n). The result is as follows: The following is opened with Notepad. You can see that there is no line break. Question 1: Why do some files only have \n? Why can I also see line breaks? Because some editing tools have done special processing, if there is only \n, it will be treated as a line break. You can see that after opening the file created in Linux above in Notepad, a miracle happened and there was no line break. But when I changed the editor to view it, a miracle happened again, and I could see line breaks again. Sometimes when I take the log log under…
[Linux, UNIX, Solaris, FreeBSD] Java development environment configuration
Linux,UNIX,Solaris,FreeBSD environment variable settings The environment variable PATH should be set to point to the location where the Java binaries are installed. If you have trouble setting up – please refer to the shell documentation. For example ,Assuming you are using bash as your shell, you can add the following to the end of your .bashrc file: export PATH=/path/to/java:$PATH
Modify PHP upload file size limit (windows, linux)
Introducing the method of modifying the PHP upload file size limit, divided into two environments: Windows and Linux, respectively introducing the solution to the PHP upload limit, friends in need can refer to it. Contents of this section: Modify the size limit when uploading files in PHP to break through the upper limit. 1. Windows environment Step 1: Modify the POST file size limit under php5 1. Edit php.ini Found: max_execution_time = 30, this is the maximum time for each script to run, in seconds, modified to: max_execution_time = 150 Found: max_input_time = 60. This is the time that each script can consume. The unit is also seconds. Modify to: max_input_time = 300 Find: memory_limit = 128M. This is the maximum memory consumed by the script. Change the value according to your needs. Here it is modified to: memory_limit = 256M Found: post_max_size = 8M, the maximum data submitted by the form is 8M. This item does not limit the size of a single uploaded file, but limits the submitted data of the entire form. The scope of the restriction includes all content submitted in the form. For example: when publishing a post, the post title, content, attachments, etc…. This…
IT tutorial sharing ~ PHP, Linux, HTML and other tutorial sharing! -php tutorial
IT tutorial sharing~! PHP/Linux/html/JS/mobile game development/MySQL/etc. tutorials~! Without further ado, here are the resources: New version of Linux video tutorial: http://pan.baidu.com/s/1c01r15Y HTML5 video tutorial: http://yun.baidu.com/s/1jGIJLum Java, Android video tutorial: http://yun.baidu.com/s/1dDvOH37 cocos2d-x video tutorial: http://yun.baidu.com/s/1pJlZu4N Javascript video tutorial: http://yun.baidu.com/s/1pJwi9lT NoSQL video tutorial: http://yun.baidu.com/s/1oYcOD smarty3 video tutorial: http://pan.baidu.com/s/1bnnMtGz Baidu development platform video tutorial: http://pan.baidu.com/s/1kT9kHN5 PHP special course video tutorial: http://pan.baidu.com/s/1ntjyl09 PHP classic example video tutorial: http://pan.baidu.com/s/1gd5pf6j BroPHP framework video tutorial: http://pan.baidu.com/s/1hq9WOBE Smarty video tutorial: http://pan.baidu.com/s/1i3EE6ln PHP introductory video tutorial: http://pan.baidu.com/s/1dDoyo73 PHP advanced video tutorial: http://pan.baidu.com/s/1hquxJxU PHP function module video tutorial: http://pan.baidu.com/s/1dDfAN3V mysql database video tutorial: http://pan.baidu.com/s/1sjAu1id Band of Brothers PHP preview video tutorial: http://pan.baidu.com/s/1eQcQS7K Web development basics: http://pan.baidu.com/s/1D6RaY
Linux, Tengine, MariaDB, PHP production environment one-click installation package
ltnmp one-click installation package ltnmp one-click installation package is written in Linux Shell and can be used to install ltnmp (Linux, Tengine, Nginx, MariaDB/MySQL, PHP) for CentOS/RadHat, Debian/Ubuntu VPS (VDS) or independent hosts. , phpMyAdmin) Shell program for the production environment. Note: Currently only CentOS/RadHat series linux is supported. The ltnmp one-click installation package is a one-click installation package based on the secondary development and modification of lnmp, adding Taobao servers Tengine and MariaDB. ltnmp one-click installation package By: Ji’an (Andy) php360#qq.com (replace # with @) Default components: tengine-2.1.0, php-5.6 .11, mariadb-10.0.20, phpMyAdmin-4.4.12-all-languages, ioncube Loader, Zend Guard Loader Optional installation components: redis-3.0.3, phalcon-v2.0.6, yaf -2.3.3, swoole-1.7.17-stable Git http://git.oschina.net/php360/ltnmp https://github.com/php360/ ltnmp Installation and usage tutorial ltnmp一键安装包 Project homepage: http://www.open -open.com/lib/view/home/1438356145285
phpcurl_execwindow,linux
$ch = curl_init(); $header = “Accept-Charset: utf-8”; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, “POST”); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1); curl_setopt($curl, CURLOPT_HTTPHEADER, $header); curl_setopt($ch, CURLOPT_USERAGENT, ‘Mozilla/5.0 (compatible; MSIE 5.01; Windows NT 5.0)’); curl_setopt($ch, CURLOPT_FOLLOWLOCATION , 1); curl_setopt($ch, CURLOPT_AUTOREFERER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $tmpInfo = curl_exec($ch); This is my code. There is no problem when executed on this machine. The native window 64-bit operating system, but when the machine is accessed through the server, it prompts an unknown error number. , unknown error, the server is a linux system. Reply to discussion (solution) Windows and Linux are different Windows and Linux are different It is probably a problem with the version of Linux curl, please check it out Who prompted: unknown error number, unknown error? ? ? Obviously not php Where is the error message? Who prompted: unknown error number, unknown error? ? ? Obviously not PHP An error is prompted when executing $tmpInfo = curl_exec($ch); Where is the error message? An error is prompted when executing $tmpInfo = curl_exec($ch);. Then I reinstalled a curl7.44 version but it didn’t work. PHP will not give such information! If what you said is true, it is obviously the…
Brother, I know ZEND, LINUX, and can do Shenma-php tutorial
I know ZEND and LINUX, can I do Shenma? Brother 30 has 5. . . I know PHP ZEND, TP, SMARTY, and configure APACHE under LINUX. Can I do it? Can I find a development job at the age of 35? ——Solution—————— —P, please switch to training, it will definitely be better than you being a programmer——Solution——- ————-You are not as young as you are ambitious. Come on, brother P.
Realize page image shadow effects, jsp, asp, sql, php, mysql, server, apache, iis, tomcat, oracle, java, linux, dns
Realize the shadow effect of the page picture Adding shadow effect to the picture can make the picture more three-dimensional. Here are three ways to make it: The first is to use image editing software The most commonly used image editing software is Photoshop, the production process is as follows: 1. Select a picture; br> The effect after completion is as follows: The third way is to make use of layers See the following code: The effect after completion is as follows:
Pure source code compilation and installation LAMP, linux, httpd, php, mysql source code compilation and installation
Compile and install LAMP, linux, httpd, php, mysql from source code compile and install from pure source code Tutorial goal: use source code to compile and install LAMP, running php webpage basic code Date period : August 19, 2015 Contact email: [email protected] Q Q Group: 1851 15701 51CTO blog homepage: http://990487026.blog.51cto.com Be a blogger who is responsible to readers. Install a pure system like mine, I can install it successfully, and you can also install it successfully. I can do it, so can you! ================================================= ===================Installation preparation: Installation environment:1, fresh installation, CentOS 6.6 X64, minimum 2. Set the local IP: 10.11.12.133. Use the default yum source to solve the installation of the compilation environment The required software is as follows:[ root@pc0003 lamp]# ll -hTotal consumption 52M-rwxrwxrwx. 1 root root 997K June 7 18:02 apr-1.5.1.tar.gz-rwxrwxrwx. 1 root root 678K June 7 18:01 apr-util-1.5.2.tar.bz2-rwxrwxrwx.1 root root 4.6M May 6 14:01 httpd-2.4.4.tar.bz2-rw-r–r–. 1 root root 32M August 3 13:29 mysql-5.6.17.tar.gz-rw-r–r–. 1 root root 14M August 3 10:00 php-5.6.11.tar.bz2 The required files can be directly searched on the following websitehttp://www.wangpansou.cn/ recommended >https://github.com/http://sourceforge.nethttp://search.cpan.org/http://www.filewatcher.com/ />================================================ ========================Start to prepare for installation: tar xf httpd-2.4.4.tar.bz2 -C /usr/src/tar xf apr-1.5.1.tar.gz -C /usr/src/tar xf apr-util-1.5.2.tar.bz2 -C /usr/src /tar xf mysql-5.6.17.tar.gz…
Phpsyslogng, linux, and syslog_7u2 failed to start syslogng during the startup process, causing the machine to hang. , linux, syslogphpStudy…
During the 7u2 startup process, syslog-ng failed to start, causing the machine to hang. During the boot process of 7u2 ,syslog-ng failed to start,causing the machine to hang. The boot process is as follows [ 14.678188] systemd- fsck[1020]: /apsara: Inodes that were part of a corrupted orphan linked list found. [ 14.683348] systemd-fsck[1020]: /apsara: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. [ 14.693904] systemd-fsck[1020]: (i.e., without -a or -p options) [ OK ] Started File System Check on /dev/disk/by-label/\ x2fapsara. [ OK ] Stopped target Emergency Mode. [ OK ] Stopped Emergency Shell. Mounting /apsara… [ OK ] Stopped target Multi-User System. [ OK ] Stopped D-Bus System Message Bus. [ OK ] Stopped Machine Check Exception Logging Daemon. [ OK ] Stopped Network Time Service. [ OK ] Reached target Paths. [ OK ] Stopped SYSV: service_manager_super… A Supervisor For TianjiClient.. p> [ OK ] Stopped SYSV: ilogtail is log collect agent of Simple Log Service. [ OK ] Stopped Login Service. [ OK ] Stopped Resets System Activity Logs . [ OK ] Stopped OpenSSH server daemon. [ OK ] Stopped OpenSSH Server Key Generation. [ OK ] Stopped Serial Getty on ttyS1. [ OK ] Stopped OpenSSH Server Key…