Showing posts with label creating. Show all posts
Showing posts with label creating. Show all posts

Monday, June 27, 2016

PHP Script Creating Image From Text

CF TextImage Class is a small but useful php script that can generates a image from a string of text using a True Type Font (ttf). This script has some simple uses such as a replacement for Javascript cufon library when Javascript is not available, a replacement for Flash based text or displaying a email address that cannot be programmatically found. This can help to reduce the possibility of your email address being picked up by web crawlers and used for junk mail.

Download Image From Text PHP Script

Sunday, June 26, 2016

Creating and Extracting ZIP on the fly

If you want to create  or extract zip files on-the-fly you can use pclzip class. The class can be downloaded from phpclass.org or you can download here (including an example script 33kb!!). You can change the source or destination folder.



Thursday, June 23, 2016

Creating a file based log system

If we have a website we would certainly want to know the impressions of our website visitors. 

In addition to knowing about information of visitors, a log file is also useful to help analyse the security.

I will go directly to explain the log system file in PHP script: 

<?php 
// checking the bowsers type 
$agent = $_SERVER [HTTP_USER_AGENT]; 

// * checking where the script is executed from -- GET (URL) 
$uri = $_SERVER [REQUEST_URI]; 

// * checking visitors IP 
$ip = $_SERVER [REMOTE_ADDR]; 

/ * checking where the script is referred from 
$ref = $_SERVER [HTTP_REFERER]; 

// * checking visitors proxy
$original = $_SERVER [HTTP_X_FORWARDED_FOR]; 

// * checking visitors connection 
$via = $_SERVER [HTTP_VIA]; 

// * variable date 
$dtime = date (r); 

// * note if  visitors use transparent Proxy 
// * Then the $_SERVER [HTTP_X_FORWARDED_FOR] will display the visitors IP 
// * otherwise $_SERVER [ REMOTE_ADDR] will display the Proxy 
// * For clear about Proxy i will explain in another tutorial 

// * This is a description of variable entry_line: 
$entry_line = "Time: $dtime | Original IP: $ip | Browser: $agent | URL: $uri | referrer: $ref | Proxy: $original | Connection: $via 
";   // * <- Attention! This must be a new line or you press enter to create a new line 

/ * "fopen ()" function for opening files, "a" is the most important.!, 
/ * This works if the file "trace.txt" does not exist in the server then PHP will create 
$fp = fopen ( "trace.txt", "a"); 

