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:
<?...?&g...
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 27, 2013
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 user...
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...
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;
...
Notepad++ - Notepad plus plus free download

Notepad++
Notepad++ is a free (as in "free speech" and also as in "free beer") source code editor and Notepad replacement that supports several languages. Running in the MS Windows environment, its use is governed by GPL License.
Based on the powerful editing component Scintilla, Notepad++ is written in C++ and uses pure Win32 API and STL which ensures a higher execution speed and smaller program size. By optimizing as many routines as possible...
What is HTML
HTML is a language for describing web pages.
HTML stands for Hyper Text Markup Language.
HTML is a markup language, not a programming language.
A markup language is a set of markup tags for markup content.
HTML tags describe document content
HTML documents contain HTML tags and plain text
Files saving extension is .html
User doesn't see the HTML tags and browser markup the web page using HTML tags
HTML...
PHP - if Statement
This is a conditional statement on PHP.
Some tells you like this "If you work hard you can become 1st"
What will done if you work hard? You can become 1st.
PHP If statement is most suitable to it.
PHP "if" Syntax is below
if (condition) { code to be executed if condition is true; }
The example below will output "Hi, Good Morning!" if the current time (HOUR) is less than 12
We can get current time in hour using date() function.
<?php
$time_in_hour=date("H");
if ($time_in_hour<"12")
{
...
Very Simple File Upload Script on PHP
Very Simple File Upload Script on PHP
Note : This php script is base on php file uploading only there are not security features.
We need two files. 1st one is for generate form. It can name as "uploadform.html"
<html>
<body>
<form action="uploadfile.php" method="post"
enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file"><br>
<input type="submit" name="submit" value="Submit">
</form>
</body>
</html>
2nd one is for...
Thursday, October 24, 2013
Prevent direct access to a php include file
Prevent direct access to a php include file
This is the way to prevent direct access to a php include file on web host.
place following code on top of the base file:
like there is a form.php and you need to include it on register.php (you need to write include('form.php') code on regidter.php file)
The Bas file is "register.php"
<?php
define('MyConst', TRUE);
?>
and you need to place following php code on top of the includable file (form.php) :
<?php
if(!defined('MyConst')) {
die('Direct access not permitt...
Getting time and date from timestamp on php
Usually we record date and time date on MySQL table as timestamp Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT)
It's like 1171502725
But we can read date time another date from it directly.
You can use following PHP Script to Get Date and Tme from time stamp on PHP
<? php
$date = date('d-m-Y', $timestamp);
$time = date('Gi.s', $timestamp);
?>
Date is
<?=$date;?> <br/>
Time is
<?=$time;?> <br/&g...
How to make a jpg image downloadale like a hyper linked file?
If you use the standard html link code for download JPG image file browser will open JPG file on browser. You can use php file to make JPG image file downloadable.
<a href="download-location/images/imagefile.jpg">download this picture</a>
This will not work
You can use following code on php file name like imagedownloader.php
<?php
// Force download of image file specified in URL query string and which
// is in the same directory as this script:
if(!empty($_GET['file']))
{
$filename = basename($_GET['img']); // don't...
How to get server domain name on php
How to get server domain name on php
Think, there is a php script on http://example-domain.com/loging/register.php If you need get web site only domain on register.php file. You can use following php code for get server domain name on php
$serverPath='http://'.$_SERVER['SERVER_NAME'];
Note this is only for web site using http:// protocol
If your web site using https:// protocol use following php code
$serverPath='https://'.$_SERVER['SERVER_NAME'...
How to embed a PHP file on Blogger

Hello today I'm going to tell you how embed a PHP file on blogger. With embedding a php file you can add php contact forms and php clocks and another php gadgets to your blog.
Now look how to do it.
Step 01 :
Login to blogger dashboard and click on your blog and click Layout on left side menu bar
Step 02 :
Click on 'Add a Gadget' where you want.
Step 03:
Select 'HTML/Javascript' and add the code given...
How to get Current full URL on PHP
If you want to get current page url to do some thing, like if you embed the facebook social comment plugin on dynamic web site you want to declare the comment box commenting url. As this moment you want to get your current page URL dynamically.
You can use following php code to get current url
<?=$current_full_url = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";?>
this code will echo the current full ...
PHP Introduction
Hello my friends,Today I'm going to introduce something about php to
you...PHP what is PHP?Mainly we can describe PHP as PHP: Hypertext PreprocessorPhP
is a server side scripting language like ASP but PhP mainly Use to Open source
web developing... PhP is supported to so many Database types like MySQL,
Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.Happy to say
You can download PHP for free at www.php.netand PHP is an Open source
Software...PHP can ude with HTML and The extension of php file is
basically ".php"if you...
Subscribe to:
Posts (Atom)