Solved

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

Posted on 2004-03-27
4
130 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Changing Two Areas of a Page 5 27
Joomla 2.5 shopping cart 7 30
Show Ruler in Outlook 2010 STILL NOT SHOWING! 4 26
simple html dom php accessing table/cell  values 4 23
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

830 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