root

PHP is_file and server root relative paths

Hello! How can I use is_file with a path like: /folder/file.jpg please? Thank you! ...

ANTLR AST building: root node as string instead of character

I might be asking a stupid/basic question but i had been confused about ANTLR AST building. What i want to made is a kind of Boolean expression parser such that on parent nodes i have operator and its operands as children. for instance, a sentence ( ( A B C & D ) | ( E & ( F | G ) ) ) should ideally be representing |...

How to use NSTask as root?

In an application I'm making I need to run the following command as root (user will be prompted trice if they really want to, and they will be asked to unmount their drives) using NSTask: /bin/rm -rf / #Yes, really The problem is that simply using Substitute User Do (sudo) doesn't work as the user needs to enter the password to the no...