[PHP]get time common way in strtotime

In PHPWe have made the time there are many waysBut to get sometime timeWe need more special description Example http://www.w3school.com.cn/php/func_date_strtotime.asp <?php //Obtain UNIX time echo(strtotime("now")).'<br>';//Right now echo(strtotime("3 October 2005")).'<br>';//2005-10-......

detail

PHP get subdomain URL

Hello! Recently I encountered a problem Is the need to do some switching operation in accordance with the subdomain URL I have seen articles in This There So I put it sort out For your reference //Added a function to obtain a subdomain function extract_subdomains($domain) { $subdomains = $domain; /......

detail

[joomla3] JS loaded cancel some way

Hello everyone!In some casesWe must cancel some JSFor example: chosen.jquery.min.js This often affects some templates JSShow cause abnormal or incorrectSo today I am particularly modifying the way I used to share //The following code is usually written in the template index.php inside $document = J......

detail

[JOOMLA3] PHP 5.3.3 or earlier error

Hello everyoneWhen you use joomla3 believeEncounter PHP version is too old problemsBut most of our casesIs unable to upgrade their PHP version This time we should thank GitHub joomla version 3.2.7 can be found in the TAGThis version can be used more than PHP 5.3.1 https://github.com/joomla/joomla-c......

detail

[joomla3] 4 points to note! in Set up access.xml !

Hello everyoneSetting permissions for files access.xmlI found that there are some rules need to be able to comply with the normal useProvided here for your reference 1.The permissions set in config.xml component need to be properly For example, I called com_zoearth componentsSet in the component to......

detail

[PHP] easy to use picture watermark function of teaching

Hello everyone! I'm here to introduce simple PHP picture watermark application methodsNotes should make clearThanksgiving <?php $org_img_path = 'test007.jpg';//Originally Picture path $png_img_path = 'test007.png';// Watermark Picture path $org_img_size = getImageSize($org_img_path);//load Origi......

detail

[joomla] how to modify the website template offline

Hello everyoneRecently encountered a problemHow to modify the website offline template Find information from the Internet http://forum.joomla.org/viewtopic.php?t=193420 As long as the root directory of the original templateAdd template fileThe system will read this file to do offline templateHere a......

detail

[PHP] [teaching] how to get youtube video thumbnail

Hello everyone Recently encountered a need Enter the URL then output thumbnail youtube Internet looking for a bit And tidy Obtained in the following manner http://img.youtube.com/vi/NtWnaD6pnpU/0.jpg // 480 * 360 films to enlarge http://img.youtube.com/vi/{youtubeID}/1.jpg // 120 * 90 movie starts......

detail

[PHP] [coding] [conversion]PHP iconv transcoding

iconv only after PHP 4 Usage is very simple UTF-8 encoded input BIG5 is encoded output $ content is the content So if my string is UTF8 Then I want him in the above presentation BIG5 page You can use the following manner echo iconv('UTF-8', 'BIG5', $content); But seriously This encoding problem Are......

detail

Message Board

Feel free to leave suggestions and share! Thanksgiving!

comments powered by Disqus