Idle Banter For non SV and non bike related chat (and the odd bit of humour - but if any post isn't suitable it'll get deleted real quick).![]() |
![]() |
|
Thread Tools |
![]() |
#1 |
The Sick Man
Mega Poster
Join Date: Nov 2004
Location: Peckham.SE.LDN
Posts: 4,768
|
![]()
Odd problem. I have a small php file that just proxys the data from one page to another so that the end user does not know the original url. Problem i am having is that it works on one machine and not the other.
Code:
$dataFile = fopen( "http://xx.xx.xx, "r" ) ; if ( $dataFile ) { while (!feof($dataFile)) { $buffer = fgets($dataFile, 4096); echo $buffer; } fclose($dataFile); } else { die( "fopen failed" ) ; } Any Ideas why? Not a major problem though. OS: XPSP2, IIS
__________________
OTR: KTM 690 Duke R 2015 Full Akro SIDELINE: Kwak ZX636 A1P 2002, Red, R&G's, Yoshi, Double Bubble Screen GONE: Kwak ZX-7R P1, Full Akro, Undertray, Screen GONE: SV650S K2 Very Bruised & Without Fairing, Motovation Frame Sliders, R&G Ally Sprocket Toe Protector, HEL 2 Line Setup, GSXR K1 600 RWU Forks, Barnett Clutch & Springs, Penske 8981 Shock, Gilles Ti Rearsets, Steel Barends, Scottoiler, AFAM Chain & Sprockets, Twin FIAMM Horns, Skidmarx Bellypan, Full Micron Zeta Steel System, Cut down undertay. Forum Problems & Information / Site Suggestions |
![]() |
![]() |
![]() |
#2 |
Guest
Posts: n/a
|
![]()
I wish i understood one word of that
![]() |
![]() |
![]() |
#3 |
Guest
Posts: n/a
|
![]()
are you escaping the backslashes in your URL? is your local webserver running linux?
there's a few problems with fopen() in a lot of PHP versions personally i'd not bother with it and use curl |
![]() |
![]() |
#4 | |
The Sick Man
Mega Poster
Join Date: Nov 2004
Location: Peckham.SE.LDN
Posts: 4,768
|
![]() Quote:
I guess i will have to use fsockopen
__________________
OTR: KTM 690 Duke R 2015 Full Akro SIDELINE: Kwak ZX636 A1P 2002, Red, R&G's, Yoshi, Double Bubble Screen GONE: Kwak ZX-7R P1, Full Akro, Undertray, Screen GONE: SV650S K2 Very Bruised & Without Fairing, Motovation Frame Sliders, R&G Ally Sprocket Toe Protector, HEL 2 Line Setup, GSXR K1 600 RWU Forks, Barnett Clutch & Springs, Penske 8981 Shock, Gilles Ti Rearsets, Steel Barends, Scottoiler, AFAM Chain & Sprockets, Twin FIAMM Horns, Skidmarx Bellypan, Full Micron Zeta Steel System, Cut down undertay. Forum Problems & Information / Site Suggestions |
|
![]() |
![]() |
![]() |
#5 |
Guest
Posts: n/a
|
![]()
bloody long way round, try this
<? require ("http://www.x.x.x.x"); ?> or <? include ("http://www.x.x.x.x"); ?> |
![]() |
![]() |
#6 |
The Sick Man
Mega Poster
Join Date: Nov 2004
Location: Peckham.SE.LDN
Posts: 4,768
|
![]()
Nop does not work either. Weird there may be a problem in php on IIS.
__________________
OTR: KTM 690 Duke R 2015 Full Akro SIDELINE: Kwak ZX636 A1P 2002, Red, R&G's, Yoshi, Double Bubble Screen GONE: Kwak ZX-7R P1, Full Akro, Undertray, Screen GONE: SV650S K2 Very Bruised & Without Fairing, Motovation Frame Sliders, R&G Ally Sprocket Toe Protector, HEL 2 Line Setup, GSXR K1 600 RWU Forks, Barnett Clutch & Springs, Penske 8981 Shock, Gilles Ti Rearsets, Steel Barends, Scottoiler, AFAM Chain & Sprockets, Twin FIAMM Horns, Skidmarx Bellypan, Full Micron Zeta Steel System, Cut down undertay. Forum Problems & Information / Site Suggestions |
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
My issue.......... | jumjum_0214 | Bikes - Talk & Issues | 5 | 09-03-08 06:27 PM |
Ladies Bike gear - Small or Extra Small! | StreetHawk | Stuff Wanted | 8 | 07-12-07 06:18 PM |
Is this an issue? | The Mass | SV Talk, Tuning & Tweaking | 5 | 24-01-06 11:55 AM |