>>  Site Map >>  Forums >>  Unanswered

Forum module - topics in forum:



Unanswered - <font color=red>Posts that are still unaswered (after 7 days) are in here, unless someone provides an answer, then they'll be put back in the relevant forum.</font>



PHP file() command

Hi guys,

I tested the file command to read any file like text and html thru http

For Example :

Code: :


<?php
// Get a file into an array.  In this example we'll go through HTTP to get
// the HTML source of a URL.
$lines = file ('http://www.vllambar.com/nuke/');

// Loop through our array, show html source as html source; and line numbers too.
foreach ($lines as $line_num => $line) {
    echo "Line #<b>{$line_num}</b> : " . htmlspecialchars($line) . "<br>\n";
}

?>


The above code works fine and displays the html code of the site..

Well now my problem is

I need to submit a FORM and simultaneously i need to read the file where its action goes..

EG :

<FORM action="http://dfdf.com/test.htm"> i need to read the test.htm from my server php script without using anohter php file.




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS