Jump to content

Multiple websites question.


bluesurfingjaguar

Recommended Posts

hai i wrote this one long back just check it out

$ch = curl_init();curl_setopt($ch, CURLOPT_URL, "http://chaitu09986025424.blog.co.in");curl_setopt($ch, CURLOPT_HEADER, 0);curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);$output = curl_exec($ch);echo $output;

if u like to get the code with the html tags then use the echo like this.

echo htmlspecialchars($output);

if u want the exact source code of the website then u can get it more easily.

<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"><table align="center" border="1" bordercolor="black" >          <tr><td align="center" bgcolor="Green">Enter Website :<input name="Website" type="text" size="100" value="http://" ></td></tr>          <tr><td align="center"><input type="submit" name="submitBtn" value="Submit"></td></tr></table> </form><?phperror_reporting (off);// Get the HTML source of google$site_address=$_POST['Website'];//$count = file ('http://rediff.com/'); $count = file ($site_address);// Loop through our arrayif($site_address==''|| $count==''){    echo "Please enter a valid URL";}else{foreach ($count as $line_num => $line) {$line_new=htmlspecialchars($line);echo "<table align='center' width='95%' border='0' cellpadding='5' cellspacing='5'><tr style='background:red;font-color:white;font-weight:strong;'>   <td colspan='2'>Line #{$line_num} :</td><td bgcolor=yellow width=100%><font face=Verdana, Arial, Helvetica, sans-serif size=2><b>$line_new</b></font></td></tr></table><br>\n";}}?>

 

if u want to check the last one the working example is at http://drvirusindia.co.cc/code.php

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.