24
Sep/090
Sep/090
The strange behaviour of php function basename()
On my local Windows machine with PHP5 the value of basename(’названиe.php’) is “названиe”, where “названиe” is any cyrillic string.
However, on my remote Unix server the same function with the same argument returns null.
Not only could I find no explanation – there isn’t even any mention of it anywhere on the Internet.
24
Sep/090
Sep/090
XML selectNodes() ordered
Here is a helper function to select nodes from an XML document order by certain child node value of these nodes.
If selectNodes() is a pendant of MySQL SELECT command, this helper function would be a pendant of SELECT… ORDER BY…
As far I know there is no standart XML or XPath function to perform it.
Written in [...]
