Eurobellen file_get_contents vervangen door curl

Gestart doorDgame7 reacties299 weergaven

8 berichten · pagina 1 van 1

Dgame

Lid · Topicstarter

Berichten
166
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hey,

Omdat op sommige servers "file_get_contents" uitgeschakeld is heb ik a.d.h.v curl een andere manier gevonden .

Dus je moet

[COLOR= #0000BB]<?php
$ebcheck[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"http://www.eurobellen.nl/bel/check.php?userid=HIER_JE_USERNAME&ip="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"&ebpin="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ebpin[/COLOR][COLOR= #007700]]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ebcheck[/COLOR][COLOR= #007700]!=[/COLOR][COLOR= #DD0000]"OK"[/COLOR][COLOR= #007700]) {[/COLOR]
   [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Pincode validatie mislukt ($ebcheck)"[/COLOR][COLOR= #007700];[/COLOR]
   [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
}[/COLOR]
?>


vervangen door

[COLOR= #0000BB]<?php
$c[/COLOR] [COLOR= #007700]=[/COLOR] curl_init[COLOR= #007700]();[/COLOR]
curl_setopt[COLOR= #007700]([/COLOR][COLOR= #0000BB]$c[/COLOR][COLOR= #007700],[/COLOR] CURLOPT_RETURNTRANSFER[COLOR= #007700],[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]);[/COLOR]
curl_setopt[COLOR= #007700]([/COLOR][COLOR= #0000BB]$c[/COLOR][COLOR= #007700],[/COLOR] CURLOPT_URL[COLOR= #007700],[/COLOR] [COLOR= #DD0000]"http://www.eurobellen.nl/bel/check.php?userid=HIER_JE_USERNAME&ip="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"&ebpin="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ebpin[/COLOR][COLOR= #007700]]);[/COLOR]
[COLOR= #0000BB]$ebcheck[/COLOR] [COLOR= #007700]=[/COLOR] curl_exec[COLOR= #007700]([/COLOR][COLOR= #0000BB]$c[/COLOR][COLOR= #007700]);[/COLOR]
curl_close[COLOR= #007700]([/COLOR][COLOR= #0000BB]$c[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ebcheck[/COLOR][COLOR= #007700]!=[/COLOR][COLOR= #DD0000]"OK"[/COLOR][COLOR= #007700]) {[/COLOR]
   [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Pincode validatie mislukt ($ebcheck)"[/COLOR][COLOR= #007700];[/COLOR]
   [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];[/COLOR]

?>


Hopelijk heb je er iets aan smile
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Als ze file_get_contents al niet toestaan denk ik ook niet dat ze cURL wel toestaan of uberhaubt geinsteleerd hebben staan pompom
0
Dgame

Lid · Topicstarter

Berichten
166
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Guildjuhh:
Als ze file_get_contents al niet toestaan denk ik ook niet dat ze cURL wel toestaan of uberhaubt geinsteleerd hebben staan pompom
Dit werkt wel op de servers van versio smileWant daar hebben ze file_get_contents uitgezet.
Maar curl niet smile
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Dan zijn ze daar echt stom bezig, maarja. Opzich best handig
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Een goeie hoster zet file_get_contents() sowieso niet uit voor zn klanten. emo
0
Dgame

Lid · Topicstarter

Berichten
166
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Lennard schreef:
Een goeie hoster zet file_get_contents() sowieso niet uit voor zn klanten. emo
Ja idd, maar die zei uit veiligheidsredenen heeft die dat uit moeten zetten sadley
Maar er zullen zeker mensen zijn die dit nodig zullen hebben. smile
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
cURL kan ergere dingen doen dan file_get_contents()

He lennard schater
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
emo
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren