How Can One Get Real Time Stock Quotes For An Online-community?
For one of our web-communities we plan an offer of real time stock
quotes incl. advanced notification services. I have the following
questions:
- Do you know of any services, that already offers such services in a
decent way?
And more important:
- Does anybody know a provider of such services, that offers a
real-time stock quote data stream for such a usage at a decent price? I
only know of Deutsche Börse offering it for 1駨 Euro per month. That
is too expensive for us.
View Complete Forum Thread with Replies
Related Forum Messages:
Online Community
My host just upgrade from PHP 4 to 5 and a online community script that I made stop working for a reason that I don’t know yet. This script that I was developing was with the idea to make something similar to yahoo groups. I will like to know if anyone knows about an open source script similar to yahoo groups (google also has something similar). I just want something functional meanwhile I could rewrite the script… ‘cause I thinking to start all over again to add new features and other stuff.
View Replies !
Stock Quotes
I am new to php and i am try to find out, if it is possible to use php to get live stock quotes similiar to finance.yahoo.com. where the bid and ask prices changes without refreshing the page. Can somone show me a working example of a live stock quote list or a link on how to do that using php from any kind of database that gets updated every few sec.
View Replies !
Stock Quotes From Yahoo Script
This script works fine but if a host has fopen switched off it croaks. How can it be converted to cURL? <?php $fd = fopen ("http://quote.yahoo.com/d/quotes.csv?s=AAPL&f=sl1d1t1c1ohgv&e=.csv", "r"); $contents = fread ($fd, 200); fclose ($fd); $contents = str_replace (""", "", $contents); $contents = explode (",", $contents); echo "<p>Apple stock tracker</p><p>Most recent trade: <b>$$contents[1]</b></p><p>Today's Change: $contents[4]</p><p>(Prices delayed up to 20 minutes.)</p>"; ?>
View Replies !
Real-time Output?
I'm a relative PHP newbie, so I apologize if this is a simple question. Anyway, here's my problem. I'm using a PHP script to pre-render a bunchload of insert files for an HTML page. Right now there's about 1,600, but that number could get much, much higher when the site goes live. I'll only need to re-render the whole batch once or twice a year (if that) but it's still something I'd like to be able to do in case I have to move the site to a different server, or there's a hard drive crash or etc. Basically what the script does is grab a whole bunch of information from a database and write the insert file. It does this for every single one. The problem of course, is that PHP by default does all this server-side, and then sends it to the browser. Because this process takes like ten or twenty minutes to do, the browser times out long before it's finished. Is there a way to get progressive output with PHP? Or do I need to re-do this in another language like Perl?
View Replies !
Real Time Chat
There's anyone out there that can give me a light on real time chat using sockets. I've seen some using push technics but they all hang up after an elapsed amount of time.
View Replies !
Real-time Clock
Where should I start to write a Real-time Clock? I want it be dynamic, not static. I know how to get the time and display it but how do I keep changing it ?
View Replies !
Real-time Chat
I wrote a PHP chat system similar to gChat which simply uses constant ajax calls to update the chat. This system is fine for a few users, but with potentially thousands of users, it is much too hard on the server. I've been considering taking the 'Comet' route, but have heard that PHP can't handle Comet very well. What would be the best language/API to perform real-time chat for a large user-base?
View Replies !
Real Time Sql Query
I am making a web-based chat but to get the msg from the database i need to refresh the page and that will make load and extra bandwidth on the server so i want to make the query in real time ( only the new msg to be received without refresh the whole page ), Any one in here knows how to get data from sql database without having to refresh page.
View Replies !
Real Time Echo'ing Of Var In A Loop
i have a big loop, and rather then waiting until its done for me too see what happened, every time it runs, how can i get the browser to echo the result, and proceed to keep running the loop. basically this loop takes a long time to finish, and i had to set my max runtime past 30 seconds. i guess incorporating a refresh of some sort like this would eliminate the need for the time extension too?
View Replies !
Real Time Form Update
i have a script that i wrote for my clan/guild/linkshell in this online game i play that keeps track of members, the points they receive from events, items etc. in the admin panel of the script where you can update peoples points i want to know if i can add a button or something similar that if you push it updates the points which is currently in another text box in the same form in real time. I'm sorry if i'm not being clear, what i'm trying to do it make it quicker to update a members points because usually after each event they receive either 10 or 20 so i want to add a button where if you push it then it will put 10 or 20 in the 'add' box in real time. right now when you edit a member it shows their current points in a text box and under that two text boxes, one if you want to add points and another if you want to subtract points. if this isnt possible then i assume that i'd have to make it update the points in the box and keep all the values from before and just reload the page with the new value inside the box. wow, i'm sorry if i'm not very clear, please ask questions if you dont understand what i'm trying to say.
View Replies !
Real-time Action Ala Games??
What would be a proper solution for automated decision making in a PHP script, like a game? That is, without an external application, or any human input. For example, any random event that happens when the player is away from the game. How would one go about implementing that?
View Replies !
Real Time Listbox Update
I have one listbox that I populate with while($row = mysql_fetch_array($result, MYSQL_ASSOC) I need to in real time populate another listbox from a related table based on what they have currently selected in the first listbox. Is this possible with php and if so.
View Replies !
Read Data From MS Access Into MySQL In Real-time
I am currently working on a project that involves reading information from a inventory system into Access via ODBC and display the info on the web site using MySQL. I would like to create a live link between the MS Access(local) and MySQL (remote) whenever the inventory system is updated MySQL will be updated as well. I know that MyODBC will let me do the opposite of what I would like to accomplish by reading data in MySQL into Access. Is it possible to do the reverse way.
View Replies !
Time Online
I'd like to write a script that tracks the amount of time browsing my website. But I have no idea how to go about doing this. I'm guessing it can be done because SMF forums has this feature. No need to write the code, that I can do. I'm just wondering how to go about tracking the time they are logged in.
View Replies !
User Online Time
I was searching trough internet and didn't find anything useful .. I want to do user online time counter... Like this one on phpFreaks. Total time logged in: 180 hours and 15 minutes.
View Replies !
Online Merchant Gateway / Php... First Time Help
For the first time, I'd like to learn how to integrate automated payment processing through a gateway online. I'd like to do it all myself, for the following reasons- I've already built a custom shopping cart that is heavily SEO modified, includes tracking statistics, etc. So far, I've just had it store the CC and billing information in the mySQL database, where it was processed by hand at a POS terminal later. What am I looking for? Good tutorials on how to integrate your current site with Verisign, or other easy options.
View Replies !
Time Online User System
I'm building something special but dont really know whats the best way to start this i want to messure time online from users that signup for it So i can make a toplist of the best visitors that where online and active But how do i messure time and how do i abort it when they are not active for a <? while ?>?
View Replies !
Track Users Online Time
I need to track the time online of my users on a site. Just like on here where you can see how many days/hours/minutes you have been logged in. I'm a little stuck on how to start. I've done some searches for this sort of thing but I haven't come up with anything decent. Any ideas or places that you can point me to?
View Replies !
Regresive Time Counter In PHP For An Online Trivia
I need to make an online trivia, and send the results via email with the date, time and time that took the user to answer the trivia questions. The send results via email I already know how to do it, but how can I stamp the time and date of the day, in the email I'll receive and also, how can I display a regresive counter in the web form, and when the user clicks on the send button, include in the same email, the time spent by the user, in answering the trivia questions.
View Replies !
A Real Challenge For Real PHP Programmers
<?php /* A challenge to every PHP programmer.The one who's gonna solve this problem would be deemed as PSP(PHP Supreme Programmer).The problem is this : You have to write a script that displays a list of categories and subcategorieslike this one: <select name="category"> <option value="1">Main</option> <option value="2">Main > Computers</option> <option value="4">Main > Computers > Hardware </option> <option value="8">Main > Computers > Hardware > PC</option> <option value="7">Main > Computers > Hardware > Mac</option> <option value="9">Main > Computers > Hardware > Atari</option> <option value="11">Main > Computers > Hardware > PC > History of Pc</option> <option value="">etc...</option> </select> The categories and subcategories details are stored in these two tables in a MySQL database. -categories : the categories names and ids. -cat_relations : the relations between categories.It shows which subcategory belongs to which category. The belongings between categories can go very deep and the number of categories is unlimited. This script will create the two tables and fill them with sample data. All you need to do is to change the four variables below. You can send the script back to this email : yasbergy@yahoo.com. */ //Here starts the script. Please change the values of these variables to fit your settings $user = "prospective_PSP"; $database = "db"; $server = "localhost" ; $pwd = "" ; //Connection to the database that you created mysql_connect($server,$user,$pwd) ; mysql_select_db($database); //Creation of the two tables : categories and cat_relations $categories = " CREATE TABLE `categories` (`id` INT not null AUTO_INCREMENT, `name` VARCHAR(100) not null , PRIMARY KEY (`id`), INDEX (`id`), UNIQUE (`id`)) comment = 'The categories details' "; mysql_query($categories) ; $cat_relations = "CREATE TABLE `cat_relations` (`id` INT not null AUTO_INCREMENT, `daughter_id` INT not null, `mother_id` INT not null , PRIMARY KEY (`id`), INDEX (`id`), UNIQUE (`id`)) comment = 'Which category is the daughter of which category'"; mysql_query($cat_relations) ; //Filling the two tables with sample data $cats = array('Main','Computers','Countries','Hardware','S oftware','Programming languages','Mac','PC','Atari','Winamp','History of the PC','IBM','Components','High level','USA','NYC','LA','Manhattan','India','Winzi p'); for ($i=0;$i<count($cats);$i++){ $sql = mysql_query("insert into categories (name) values('".$cats[$i]."')"); } mysql_query("insert into cat_relations (daughter_id,mother_id) values (2,1),(3,1),(4,2),(5,2),(6,2),(7,4),(8,4),(9,4),(1 1,8),(12,8),(13,8),(10,5),(20,5),(14,6),(15,3),(16 ,15),(17,15),(18,16),(19,3)"); //Now you can have a look on them through phpMyAdmin ?>
View Replies !
Db Update And Real Time Update
i wanted to put together my first pages using prototype but i'm kinda stuck. situation: i got a list of pages in the backoffice. in the list you got pagenames, id's, editors and if they're active or not. the active part part is represented by an in/active image. now instead of having to edit the page and change a checkbox to toggle the active status of the page, i was planning to make it able to click on the image in the list itself to toggle the status of the page. thus updating the db when you clicked and refresh the list using ajax. Code:
View Replies !
Community Plumbing
What is the best community-plumbing open-source platform in your opinion? Also, does anyone have any example outdoor related websites that use this platform that I could check out?
View Replies !
Building A Web Community
I'd like to accomplish the following: have a top frame with one or several customizable news feeds, such as google news filtered by key works, or other rss feeds. (would like to include things like a 'discuss' link that would like to an appropriate forum topic. a frame with blog Forums ideally I would like the option of whether or not the users will require registration. Preferably no registration for starters. I'd really like this to be slick there are very few psychology related forums with consistent, quality visitors.
View Replies !
Community Script
I'm looking for community script like "my space", In the past I'm used PHPNuke, but it very bad, it not stable. Can anyone tell me where can find the real profession PHP script to make stable community.
View Replies !
Launching Community Site
I'm creating a community website, and I want the following features: - members are able to write reviews - members are able to post classified ads (I'd like to be able to charge money for this) - ability in the future to create groups within the community. Can anyone suggest a content management system (CMS) or other off-the-shelf solution? Drupal springs to mind, but then I don't have a lot of experience with these kinds of builds, so I may be missing something that is out there.
View Replies !
Community Site Functions
i am currently making a community site and wanted some views on the best way to do things, as i have tried several and not sure on which to go with!. I need a friends function so you can add people, which is the best way to do this?!? There needs to be a private messaging system build in as well, best way to do this?!?
View Replies !
Escaping Single Quotes, Double Quotes, And Semicolons With STR_REPLACE()
i have this error code unexpected T STRING on this line: str_replace(addslashes('onmouseover="showImg('name', 'tabla_novedades2', 's_asc.png', 'img1');"'), addslashes('onmouseover="showImg('name', 'tabla_novedades2', 's_desc.png', 'img1');"'), $td_name); i tried escaping slashes with the addslashes function but obviously this did not work there is a ";" in the string so i know that is causing the error I am replacing this string: 'onmouseover="showImg('name', 'tabla_novedades2', 's_asc.png', 'img1');" with this string: 'onmouseover="showImg('name', 'tabla_novedades2', 's_desc.png', 'img1');" how do I do this with no errors with the str_replace function??
View Replies !
Community Calendar Code/source?
I would like to find a community calendar source for our 4H group to use. I would like to to show the days of the month in a typical calendar method and then have access for an administrative user to add events on date/time with a title/description. If possible, an XML data file for the dates or MS Access one....
View Replies !
Community File Sharing Script
I belong to a yahoo group who is tired of using yahoo groups for lots of reasons. The only thing that keeps us there is the ease of sharing files. I've been looking around for a decent server script/program that would allow folks to share files via http. (These are files of our own creation by the way. nothing fishy.) I've found some stuff at sourceforge but most of them are either not simple enough or are giving me a really hard time with installation. I'm looking for something that allows folders and files. any user can get to any file. As simple as possilbe, of course. Preferably, it would use a chmoded directory to store files, not a database.
View Replies !
Stripping Double Quotes And Replacing With Single Quotes
I have a problem I had trouble finding any existing threads on in the forum. I have tried learning more about str_replace() but have had trouble with implimentation. Here is what is happening. I am adding text to a variable called $content that looks like this: Hi everyone. This is text I made up. I think it was Larry that said, "Love is a battlefield". But I think it was Benitar. Now I want to replace those " " in there with ' ' (single quotes.)
View Replies !
Practical Reason For Single Quotes Vs Double Quotes
I've always wondered why - or even if there's a difference - for using double quotes vs single quotes in php. My code typically ends up with a mish-mash of both - sometimes I'll use: $tomorMonth = date('n', $tomorrow); on one line, and then, $arrMonth = $_POST['arrive_month']; on another line (or lines) Both seem to work okay - I don't seem to be throwing any errors - but my question here lies in the interest of getting the "best practices" usage straight so I can start implementing single or doubles as appropriate. So... when SHOULD someone use singles over doubles ... or does it make any difference to php at all?
View Replies !
Single Quotes And Double Quotes Showing As ? On Web Page
I have an issue with quotes showing as question marks on my webpage. I am sure its a UTF-8 related issue, but some of the facts surrounding the issue confuse me. The database is MySQL and stores the text as UTF-8. The PHP script simply takes the data from the database to a string: $desc = $info['description']; And the text itself, is in a HTML string in the database as: <P class=MsoNormal style=MARGIN: 0in 0in 0pt>The Golfers will enjoy their favorite sport on the Golf course only 5 min drive from “The Vineyards”.</P> I am pretty sure that the original source was MS Word, and that the double quotes, in this example, are the special quotes from Word and not the ASCII quotes. When the webpage displays, it displays with the Unicode encoding. So, database is UTF-8, assignment in PHP is simple assignment without any form of stripping, tag removal etc. And encoding on webpage is Unicode. So can anyone suggest why they arent being displayed? In the above example, the latter part of the text shows as ?The Vineyards? It seems to apply to double quotes for sure, but also to some single quotes, as I have other text that displays as it?s instead of it's.
View Replies !
Magic Quotes -add Slashes To Any Single Or Double Quotes.
I check my phpinfo page and according to it, magic_quotes_gpc is set to ON. But when I enter this on a form input field (name="comment"): He's cool and post that on the next page: $_POST['comment'] and print. I got: He's cool . I thought I was supposed to get: He's cool since magic_quotes_gpc is enabled and it's supposed to add slashes to any single or double quotes. Why isn't it adding the slash in this case?
View Replies !
Stock Information
I was just wondering whether there was anything out there that could help me get stock information. I am trying to build a stock market simulator much like investopedia.com. I want to get different information about a specific stock into different variables for me to use. Also, I need soemthin a little more advanced then just the simple info, forexample.
View Replies !
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) via a php script and do not bother manually updating it every day?
View Replies !
Stock Taking
I want to make a program that will help a garage owner to be up-to-date with his parts of the garage so he will be able to find out easily his stock and make his orders..
View Replies !
Convert The ’ Quotes To ' Quotes When I Get The Strings From The Db ?
in the db are a lot of short text strings that have been copied and pasted from a Word document - any time there's a single quote it's a ’ and not a standard single quote. this is causing problems when i compare it to user input that contains standard single quotes. when i compare the two strings they are not equal . is there any way i can convert the ’ quotes to ' quotes when i get the strings from the db ?
View Replies !
Replacing Double Quotes With Single Quotes
I'm looking for a way to scan a block of text and replace all the double quotes (") with single quotes ('). I'm using PHP to pull text out of a mySQL table and then feed the text into a javascript function called by onClick. The problem is that the text may contain single or double quotes, which screws up the javascript. I eliminated the single quote problem by running the text through addslashes, but the double quotes are a problem. Code:
View Replies !
Alternative To Addslashes For Quotes And Double Quotes?
I have a website, where users go and enter text descriptions about items, whenever anybody uses a "(double quote) it throws everything for a loop, when storing it in my db I am using addslashes, is there something that needs to be done when it is retrieved from the db? Is there another function that should be used besides or with addslashes.
View Replies !
Need A Stock Ticker Script
I can find lots of scripts for getting information on stock symbols, but does anyone know where I can pull the actual stock market volumes from? Like on http://quote.yahoo.com at the top they got the change in the markets and that right above they're add banner. That's what I want. Anyone know where I can pull this from on someone's backend such as an xml file or INC or TXT or whatever?
View Replies !
Creating The Stock Exchange
How would you go about creating a Simulation Stock Exchange? I basicly just want, a few companies(made up), and they all have a starting rate of $2.00 , and some how code it so it increases or decreases at a maximum of $2 difference, and is updated say every 10 minutes. and would you need a database for this to work?
View Replies !
Stock Exchange Orders
I am creating a mock stock exchange and have a question about implementation of orders that dont execute right on creation, but need to be kicked off if certain criteria becomes true. ie, a stop order (sell once stock hits a certain price). Code:
View Replies !
One Query To Calculate Stock
I want to calculate my stock. the formula is : end of stock = beginning of stock + purchase - sales (I make it simple ... so I didn't include 'stock return' and 'stock opname' etc) My stock table is : prodid (varchar) bos (double) -> beginning of stock Purchase table is : date (date) invoiceID (varchar) prodid (varchar) qttybuy (double) Sales table is : date (date) invoiceID (varchar) prodid (varchar) qttysales (double) How to calculate my 'end of stock' using just one query.
View Replies !
Adjust Stock Quantities
I’m building a site with live stock figures on, where account customers can order online and the order goes into a database, which someone can then retrieve at a later point. But I don’t know the correct formula to minus the ordered amount off the original quantity, I know how to store the details of the order in the database but not how to make the database update the quantity.
View Replies !
Partial Ot ... Stock Market Feed
I'm looking to add a page to my site where I can get stock quotes for the wired, but more importantly, the wireless web(ie my cell phone). I know how write the needed php and WAP application, I just don't know where to get the stock market feed, at least not without parsing a finance.yahoo.com page. Or something else like it that could change at any time. I'm looking for just the raw data feed. Anyone ever had to do this and can give me some info on a feed?
View Replies !
Accessing Sage Stock Information
i have a php site, sat on a mysql database works fine, but we want to integrate stock information which is already stored in a sage database on the clients server. He is using sageline 50, V.12, yet we dont have a clue what to do, does sageline sit on an mssql database for example? How can this be accessed via php? is there any software titles we have to install on the server to make the sageline database available over the net? (the site is stored off-site on a server farm and would need to access the sage database remotely, eg; install a webserver on the sage server so it could be accessed remotely etc? my main problem here is lack of knowledge in terms of how sage stores data.
View Replies !
|