Document Root PHP

<a href=”<?php echo $_SERVER[‘DOCUMENT_ROOT’].’/hello.html’; ?>”>go with php</a> <br /> <a href=”/hello.html”>go to with html</a> Try this yourself and find that they are not exactly the same. $_SERVER[‘DOCUMENT_ROOT’] renders an actual file path (on my computer running as it’s own server, C:/wamp/www/ HTML’s / renders the root of the server url, in my case, localhost/ But … Read more

“Warning: unable to build chain to self-signed root for signer” warning in Xcode 9.2

If none of the other solutions work, try adding the intermediate signing certificates to your system keychain. I found this while trying to manually create provisioning profile/certificates as nothing else was working – from the Create a New Certificate step of the New Provisioning Profile process on Apple Developer platform: To use your certificates, you … Read more

adb shell su works but adb root does not

By design adb root command works in development builds only (i.e. eng and userdebug which have ro.debuggable=1 by default). So to enable the adb root command on your otherwise rooted device just add the ro.debuggable=1 line to one of the following files: /system/build.prop /system/default.prop /data/local.prop If you want adb shell to start as root by … Read more

Create System Application

Ok, I think that I find sollution from great xda developers: http://forum.xda-developers.com/showthread.php?t=1776095 here is full description how to obtain access to apps signed by platform keys. Do you apply with this approach? PS it is interesting that users from stack instead of investigating hard problem immediately say that you can not solve it, then reduce … Read more

How to check if running as root in a bash script

The $EUID environment variable holds the current user’s UID. Root’s UID is 0. Use something like this in your script: if [ “$EUID” -ne 0 ] then echo “Please run as root” exit fi Note: If you get 2: [: Illegal number: check if you have #!/bin/sh at the top and change it to #!/bin/bash.

Once jailbroken, will iOS apps run with root privilege?

Not disagreeing with anything H2CO3 said, but to add some further clarification … Apps installed in /private/var/mobile/Applications/(†) with Xcode will run with user mobile privileges, even on jailbroken phones. Even on a jailbroken phone, apps installed to /private/var/mobile/Applications/(†) will be sandboxed almost (&ddagger;) like apps on a jailed phone. So, no reading other (normal) apps’ … Read more

How to reset the root password in MySQL 8.0.11?

as here says: This function was removed in MySQL 8.0.11 1.if you in skip-grant-tables mode in mysqld_safe: UPDATE mysql.user SET authentication_string=null WHERE User=”root”; FLUSH PRIVILEGES; exit; and then, in terminal: mysql -u root in mysql: ALTER USER ‘root’@’localhost’ IDENTIFIED WITH caching_sha2_password BY ‘yourpasswd’; 2.not in skip-grant-tables mode just in mysql: ALTER USER ‘root’@’localhost’ IDENTIFIED WITH … Read more