Solved

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

Posted on 2004-03-27
4
127 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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

744 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

15 Experts available now in Live!

Get 1:1 Help Now