v3rb0 Posted January 7, 2006 Report Share Posted January 7, 2006 void header ( string string [, bool replace [, int http_response_code]] ) nu nevajag tev tur header() izmantot. Link to comment Share on other sites More sharing options...
Vebers Posted January 7, 2006 Report Share Posted January 7, 2006 Ja nemaldos, tad pēc php.ini izmaiņām ir jārestartē apacis maldies. Link to comment Share on other sites More sharing options...
SkyD Posted January 7, 2006 Report Share Posted January 7, 2006 void header ( string string [, bool replace [, int http_response_code]] ) Un tagad paskaidro, ko tas noziimee.. Kas jaliek katraa vietaa iekshaa, vai tam taa japaliek?!! Link to comment Share on other sites More sharing options...
v3rb0 Posted January 7, 2006 Report Share Posted January 7, 2006 nevajag tev header() izmantot bet labak atver php MANUALI un izlasi par header f-ju. Link to comment Share on other sites More sharing options...
SkyD Posted January 7, 2006 Report Share Posted January 7, 2006 Nu jaa, ja man php.ini failaa ir uzstaadiits, no kaa suuta, tad nevajag izmantot to headeri, bet kapēc man viņš vienalga izspļauj, ka nav uzstādīts php.lv sendmail_from ??!! Link to comment Share on other sites More sharing options...
v3rb0 Posted January 7, 2006 Report Share Posted January 7, 2006 ai.. Link to comment Share on other sites More sharing options...
SkyD Posted January 7, 2006 Report Share Posted January 7, 2006 :DD nokaitinaaju liidz sirds dziljumiem, ne?:DD~~ Link to comment Share on other sites More sharing options...
php_Stopp Posted January 7, 2006 Report Share Posted January 7, 2006 litt, nav jārestartē. SkyD, php.ini :) Link to comment Share on other sites More sharing options...
SkyD Posted January 7, 2006 Report Share Posted January 7, 2006 nu pa.. juus man te vislaik pa to php.ini, bet tur man viss ir ok. SMTP = smtp.apollo.lv = manu provaideri, SMTP ports = 25, sendmail_from = skyd@inbox.lv .. Viss!, bet raada ka sendmail_from nav uzlikts!!! Link to comment Share on other sites More sharing options...
Klez Posted January 7, 2006 Report Share Posted January 7, 2006 paraadi error no php, ka sendmail nau uizlikts ... mok tu konfiguree nepareizo php.ini failu??? Link to comment Share on other sites More sharing options...
Vebers Posted January 7, 2006 Report Share Posted January 7, 2006 Tu novaaci to ";" taas sendmail_from rindinjas saakumaa? tas ir atkomentēji to rindiņu ? Link to comment Share on other sites More sharing options...
SkyD Posted January 7, 2006 Report Share Posted January 7, 2006 (edited) jaa novaacu.. edit: Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in c:\web\vg\index.php on line 2 Errors! Un php.ini man atrodas F:\php-4.4.0-Win32\php.ini un F:\windows\php.ini - abos tika redigjeets .. A mosh PHP.ini failaa ir jabuut noraadei uz windows mapi, kur atrodas tas php.ini fails, tjip kuraa diskaa..:P Edited January 7, 2006 by SkyD Link to comment Share on other sites More sharing options...
Vebers Posted January 7, 2006 Report Share Posted January 7, 2006 (edited) ieliec tikai windows mapee.. nevar buut, ka ja vinsh ir uzlikts, bet parada ka nav uzlikts.. Edited January 7, 2006 by MakaTaNaw Link to comment Share on other sites More sharing options...
SkyD Posted January 7, 2006 Report Share Posted January 7, 2006 Nu taa ir.. :D tur taa shtelle sleepjas..;P Link to comment Share on other sites More sharing options...
Aleksandrs Posted January 7, 2006 Report Share Posted January 7, 2006 Pats kods nav uzrakstīts pareizi, manuālī taču ir rakstīts piemērs, to būtu nokopējis vispirms.. <?php $to = 'nobody@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com'; mail($to, $subject, $message, $headers); ?> Un papildus var sākumā pierakstīt: ini_set('sendmail_from', 'pasts@pasts.elve'); Varbūt tas līdzēs kļūdu apslāpēt. Link to comment Share on other sites More sharing options...
Recommended Posts