Google Analytics With PHP - php

I am trying to use Google Analytics with php. I can't use javascript. Is there is any way around this?
I've tried some of php libraries but its seems these libs are not working.
Lib which i tried: http://code.google.com/p/serversidegoogleanalytics/
Thanks in Advance.

Yes, google provides a server side code here:
https://developers.google.com/analytics/devguides/collection/other/mobileWebsites
Which provides a basic functionality and works perfectly for page views. However, it does not include events or custom variables. What you can do is use this code along with some simple functions that will allow you to sent the right parameters (utme) into the gif request.

Related

PDF-To-HTML Post Action

I'm fairly new to PHP because i'm an Android programmer but i need to convert a pdf file to html. I don't want to use any external API's because they are way to pricey. Now I would like to use http://www.convertpdftohtml.com to convert my pdf to html. However that site does not have any API and only works manually. According to Tomer W. it is possible to simulate a POST action for the website and doing it automatically. https://stackoverflow.com/questions/9592926/online-pdf-to-html-conversion-api
Now i'm wondering how i would be able to do this. (I don't have a lot of knowledge about PHP) but i know people who might help me to get it working (if i have some kind of pseudo code)
This may soon be unnecessary. Mozilla have incorporated pdf.js into Firefox 19

Using Highrise API Wrapper

Good Day.
I am trying my hardest to get my mind around PHP for building an site where you can see Highrise events printed out.
Found this wrapper, but do not know how to use it, what i should write to get use of this wrapper.
Please Help.
http://101tec.com/en/open-source/highrise-api-wrapper is the link for the wrapper.
Have you tried this Highrise API wrapper/library:
https://github.com/ignaciovazquez/Highrise-PHP-Api
Looks more developed, with example code.

Using PHP to retrieve Google Spreadsheet as HTML

I'm thinking that someone might of already solved this problem. I tried to look at the Spreadsheets API and there's no mention of being able to download the file. cURL might be an option but I'd rather not get into the hassle of authenticating / POSTing manually.
You can take a look at Dynamic FAQ Section w/ jQuery, YQL & Google Docsif you want something like this.
This should help you out: http://code.google.com/apis/spreadsheets/data/1.0/developers_guide_php.html
Although C# this will help too: How to download Google SpreadSheets using C#?

screen scraping technique using php

How to screen scrape a particular website. I need to log in to a website and then scrape the inner information.
How could this be done?
Please guide me.
Duplicate: How to implement a web scraper in PHP?
Zend_Http_Client and Zend_Dom_Query
You want to look at the curl functions - they will let you get a page from another website. You can use cookies or HTTP authentication to log in first then get the page you want, depending on the site you're logging in to.
Once you have the page, you're probably best off using regular expressions to scrape the data you want.
You should look look at curl.
You might also want to take a look at BeautifulSoup which is a Python library which is supposed to be very good at making bad HTML parseable. It is aimed at things like screen scraping.
How easy it would be to call from PHP I don't know though.
You could also check out http://php.net/dom
Curl, and once ure in, use QueryPath php library. (querypath.org)
You can access dom elements just like in JQuery, via CSS selectors,
there's method chaining...
Way better than just using php's native xml functions.
It also works as drupal extension, but I suppose you could implement it in any php project.

Any PHP -> jQuery libraries out there?

Have any bridge libraries been developed for PHP that provide access to the jQuery framework? Ideally it would be nice to have something fairly extensible so that creating jQuery-based content using PHP code would be fairly easy and customizeable. Does such a thing exist yet?
pquery
jqpie
jquery-php
There's a warmup list.
So far I've found one that seems to fit the description. I haven't tried it out yet, so if anyone has any feedback or experience with this or other ones don't hesitate to post!
PQuery
jQPie might be what you're after.
What can jQPie do?
Easily request and process data from php using $.getJSON
Inject php generated html into elements using $.(element).load
Call php functions directly from your web pages using $.jqpie
Call jQuery from php in respond to $.jqpie calls
Advanced autocomplete using jqpie_complete
QueryPath (http://querypath.org) is a full implementation of the jQuery DOM/XML/HTML part of jQuery. QueryPath has full CSS 3 selector support (including the stuff jQuery doesn't have, like XML namespace support). It also comes with DB tools, where you can run queries and have the results inserted into the query object. And it has a template engine, too. Like jQuery, you can write custom extensions very easily.
But it definitely takes advantage of its server-side status.
The main project page is at https://fedorahosted.org/querypath. You can download it there (and see lots of examples, including RSS and SVG manipulation).
Integrating with jQuery, then, can be done easily by sending XML data of many sorts down to jQuery. (You could probably send JSON, too... never tried.) And since the server side code and the client side code both look the same, there's less of a need to learn two totally different toolkits.

Categories