ray Posted December 7, 2007 Report Share Posted December 7, 2007 Lapai dizains veidots tā, ka lapai mainā tikai vidus, tāpēc arī pie formu pievienošanas un redirect tiks izmests Header Already Sent, kā panākt to, ka vispirms nosūtās header? Link to comment Share on other sites More sharing options...
Val Posted December 7, 2007 Report Share Posted December 7, 2007 http://lv2.php.net/outcontrol Link to comment Share on other sites More sharing options...
andrisp Posted December 7, 2007 Report Share Posted December 7, 2007 http://php.lv/f/index.php?showtopic=7294 Link to comment Share on other sites More sharing options...
ray Posted December 7, 2007 Author Report Share Posted December 7, 2007 (edited) tos abus minētos es esmu lasījis un zinu. man vairāk interesē tas, kā lai pārtaisa lapu tā, ka var redirect, neizmantojot output_buffering. Edited December 7, 2007 by ray Link to comment Share on other sites More sharing options...
andrisp Posted December 7, 2007 Report Share Posted December 7, 2007 Vai nu izmanto output_buffering, vai arī pārtaisi sistēmu tā, ka visi redirekti būs tikai pirms outputa. Es tiešām citu varianu nezinu. Link to comment Share on other sites More sharing options...
ray Posted December 7, 2007 Author Report Share Posted December 7, 2007 Nevajag taisīt muļķīgas QUOTEs bet kā ir tām citām lapām, kur ar include izsauc vajadzīgo php failu, kurā ir forma? Link to comment Share on other sites More sharing options...
bubu Posted December 7, 2007 Report Share Posted December 7, 2007 Nu vēl var manuāli bufferot datus: $text = "<html>"; $text .= "... <a href= '...'"; header("kruts headeris"); $text .= "...</html>"; echo $text; Bet tiešām labāk būs, ja lietosi php piedāvāto iespēju output bufferim. Link to comment Share on other sites More sharing options...
Recommended Posts