Basic PHP Programming

Your guide to basic PHP Programming

Archive for the ‘file system’ Category

PHP and your files

without comments

php4.jpg
PHP is like a secretary.

I’m really liking these analogies I’m using (yeah, I’m weird that way). Anyway, as I was saying… PHP has the ability to interact with your file system. It means that PHP can write and reads into any file in your directories and files that are on your local hard disk (or other computers if they’re in a network). Aside from that, if a file doesn’t exist, PHP can create that file, directories, and copy files. It can also rename and/or delete files and change their attributes. If you want to create a back-up then PHP can do it for you.

Written by Bart

December 10th, 2011 at 10:33 am

Posted in file system

Tagged with ,

Where CMS information is stored

without comments

circuit board
CMS stores the data for building the pages in an Open Source in the MySQL database system provided by PHP. The backend database is where all systems related to page building are stored: various graphics linked to pages, text, maintaining statistics and managing user login and logout.

Usually, the content in a site is arranged while the text in each article is merely piled up, hence, if the site administrator decides to alter the look of the site, he can only update the template. The information stored on the other hand, remains as is, but the manner it is presented becomes different.

Written by editor

July 7th, 2008 at 9:07 am

Posted in file system

A New Tool Offers a Little Help with Regular Expressions

without comments

Regular expressions are a powerful programming tool, and the best way to solve many problems, but few people would call them a delight to use. Trying to tune a regex to match exactly the string you want can be a lengthy undertaking.

A new web-based tool aims to help with the process. Enter a text string into txt2re and its backend code (which seems to be antiquated PHP 3, judging by the file extension?) parses the string and proposes an array of regular expressions that match it and its various sub-elements. It recognizes certain string patterns, like state abbreviations and domain names.

Written by Bart

March 5th, 2008 at 12:31 pm