Parsing data from external website [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions must demonstrate a minimal understanding of the problem being solved. Tell us what you've tried to do, why it didn't work, and how it should work. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
What I'm trying to do is parse a data table from this link and similar links on the site.
Basically it shows the water levels in different parts of Ontario. I want to get the data table and make my own graph.
Can someone point me in a direction to do this?
Is it possible to do without PHP?
Target link

Is it possible to do without PHP? Absolutely!
I suggest using Yahoo! Query Language (YQL).
What is YQL?
The Yahoo! Query Language is an expressive SQL-like language that lets
you query, filter, and join data across Web services. With YQL, apps
run faster with fewer lines of code and a smaller network footprint.
-- YQL Homepage
Just take a look at YQL Console, there's some nice examples at the bottom of the right panel which titled by DATA TABLES.
Another thing that makes me feel is the awesome THE REST QUERY feature.
You can use this API to get access to the query result in XML or JSON format.
There's also a full documented user guide you can use to find your answers.
Just give it a try, and I promise you will ♥ that.

Related

How to create myown map with gps loction track [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Improve this question
I would like to create a web application that people can use for to locate them self with GPS tracking.
criteria:
I have to use my own map for a particular location
It is a web application that will work with all new generation browsers mainly for mobiles
and tablets
whenever I am moving one place to other the pointer should change the location according
the place in map.
is it possible to create in a web application?
With HTML5 you can do it, see this example Get user location within Google Map
To get updates for user location, you should implement watchPosition function in your JavaScript code too.
At first time, with getCurrentPosition function, you will get an aproximate user location, if you need more accuracy, you should implemente watchPosition
By calling this method as soon as your app starts, the GPS hardware will activate immediately and keep running, and it’ll fire callbacks whenever the device’s location has changed.
Read more here HTML5 Geolocation: Improving GPS Accuracy

PHP reports using Mysql on firefox [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am designing a stand alone software using PHP and MYSQL.
I have generated report with HTML and CSS.
But my problem is that the report is 30-40 pages long that is one page contain one vendor bill and when i am printing this pages the Firefox shrinks the size of report.
When i print only one vendor bill it will prints fine.
Please help me.
Your requirement is fine. If you want to display 30-40 page report. But in implementation
we have to measure all things like performance of your site . When you load all data together that is not an optimum solution to do this.
As one of my friends suggest to you should use pagination or ajax. Similarly you can also use lazy loading here. OR if possible then break your report section wise and keep all section in left or right menu and
on-click on section you can fetch data through ajax and display..
I would use TCPDF for creating PDF files.
It is just a folder you upload to your site. In the folder there are examples which only need a bit of editing.
It is easy because you make the page using not more than simple HTML and elementary PHP.
Use TCPD or DOMPDF to generate Report in PDF format. DOMPDF more easier to deal and flexible. It easily convert pure html code to PDF with Formated Layout.

Need some help with Twitter/Blackbird Pie [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I'm having a lot of trouble working through the API for Blackbird Pie, especially since their API isn't actually an API but is apparently just a blog.
Here's the API link from Blackbird Pie.
I want to be able to take in a unique tweet link that a user enters into my MySQL database and output them to a page using a query and PHP but I'm not really sure how to go about doing this. Searches just reveal methods for embedding tweets manually which is not what I want.
Thanks in advance.
Pindatjuh makes a good point. So if I'm understanding this your basicly building a twitter feed, but you don't want it to display via json or xml from twitter. You could write a little phpscript to scrape the info and before you throw it into the database have them confirm if the information is correct. If I'm understanding you correctly you might want to check out this scraper for IMDB.
http://web3o.blogspot.com/2010/10/php-imdb-scraper-for-new-imdb-template.html
You could probably modify it to your needs.
One more suggestion is the json feed I wrote. Instead of echoing the output you could throw it into the database.
PHP JSON Twitter Feed Improvement
Hope this gives you somewhere to start! Happy Coding.

php read links rss [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions must demonstrate a minimal understanding of the problem being solved. Tell us what you've tried to do, why it didn't work, and how it should work. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
i was wondering, how would i go about setting up a php code such that when someone enters a url into a form i would like to extract the name of the webpage and a photograph similar to what happens in facebook when you put a link on someones wall, you get the title of the link and picture.
Do i have to read an rss feed or what ?
Rss feed are XML therefore you should be able to DOM or SAX in conjunction with Xpath to retrieve these informations by hand.
Zend_Feed provides an easy way to work with feeds (either RSS or Atom).
$feed = Zend_Feed_Reader::import('http://www.planet-php.net/rdf/');
$feed->getTitle();
Concerning the preview picture, I don't know any free and out of the box solution.
You can take a look at thumbshots.org which provides free thumbnails for websites which in DMOZ but requires a paying subscriptions for others.
You can also try http://www.guangmingsoft.net/htmlsnapshot/html2image.htm which is well know and available on Linux, but still not free.

How can i build dynamic organizational chart? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Improve this question
I'm trying to build an dynamic organizational chart with php. Do i need to build it myself or is there some tools for that?
specification: all the positions in the company are predefined in the org chart, we only add persons in the correspondent position.
I need your suggestions.
Thanks.
I have installed image_graphviz and graphviz in my computer. but i don't know how to use it actually. Because there is so few documentation.
Does anyone have ever done this job or have some relational materials??
thanks a lot.
You could use GraphViz and connect it to your php via PEAR. You can generate graphs like these:
(source: graphviz.org) .
You can find more examples here
There is a tool called Organimi that will accomplish this. It allows you to create a role based org chart. You also create a roster of employees from which you can add/remove employees to/from these roles. The roster can be imported from csv or you can integrate an existing employee database via the API.
We've used the Google Organizational Chart Tool with some pretty good success. The API and documentation are very clear. It was very quick to get a simple static demo up and running, and not much more work to generate it dynamically from our corporate data.
I'm using the Mindmap software for this kind of the project. There are many of them online and the desktop versions. This small, list helps you to examine:
Freemind
Mindomo
Mind42
Conceptdraw MINDMAP
Mindjet
Xmind

Categories