<?php $originalString = "Pritom K Mondal, 0154785"; function ord2($s2) { return "&#" . ord($s2) . ";"; } echo preg_replace("/[^a-zA-Z0-9]/e", "ord2('\\0')", $originalString) ?>
And output will be as:
Pritom K Mondal, 0154785
<?php $originalString = "Pritom K Mondal, 0154785"; function ord2($s2) { return "&#" . ord($s2) . ";"; } echo preg_replace("/[^a-zA-Z0-9]/e", "ord2('\\0')", $originalString) ?>
Pritom K Mondal, 0154785
eWayServiceLinkURL: TEST: https://www.eway.com.au/gateway/ManagedPaymentService/test/managedCreditCardPayment.asmx LIVE: https://www.eway.com.au/gateway/ManagedPaymentService/managedCreditCardPayment.asmx eWayProcessPaymentURL: TEST: https://www.eway.com.au/gateway/managedpayment/ProcessPayment LIVE: https://www.eway.com.au/gateway/managedpayment/ProcessPayment eWaySOAPActionURL TEST: https://www.eway.com.au/gateway/managedpayment LIVE: https://www.eway.com.au/gateway/managedpayment eWayDirectPaymentURL: TEST: https://www.eway.com.au/gateway_cvn/xmltest/testpage.asp LIVE: https://www.eway.com.au/gateway/xmlpayment.asp eWAYCustomerID: TEST: 87654321 Username: TEST: test@eway.com.au Password: TEST: test123 Credit Card: TEST: 4444333322221111 Credit Card CVV: TEST: 123 (or any other 3 or 4 digit number) Credit Card Expiry: TEST: 01/15 (any valid date) Credit Card Name: TEST: test (or any other valid name)
set PATH=C:\Program Files\Java\jdk1.6.0_24\bin;%PATH%
set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_24
setenv PATH /usr/local/jdk1.6.0_24/bin:$PATH
setenv JAVA_HOME /usr/local/jdk1.6.0_24
%C:\eclipse\eclipse.exe
$/usr/local/eclipse/eclipse
package com.pritom.code;
public class FirstSpring {
private String message;
public void setMessage(String message){
this.message = message;
}
public void getMessage(){
System.out.println("I am writting from mainApplication: " + message);
}
}
package com.pritom.code;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class MainApplication {
public static void main(String[] args) {
ApplicationContext context = new ClassPathXmlApplicationContext("Beans.xml");
FirstSpring obj = (FirstSpring) context.getBean("firstSpring");
obj.getMessage();
obj.setMessage("New Message");
obj.getMessage();
}
}
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> <bean id="firstSpring" class="com.pritom.code.FirstSpring"> <property name="message" value="First Spring!"/> </bean> </beans>
I am writting from mainApplication: First Spring!
I am writting from mainApplication: New Message
<form method='post'> <ul class="errorMessages"></ul> <div class="one"> <label for="name">Name:</label> <input id="name" type="text" required="required"/> </div> <div class="two"> <label for="comments">Comments:</label> <textarea id="comments" required="required"></textarea> </div> <div class="three"> <label for="roll">Name:</label> <input id="roll" type="text" required="required"/> </div> <div class="four"> <label for="email">Email:</label> <input id="email" type="email" required="required"/> </div> <div class="five"> <label>Group:</label> <input type='radio' name='group' required="required"/> Group 1 <input type='radio' name='group' required="required"/> Group 2 <input type='radio' name='group' required="required"/> Group 3 </div> <div class="buttons"> <button type="submit" class="submit">Submit</button> <button type="button">Check</button> </div> </form>
var createAllErrors = function() { var form = $( this ), errorList = $( "ul.errorMessages", form); var showAllErrorMessages = function() { errorList.empty(); // Find all invalid fields within the form. var invalidFields = form.find( ":invalid" ).each( function( index, node ) { // Find the field's corresponding label var label = $( "label[for=" + node.id + "] ").html(); if(label === undefined) { label = ""; } // Opera incorrectly does not fill the validationMessage property. var message = node.validationMessage || 'Invalid value.'; errorList.append( "<li><span>" + label + "</span> " + message + "</li>" ); }); errorList.show(); return errorList.find("li").size(); }; form.find("button[type='button']").click(function() { var errorLength = showAllErrorMessages(); errorList.show().prepend( "<li><span>Total Errors: </span> " + errorLength + "</li>" ); form.find( "button.submit").click(); }); // Support Safari form.on( "submit", function( event ) { if ( this.checkValidity && !this.checkValidity() ) { $( this ).find( ":invalid" ).first().focus(); event.preventDefault(); } }); }; $( "form" ).each( createAllErrors );
<?php $dataArray = array( "name" => "Pritom K Mondal", "company" => "Some Company" ); $tmpName = tempnam(sys_get_temp_dir(), 'data'); $tmpFile = fopen($tmpName, 'w'); fputcsv($tmpFile, $dataArray); header('Content-Description: File Transfer'); header('Content-Type: text/csv'); header('Content-Disposition: attachment; filename=download.csv'); header('Content-Transfer-Encoding: binary'); header('Expires: 0'); header('Cache-Control: must-revalidate'); header('Pragma: public'); header('Content-Length: ' . filesize($tmpName)); ob_clean(); flush(); readfile($tmpName); unlink($tmpName); ?>
byte[] src = {1, 2, 3, 4};
byte[] dst = Arrays.copyOf(src, src.length);
System.out.println(Arrays.toString(dst));
import org.codehaus.groovy.grails.web.context.ServletContextHolder as SCH def viewGsp() { List gspFileList = [] if (grailsApplication.isWarDeployed()) { findWarGspList ('/WEB-INF/grails-app/views', gspFileList); } else { findDevGspList ('grails-app/views', gspFileList); } gspFileList.each { render it.toString() + "<br/>"; } render ""; } private void findDevGspList(String location, List gspFileList) { for (file in new File(location).listFiles()) { if (file.path.endsWith('.gsp')) { gspFileList << file.path - 'grails-app/views/'; } else { findDevGspList (file.path, gspFileList); } } } private void findWarGspList(String location, List gspFileList) { def servletContext = SCH.servletContext for (path in servletContext.getResourcePaths(location)) { if (path.endsWith('.gsp')) { gspFileList << path - '/WEB-INF/grails-app/views/'; } else { findWarGspList (path, gspFileList); } } }