Development Blog by Professionals
admin
This user hasn't shared any biographical information
Homepage: http://www.cdl.gr
Posts by admin
PHP Headers > Redirect with delay
Mar 23rd
Flash > Listeners and AsBroadcaster
Mar 23rd
Introduction
In this section, briefly explain what the tutorial will explain/accomplish. If you want, you can include something “dramatic” that gets readers interested in your topic. Try to enjoy writing tutorials and follow the basic guidelines found below. Before I forget, feel free to modify this document as much as needed.
from http://www.senocular.com/flash/tutorials/listenersasbroadcaster/
Flash Libraries
Mar 23rd
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/ |
PHP Convert Datetime DB fields to timespan
Mar 20th
< ?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']."----"; ?>
Browser script No-cashe
Mar 19th
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);
%>
Mail php headers
Mar 17th
$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>
Fixed positioning CSS
Mar 16th
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:
- Fixed header
- Fixed header and left-sidebar
- Fixed header and right-sidebar
- Fixed header and footer
- Fixed left-sidebar
- Fixed left-sidebar and header
- Fixed left-sidebar and right-sidebar
- Fixed left-sidebar and footer
- Fixed right-sidebar
- Fixed right-sidebar and header
- Fixed right-sidebar and footer
- Fixed footer
How to turn off the right-click functionality in Internet Explorer 5.0 or a later version
Mar 16th
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. More >
From 3D Studio Max To Adobe Photoshop
Mar 15th
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. More >
PHP DateTime and DateTimeZone Tutorial
Mar 12th
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. More >


