Welcome

All in one resource for most usable codes in programming in PHP, HTML, JS, CSS.

stackMyCode

All in one resource for most usable codes in programming in PHP, HTML, JS, CSS.

New Technology

We are providing you the most newable resh technologies for you.

Tech News

stackMyCode is allways looking for tech news in computer world. If we found a good news stackMyCode will update you with Tech news.

Sunday, October 24, 2100

Welcome to stackMyCode

What is stackMyCode?

stackMyCode site is a good resource for who are searching code sets for do some work easy and good for beginners in programming in PHP, HTML, CSS, Java Script and other web based programming. In future hopes to bring you tutorials about another technology and other non web technology programming languages.


Why does stackMyCode start? 


I entered to web designing field in about 2005 and entered to web programming about in 2008. I was a junior in PHP when there. I was faced a so many problems in coding. I feel that problem are not specified for me and them are common problems to another PHP programmers. I thought to share codes I found to solve problems and code are modified.

Updates...


stackMyCode will update as soon as free time.

Photo credits : http://whatstrending.com



Monday, November 11, 2013

How to get thumbnails from youtube video

Get thumbnails from youtube video


If you are developing youtube video integrated own video site with video thumbnails or do you want list some youtube videos with video thumbnails you can use this script with php and json

Use the data on server-side using PHP

<?php

$json = json_decode(file_get_contents("http://gdata.youtube.com/feeds/api/videos/<youtube-video-id-here>?v=2&alt=jsonc"));
echo '<img src="' . $json->data->thumbnail->sqDefault . '">';

?>



Replace <youtube-video-id-here> with your youtube video IDs.

Sunday, October 27, 2013

php tag

There are two types tag we used.

1.Canonical PHP tags:


The most universally effective PHP tag style is:

<?php...?>

2.Short-open (SGML-style)


tags: Short or short-open tags look like this:

<?...?>

Saturday, October 26, 2013

PHP Hellow world Programme

PHP Hello world script

PHP is embedded in HTML. That means that in amongst your normal HTML.

<html> 
<head> 

<title>Hello World</title> 

<body> 

<?php echo "Hello, World!";?> 

</body> 
</html>

why we are using php?

Usages of PHP


  • Perform to system functions
    • create files
    • open files
    • read files
    • write files and close files
  • Handle the data bases through PHP
  • PHP can encrypt data.
  • PHP can handle forms.
  • We can create cookies and  set cookies variables using PHP
  • PHP can use to restrict or prevent some website pages from web site users

php Introduction

What is PHP ?


PHP started out as a small open source project. But now it is using every where. Originally created by Rasmus Lerdorf in 1995.

  • PHP is a recursive acronym for "PHP: Hypertext Preprocessor".
  • PHP is a sever side scripting language.
  • PHP is embedded in HTML
  • PHP is integrated with a number of popular databases, including MySQL, PostgreSQL, Oracle, Sybase, Informix, and Microsoft SQL Server.
  • PHP supports a large number of major protocols such as POP3, IMAP, and LDAP.
  • PHP4 added support for Java and distributed object architectures (COM and CORBA), making n-tier development a possibility for the first time.
  • PHP has list of syntax like C.

Friday, October 25, 2013

Input box glowing border effect with CSS

Hi friends,
So many web sites you are browsing can see new glowing border effect on where you entering text input boxes on forms such as login form, contact form or subscription form etc.  You can see this effect real time at twitter home page  https://twitter.com/

CSS glow effects with box shadow


stackMyCode will gives you CSS code for CSS glow effect in green color.

.shadowglow {
    outline:none;
    transition: all 0.25s ease-in-out;
    -webkit-transition: all 0.25s ease-in-out;
    -moz-transition: all 0.25s ease-in-out;
    border-radius:8px;
    -webkit-border-radius:8px;
    -moz-border-radius:8px;
    border:1px solid rgba(0,0,0, 0.2);
}

.shadowglow:focus {
    box-shadow: 0 0 5px rgba(0, 255, 0, 1);

    -webkit-box-shadow: 0 0 5px rgba(0, 255, 0, 1); 

    -moz-box-shadow: 0 0 5px rgba(0, 255, 0, 1);

    border:1px solid rgba(0,255,0, 0.8); 

}

Your input boxes class must use as shadowglow Example input box code is here :

<input class="shadowglow" id="textinput" name="textinput" type="text" />