Hi
Could be stupid, but I can figure out... I have a script that downloads a file from a http server ( virus definitions file ). The thing is that when I run it from the console (bash) works fine, but when I put it in the root's cron it doesn't, and it generates a core file.
example:
... (8 Replies)
My system bench mark results
INDEX VALUES
TEST BASELINE RESULT INDEX
Arithmetic Test (type = double) 2541.7 876123.7 344.7
Dhrystone 2 without register variables 22366.3 5411602.3 ... (1 Reply)
Hi,
I was trying to build Linux Benchmarks with latest Intel C++ Compiler.
When I used -ipo (inter-procedural optimization) option, arithmetic test (arith.c) failed on execution.
The problem is Intel compiler's advanced optimization option (-ipo) optimizes much more than expected and this... (50 Replies)
I'm using a PERL cgi script that uses rrdtool to make graphs. I can't get the syntax correct to use a degree sign (alt+0176 like this °) and also using a variable.
If I use single quotes, I can't call the variable. If I use double quotes, there is an extra symbol (Â) before the ° which goes... (2 Replies)
I seem to be somewhat baffled by the results of the -L option of the ls command on our new Linux system.
I have a symbolic link defined like the following:
ptmawpmfld.sqr as /u21/xxxx/m/moranp1/yyyy/fixpaths/tests20091218/awpmfld.sqr
When I issue the command ls -l ptmawpmfld.sqr, I see the... (2 Replies)
hello everyone,
i really need your help to write a script which would just print following kind of result into a text file (result.txt)
XYZ test Results
ID: <unique-id> Date: <date>
-------------------------------------------------
| Task | Result | Time |... (3 Replies)
Hello there,
first of all: I do not want to become a hacker. you cannot do that. you cannot learn that from a book.
Don't think I'm some kind of a script-kiddie.
now that's settled let's start.
I've been trying around with a lot of OS lately.
I have backtrack5 installed on my notebook,... (10 Replies)
I am trying to sort a file . The file looks like this:
DDFF 2 /ztpfrepos/pgr/load
DDFQ 2 /ztpfrepos/pgr/load
DDFX 2 /ztpfrepos/pgr/load
DDUA 2 /ztpfrepos/pgr/load
My command:
sort -k1 /home/c153507/Bin/OPL1.txt -o /home/c153507/Bin/OPL1.txt
The results are OK except for one line where... (4 Replies)
Hi,
I am new to linux...
How to Assign SQL Query Results to Variables in Linux,i want ti generate it in param files, Can anyone please explain me.
Ex: SQL> Select * from EMP;
O/P: Emp_No Emp_Name
1 AAA
2 BBB
3 CCC
and I want expected... (5 Replies)
Hello,
I'm trying to create a mechanism wherein a set of Production servers will email me the results of system checks like Uptime, NFS Mounts and a Process after every scheduled reboot.
For this, I figured I'd use the @reboot parameter that crond comes with.
I have added the below onliner... (3 Replies)
Discussion started by: pocodot
3 Replies
LEARN ABOUT PHP
yaf_config_ini
YAF_CONFIG_INI(3) 1 YAF_CONFIG_INI(3)The Yaf_Config_Ini classINTRODUCTION
Yaf_Config_Ini enables developers to store configuration data in a familiar INI format and read them in the application by using nested
object property syntax. The INI format is specialized to provide both the ability to have a hierarchy of configuration data keys and inher-
itance between configuration data sections. Configuration data hierarchies are supported by separating the keys with the dot or period
character ("."). A section may extend or inherit from another section by following the section name with a colon character (":") and the
name of the section from which data are to be inherited.
Note
Yaf_Config_Ini utilizes the >> parse_ini_file() PHP function. Please review this documentation to be aware of its specific behav-
iors, which propagate to Yaf_Config_Ini, such as how the special values of " TRUE", " FALSE", "yes", "no", and " NULL" are handled.
CLASS SYNOPSIS
Yaf_Config_Ini
Yaf_Config_Iniextends
Yaf_Config_AbstractIteratorArrayAccessCountable
Properties
Methods
o public Yaf_Config_Ini::__construct (string $config_file, [string $section])
o public void Yaf_Config_Ini::count (void )
o public void Yaf_Config_Ini::current (void )
o public void Yaf_Config_Ini::__get ([string $name])
o public void Yaf_Config_Ini::__isset (string $name)
o public void Yaf_Config_Ini::key (void )
o public void Yaf_Config_Ini::next (void )
o public void Yaf_Config_Ini::offsetExists (string $name)
o public void Yaf_Config_Ini::offsetGet (string $name)
o public void Yaf_Config_Ini::offsetSet (string $name, string $value)
o public void Yaf_Config_Ini::offsetUnset (string $name)
o public void Yaf_Config_Ini::readonly (void )
o public void Yaf_Config_Ini::rewind (void )
o public void Yaf_Config_Ini::__set (string $name, mixed $value)
o public array Yaf_Config_Ini::toArray (void )
o public void Yaf_Config_Ini::valid (void )
Inherited methods
o abstractpublic mixed Yaf_Config_Abstract::get (string $name, mixed $value)
o abstractpublic bool Yaf_Config_Abstract::readonly (void )
o abstractpublic Yaf_Config_Abstract Yaf_Config_Abstract::set (void )
o abstractpublic array Yaf_Config_Abstract::toArray (void )
PROPERTIES
o $_config
-
o $_readonly
-
EXAMPLES
Example #1
Yaf_Config_Ini(3)example
This example illustrates a basic use of Yaf_Config_Ini for loading configuration data from an INI file. In this example there are
configuration data for both a production system and for a staging system. Because the staging system configuration data are very
similar to those for production, the staging section inherits from the production section. In this case, the decision is arbitrary
and could have been written conversely, with the production section inheriting from the staging section, though this may not be the
case for more complex situations. Suppose, then, that the following configuration data are contained in /path/to/config.ini:
; Production site configuration data
[production]
webhost = www.example.com
database.adapter = pdo_mysql
database.params.host = db.example.com
database.params.username = dbuser
database.params.password = secret
database.params.dbname = dbname
; Staging site configuration data inherits from production and
; overrides values as necessary
[staging : production]
database.params.host = dev.example.com
database.params.username = devuser
database.params.password = devsecret
<?php
$config = new Yaf_Config_Ini('/path/to/config.ini', 'staging');
var_dump($config->database->params->host);
var_dump($config->database->params->dbname);
var_dump($config->get("database.params.username"));
?>
The above example will output something similar to:
string(15) "dev.example.com"
string(6) "dbname"
string(7) "devuser
PHP Documentation Group YAF_CONFIG_INI(3)