Solved

How can I know some word in page befor I open this page ?

Posted on 2004-03-27
4
128 Views
Last Modified: 2010-04-09
How can I know some word in page befor I open this page ?
I need this topic because I have project about filtering, so I need some way to know the content of web page befor open it.
I need CODE .
0
Comment
Question by:SESOMY
4 Comments
 
LVL 12

Accepted Solution

by:
venkateshwarr earned 50 total points
ID: 10696104
you have to use a server side scripting language........
For example.

in php

<?php
$fileoutput =  file_get_contents("http://www.google.com");
print $fileoutput;
?>
0
 
LVL 36

Expert Comment

by:Zyloch
ID: 10836530
venkateshwarr is right.

Using HTML or JavaScript, it isn't possible without showing the site.

Either use PHP like vehkateshwarr did, just put your error checking code between $fileoutput=file_get_contents(); and print $fileoutput;
Then, enclose print $fileoutput; like: if($nocusswords){print $fileoutput;} where variable $nocusswords would be a previously defined variable.

You can also use Perl CGI or JSP and ASP among others. It would be better to put this in one of those sections.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Bootstap Icons 3 44
PHP Undefined Index in HTML Form? 2 32
Getting Column Height to Match Other Column 5 44
Set email body to html using vbscript 6 28
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now