Common Joomla file operations and joomla operations

Source: Internet
Author: User

Common Joomla file operations and joomla operations

Today, we will introduce common methods for file operations in joomla. These methods are useful in file read/write, Image File Upload, and so on.

Jimport ('joomla. filesystem. file ');

$ J = new JFile ();

GetExt ($ file) // obtain the extension.

GetName ($ file) // get the file name

Exists ($ file) // whether the file exists

Delete ($ file) // delete an object

Copy ($ old, $ new) // copy

Upload ($ src) // upload

Write ($ file) // write a file

Read ($ file) // read an object

Move ($ old, $ new) // move a file

Transfer: http://www.111cn.net/jsp/Java/66728.htm


How does joomla call the generated cache file?

This is really a very in-depth question. I like it very much. I'm glad you can ask this question. I hope you can ask more in-depth questions about joomla. If possible, I would like to add your contact information, such as the QQ number, such as the Baidu hi bar ID number. Let's have an in-depth discussion. Although I cannot answer your questions in this depth for the moment, I also like joomla very much. I will pay attention to this question. Know the answer. Help everyone and share the internet.

In the joomla template, how does one Insert the webmaster statistics code into the homepage? How can I not see the home page files from the joomla directory?

The homepage file is in \ templates \ your Template Name \ index. php

Add the statistical code to the footer </body>.

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.