breksis Posted January 25, 2005 Report Share Posted January 25, 2005 (edited) nu es uztaisij sms sender, bet man raada kljuudu: Parse error: parse error, unexpected '@' in c:\blog\sms_send.php on line 36 .. @Mail($addr,NULL,$real_txt,"From: sms@php.lv") or die(print_err $reason,$num,$real_txt)); vai tur man kautkas ir nepareizi? Edited January 25, 2005 by breksis Link to comment Share on other sites More sharing options...
Venom Posted January 25, 2005 Report Share Posted January 25, 2005 visdrīzāk rindiņā pirms tam neieliki beigu semikolu vai } NB: funkcijas php rakstās ar mazo burtu (@mail), null - arī /me neko nezin par print_err, pie tam ar VB līdzīgu izsaukšanas sintaksi Link to comment Share on other sites More sharing options...
blackhalt Posted January 25, 2005 Report Share Posted January 25, 2005 function.mail <?php mail("joecool@example.com", "My Subject", "Line 1\nLine 2\nLine 3"); ?> itogo šitā: <?php mail($addr,false,$real_txt,'From: sms@php.lv')or die('nesanaaca'); ?> Link to comment Share on other sites More sharing options...
breksis Posted January 26, 2005 Author Report Share Posted January 26, 2005 nu to taka kautkaa izlaboju bet tagad atkal metas klaat cita probleema: Parse error: parse error, unexpected '{' in c:\blog\sms_send.php on line 86 un kods tur ir shaads: //.. un operators ir LMT ... if (($prefix == "64") || ($prefix == "90" || ($prefix == "91") || ($prefix == "92" || ($prefix == "93") || ($prefix == "94")){ $addr = "371".$num."@smsmail.lmt.lv"; // .. suutam zinju caur LMT mail gateway.. if (($prefix == "64") || ($prefix == "90" || ($prefix == "91") || ($prefix == "92" || ($prefix == "93") || ($prefix == "94")){ - taa ir taa 86 rindinja.. Link to comment Share on other sites More sharing options...
bubu Posted January 26, 2005 Report Share Posted January 26, 2005 Saskaiti atverošās iekavas un aizverošās tajā rindiņā. (hints: skaitam jāsakrīt ;) Link to comment Share on other sites More sharing options...
Venom Posted January 26, 2005 Report Share Posted January 26, 2005 ā) izmanto redaktoru, kas iekrāso pāra (,{,[ - tad redzēsi, vai pareizs iekavskaits, piem. manu VenPad'u (sk. www.ofmy.info) bē) stringiem ', e.g. 'text', nevis "text", ja vien nav lielas vajadzības ielikt tajos iekšā mainīgo kā "vērtība $y vienāda ar $x", un arī tad labāk lietot 'vērtība vienāda '.$y.' vienāda ar '.$x bē) tev ifu || aiziet aizvien dziļāk un dziļāk ( a || ( b || ( c || d ) ) ) - tā vajag? varbūt tu meklē kaut ko līdzīgu if (in_array($prefix,array(64,90,91,92,93,94))) vai vismaz switch ($prefix) { case 64: case 90: case 'pēdējā lnt kombinācija': $addr = "371".$num."@smsmail.lmt.lv"; break; case 'xx': case 'xy': $addr='...tele2...'; break; default: 'uz tādu nesūta'; } NB: vai tad 371numurs@smsmail.lmt.lv vēl strādā? Link to comment Share on other sites More sharing options...
breksis Posted January 26, 2005 Author Report Share Posted January 26, 2005 Vai sheit if (strlen($sms) > 148) { ir kautkas nepareizs? no shitaas vietas uzraada kljuudu Link to comment Share on other sites More sharing options...
Venom Posted January 26, 2005 Report Share Posted January 26, 2005 skaties apkārt, šeit varētu būt ok Link to comment Share on other sites More sharing options...
bubu Posted January 26, 2005 Report Share Posted January 26, 2005 Atkarīgs no tā, kas ir $sms mainīgajā. Link to comment Share on other sites More sharing options...
breksis Posted January 26, 2005 Author Report Share Posted January 26, 2005 Venom tas VenPad baigi lapz, bet nevar uztaisiit Preview .. KAS PA LIETU???????? Link to comment Share on other sites More sharing options...
Venom Posted January 26, 2005 Report Share Posted January 26, 2005 Venom tas VenPad baigi lapz, bet nevar uztaisiit Preview .. KAS PA LIETU???????? 13088[/snapback] ja taisi php - tad jāizmanto File>Server File (Ctrl+D) augšējā inputā izvēlies *.php, apakšā - adresi kur tas viss rādīsies (e.g. http://127.0.0.1/test/) ja kaut kāds nestandarta paplašinājums - aizver VP, sameklē venpad.ini BrowsableExt rindiņu un pievieno tur ar komatu apskaties arī, vai gribi, lai pie preview php vai kāds cits fails tiku automātiski saglabāts, turpat pie SaveOnPreviewCompileExt Link to comment Share on other sites More sharing options...
kirils Posted January 30, 2005 Report Share Posted January 30, 2005 @Mail($addr,NULL,$real_txt,"From: sms@php.lv") or die(print_err $reason,$num,$real_txt)); 13049[/snapback] nevajagadzeetu izmantot sveshus domeenus, suutot meilus. paldies. Link to comment Share on other sites More sharing options...
Recommended Posts