This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How can I get system/hardware info via Java?
I'm doing a website with PHP.
one of the functionality need is to get info about the client pc..
Such as ram..graphic card..etc..
why u would say?
I will provide game download on my website..
So i need to provide the client with a way to test if the game will run on his machine
So is there a way i can do that..?
I know theres a website who do something like that: Canyourunit
Need to do something like that..a simple one would be nice
edit: Is there any plugin, library for that?
Thanks :) Best Regards
This is not possible with PHP, JavaScript or anything like that. Even Flash doesn't allow this. You could try to create a Java Applet, i think Java is able to get some system properties. Have a look at this: How can I get system/hardware info via Java?
Related
This question already has answers here:
What's the best solution to check a users country?
(5 answers)
Closed 8 years ago.
I would like to know if there is an easy script which will display script 1 to US/ Canadian visitors and script 2 to the rest.
Does not need to be that accurate but using a service like http://freegeoip.net/json/18.8.8.82 is to complicated for me
Is there an easy way
a script example would greatly be appreciated
You may try: GEO Plugin
The PHP web service allows you to directly program your back-end PHP scripts to deliver dynamic geo-localized pages using the PHP array provided by geoPlugin.
GEO Plugin PHP Web Service
It is easy to use.
See Demo: http://jsfiddle.net/akhurshid/WktTV/
This question already has answers here:
Add, update and edit an XML file with PHP
(3 answers)
Closed 6 years ago.
So completed my uni stuff using a little help from you fantastic programmers out there and a few all nighters to go as far as I could with manipulating XML data through Javascript. Now I'm done for the summer and my dear old mother has asked me to create her a basic site for her maths tutoring service with info and prices etc... I was thinking as she doesn't need much I would go in for using XML again but this time not restricted on the use of PHP to Create new elements/nodes, update or delete.
I was going to create her a basic booking system with a little admin panel for editing entries etc... As the information doesn't really need to be too secure the use of XML seems to be alright for the purpose.
My question is Does anyone know of any clean basic functions that can be used to this end with XML using PHP ?? In terms of functions I would mean things like Create/Insert, Edit/Update, Delete etc...
Any help or even a site that has a decent tutorial on it would be great as I've gone through youtube and there isn't anything decent or clean and simple.
Thanks in advance!
Well, you can use the DOM methods to create/edit/delete nodes from an XML.
http://us2.php.net/manual/en/book.dom.php
Just curious, why do you want to play with XML, may be the easier choice would be a database as simple as SQLite http://php.net/sqlite.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to create a sitemap using PHP & MySQL
So I'm kinda stuck here. I have a website with a pretty big database, that constantly changes. Now I want to help the search engines by supplying a sitemap.xml file. Normally I would use a webservice that would do this, but thats not really possible in this case.
To be honest. I have no clue where to start. How would I go about doing this? Sorry if this is a too basic question, but Google couldn't help me.
Edit: Some more info. DB is currently 1k pages. Want to go up to like 10k. I use Mysql to echo this from my database, and then htaccess to rewrite the URLs.
(PHP's get ID, etc)
You need to install a crawler of doing it like a webservice. The easier way is to write a php script and generate sitemap XML file by yourself.
Write a query to get the links from your database and then iterate over it to create a sitemap.
See this post for example php script How to create a sitemap using PHP & MySQL
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Website screenshots using PHP
I was wondering if it is possible to create a screen-shot-like preview of a website if given nothing other than a url?
Yes, you can, please read the following stackoverflow questions:
generating-a-screenshot-of-a-website-using-jquery
website-screenshots-using-php
There are some tools with the goal of snapshotting the website to an image, so, using Jquery in conjunction with PHP you can achieve your goal!
Using only JavaScript/jQuery? Likely not, as that would violate the same origin policy. And even if you could, it's be challenging in JavaScript to make it into an image.
You can use a service like BitPixels as well. Use JSONP if there are any same origin issues and it should be easy enough.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How to convert Php source code to Asp.net code
Can we convert ASP.net source code into PHP .
Any helpful answered much appreciated .
Thanks Regal Singh
Can we convert ASP.net source code into PHP .
Yes you can.
A quick Google search turned up this. It won't do everything, but it should get you started and save you some time.
For something a little more serious, take a look at ASPA. I'm not sure how up-to-date it is, but it's a start.
I don't know if there is a tool specifically for this, I would doubt it. But yes you can manually port asp.net to php your only hurdle is going to be .net's custom form controls like gridviews and the like. You'd also need to account for the viewstate if that were something you were using heavily in your .net web app.
For an experience php developer it shouldn't be much hassle, for a pure .Net developer it would probably be more troublesome trying to figure out how to do certain things in php that you take for granted in .net.