read from .info files
Posted: Fri Nov 19, 2010 6:46 am
Hi,
First of junior php developer i need some guiding or code examples for:
I have created a file sample.info and I need to extract string/information from it.
my info file is looks like drupal or wordpress cms:
name = test
description = this is a test file
author = shv
version = 1.0
core = 6.x
engine = phptemplate
screenshot = native.png
stylesheets[all][] = css/style.css
stylesheets[if IE 7][] = css/style-IE7.css
stylesheets[if IE 8][] = css/style-IE8.css
scripts[] = js/example.js
I want to create a function to print out all CSS files path for example.
please give me some guidings.
regards
First of junior php developer i need some guiding or code examples for:
I have created a file sample.info and I need to extract string/information from it.
my info file is looks like drupal or wordpress cms:
name = test
description = this is a test file
author = shv
version = 1.0
core = 6.x
engine = phptemplate
screenshot = native.png
stylesheets[all][] = css/style.css
stylesheets[if IE 7][] = css/style-IE7.css
stylesheets[if IE 8][] = css/style-IE8.css
scripts[] = js/example.js
I want to create a function to print out all CSS files path for example.
please give me some guidings.
regards