Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2004-03-27
4
Medium Priority
?
135 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 12

Accepted Solution

by:
venkateshwarr earned 200 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

610 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