Recently I have been working on something involving the use of video content from You Tube. With the lack of a good API out there I created my own. Below is a simple example of this working with sample code to download further below.
Posted on 12 July 2010.
Recently I have been working on something involving the use of video content from You Tube. With the lack of a good API out there I created my own. Below is a simple example of this working with sample code to download further below.
Posted in Flash0 Comments
Posted on 08 July 2010.
function valid_email($str)
{
return ( ! preg_match(“/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix”, $str)) ? FALSE : TRUE;
}
Posted in PHP0 Comments
Posted on 07 July 2010.
Posted in ASP / ASP.net, PHP, Programming0 Comments
Posted on 07 July 2010.
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 |
Posted in Tips & Tricks0 Comments
Posted on 06 July 2010.
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.
Posted in Programming0 Comments
Posted on 05 July 2010.
<?
$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.
Posted in PHP0 Comments
