prosoxi.com | Archive | March

Archive | March, 2009

Flash Libraries

SWFAddress

SWFAddress is a small, but powerful library that provides deep link for Flash. Progression uses deep link function of SWFAddress as enabling brawser synchronous.

Version 2.1
License MIT License
Official website http://www.asual.com/swfaddress/

SWFObject

SWFObject is an easy-to-use and standards-friendly method to embed Flash content, which utilizes one small JavaScript file. Progression uses SWFObject to show SWF file after publishing HTML file.

Version 2.1
License MIT License
Official website http://blog.deconcept.com/swfobject/

Posted in Flash0 Comments

PHP Convert Datetime DB fields to timespan

 
< ?php 
 
	  $curentdate=mktime(date("h"), date("i"), date("s"), date("m")  , date("d"), date("Y"));
	  $curentdatestart=mktime(date("h",strtotime($row_ekpompes['ext_series_trailer_startdate'])), date("i",strtotime($row_ekpompes['ext_series_trailer_startdate'])), date("s",strtotime($row_ekpompes['ext_series_trailer_startdate'])), date("m",strtotime($row_ekpompes['ext_series_trailer_startdate']))  , date("d",strtotime($row_ekpompes['ext_series_trailer_startdate'])), date("Y",strtotime($row_ekpompes['ext_series_trailer_startdate'])));
	  $curentdateend=mktime(date("h",strtotime($row_ekpompes['ext_series_trailer_enddate'])), date("i",strtotime($row_ekpompes['ext_series_trailer_enddate'])), date("s",strtotime($row_ekpompes['ext_series_trailer_enddate'])), date("m",strtotime($row_ekpompes['ext_series_trailer_enddate']))  , date("d",strtotime($row_ekpompes['ext_series_trailer_enddate'])), date("Y",strtotime($row_ekpompes['ext_series_trailer_enddate'])));
	// strtotime
	 if($row_ekpompes['ext_series_trailer_startdate']!=null && $row_ekpompes['ext_series_trailer_enddate']!=null && $row_ekpompes['ext_series_trailer']!=null){
	 if($curentdatestart<=$curentdate &&  $curentdateend>=$curentdate ){
	 $video=$row_ekpompes['ext_series_trailer'];
	 }else {
	 $video=$row_ekpompes['ext_trailer'];
	 }
	 }else {
	 $video=$row_ekpompes['ext_trailer'];
	 }
	 echo $video."====";
	 echo date('h:i:s / m/d/y');
	 echo "===".$curentdate."---".$curentdatestart."---".$curentdateend;
	 echo  $row_now['ext_trailer']."----";
	 echo  $row_now['ext_series_trailer']."----";
         echo  $row_now['ext_series_trailer_startdate']."----";
	 echo  $row_now['ext_series_trailer_enddate']."----";
 
	  ?>

Posted in PHP0 Comments

Browser script No-cashe

In HTML
<meta http-equiv="Expires" content="Tue, 01 Jan 2000 12:12:12 GMT">
<meta http-equiv="Pragma" content="no-cache">
In ASP/IIS:
  http://support.microsoft.com/support/kb/articles/Q234/0/67.asp
  <% Response.CacheControl = "no-cache" %>
  <% Response.AddHeader "Pragma", "no-cache" %>
  <% Response.Expires = -1 %>

In PHP:
http://www.php.net/manual/en/function.header.php

< ?php
  Header('Cache-Control: no-cache');
  Header('Pragma: no-cache');
  ?>

In COLD FUSION:
<cfheader name=”Expires” value=”#Now()#”>
<cfheader name=”Pragma” value=”no-cache”>

In JSP:
http://www.jguru.com/faq/view.jsp?EID=377&page=2
<%
response.setHeader(“Cache-Control”,”no-cache”);
response.setHeader(“Pragma”,”no-cache”);
response.setDateHeader (“Expires”, 0);
%>

Posted in Programming0 Comments

Mail php headers

$to = 'info@eee.com';
 
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=utf-8\n";
$headers .= 'From:info@eee.com'. "\r\n" .
             'Bcc: eee@eee.gr' . "\r\n" .
             'Bcc: eee@eee.gr' . "\r\n";
$headers .= "Reply-To:eee<papa @eee.com>\n"; 
$headers .= "X-Priority: 1\n";
$headers .= "X-mailer: DAUMED\n"; 
$headers .= "X-MSmail-Priority: High\n";
 
$subject="eee Contact form";
 
$message =$buffer.$send.$footer;
//echo $message;
//echo $subject;
 
if(@mail($to, $subject, $message, $headers)){
//echo "_mailsuc";
echo "The e-mail was sent successful";
 
} else {
 
//echo _mailsucden;
echo "There is an error please try again!";
}
</papa>

Posted in PHP0 Comments

Fixed positioning CSS

Fixed positioning

This post will hopefully be updated when I have done a little more (like explaining stuff and publishing combinations of three, maybe four columns), for now:

Posted in CSS0 Comments

How to turn off the right-click functionality in Internet Explorer 5.0 or a later version

The following article describes how to use FrontPage 2000 to turn off the right-click functionality in Microsoft Internet Explorer versions 5.0 or a later version. These examples use JavaScript in an attempt to discourage users from saving copyrighted images to their computers. Continue Reading

Posted in JavaScript - Ajax, Programming0 Comments

From 3D Studio Max To Adobe Photoshop

 

From 3D Studio Max To Adobe Photoshop

By Björgvin Guðmundsson

Introduction

This is more of a tip than a tutorial. Im going to explain how to save your renders including the alpha channel, and how to delete the unwanted background in Photoshop. Continue Reading

Posted in Graphics, Tutorials0 Comments

PHP DateTime and DateTimeZone Tutorial

With each new version PHP is getting more and more object oriented. In version 5.x we get two useful classes for date and time handling. Many programmers are still using outdated methods which are available in PHP mainly for compatibility reasons, so i want to introduce you to DateTime and DateTimeZone objects. Continue Reading

Posted in PHP0 Comments

Illustrator Rainbow Tutorial


Illustrator Tutorial How To Draw Swirling Rainbows !Watch today’s top amazing videos here

Posted in Graphics, Tutorials0 Comments

Domain Finder

Domain Finder Tool by Truste.gr

read more for domains

Advertisers

Wedstar all about wedding - gamos - γαμος
Κατασκευή ιστοσελίδων
Domain Names | Hosting

Adds