2x Dell UP2716D | R9 7950X | 128GB RAM | 980 Pro 2TB x2 | RTX2070 Super
.oisyn: Windows is net zo slecht in commandline als Linux in GUI
PS. je topic staat in het verkeerde deel van het forum. In het juiste deel van het forum staat ook een tip naar Debugging tips
[ Voor 55% gewijzigd door Herko_ter_Horst op 07-01-2011 20:23 ]
"Any sufficiently advanced technology is indistinguishable from magic."
is de melding
Op een andere computer werkt dit wel
2x Dell UP2716D | R9 7950X | 128GB RAM | 980 Pro 2TB x2 | RTX2070 Super
.oisyn: Windows is net zo slecht in commandline als Linux in GUI
Dit werkt wel:
1
2
3
4
5
6
7
8
9
10
11
| $url = 'http://gathering.tweakers.net'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); // zie de ; achter deze regel curl_setopt($ch, CURLOPT_FAILONERROR, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0)'); $html = curl_exec($ch); curl_close($ch); echo $html; |
[ Voor 89% gewijzigd door mithras op 07-01-2011 20:24 ]
Dan weet je ook waar het aan ligt, en dat is de installatie. En een ; achter regel 4 zoals Matis aangeeft.F.West98 schreef op vrijdag 07 januari 2011 @ 20:22:
Parse error: syntax error, unexpected T_STRING in C:\Users\Floris\Documents\PHP\test3.php on line 5
is de melding
Op een andere computer werkt dit wel
[ Voor 5% gewijzigd door RedHat op 07-01-2011 20:24 ]
"Any sufficiently advanced technology is indistinguishable from magic."
jaHerko_ter_Horst schreef op vrijdag 07 januari 2011 @ 20:24:
Is regel 5 de regel 5 uit je TS?
die andere computer is een ander script, daar werkt curl welRedHat schreef op vrijdag 07 januari 2011 @ 20:24:
[...]
Dan weet je ook waar het aan ligt, en dat is de installatie. En een ; achter regel 4 zoals Matis aangeeft.
eens kijken!mithras schreef op vrijdag 07 januari 2011 @ 20:23:
Je mist een ; achter regel vier
Dit werkt wel:
PHP:
1 2 3 4 5 6 7 8 9 10 11 $url = 'http://gathering.tweakers.net'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); // zie de ; achter deze regel curl_setopt($ch, CURLOPT_FAILONERROR, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0)'); $html = curl_exec($ch); curl_close($ch); echo $html;
volgende error:
Fatal error: Call to undefined function curl_init() in C:\Users\Floris\Documents\PHP\test3.php on line 3
[ Voor 6% gewijzigd door F.West98 op 07-01-2011 20:30 ]
2x Dell UP2716D | R9 7950X | 128GB RAM | 980 Pro 2TB x2 | RTX2070 Super
.oisyn: Windows is net zo slecht in commandline als Linux in GUI
"I had a problem, I solved it with regular expressions. Now I have two problems". That's shows a lack of appreciation for regular expressions: "I know have _star_ problems" --Kevlin Henney
Dit topic is gesloten.
![]()