Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: PHP Stock Quote

  1. #1
    Regular Coder
    Join Date
    Oct 2002
    Location
    USA
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts

    PHP Stock Quote

    I am using an external .js file to publish major stock indices, but this, of course, require manual update every day.

    How can I get these numbers (just index level and the change, like: Dow Jones: 10,321 Change: -320) via a php script and do not bother manually updating it every day?

    I am told that cURL and cron job could be a solution, but I'm not sure how are they are used or whether they would be the best solution to the problem.

    Thanks.

  • #2
    Senior Coder
    Join Date
    Feb 2004
    Posts
    1,206
    Thanks
    0
    Thanked 0 Times in 0 Posts
    How do you acquire these stock quotes manually right now?

    I did a search on Google, and came up with this:
    http://www.beginnersphp.co.uk/quotes.htm

    It uses some service from Yahoo. Play with it and hopefully it will point you in the right direction.

    Sadiq.

  • #3
    Regular Coder
    Join Date
    Oct 2002
    Location
    USA
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I acquire them just Manually.

    - which means I primitively enter them everyday as text in an external.js file.

    What I actually want to display is the latest stock market index level, not a stock quote ticker. but the script you refer to looks like something I can play with in order to modify it to make it become usable for me.

    I'll let you know what happens.

    thanks.

  • #4
    Regular Coder
    Join Date
    Oct 2002
    Location
    USA
    Posts
    255
    Thanks
    1
    Thanked 0 Times in 0 Posts
    worked great.

    such an easy to use php script to get quotes and more.

    highly recommended.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •