Identify user machine with PHP or other language [closed] - php

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Does PHP provide a way to identify whether a user machine is a PC with a mouse and keyboard, or a touchscreen laptop?

+1, Good question. Yes, identifying the user is important for better user experience.
Look into user agent detection. This might help you get started. They analyze the user agent (UA) string the browser sends when making requests. However, detection with PHP is probably limited, and Javascript will have to get involved to fullfill what you want.
get_browser() in PHP
Detector
There are various ways to detect whether a browser has a feature
Detecting that the browser has no mouse and is touch-only
Modernizr (used by Detector) this common Javascript library simplifies the task.
Look into conditional html/css/javascript:
Conditional Formatting in HTML Tags
Also, there are css vendor prefixes/extensions for Mozilla, Webkit, used by Chrome and Safari that only apply to a specific browser
Hope this helps you!

Related

Edit a css file from the live website [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
so i want to develop a mini website builder within my website. Have a control panel where users can edit the text in their websites, i want each of those html pages to have its own css file attached to it. Now, i want it so that the user sees something like a button saying "Edit Background color" they are prompted with a color picker and on hitting save, the css file is updated without them knowing that css even exists.
I would like to know what language i can use to make the previous example happen. And if possible a hint of code.
I appreciate your answers, Braulio :)
I didn't downvote you but just for informational purposes, the reason you were probably downvoted is due to the scope of your question, The language you choose depends on what platform you are running your site on. And it is likely possible to do what you want in tons of different languages assuming your platform supports them. For an easy solution check out .net languages like c# with ajax controls for live updates without refreshes. But then again you could use ruby with rails. Or you could do most of it in the client side with jquery and javascript then send the results to the server which could utilize php. It is just to broad a question to really answer without writing the whole thing for you which nobody is going to do.

How do I find out the source from where the website gets its information [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
As I go through pages of pages from a website filled with information that I know are coming from a database somewhere on the backend, is there a way to find out the php link to where this information is stored through chrome dev tool so I can extract them into an excel sheet? Is this possible?
If front-end scripts recieve data from back-end servers via AJAX calls, you can, for example, see full HTTP requests parameters in the Network tab of Google Chrome Developer tools in Chrome browser (other browsers provide similar functionality).
Open Network tab of Google Chrome Developer tools and perform some actions on site. If your actions do not lead to opening another page, you will see some activity in your Network tab.
PHP is server-side language so you can not get this.
Of course, if the website is vulnerable and you can get access to the "code" then yes, is possible.

Server-side parser(?) for specified data [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm learning php and website development in general. Currently I'm trying to write a script in php that would access a website as Internet Explorer (important) and look for a specified word/pattern everywhere possible. Simply parsing doesn't do the job.
The thing is, I can do that manually - I open website X and press F12 in Internet Explorer->debugging section and I search there. However I have no idea how to implement such a thing in php or any other language.
TL:DR
Need to extract data from a webpage the same way I do it manually (explained in paragraph above). However, simply parsing doesn't do the job. I need to achieve that in php or some other server side language.
In addition to limited approaches such as file_get_contents followed by a string search (or XML parser), you can look into more feature rich libraries such as the SimpleTest Scriptable Web Browser.
You'll want to modify the user agent string in order to simulate a request from Internet Explorer.

How to test geo targeting for website? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am implementing GeoTargeting in my website to show different content based on whether traffic is from US or NON US.
I have every thing set up the way it should be. Now I want to test and see if its working for NON US traffic.
How can I do that. I would like to also test features of the website when I am testing for NON US traffic.
Two professional solutions:
Geosurf
GeoEdge
Both offer a toolbar as plugins for some browsers where you can "simulate" (aka proxy).
You need some sort of geolocation database to test against. Here's one: http://dev.maxmind.com/geoip/legacy/geolite/
From there, it wouldn't be too hard to figure out where users are coming from... though it will never be 100% accurate.
There's also the HTML5 geolocation: http://html5demos.com/geo - but users have to explicitly allow location reporting... and it doesn't work all the time, either, even if they accept.

How to implement remote assistance feature in PHP? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 12 days ago.
Improve this question
I searched in google and come to know that there are some tools which
will provide remote assistance functionality (ex:Gotoassist,teamviewer).But i want to
implement the similar kind of feature in php.
Is it possible to implement in php or not?
I'm going with NOT just in PHP, PHP is a server side scripting language.
http://uk3.php.net/manual/en/faq.general.php#faq.general.what
PHP can be responsible for hooking the session up / starting a server repeater and helping your user to connect with you - but it can't physically do the drawing of client side screen graphics and mouse/keyboard operation - you need something like this:
http://phpremotesupport.com/about/
In tandem with a VNC viewer or other remote viewing product (C, C++, C#, .NET VB would be used to program it most likely) - found this one which might be useful to you called noVNC (web-based):
http://kanaka.github.com/noVNC/
Something like this might help you:
http://phpremotesupport.com/

Categories