Jump to content

1zeus1

Members
  • Posts

    17
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

1zeus1's Achievements

Member

Member (2/5)

0

Reputation

  1. I need to download only pages that belong to the domain gorgeoussales.com I tried using: wget -k --max-redirect=3 --tries=3 --domains=gorgeoussales.com -O /var/www/b.html http://gorgeoussales.com/22530 But the problem is that it is also downloaded external sites watchshop.com/ Any hints? Regards
  2. I'm attempting to send post data through wget using the --post-data parameter, and I'm sure it's right, but it's simply not working. I'm using --post-data like this: wget --post-data 'first_name=test' http://www.testtest.com/test.php What am I doing wrong?
  3. Hello, I need you to this page kijiji.it, it does not download immediately, however will download immediately without a break: I do not understand, why not work: --wait=100 --random-wait wget --wait=100 --random-wait --user-agent="Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0" -b -k --html-extension --convert-links --max-redirect=10 --tries=0 -O /var/www//a.html www.kijiji.it
  4. I need to function for convert hex color, in HSL color with php example: hex: #ab9226 to hsl(48,64%,41%) regards
  5. I would make sure that this works, every 30 seconds: : seq 100 | parallel -N0 -j 2 php /usr/share/nginx/html/siti.php I tried it, so just do not work: seq 100 watch -n 30 | parallel -N0 -j 2 php /usr/share/nginx/html/siti.php Could anyone please help?
  6. I would like to run these: screen watch -n 0 php /usr/share/nginx/html/2siti.php & screen watch -n 0 php /usr/share/nginx/html/2siti.php & screen watch -n 0 php /usr/share/nginx/html/2siti.php & screen watch -n 0 php /usr/share/nginx/html/2siti.php & screen watch -n 0 php /usr/share/nginx/html/2siti.php & screen watch -n 0 php /usr/share/nginx/html/2siti.php in parallel using GNU parallel ? I have 2 cores Could anyone please help?
  7. I can not, to make this code Someone can help me Regards
  8. How can I delete duplicate in $data? $data = array(); foreach ($get->find('h3[class=r] a') as $e) { //---// $data[] = "$var1,$var2"; } $file = "/var/www/html/top; $Handle = fopen($file, 'a') or die("Unable to open file!"); fwrite($Handle, implode("\n", $data)); fclose($Handle); I tried this, but it does not work $data = array(); foreach ($get->find('h3[class=r] a') as $e) { //---// $data[] = array_unique($var1,$var2); } $file = "/var/www/html/top; $Handle = fopen($file, 'a') or die("Unable to open file!"); fwrite($Handle, implode("\n", $data)); fclose($Handle); Regards.
  9. Hello I want multiple inserts into a table Without an index, insert works If you created a unique index, the insert does not work $values = array(); foreach ($get->find('h3[class=r] a') as $e) { $sit = strtolower($e -> href); $values[] = "('$sit')"; } mysql_query('INSERT INTO xsit (var) VALUES '.implode(',', $values)); thanks for your help
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.