Detecting Webpage Changes
I was trying to write my own code to display the differences between two webpages but I am having great difficulty. I also cannot seem to find such an animal on the web, it's incredibly hard to search for without concise terminology.
View Complete Forum Thread with Replies
Related Forum Messages:
How To Move Arrays From Html Webpage To Webpage?
There are a couple techniques to move information from different html web page to web page. 1. URL; 2. Cookie; 3. Form; 4. Session; All the examples I found are move distinguished variables from page to page, such as "?weight=20&name='apple'". I need users choose from the first web page (the arrays will be generated), then use it in second and third html web pages. How do I transfer them (arrays) and which way is the best? For example, if I have two arrays, $fruit[] = array("apple", "pear", "orange"); and associative array $myCats["Me"]="Merry"; $myCats["Pi"]="Pippin"; $myCats["He"]="Hergie";
View Replies !
Detecting Css
i have a css placed on mainsite.com/css/main.css but then i moving to another directory my path to it became wrong( May be somebody knows any way to solve this problem?
View Replies !
Detecting The Url
Is there any way in php to have something like... $url = the page url if $url contains word1,word2,word3 { <div class="one"> } else { <div class="two"> } ??
View Replies !
Detecting Host URL.
I've got a site that has both secure access (https) and normal http access. both use the same index.html. The problem I have is that I cannot find a way to check which method is being used to access the site. Ideally I want to check for https access and if that's not being used, redirect to the https url. Anyone know of a way of doing this in PHP?
View Replies !
Detecting Flash
I need a way to detect whether someone has flash installed. I will use this information to take them to two different pages depeding on the result.
View Replies !
Detecting Recursion
Say I have an array containing a reference to itself: $myArray = array(); $myArray['self'] =& $myArray; How can I, looping iteratively through the array, detect the fact that $myArray['self'] will "take" me to where I have already been? The print_r() and var_dump() functions print *RECURSION* in such a case (though only after the "second round"). Setting a flag seems to be the only solution, but I don't want to modify the array in question - I want to produce a visual representation of its contents like var_dump(), but formatted to my taste. I had considered parsing the output of var_dump(), but first, that format might change in a future version of PHP and second, an array key might be a string resembling part of the output (like $myArray['["myArray"]=>']), which seems to be difficult to detect by the parsing code. Is there another way of doing this?
View Replies !
Detecting Domain?
how I can use PHP to detect the domain that is being used? Or just detect the full URL? Because I have more then 1 domain and I want to redirect the others to the first one, so that google won't think I am using duplicate content and penalize me for it. So like either a way to detect what the domain is (E.G. domain2.com) so that I can redirect to domain1.com Or just a way to detect if it ISN'T domain1.com, and redirect to domain1.com if it isn't? Because I like to register more then 1 domain for common misspellings, like the way google has gooogle.com redirect to google.com
View Replies !
Detecting Percents
I am trying to use regular expressions to detect if someone put a percent value in my discount field. However I am not sure how exactly to make it detect any kind of percent. I want it to be able to calculate percents with any kind of imaginable percent. Like 45% or 45.67% or .45% or 0.000005%. Here is the regular expression I am using currently. Code: eregi("[0-9]*[:punct:]?[0-9]*% It does not pick up what I want it.
View Replies !
Detecting Bots
One of the things that has been a bother, is bot usage. I want bots to be able to come on, I think its great, but they're giving me trouble. First of all, all my session handling is coded manually. I never liked PHPs built in session functions, so I made my own, they work GREAT. There are two kinds of sessions, cookie sessions and URL sessions. Basically, if my script cant store session id in a cookie, it passes it through a URL, much how forums work. Here's the stinker: Whenever bots come online (I found out google was accessing my beta test site), they create new sessions for every page load they do (I have no clue why they do not properly use my code for sessions). Thus, it appears that I have like 30 guests online instead of 1 bot session. I need two things: The most basic thing I need, is a quick, easy, secure way to tell the difference between a bot and a user. I already have all my session code finished, it just needs compatibility for bots added. Secondly, a method of identifying bots would be nice as well. I know bots have some sort of ID, but I wouldn't know how to get it. If I had it, I'd compare it in the database with something and then I'd have a way of identifying a bot.
View Replies !
Detecting Netscape 4
I am using PhpSniff to detect browsers, checking for browser name and major version. This doesn't work on my NS4.8 test browser because it only returns HTTP_USER_AGENT as "Mozilla/4.8 [en] (Win98; U)" and therefore shows up as Mozilla. I can get round this by testing for the minor version. But am I correct in assuming that any Mozilla/4.x with a minor version greater than .0 is a genuine Netscape? I am using this to serve NS4 a simple table layout, so I don't want to catch any other browsers by mistake.
View Replies !
Detecting GoogleBots
The menu system on my site is all done through PHP includes and is widely image based with image rollovers. However fancy it may look I realise that GoogleBots would find it much easier to navigate a text-based menu system. As I can see in my access logs that GoogleBots have been wandering through my site I was wondering if it would be possible to detect in my include scripts whether the visitor was a normal user or a GoogleBot (varying IP's) and then include a text based menu system whenever a GoogleBot was visiting instead of the standard image menu.
View Replies !
Detecting Color
Im trying to find a way to detect the color of a certain pixel in an image with php. Does anyone know of a way to do this? Or can maybe point me in the right direction.
View Replies !
Detecting Main.php?#*$!
In player.php i have 10 links. When i click "one" it redirects me to main.php?one. Now i'm in main.php. How can i extract this "one" to use it in main.php.
View Replies !
Detecting Directory Changes
I have a script that gets a large list of files from various directories. It would be great if I could determine if any files in that directory had been changed (or added) just by reading a directory attribute so that I don't have to rescan the directory every time.
View Replies !
Detecting Unique IPs
I'm trying to make a voting system where users who come to a page may vote for it. I was curious how you would detect unique IPs (specificially to prevent the same person from voting over and over again in the same day)?
View Replies !
Detecting A Gap In A Sequence
I have a table which contains "transactions." Each Transaction contains an order #. We currently have a slight issue in which an Order # will be generated but for some reason the transactions never get written into the table. So I need to come up with a query that will allow me to detect gaps in the sequence of order #s. The field in question is called "oid" The Order #s in "oid" are sequential and should contain NO gaps.
View Replies !
Detecting Refresh
what im after is to prevent post data from being accidentally passed if the user doesnt navigate correctly or hits f5 on certain pages.
View Replies !
Detecting A Spider
I have made a visitor counter for a site that adds a record to the database each time a page is viewed. To make it a little more accurate, I was wondering if there is a way to detect if the page is being viewed by a search engine spider instead of a human? That way I could use a condition to not execute the database update if the visitor is a spider... or mark the record "Spider".
View Replies !
Detecting Windows Or *ix?
I have a few PHP scripts that poll switches and routers via SNMP. Depending on the user, the scripts can be run from either Windows XP or *ix (FreeBSD, Redhat, etc) I am beginning to implement syslog() and openlog() in my scripts and there are some suddle differences in how PHP logs to event viewer in Windows and syslog in everything else. About the most reliable method I have found in detecting Windows is a simple check to see if $_SERVER['OS'] is defined, which returns "Windows_NT". On Redhat it doesn't come back as defined at all, so that makes the code easy. I'm sure I am not the first one to attempt this, can anyone else share their experiences with this and maybe offer a better way other than checking for a predefined constant?
View Replies !
Detecting Language
I have been looking for something like this, but can only find detection of the users language. But thats not what I am looking for. I tried to build it myself, but to be honest it's not very beautiful and not (not even nearly) a good solution. Now, how do you figure out, what language he has typed. (I need to check between THAI, ENGLISH, JAPANESE, CHINESE, FRENCH, GERMAN (at least, more would be better).
View Replies !
Detecting Sum Of Array = 0 Problems
I use the following code to put directories that are on the server but not in the database yet on my website, so I can use a function to have them added. However, when all my directories are in the database I get just an empty page, I want to put in a nice line that says all dirs are already added. I don't know why the following code doesn't do just that. I tried several other things, no luck yet. Do you have any idea what goes wrong, or how to solve this?
View Replies !
Detecting The Browser-capabilities In Php
i found a very interesting method of detecting the browser-capabilities in php: the broscap.ini-file! But i have a big problem with this file ... it isn't up-to-date ... is there any site outthere, which have an up-to-date-browscap.ini-file?!? If not, is there another "easy" way to detect the capabilities/version of the browser?
View Replies !
Detecting Multiple Sessions
I have an address database running on POSTGRESQL web based ofcourse with php. My Web application has a login page that gives the users a session_start if their data is correct. Users can login at the same time. I would like to know how i can detect the session from these users. Than i want to know: - How many user are online - Wich users are online When they didn't logged out but have closed their browser, how can i detect if their offline?
View Replies !
Detecting User-Agent
I have a site that uses access-restriction to only allow registered users to view certain pages. However, I would really like Google to be able to index *every* page regardless of whether it's password protected or not. Is there a way to identify the user-agent header in PHP? That way I could identify the Googlebot, and then set a session variable that would allow the Googlebot to spider my entire site.
View Replies !
Detecting URL Forwarding / Redirection
I'm working on a feature in my software that will delete urls from a database if they no longer exist or do exist, but are redirecting to another page. Both cases have a setting to optionally allow a user to delete or keep them based on either one of the two scenarios. My problem is the header status which is being returned and detecting which urls are forwarding - For example, Page 1) This no longer exists - HTTP/1.1 301 Moved Permanently Page 2) This page is redirecting - HTTP/1.1 301 Moved Permanently Page 3) This page is available - HTTP/1.1 302 Found So page 1 & 2 are showing the same header status, even though page to really does exist. Any suggestions?
View Replies !
Automatically Detecting Tables In A Db
Is it possible to write a script that, when provided with a database, it will return all the tables names? I will go onto try and put together a script that will not only output the table names but also output the sql code required to CREATE the table (i.e. CREATE TABLE example (exampleid auto_increment not null primary key integer, name text, email text);) - Is this pretty simple to do? Are there any free scripts online that would do this?
View Replies !
Detecting Multiple Windows
How would a man go about checking if another window (or tab.. same thing) is open from my site? Not allowing the pages (other than that 1 that is allowed) to load, thus showing an error. Im doing this as more of an expieremental thing, but I have no clue where to start with it. I don't even know if PHP would be involved. Anyways, I've searched and searched and I couldn't find any examples/tuts so I came back here.
View Replies !
Detecting Dead Images
My database contains the images of other sites.... when other sites remove some images from their websites, my side shows blank images as i am using their images and the same_path of their images. 1) Is there a way i can detect the blank images. 2) Is it possbile that the desciption of that image will appear only when that image is opened.
View Replies !
Detecting Browser SSL Key Size
Does anyone know if it's possible to detect the max key size of a browser that is connecting to a site? I'd like to limit connections on my secure site to browsers with 128bit encryption.
View Replies !
Detecting Web Site Visitor's
Is it possible using JavaScript and/or PHP or any other language, whether a user of my web site has a webcam attached to his PC and whether they have audio output device (speakers, head phones etc) and audio input device.
View Replies !
REMOTE_ADDR Detecting Two IP's
I'm using $_SERVER['REMOTE_ADDR'] to detect the IP of a visitor to my site so I can determine how many users are online at a given time. However, when I tested this out with my own computer, it randomly gave two different IP's to the script. Is this just some setting on my computer, or is there an alternate PHP function that will genuinely give only one IP per visitor?
View Replies !
Detecting User's Timezone
I wonder if it's possible to detect a user (the browser's) timezone when he/she access my php file? I saw ppl suggesting using javascript to collect that information. But I wonder if it's possible to do it without the headache of javascript. Code:
View Replies !
Detecting Broken Links
I have a list of user submitted links that i need a way to check to see if they are working and dont throw an object not found or 404 Error does anyone know how to do this with PHP?
View Replies !
Sceen Dimensions Detecting
Does anyone know if there is a way to detect someone's screen dimensions using php or any other language (javascript, perl etc.)? I use div's to make my layout as it's easier to add more detail so I was hoping I could do something like this: <? if($browser == 1047678) { header("Location: www.mysite.com/1047678"); } elseif .......... ?>
View Replies !
Detecting Specified Character In String
trying to create logic tests against a string allowing someone to enter a certain character once or twice into a form consecutively, but not twice seperated between other characters. so, hello##there (ok) hello#there (ok) #hello#there (no) ##hello#there (no) ###hellothere (no) How would I do this? I was looking at strstr and some others, but not sure. I have many challenges like this ahead, so hopefully someone building this will help my mind figure out other designs.
View Replies !
Detecting Malicious Javascript
I am looking for a service, script, ANYTHING, that could be used to detect malicious javascript on websites. I'm having problems with people submitting websites on my site that contain encrypted javascripts, hidden iframes, you name it! Members of my site are increasingly getting viruses and trojans. Defiantly not good. I tried searching for it, but I'm having trouble coming up with any phrases that will get me anything good. I would love to be able to buy a script that scans a webpage, or even subscribe to a service.
View Replies !
Detecting A Link Click
I am working on an article manager. For that i now need to work on add and view comment part to the article. In case of form system, we have submit button with a value which is checked using [php]isset($_POST['done'] && strlen($_POST['done'])>0)[/php] and so on... Now is there any way i can detect/check if the user has pressed the link (say link to comment.php or showcomment.php). And if he has pressed then i would show the comments or give him a comment box accordingly on the current page.
View Replies !
Win 2003: PEAR Not Detecting GD
Solution: Forcing the installation worked great (installation ignores that gd isnt detected) pear install -f <package> Im running Windows 2003 server, and I need to install PEAR's Image_Graph libary, which depends on Image_Canvas and Image_Color. Code:
View Replies !
|