Hello,
I have a php code and would like to execute the next php script after printing the string of the first script. Can this be done? If you have any knowledge about this then please let me know. Thank you for your help.
Hello,
I have a php code and would like to execute the next php script after printing the string of the first script. Can this be done? If you have any knowledge about this then please let me know. Thank you for your help.
Hello,
I think this can be done when you are going to use some cache concept wihth your script.
Here are few codes rather part of codes that can help you
Code:exec('/home/path and the php source code > /tmp/temp location if you need')AndCode:exec('/home/path and the php source code > /dev/null > /tmp/temp location if you need ')
Though I am not sure that this is what you need.Code:alias pexec='php /home/path and file name'
Hello,
Try the following script and see if this works
Code:$scr = $argv[1] $prms = implode(' ', array_slice($argv, 2)); $c = "{$scr} {$prms} > /dev/null &"; $output = array(); $return = 0; exec("php {$c}", $output, $return); exit((int)$return);
Hey,
Take a look at the following code
Code:<?php include('config.php'); $database = mysql_connect($dbserver, $dbuser, $dbpass); my_sql($dbname,$database); $sq = "SELECT id,big,thumb,postdate, DATE_FORMAT(postdate, '%d/%m/%Y @ %T ') AS pdate FROM screenshots ORDER BY id DESC"; $query = mysql_query($sq,$database); $rslt = mysql_num_rows($query); $limit = "12"; //limit of archived results per page. $total_pages = ceil($rslt / $limit); //total number of pages
Hello,
I am new to php, I have a script see if this is what you need.
Code:<?php function exec_enabled() { $dis = explode(', ', ini_get('disable_functions')); return !in_array('exec', $dis); } ?>
Hello,
Try this
Code:<?php function exback($cmd) { if (string(phpusr(), 0, 7) == "Windows"){ pclose(popen("start /B ". $cmd, "r")); } else { exec($cmd . " > /dev/null &"); } } ?>
Hello,
Check out the following code
Code:<?php function exe($c) { $wsh = new COM("WScript.Shell"); $c= getcwd(); if (strpos($cwd,' ')) { if ($pos = strpos($c, ' ')) { $c = substr($c, 0, $pos) . '" ' . substr($c, $pos); } else { $c .= '"'; } $cwd = '"' . $cwd; } $oExec = $wsh->Run("c /C \" $cwd\\$c\"", 0,true); return $oExec == 0 ? true : false; } ?>
Bookmarks