function valid_email($str)
{
return ( ! preg_match(“/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix”, $str)) ? FALSE : TRUE;
}
Custom Trigger View Recordset Data
- For PHP:$_SESSION[‘kt_login_id’] = $tNG->getPrimaryKeyValue();
$_SESSION[‘kt_login_user’] = $tNG->getColumnValue(‘name_usr’); - For ASPVBScript:Session(“kt_login_id”) = tNG.getPrimaryKey
Session(“kt_login_user”) = tNG.getColumnValue(“name_usr”)
SET Trigger_Custom = Nothing - For ColdFusion:SESSION.kt_login_id = tNG.getPrimaryKeyValue();
SESSION.kt_login_user = tNG.getColumnValue (“name_usr”);
Zoom in on a Web page
Zoom in on a Web pageWith Microsoft Internet Explorer 7 you can make Web pages easier to read by magnifying the page (zooming in). If you zoom in, everything on the Web page will be magnified (including text, images, and controls). Zooming will change the magnification of the Web site, regardless of the Web site’s formatting. See also Change text size on Web pages. [ad code=4 align=center] Continue reading “Zoom in on a Web page” |
GR hostmaster
ErrorCode 2009.Invalid Epp Schema.Fatal error: URI=null Line=14: The entity name must immediately follow the ‘&’ in the entity reference.
Na figei to & apo ta data! or na ginei convert se code!
Στην πρώτη απάντηση (response) από τον EPP server (πχ στην απάντηση της εντολής login), o application server αποθηκεύει το JSESSIONID cookie στα headers. Συγκεκριμένα, παρακάτω φαίνονται τα περιεχόμενα των headers αμέσως μετά την πρώτη απάντηση από τον EPP server:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=6A7041BD9654402D19A2127E0BD53B5B; Path=/epp; Secure
Date: Mon, 21 Jun 2010 08:49:22 GMT
Connection: close
Εάν το JSESSIONID cookie δεν χρησιμοποιηθεί στις επόμενες εντολές που αποστέλλονται στον EPP server (ή η τιμή που αποστέλλεται είναι λανθασμένη), τότε η απάντηση θα είναι “Invalid EPP Session” με κωδικό σφάλματος 2509. Παρακαλούμε ελέγξτε τον τρόπο εξαγωγής του JSESSIONID cookie από τα HTTP headers στις εφαρμογές που χρησιμοποιείτε. Υπενθυμίζουμε ότι ο ίδιος application server χρησιμοποιείται και στο σύστημα παραγωγής αλλά και στο δοκιμαστικό σύστημα: https://devepp.ics.forth.gr:700/epp/proxy.
PHP – remove
tag from string
<?
$content = “this is something with an <img src=\”test.png\”/> in it.”;
$content = preg_replace(“/<img[^>]+\>/i”, “(image) “, $content);
echo $content;
?>
The result is:
this is something with an (image) in it.
Changing your hosts file in Vista
1) Browse to Start -> All Programs -> Accessories
2) Right click “Notepad” and select “Run as administrator”
3) Click “Continue” on the UAC prompt
4) Click File -> Open
5) Browse to “C:\Windows\System32\Drivers\etc”
6) Change the file filter drop down box from “Text Documents (*.txt)” to “All Files (*.*)”
7) Select “hosts” and click “Open”
8) Make the needed changes and close Notepad. Save when prompted.