Hi frnds...


i have some problem regarding uploading a s/w when hosting a website...

here i am doing project like stock market news...in this i had a software for updating share prices per every seconds....

where and how can i install software on my hosting panel?

Dani AI

Generated

Useful context and actionable next steps for the two separate problems raised in this thread: (1) where to put and run a program on a host, and (2) alternatives to shipping a local updater for live stock prices. Good pointers from about checking your host and from and about using APIs — the notes below explain practical options, trade-offs, and concrete steps.

On hosting vs. running background work

  • Pick by capability: cheap shared plans usually allow only scheduled scripts (cron) and no persistent daemons; VPS/dedicated servers let you install services and run long‑running processes. Confirm allowed actions with the host as suggested.
  • Typical approach on limited hosting: create a PHP (or Python) script that fetches quotes and writes to the site database, then schedule it with cron. Example cron line (runs every minute):
          • /usr/bin/php /home/username/www/update_prices.php >> /home/username/logs/price_update.log 2>&1
            Small PHP fetch skeleton:

            <?php
            $ch = curl_init('');
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
            $json = curl_exec($ch);
            $data = json_decode($json, true);
            // update DB/cache
            ?>

When you need sub‑minute or true real‑time updates

  • Cron cannot run every second. For per‑second updates use: a streaming WebSocket feed from a market data provider, a persistent process on a VPS (Node/Python) that subscribes to the feed, or a paid real‑time API. Serverless functions tend to have 60s minimum intervals and cold‑start limits.
  • To reduce write load, keep the latest values in an in‑memory cache (Redis/Memcached) and only persist significant changes.

Practical cautions and troubleshooting

  • Check outbound access (firewall), PHP max_execution_time, CLI PHP vs web PHP differences, and provider rate limits. Log failures and monitor quotas.
  • Market data often has licensing/fee rules and “real‑time” vs “delayed” distinctions — choose a provider that matches your latency and legal needs.
  • If stuck on shared hosting, consider a small VPS or cloud function to run the updater and let your website read from that service or shared cache.

This guidance complements the API suggestion from and the hosting reminder from and by showing concrete deployment patterns, implementation hints, and the limitations to expect.

Recommended Answers

All 5 Replies

Hi frnds...


i have some problem regarding uploading a s/w when hosting a website...

here i am doing project like stock market news...in this i had a software for updating share prices per every seconds....

where and how can i install software on my hosting panel?

Ask to your vendor. Generally, public_html or www or something like this folders are used.

Ask to your vendor. Generally, public_html or www or something like this folders are used.

Thanks ..

here i have another doubt?

is there any API regarding stock news instead of software?
means any google path....and call that path to web page?

(or)


i am doing exactly like stock news...instead of s/w , is there any other way? plz give some suggestions...

thanks

you may use webservice.

Hello,

I think this might be helpful http://code.google.com/apis/finance/reference.html

There is a google api. why don't you google for stock exchange api or something like that. You'll find an API where you don't require any software for that.

And you can't install any software if your site is on shared hosting.

yes you can use google for stock exchange api

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.