Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4603708
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:11:27+00:00 2026-05-22T00:11:27+00:00

I am running the following command in cpanel /ramdisk/bin/php5 -q /home#/username/etc/php.ini /home#/username/public_html/sitename/subfolder/twitter.php It is

  • 0

I am running the following command in cpanel

/ramdisk/bin/php5 -q /home#/username/etc/php.ini /home#/username/public_html/sitename/subfolder/twitter.php

It is supposed to display search results for a certain keyword from twitter. The twitter.php file works just fine…however my impression was that setting the cron job to execute the php file every minute will reload the page with new content.

This isn’t happening as twitter.php just remains the same (when viewed in my browser).

Am i missing something? what could the problem be?

EDIT: (I thought the problem was more with the “cron part”) Here’s twitter.php:

<?
//searches for tweets mentioning "bieber", prints out....

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,'http://search.twitter.com/search.json?q=bieber&rpp=100' );

curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);

$var = curl_exec($ch);


curl_close($ch);

$obj = json_decode($var, true);

for($i = 0; $i<100; $i++){

echo $obj['results'][$i]['text']."<br/>";
}

echo "<br/>".sizeof($obj);



?>

when i manually refresh twitter.php in the browser i get new results…the goal is to set up an automation of this process so visitors of the site see new (processed) results every minute or so…

EDIT: I actually eventually want to process the search results every minute BEFORE displaying them every minute…how do i pass new values to the $var variable in twitter.php every minute

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T00:11:28+00:00Added an answer on May 22, 2026 at 12:11 am

    A cronjob does not affect the browser. In order to refresh the page you could refresh the page automatically with HTML

    <META HTTP-EQUIV="refresh" CONTENT="60">
    

    or use javascript

    function reloadPage(){
        window.location.reload();
    }
    
    setTimeout ( reloadPage, 60000);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having difficulty running the following command in PHP: $con = mysql_connect(host, username,
I am running git daemon with the following command. c:\cygwin\bin\git daemon --reuseaddr --base-path=/cygdrive/S --export-all
Hi I am running following command from my post build event: C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\mt.exe
How do you return 0 instead of null when running the following command: SELECT
I am running following PHP code to interact with a MS Access database. $odbc_con
I am running the following command to delete rows in batches out of a
I am running the following command through shell_exec but I'm getting the following Warning.
I am running the following command: ([xml](new-object net.webclient).DownloadString( http://blogs.msdn.com/powershell/rss.aspx )).rss.channel.item | format-table title,link The
I'm running the following command, with the intention of recreating the contents of (sync)
I am running the following command to list the packages installed on a server.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.