01-04-2011
Hello.
Per our
forum rules, all posts must be in English.
We do provide translation services for posts from English to a number of languages as a benefit to users. However, posts must be in English.
Please repost in English.
Thank you for your cooperation.
The UNIX and Linux Forums.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello Everyone,
I'm trying to use wget recursively to download a file.
Only html files are being downloaded, instead of the target file.
I'm trying this for the first time, here's what I've tried:
wget -r -O jdk.bin... (4 Replies)
Discussion started by: thoughts
4 Replies
2. Shell Programming and Scripting
Hi All
I want to download srs8.3.0.1.standard.linux24_EM64T.tar.gz file from the following website :
http://downloads.biowisdomsrs.com/srs83_dist/
But this website contains lots of zipped files
I want to download the above file only discarding other zipped files.
When I am trying the... (1 Reply)
Discussion started by: alphasahoo
1 Replies
3. UNIX and Linux Applications
I need to download the following srs8.3.0.1.standard.linux26_32.tar.gz file from the following website:
http://downloads.biowisdomsrs.com/srs83_dist
There are many gzip files along with the above one in the above site but I want to download the srs8.3.0.1.standard.linux26_32.tar.gz only from... (1 Reply)
Discussion started by: alphasahoo
1 Replies
4. Shell Programming and Scripting
Dear Experts,
I m using the Solaris operating system and WebSphere as application server. I want to download xml file using following url
http://XXX.XXX.XXX.XXX:9080/wasPerfTool/servlet/perfservlet?server=XYZ
And the download file should saved into file.
Can anyone... (3 Replies)
Discussion started by: naree
3 Replies
5. Ubuntu
debian_base_system.tar.bz2 is what I am looking for.
Hello All;
I am trying to learn Linux and have done some work, now I am installing Xen virtual machine But I need a .tar.bz2 file which is the base Operating System (for Ubuntu or Debian)* but I do not know where to download it from, the... (2 Replies)
Discussion started by: Matey
2 Replies
6. Shell Programming and Scripting
Hi!!
I have to download one file from FTP on a daily basis but the file name not constant.
Filename “BRAA.DAILY1.20120326.3456”
BRAA.DAILY1. - constant
20120326 - system date
3456 - random number which will get change every day.
Few sample file names -
... (7 Replies)
Discussion started by: rahul198228
7 Replies
7. Shell Programming and Scripting
Hi,
I have few files at FTP location and have written a script to download the same from ftp based on the sysdate - 1, however with the below code I am unable to download the files from FTP.
x=`TZ=CST+24 date +%Y%m%d`
mget Daily_BIH_$x_NEW.tar.gz
can anyone please help me in... (10 Replies)
Discussion started by: rramkrishnas
10 Replies
8. Shell Programming and Scripting
This question could be specific to the site subdivx.com In the past, I've been able to download a file following location using cURL but there is something about subdivx.com that's different and can't figure out how to get it to work.
I tried the following directly in the terminal with no... (5 Replies)
Discussion started by: MoonD
5 Replies
LEARN ABOUT PHP
pharfileinfo.setmetadata
PHARFILEINFO.SETMETADATA(3) 1 PHARFILEINFO.SETMETADATA(3)
PharFileInfo::setMetadata - Sets file-specific meta-data saved with a file
SYNOPSIS
public void PharFileInfo::setMetadata (mixed $metadata)
DESCRIPTION
PharFileInfo.setMetadata(3) should only be used to store customized data in a file that cannot be represented with existing information
stored with a file. Meta-data can significantly slow down the performance of loading a phar archive if the data is large, or if there are
many files containing meta-data. It is important to note that file permissions are natively supported inside a phar; it is possible to set
them with the PharFileInfo.chmod(3) method. As with all functionality that modifies the contents of a phar, the phar.readonly INI variable
must be off in order to succeed if the file is within a Phar archive. Files within PharData archives do not have this restriction.
Some possible uses for meta-data include passing a user/group that should be set when a file is extracted from the phar to disk. Other
uses could include explicitly specifying a MIME type to return. However, any useful data that describes a file, but should not be contained
inside of it may be stored.
PARAMETERS
o $metadata
- Any PHP variable containing information to store alongside a file
RETURN VALUES
No value is returned.
EXAMPLES
Example #1
A PharFileInfo.setMetadata(3) example
<?php
// make sure it doesn't exist
@unlink('brandnewphar.phar');
try {
$p = new Phar(dirname(__FILE__) . '/brandnewphar.phar', 0, 'brandnewphar.phar');
$p['file.txt'] = 'hello';
$p['file.txt']->setMetadata(array('user' => 'bill', 'mime-type' => 'text/plain'));
var_dump($p['file.txt']->getMetaData());
} catch (Exception $e) {
echo 'Could not create/modify phar: ', $e;
}
?>
The above example will output:
array(2) {
["user"]=>
string(4) "bill"
["mime-type"]=>
string(10) "text/plain"
}
SEE ALSO
PharFileInfo.hasMetadata(3), PharFileInfo.getMetadata(3), PharFileInfo.delMetadata(3), Phar.setMetadata(3), Phar.hasMetadata(3), Phar.get-
Metadata(3).
PHP Documentation Group PHARFILEINFO.SETMETADATA(3)