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:\wamp\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 237160 {main}( ) ..\index.php:0
2 0.0004 240232 require( ‘C:\wamp\www\mmyo\wp-blog-header.php’ ) ..\index.php:17
3 0.5952 32541432 require_once( ‘C:\wamp\www\mmyo\wp-includes\template-loader.php’ ) ..\wp-blog-header.php:19
4 0.5980 32556064 include( ‘C:\wamp\www\mmyo\wp-content\themes\mmyo\page.php’ ) ..\template-loader.php:74
5 0.8092 33401304 get_template_part( ) ..\page.php:23
6 0.8093 33402200 locate_template( ) ..\general-template.php:155
7 0.8094 33402336 load_template( ) ..\template.php:647
8 0.8097 33423584 require( ‘C:\wamp\www\mmyo\wp-content\themes\mmyo\content\content-page.php’ ) ..\template.php:690
9 0.8123 33464080 the_content( ) ..\content-page.php:20
10 0.8126 33465872 apply_filters( ) ..\post-template.php:240
11 0.8126 33467472 WP_Hook->apply_filters( ) ..\plugin.php:203
12 0.8129 33470800 call_user_func_array:{C:\wamp\www\mmyo\wp-includes\class-wp-hook.php:286}
( )
..\class-wp-hook.php:286
13 0.8129 33471200 will_bontrager_insert_php( ) ..\class-wp-hook.php:286
14 0.8130 33502888 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
15 0.8130 33503568 file_get_contents
( )
..\insert_php.php(48) : eval()’d code:7

( ! ) Warning: Invalid argument supplied for foreach() in C:\wamp\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 237160 {main}( ) ..\index.php:0
2 0.0004 240232 require( ‘C:\wamp\www\mmyo\wp-blog-header.php’ ) ..\index.php:17
3 0.5952 32541432 require_once( ‘C:\wamp\www\mmyo\wp-includes\template-loader.php’ ) ..\wp-blog-header.php:19
4 0.5980 32556064 include( ‘C:\wamp\www\mmyo\wp-content\themes\mmyo\page.php’ ) ..\template-loader.php:74
5 0.8092 33401304 get_template_part( ) ..\page.php:23
6 0.8093 33402200 locate_template( ) ..\general-template.php:155
7 0.8094 33402336 load_template( ) ..\template.php:647
8 0.8097 33423584 require( ‘C:\wamp\www\mmyo\wp-content\themes\mmyo\content\content-page.php’ ) ..\template.php:690
9 0.8123 33464080 the_content( ) ..\content-page.php:20
10 0.8126 33465872 apply_filters( ) ..\post-template.php:240
11 0.8126 33467472 WP_Hook->apply_filters( ) ..\plugin.php:203
12 0.8129 33470800 call_user_func_array:{C:\wamp\www\mmyo\wp-includes\class-wp-hook.php:286}
( )
..\class-wp-hook.php:286
13 0.8129 33471200 will_bontrager_insert_php( ) ..\class-wp-hook.php:286
14 0.8130 33502888 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