Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP call link & open new tab & continue running program?
    primarykey
    data
    text
    <p>I'm trying to write a php program that does sql backups and I have so many databases I want to split the processes into 3 separate ones.</p> <p>My backup.php file takes in a string argument and also outputs text data for the progress of the backup.</p> <p>So here is the logic I am trying to implement.</p> <pre><code>while(there is still items in the list){ open backup.php?s=listx x++ } //continue with loop and open more processes </code></pre> <p>is there a way open these pages in new tabs? I tried using curl but that doesn't seem to work and I think I've read somewhere that html tags or javascript code does not run within php code?</p> <p>thanks for the help and sorry if my description is vague, just let me know and ill try to expand it. Here is my code for the mainbackup.php</p> <pre><code>&lt;?php // Doesnt open a new page for me.. function callpage($url) { $ch = curl_init(); $timeout = 1; curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout); curl_close($ch); } $link = mysql_connect('host', 'user', 'password'); //set each process to handle 60 databases $limit=60; $count=0; $s=""; while ($row = mysql_fetch_assoc($link)) { //echo $row['Database'] . "\n"; if($count &lt;$limit) { $count++; $s.= $row['dbs']. ","; } else { //exec('php backup.php s='$s); $l='localhost/backup/backup.php?s='; $l.=$s; //window.open($l); callpage($l); //substr_replace($s ,"",-1); //echo "\n\n\n\n\n\n\n\n\n"; $count=0; $s=""; } } ?&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload