I am using Ubuntu Server 14.04 on my server. I have a PHP file that contains some script/code that I want to run when I turn my serveron.
I want to run this XXXXXX.php
file on my server startup before login not after login.
I didnt have any desktop so tell me the process through terminal. My desired PHP file that I want to run is in /var/www/XXXXXX.php
folder.
Now can I do it?
Edit: My XXXXXX.php
contain the following codes...
<?php
$externalIp = file_get_contents('http://phihag.de/ip/');
?>
<form action="Iframe.php" method="post" enctype="plain" id="theForm">
<input type="text" name="My_IP" value="<?php echo $externalIp;?>" />
<input type="submit" value="Send" />
</form>
<script type="text/javascript">
window.onload = function() {
var form = document.getElementById("theForm");
form.submit();
}
</script>