dot Posted February 14, 2006 Report Share Posted February 14, 2006 mēģināju palaist valūtas skriptiņu ( šo te ) rakstaas "nevaru piesleegties". vaina nav skriptaa, bet gan serverii. mosh kaut ko neesmu uzinstaleejis.. paldies jau ieprieksh. Link to comment Share on other sites More sharing options...
v3rb0 Posted February 14, 2006 Report Share Posted February 14, 2006 ka tik šis http://lv2.php.net/manual/en/ref.filesyste...allow-url-fopen nav pie vainas. Link to comment Share on other sites More sharing options...
dot Posted February 14, 2006 Author Report Share Posted February 14, 2006 milzīgs paldies, tagad darbojas. Link to comment Share on other sites More sharing options...
Ugga Posted February 15, 2006 Report Share Posted February 15, 2006 Hmm..Iemaucu šo kodu no php.net: <?php $file = fopen ("http://localhost/index.php", "r"); if (!$file) { echo "<p>Unable to open remote file.\n"; exit; } while (!feof ($file)) { $line = fgets ($file, 1024); /* This only works if the title and its tags are on one line */ if (eregi ("<title>(.*)</title>", $line, $out)) { $title = $out[1]; break; } } fclose($file); ?> allow_url_fopen = On Kā palaižu skriptu tā Windows izmet :PHP Script Interpreter has encountered a problem and needs to close. We are sorry for the inconvenience. Error_log failā ir: Premature end of script headers: c:/php/php.exe. Kas par bumbām? Netieku pat tiktāl ka būtu "Unable To Open Remote File". Itkā viss ir pareizi Link to comment Share on other sites More sharing options...
Klez Posted February 15, 2006 Report Share Posted February 15, 2006 uzliec defaulto php.ini failu. php.ini-recomended tad vaidzeetu straadaat :P Link to comment Share on other sites More sharing options...
Recommended Posts