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.
Related
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 guess it is loaded by ajax.
I already tried CURL, DOMDocument and PHP Simple HTML DOM Parser
Details:
I'm trying to get the price of games on Playstation Store. I have an url like https://store.sonyentertainmentnetwork.com/#!/en-us/jogos/shadow-of-the-colossus/cid=UP9000-NPUA80677_00-SOTC000000000001 and I want to get the price. <div class="price">$19.99</div>
I just noticed that if you check the source code of the page, it does not have any element displayed on page, that is because I believe all is loadaded by something like ajax and I guess PHP parses will never work here.
I tried Jquery AJax(), Get() and Load() functions and I did not get success. Some problem with crossdomain.
There is a website called PSN Prices that can do it.
Additional Info:
It is totally for personal purpose, I just want to do some kind of wishlist and follow prices by myself.
Sorry my english.
The price is retrieved through JSON:
https://store.sonyentertainmentnetwork.com/chihiroview/storetree2?https%3A%2F%2Fstore.sonyentertainmentnetwork.com%2Fstore%2Fapi%2Fchihiro%2F00_09_000%2Fcontainer%2FUS%2Fen%2F999%2FSTORE-MSF77008-BASE%3FsessionCountry%3Dus%26sessionLang%3Den%26geoCountry%3DPT%26size%3D30
search for 19.99
"display_price":"$19.99"
EDIT:
Game url:
https://store.sonyentertainmentnetwork.com/#!/en-us/jogos/shadow-of-the-colossus/cid=UP9000-NPUA80677_00-SOTC000000000001
JSON url:
https://store.sonyentertainmentnetwork.com/store/api/chihiro/00_09_000/container/US/en/999/UP9000-NPUA80677_00-SOTC000000000001
Using http://jsonformatter.curiousconcept.com/ to make it easier, it seems you need to get
default_sku->display_price
Have you tried include the site (with the price) within an iframe and then accessing the data with javascript/jquery?
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
This is something I need help on.
Im going to allow a user from my database to "share" a record which gets sent from the database into a solid html file.
So I'm looking at ways to create a html file from data in a database which is passed through php and stored in a location on the server. with no interaction from the user at all other than pressing 'share'. They would be sent the url to look at it upon success.
I'm looking for any functions or tuts on how to best make a html file from php. any help is appreciated. I think I may be looking into this too much, and the answer may be staring me in the face
As it got clear, you want static html files, created dynamically via PHP and written on the server.
The steps you need to follow are clear too:
You need the database and as you said you have it
You need to connect to it via PHP
Then do the respective queries
Fetch the data from them
Use it in the HTML
Open a file
Send the used data to it
Write the file with the relevant name
The querying should start after the button share is clicked (you can track this via isset() function)
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 know this works with Photoshop where you can insert all kinds of text that serves a copyright.
Is it possible with PHP? How would you go about doing it?
UPDATE
I am talking about meta data in the file header, not a watermark.
For example, I'n Photoshop when you open a file you can click on File-> File info.. and set Document title, descriptions, keywords .... all the way to IPTC.
I think the PHP Exif Library is what you want:
The PHP Exif Library (PEL) lets you
fully manipulate Exif (Exchangeable
Image File Format) data. This is the
data that digital cameras place in
their images, such as the date and
time, shutter speed, ISO value and so
on.
Using PEL, one can fully modify the
Exif data, meaning that it can be both
read and written. Completely new Exif
data can also be added to images. PEL
is written completely in PHP and
depends on nothing except a standard
installation of PHP, version 5. PEL is
hosted on SourceForge.
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.
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.