/ /* "fputs ()" function for writing into the log file 
fputs ($fp, $entry_line); 

// * "fclose ()" function to close the file 
fclose ($fp); 

?> 

This file based log system using php function is pretty useful instead of using mysql connection

Saturday, June 18, 2016

Creating a simple poll

We are going to create a simple poll that users may select what programming laguage they prefer (ASP or PHP)

First of all prepare four files as below:

1. asp.txt and then insert the number 0 in it as initial value. 
2. php.txt and then type the number 0 in it as initial value. 
Note:  Do not forget to insert the value 0 in the asp.txt and php.txt. This is very important so that the script works
3. create an image file poll.jpg with size 100x10px. This is to make the percentage of polling. 
This is also important to make our poll eye-catching. 
4. index.php and type in it the script below 

<title> Simple Polling </ title>
<style type="text/css">
<! --
. style1 (font-size: 24px)
. style2 (color: # 0000FF)
->
</style>
<form name="form1" method="post" action="index.php?content=polling">
<p>
Polling <label> <span class="style1"> </span> </label>
</p>
<p>
<label> Which web programming language do you prefer? </label>
</p>
<p>
<label>
<input type="radio" name="vote" value="php">
PHP </label>
<br>
<label>
<input type="radio" name="vote" value="asp">
ASP </label>
</p>
<p>
<label>
<input type="submit" name="Submit" value="Submit">
</label>
<br>
</p>
</form>
<?php
if (@$_GET[content])
{
$vote = $_POST[vote];
if ($vote == "") // if no choice yet
{
echo "You have not <font color=red> fill surveys </font>";
exit;
}
if ($vote == "php") // add 1 for  php
{
$open = fopen("php.txt", "r");
$read = fgets($open, 65535);
fclose ($open);
$open = fopen("php.txt", "w");
$read++;
fwrite ($open, $read);
fclose ($open);
}
if ($vote == "asp") // add 1 for asp
{
$open = fopen ("asp.txt", "r");
$read = fgets ($open, 65535);
fclose($open);
$open = fopen("asp.txt", "w");
$read++;
fwrite($open, $read);
fclose($open);
}
$open_php = fopen("php.txt", "r");
$readphp = fgets($open_php, 65535); // read the value for php
fclose($open_php);
$open_asp = fopen ("asp.txt", "r");
$readasp = fgets($open_asp, 65535); // read the value for asp
fclose($open_asp);
$total_user = $readphp + $readasp; // the number of voters
$persentase_php = ($readphp / $total_user) * 100;
$persentase_asp = ($readasp / $total_user * 100);
echo "Total voters: $total_user <br>";
echo "PHP:"; printf("% 1.0f", "$persentase_php"); echo "% <img src=poll.jpg width =$persentase_php  $height = 10 /> $readphp voters <br> ";
echo "ASP"; printf("% 1.0f", "$persentase_asp"); echo "% <img src = poll.jpg width =$persentase_asp  $height = 10 /> $readasp voters <br> ";
}
?>

Friday, June 17, 2016

Creating a Simple Pagination Script using PHP PDO with jQuery

hi there, this tutorial will cover creating a simple pagination script using PHP MySQL with jQuery, i have used here "bootpag - jQuery plugin for dynamic pagination" this plugin is easy to use which creates dynamic pagination with jQuery using PHP, when we have number of records in MySQL table, we must paginate them, we already have a pagination tutorial using PHP OOP and PDO without jQuery, now in this tutorial i have used jQuery which makes pagination easy, so before proceed you can see live demo of jQuery pagination or you can download and try it, have a look.
Creating a Simple Pagination Script using PHP PDO with jQuery
Read more »

Wednesday, June 15, 2016

Creating PDF Files

Here we create pdf files from php scripts. We use ezpdf class. You can download it here (557kb)!! in which I bundled with some files of examples. I gave comments on those examples to understand some functions.
Below are some captures of the example scripts

For examples 1, 2a,and 2b we try to play with fonts and style like this:


For example 3a,3b, and 3c we practice with table like this:


For example 4, 5, and 6 we practice with image, setup page, and make columns:

Monday, May 23, 2016

Creating an Image Gallery from Folder using PHP

Creating an Image/photo gallery from a folder or directory of pictures, images using PHP is easy no MySQL database needed, so in this tutorial i am going to tell you that how to create image,photo gallery using PHP from an images folder, here using some few lines of PHP code you can generate image gallery or thumbnails to display images from folder and show as a thumbnails on browser easily, so take a quick look at this tutorial.
Creating an Image Gallery from Folder using PHP
Read more »

Thursday, January 28, 2016

Learn wordpress in Bangla Download this free eBook and starting creating your own blog

Learn WordPress in bangla. By this time WordPress is  a world famous CMS (Content Management system. ). The al over the world using website is 70% is build up on WordPress.
Why use the WordPress?

* WordPress is Learn and use an easy.
*  Its a open source web development site.
* No need to learn coding.
* Have a lot of plugin. 


Every 70% people love using WordPress to create there website or blog site.  So Download this free eBook to learn bangla in WordPress and create your website to know better world.
Evey man need have a social community to to find out her. so If you intend you share your knowledge world wide to better solution is blogging.






How to download this eBook. To learn  look below tutorial.
Click The bold text download now link.
now open a new window and countdown 1 to 5 than  click the skip Ad
like this.




Enjoy This book.Good luck write a comment about this blog.

Download free eBooks

If you want to view this book click this link





Sunday, January 24, 2016

Download SEO Preparing Promoting Creating Developing Site

Download SEO Preparing, Promoting,Creating, Developing Site Video Tutorial


link