Ders İçeriği

( ! ) Warning: file_get_contents(http://10.6.0.22/WebApplication1/webresources/test/idari/icerigi): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error
in C:\wamp64\www\mmyo\wp-content\plugins\insert-php\insert_php.php(48) : eval()’d code on line 7
Call Stack
# Time Memory Function Location
1 0.0002 400504 {main}( ) …\index.php:0
2 0.0003 400792 require( ‘C:\wamp64\www\mmyo\wp-blog-header.php’ ) …\index.php:17
3 0.1501 5896648 require_once( ‘C:\wamp64\www\mmyo\wp-includes\template-loader.php’ ) …\wp-blog-header.php:19
4 0.1516 5963472 include( ‘C:\wamp64\www\mmyo\wp-content\themes\mmyo\page.php’ ) …\template-loader.php:74
5 0.2955 6868960 get_template_part( ) …\page.php:23
6 0.2955 6869504 locate_template( ) …\general-template.php:155
7 0.2957 6869600 load_template( ) …\template.php:647
8 0.2957 6869944 require( ‘C:\wamp64\www\mmyo\wp-content\themes\mmyo\content\content-page.php’ ) …\template.php:690
9 0.2972 6901928 the_content( ) …\content-page.php:20
10 0.2974 6903184 apply_filters( ) …\post-template.php:240
11 0.2974 6903584 WP_Hook->apply_filters( ) …\plugin.php:203
12 0.2975 6905352 will_bontrager_insert_php( ) …\class-wp-hook.php:286
13 0.2976 6935072 eval(
$actual_link = “http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]”;
$whatIWant = substr($actual_link , strpos($actual_link , “-“) + 1);
$whatIWant = substr($whatIWant, 0, -1);

$json_url = “http://10.6.0.22/WebApplication1/webresources/test/idari/”.$whatIWant;
$json = file_get_contents($json_url);
$data = json_decode($json, TRUE);

$person=””;

$width = 120;
$height = 160;
echo ‘

‘;
foreach($data as $akd){
$image = $akd[‘persResim’];

$person .=”

“;

$person .= “

“;
}

echo $person;

echo “


“.$akd[‘yontAd’].”

“;

$person .= $akd[‘utipAd’].”  “.$akd[‘persAd’].”  “.$akd[‘persSoyad’].”

“;
$person .= $akd[‘kullMail’].”

“;
$person .= “ABD:”.$akd[‘unvan’].”

“;

$deney=DETAY;
$url=$akd[‘persId’];

$person .= ““.$deney.”

“;
)

…\insert_php.php:48
14 0.2976 6935296 file_get_contents
( )
…\insert_php.php(48) : eval()’d code:7

( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp64\www\mmyo\wp-content\plugins\insert-php\insert_php.php(48) : eval()’d code on line 15
Call Stack
# Time Memory Function Location
1 0.0002 400504 {main}( ) …\index.php:0
2 0.0003 400792 require( ‘C:\wamp64\www\mmyo\wp-blog-header.php’ ) …\index.php:17
3 0.1501 5896648 require_once( ‘C:\wamp64\www\mmyo\wp-includes\template-loader.php’ ) …\wp-blog-header.php:19
4 0.1516 5963472 include( ‘C:\wamp64\www\mmyo\wp-content\themes\mmyo\page.php’ ) …\template-loader.php:74
5 0.2955 6868960 get_template_part( ) …\page.php:23
6 0.2955 6869504 locate_template( ) …\general-template.php:155
7 0.2957 6869600 load_template( ) …\template.php:647
8 0.2957 6869944 require( ‘C:\wamp64\www\mmyo\wp-content\themes\mmyo\content\content-page.php’ ) …\template.php:690
9 0.2972 6901928 the_content( ) …\content-page.php:20
10 0.2974 6903184 apply_filters( ) …\post-template.php:240
11 0.2974 6903584 WP_Hook->apply_filters( ) …\plugin.php:203
12 0.2975 6905352 will_bontrager_insert_php( ) …\class-wp-hook.php:286
13 0.2976 6935072 eval(
$actual_link = “http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]”;
$whatIWant = substr($actual_link , strpos($actual_link , “-“) + 1);
$whatIWant = substr($whatIWant, 0, -1);

$json_url = “http://10.6.0.22/WebApplication1/webresources/test/idari/”.$whatIWant;
$json = file_get_contents($json_url);
$data = json_decode($json, TRUE);

$person=””;

$width = 120;
$height = 160;
echo ‘

‘;
foreach($data as $akd){
$image = $akd[‘persResim’];

$person .=”

“;

$person .= “

“;
}

echo $person;

echo “


“.$akd[‘yontAd’].”

“;

$person .= $akd[‘utipAd’].”  “.$akd[‘persAd’].”  “.$akd[‘persSoyad’].”

“;
$person .= $akd[‘kullMail’].”

“;
$person .= “ABD:”.$akd[‘unvan’].”

“;

$deney=DETAY;
$url=$akd[‘persId’];

$person .= ““.$deney.”

“;
)

…\insert_php.php:48


Comments are closed