hokss Posted November 5, 2011 Report Share Posted November 5, 2011 (edited) Gribēju patestēt dažus no saviem php skriptiem uz datora pirms publicēt. Vai kāds nezin programmu ar kuras palīdzību to varētu izdarīt uz datora nevis online? Pamēģināju XAMPP, bet tā īsti neizdevās panākt rezultātus. P.S. man ir vista home premium. Edited November 5, 2011 by hokss Quote Link to comment Share on other sites More sharing options...
briedis Posted November 5, 2011 Report Share Posted November 5, 2011 XAMPP ir vienkāršākais veids. Kāpēc tad nesanāca ar XAMPP? Quote Link to comment Share on other sites More sharing options...
marrtins Posted November 5, 2011 Report Share Posted November 5, 2011 Kur tad tu tos "savus" PHP skriptus veidoji? Quote Link to comment Share on other sites More sharing options...
daGrevis Posted November 5, 2011 Report Share Posted November 5, 2011 Viņš raksta bez testēšanas (un te nav runa par junit testiem vai xdebugu, bet gan par vienkāršu palaišanu). Quote Link to comment Share on other sites More sharing options...
codez Posted November 5, 2011 Report Share Posted November 5, 2011 Kas jūs nemākas 10 000 rindiņu kodu uzrakstīt bez nevienas kļūdas? Mīkstie! Quote Link to comment Share on other sites More sharing options...
briedis Posted November 5, 2011 Report Share Posted November 5, 2011 Kas jūs nemākas 10 000 rindiņu kodu uzrakstīt bez nevienas kļūdas? Mīkstie! Uzrakstīšu ļimonu. Bet par kādām kļūdām ir runa? Sintakses? :D Quote Link to comment Share on other sites More sharing options...
daGrevis Posted November 5, 2011 Report Share Posted November 5, 2011 Man sintakses kļūdas nav bijušas no tā brīža, kad sāku izmantot IDE. :D Quote Link to comment Share on other sites More sharing options...
Kemito Posted November 5, 2011 Report Share Posted November 5, 2011 1000 rindiņas bez kļūdām, 4 no rīta pēc kara, darot to mežā, teltī pilnā ar odiem, codez - varēsi? Kas skaitās "tā īsti nesanāca" ? XAMPP, AppServ ir lietas, kas tev palīdzēs to visu izdarīt kā nākas, bonusā uzmet kādu YouTube klipu kā to visus sastellēt un vispār būs jauki. Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted November 5, 2011 Report Share Posted November 5, 2011 1000 rindiņas bez kļūdām, 4 no rīta pēc kara, darot to mežā, teltī pilnā ar odiem,... .. uz avīzes malām, ar neasu zīmuli... Quote Link to comment Share on other sites More sharing options...
hokss Posted November 6, 2011 Author Report Share Posted November 6, 2011 Viņš raksta bez testēšanas (un te nav runa par junit testiem vai xdebugu, bet gan par vienkāršu palaišanu). tieshi ta. PHP skriptus pats neakstu bet salasu internetā. līdz ar to pirms ielādēt mājaslapu uz hostu gribētos pārbaudīt vai viss strādā takā tam vajadzētu. nekas jau tur nopietns nav. pāris hit counter un reitingi plus epasta formas, bet tomēr gribētos redzēt kā un kas strādā pirms publicēju. tātad ir kādi ieteikumi? Quote Link to comment Share on other sites More sharing options...
briedis Posted November 6, 2011 Report Share Posted November 6, 2011 XAMPP johaidī! Nekā VIENKĀRŠĀKA nav! :) Quote Link to comment Share on other sites More sharing options...
nikidijs Posted November 6, 2011 Report Share Posted November 6, 2011 AppServ Quote Link to comment Share on other sites More sharing options...
hokss Posted November 6, 2011 Author Report Share Posted November 6, 2011 (edited) XAMPP johaidī! Nekā VIENKĀRŠĀKA nav! :) johaidii beidzot pieleca kaa visu pareizi uzstaadiit. tagad jautaajums mana epasta forma nesuta epastu uz web mail no lokalhost - vai tas ir norm?? vai jameklē cita? <?php /* This first bit sets the email address that you want the form to be submitted to. You will need to change this value to a valid email address that you can access. */ $webmaster_email = "admin@mansdomens.lv"; /* This bit sets the URLs of the supporting pages. If you change the names of any of the pages, you will need to change the values here. */ $feedback_page = "Rakstimums.html"; $error_page = "kluda.html"; $thankyou_page = "Paldies.html"; /* This next bit loads the form field data into variables. If you add a form field, you will need to add it here. */ $email_address = $_REQUEST['email_address'] ; $comments = $_REQUEST['comments'] ; /* The following function checks for email injection. Specifically, it checks for carriage returns - typically used by spammers to inject a CC list. */ function isInjected($str) { $injections = array('(\n+)', '(\r+)', '(\t+)', '(%0A+)', '(%0D+)', '(%08+)', '(%09+)' ); $inject = join('|', $injections); $inject = "/$inject/i"; if(preg_match($inject,$str)) { return true; } else { return false; } } // If the user tries to access this script directly, redirect them to the feedback form, if (!isset($_REQUEST['email_address'])) { header( "Location: $feedback_page" ); } // If the form fields are empty, redirect to the error page. elseif (empty($email_address) || empty($comments)) { header( "Location: $error_page" ); } // If email injection is detected, redirect to the error page. elseif ( isInjected($email_address) ) { header( "Location: $error_page" ); } // If we passed all previous tests, send the email then redirect to the thank you page. else { mail( "$webmaster_email", "Feedback Form Results", $comments, "From: $email_address" ); header( "Location: $thankyou_page" ); } ?> $webmaster_email = "admin@mansdomens.lv"; biju nomainijis uz savu epasta adresi. Edited November 6, 2011 by hokss Quote Link to comment Share on other sites More sharing options...
LorDRameX Posted November 6, 2011 Report Share Posted November 6, 2011 normaali provaideri shaadus "homemade smtp" serverus norauj uz /dev/null la ipeecatam nebuutu jaskaidrojas kapeec kautkas kaut kur spamo Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted November 6, 2011 Report Share Posted November 6, 2011 (edited) normaali provaideri shaadus "homemade smtp" serverus norauj uz /dev/null la ipeecatam nebuutu jaskaidrojas kapeec kautkas kaut kur spamo nekas neko nenorauj .. Vienkarshi normali japiekonfiguree PHP ( prieksh wina) janorada Provaidera milserveris .. tas daras pie PHP.INI smekle, SMTP konfigurcijas liniju un nomaini uz sava provaidera milserveri ( balticomam ir shadi) --- SMTP = mail.balticom.lv smtp_port = 25 -- parstarte apachi un viss ies bez problemaam . Edited November 6, 2011 by Grey_Wolf Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.