Hi!
Very new to unix stuff, and this is my first post to the forum. I'm pretty sure I know enough to know I know nothing, so please be patient with me and don't laugh too hard.
Ok, I've got an old computer and a laptop - the old computer was bought in the mid 90's it's still running windows... (1 Reply)
I have added a new experimental "Computer Science and Mathematics Trivia - True or False" section in the discussions, currently under the tags box.
In the future, I plan to
Expand this feature to add more trivia categories from math, science and technology.
Keep track of correct and... (20 Replies)
The UNIX and Linux Forums now has over 1000 TRUE / FALSE computer science and computer related trivia question in our database. These questions are of relatively high quality (compared to similar sites on the web) and are fun (according to feedback by users). In the first week during the... (1 Reply)
Thanks to Akshay, who helped me write the core MySQL queries, we now have two new draft leaderboards, by (1) member and by (2) country:
https://www.unix.com/trivia_stats.php
Currently milhan leads the members with a high score of 90%:
... (3 Replies)
Only a few days after I coded this new feature from scratch, we are seeing over 3000 entries in the database from members (mostly guests) playing CS trivia.
I have spend a lot of time coding this (from scratch) and testing the API. From the logs, it seems to have an API bug which appears... (31 Replies)
Discussion started by: Neo
31 Replies
LEARN ABOUT PHP
svn_ls
SVN_LS(3) 1 SVN_LS(3)svn_ls - Returns list of directory contents in repository URL, optionally at revision numberSYNOPSIS
array svn_ls (string $repos_url, [int $revision_no = SVN_REVISION_HEAD], [bool $recurse = false], [bool $peg = false])
DESCRIPTION
This function queries the repository URL and returns a list of files and directories, optionally from a specific revision. This is equiva-
lent to svn list $repos_url[@$revision_no]
Note
This function does not work with working copies. $repos_url must be a repository URL.
PARAMETERS
o $url
- URL of the repository, eg. http://www.example.com/svnroot. To access a local Subversion repository via filesystem, use the file
URI scheme, eg. file:///home/user/svn-repos
o $revision
- Integer revision number to retrieve listing of. When omitted, the HEAD revision is used.
o $recurse
- Enables recursion.
RETURN VALUES
On success, this function returns an array file listing in the format of:
[0] => Array
(
[created_rev] => integer revision number of last edit
[last_author] => string author name of last edit
[size] => integer byte file size of file
[time] => string date of last edit in form 'M d H:i'
or 'M d Y', depending on how old the file is
[time_t] => integer unix timestamp of last edit
[name] => name of file/directory
[type] => type, can be 'file' or 'dir'
)
[1] => ...
NOTES
Warning
This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in
a future release of PHP. This function should be used at your own risk.
EXAMPLES
Example #1
svn_ls(3) example
<?php
print_r( svn_ls('http://www.example.com/svnroot/') );
?>
The above example will output something similar to:
Array
(
[0] => Array
(
[created_rev] => 20
[last_author] => Joe
[size] => 0
[time] => Apr 02 09:28
[time_t] => 1175520529
[name] => tags
[type] => dir
)
[1] => Array
(
[created_rev] => 23
[last_author] => Bob
[size] => 0
[time] => Apr 02 15:15
[time_t] => 1175541322
[name] => trunk
[type] => dir
)
)
SEE ALSO
SVN documentation on svn list.
PHP Documentation Group SVN_LS(3)