I really need help of you. What i want is it that i want to load output of a PHP Script into another PHP script variable. And then echo it.
print "<ul>";
for($i=0;$i<mysqli_num_rows($govtJobsRslt);$i++){
$job = mysqli_fetch_array($govtJobsRslt);
$jobId = $job[0];
$jobTitle = $job[1];
$jobEmployer = $job[2];
$jobVacancies = $job[3];
$jobPage = $job[4];
$query2 = "SELECT employer_shortname, employer_city FROM employer WHERE employer_id = $jobEmployer";
$empDtlRslt = mysqli_query($link, $query2);
if($empDtlRslt){
$empDtls = mysqli_fetch_array($empDtlRslt);
$empShortName = $empDtls[0];
$empCity = $empDtls[1];
**$new1 = file_get_contents("http://url/summaryProvider2.phpjobId=".$jobId);**
print "<li id=\"lst$jobId\" class=\"qs\"><a href=\"/govtjobs/$jobPage\">".$empShortName." ".$empCity."-".$jobTitle."-".$jobVacancies." Posts</a> </li><div id=\"sum$jobId\" class=\"jobSummary\">".$new1."</div>";
I want to replace file_get_contents() method because this is not working on web server becasue it is disabled for security reasons.
Please tell me the other way that how can i do that??? Is it possible somehow using include() method???
Guys please help soon...
file_get_contents()disabled? (unlikely, nasty if so), isallow_url_fopendisabled (more likely)? If that is the case, is the curl extension available? If curl is available, use that.