leonids Posted June 1, 2006 Report Share Posted June 1, 2006 Vajadzeetu dabuut informaaciju no php skripta uz teksta failu bez informaacijas par php. Ir php skripts, Uz Windowsa uzliku php 4.4.2. Palaizhu: c:/php.exe c:/lapa.php > rezultaats.txt Viss sanaak, tikai nevaru dabuut nost: "X-Powered-By: PHP/4.4.2 Content-type: text/html " Izpeetiiju arii php.ini failu, bet neko neatradu... . Pashlaik izvadiitais fails izskataas shaadi: X-Powered-By: PHP/4.4.2 Content-type: text/html Bernedīne, Biruta, Mairita Link to comment Share on other sites More sharing options...
Delfins Posted June 1, 2006 Report Share Posted June 1, 2006 Viss ir pareizi... 1.) Risinājums var būt vienāršs, neko nekodējot.. wget http://localhost/lapa.php [parametrus paskaties pats] 2.) Vai arī pārkodet .php, lai tas savu output gāž uz failu... Faila sākumā: ob_start(); Faila beigās: file_put_contents( 'fails.txt', ob_get_contents() ); //ob_end_clean(); Link to comment Share on other sites More sharing options...
bubu Posted June 1, 2006 Report Share Posted June 1, 2006 Nevajag laist php cgi variantu. Ceturtajam php ir direktorija cli, kurā ir php.exe normāla versija (tb netaisa nekādus html headeru outputus). To arī vajag laist. Link to comment Share on other sites More sharing options...
Recommended Posts