Today I am telling you about How to Create Photoshop design white gold ring logo stock photo in photoshop.

[1] Take a new file of 500 pixels, 500 pixels, of resolution 72 dpi in the RGB mode.

[2] Using the “Pen Tool” draw a shape as shown below right click
select the make selection and fill that layer with #cccec3.

Photoshop-design-White-Gold-Ring -logo-stock-photo1

Photoshop-design-White-Gold-Ring -logo-stock-photo2

Photoshop-design-White-Gold-Ring -logo-stock-photo3

[3] Create the following selection with the help of Elliptical Marquee Tool,
now hit the delete key on your keyboard.

Photoshop-design-White-Gold-Ring -logo-stock-photo4

[4] Now select “Burn Tool”Photoshop-design-White-Gold-Ring -logo-stock-photo5 now create the following Shading.

Photoshop-design-White-Gold-Ring -logo-stock-photo6

[5] Now select “Dodge Tool” Photoshop-design-White-Gold-Ring -logo-stock-photo7 & then Highlight following parts as shown below.

Photoshop-design-White-Gold-Ring -logo-stock-photo8

[6] Create a new layer [this layer should below previous layer] and then create a new shape
with the help of “Pen Tool”, fill that layer with #cccec1.

Photoshop-design-White-Gold-Ring -logo-stock-photo9

[7] With the “Burn Tool” create the following Shading.

Photoshop-design-White-Gold-Ring -logo-stock-photo10

[8] With the “Dodge Tool” & then then Highlight following parts as shown below.

Photoshop-design-White-Gold-Ring -logo-stock-photo11

[9] Create a new shape with the help of Polygonal Lasso Tool, fill that layer with #8c8c8c.

Photoshop-design-White-Gold-Ring -logo-stock-photo12

[10] For this shape add the following layer styles.

Photoshop-design-White-Gold-Ring -logo-stock-photo13

Photoshop-design-White-Gold-Ring -logo-stock-photo14

Photoshop-design-White-Gold-Ring -logo-stock-photo15

Photoshop-design-White-Gold-Ring -logo-stock-photo16

Photoshop-design-White-Gold-Ring -logo-stock-photo17

[11] Make the duplicate layer with the help of Cntl+J, and place it like me.

Photoshop-design-White-Gold-Ring -logo-stock-photo18

[12] Create a new layer [this layer should above the background layer] and then create a new shape
with the help of Pen Tool, fill that layer with #adb590.

Photoshop-design-White-Gold-Ring -logo-stock-photo19

[13] With the “Dodge Tool” & then then Highlight following parts as shown below.

Photoshop-design-White-Gold-Ring -logo-stock-photo20

[14] Now create the following selection with the help of Rounded Rectangle Shape Tool,
then go to Select>Modify>Feather Selection by 4px.

Photoshop-design-White-Gold-Ring -logo-stock-photo21

[15] Open a new layer fill the selection with Black color.

Photoshop-design-White-Gold-Ring -logo-stock-photo22

[16] For this shape add the following layer styles.

Photoshop-design-White-Gold-Ring -logo-stock-photo23

Photoshop-design-White-Gold-Ring -logo-stock-photo24

Photoshop-design-White-Gold-Ring -logo-stock-photo25

Photoshop-design-White-Gold-Ring -logo-stock-photo26

Photoshop-design-White-Gold-Ring -logo-stock-photo27

Photoshop-design-White-Gold-Ring -logo-stock-photo28

Photoshop-design-White-Gold-Ring -logo-stock-photo29

Photoshop-design-White-Gold-Ring -logo-stock-photo30

[17] Now like this create the others with above techniques, with same layer styles.

Photoshop-design-White-Gold-Ring -logo-stock-photo31

[18] Take the Brush Tool press F5 set the properties like this.

Photoshop-design-White-Gold-Ring -logo-stock-photo32

Photoshop-design-White-Gold-Ring -logo-stock-photo33

[19] Now create a new layer make sure your foreground is set to Black. Now create Stroke with
Elllipse Shape Tool right click select Stroke Path now select Brush click ok.

Photoshop-design-White-Gold-Ring -logo-stock-photo34

Photoshop-design-White-Gold-Ring -logo-stock-photo35

Photoshop-design-White-Gold-Ring -logo-stock-photo36

[20] Thanks for read this Photoshop Tutorial.I hope you have enjoyed & learn some
Photoshop Techniques  & the Final Image should look like as shown below
Photoshop-design-White-Gold-Ring -logo-stock-photo37

PHP2k - PHP Tutorials › Login

Today I am telling you about How to Create Photoshop steel kidney tray logo stock in photoshop.

[1] Take a new file of 500 pixels, 350 pixels, of resolution 72 dpi in the RGB mode.

[2] Using the “Pen Tool” draw a shape as shown below right click
select the make selection and fill that layer with #939999.

Photoshop-steel-kidney-tray-logo-stock1

Photoshop-steel-kidney-tray-logo-stock2

Photoshop-steel-kidney-tray-logo-stock3

[3] And now create the following selection with the help of Pen Tool,
then go to Select>Modify>Feather Selection by 2px.

Photoshop-steel-kidney-tray-logo-stock4

[4] Now select Dodge Tool Photoshop-steel-kidney-tray-logo-stock5 & then press Cntl+Shift+I,
then Highlight following parts with the help of ‘Dodge Tool’ Do not “D” select.

Photoshop-steel-kidney-tray-logo-stock6

[5] Now select ‘Burn Tool’  Photoshop-steel-kidney-tray-logo-stock7 & create the following shading.

Photoshop-steel-kidney-tray-logo-stock8

[6] Create the following selection with the help of Elliptical Marquee Tool, then give the Feather Selection by 2px,
now press Cntl+Shift+I, with the “Dodge Tool” then & Highlight the following parts.

Photoshop-steel-kidney-tray-logo-stock9

[7] Now like this create the following Highlight parts as created in the previous step.

Photoshop-steel-kidney-tray-logo-stock10

[8] Create a new layer [this layer should below previous layer] and then create a new shape
with the help of Pen Tool, fill that layer with #485657.

Photoshop-steel-kidney-tray-logo-stock11

[9] With the ‘Burn Tool’ & create the following shading.

Photoshop-steel-kidney-tray-logo-stock12

[10] Create a new layer [this layer should below previous layer] and then create a new shape
with the help of Pen Tool, fill that layer with #687073.

Photoshop-steel-kidney-tray-logo-stock13

[9] With the ‘Burn Tool’ & create the following shading.

Photoshop-steel-kidney-tray-logo-stock14

[10] Thanks for read this Photoshop Tutorial.I hope you have enjoyed & learn some
Photoshop Techniques  & the Final Image should look like as shown below

Photoshop-steel-kidney-tray-logo-stock15

Placing Comments in PHP

Alternative to file_get_contents() using cUrl

26
Nov
stored in: PHP/MYSQL

test

In this small and short post i will be showing you how to place comments in your php coding for others to see which does not get shown when the file is executed only viewable in the source code.

First i will show you how to use a single line comment. Which is used just for one line comment.

<?php
// Copyright php2k.com
echo 'Hello world';
?>

The above code will only display “Hello World” not the comment made above it. To make a single line comment you must place “//” in the begining of the line and then make a comment after it.

To make a multiple line comment it is a bit diffrent, example shown below;

<?php
/* Copyright php2k.com
Thank you for using our site
Multiline comment
*/
echo 'Hello World';
?>

The above code will only display “Hello World” when executed in the web browser, but when viewing the source code, the user will see the comment made by the creator. To make a multiple line comment you must place “/*” in the begining of the comment, and when finished place “*/” placing your comment in between.

Hope this post has helped you, if you need any help please make a comment and i will get back to you as soon as possible.

The include() function is used to include another file in the current file. If you have set variables in one file i.e. config.php and you would like to include it in another file i.e. index.php you would use the include() function.
I will show you a example of this. The following file is config.php where i will set the $vars;

<?php
$name = 'John';
$location = 'London';
$age = '26';
?>

Now save that file as config.php and create a file called index.php. The code follows for index.php;

<?php
include(config.php); // use of including config.php
echo ‘My name is:’ . $name . ‘Location:’ . $location . ‘Age:’ . $age;
?>

Save that as index.php. As you can see i have displayed the variables from config.php in the index.php file, this is done using the include() function which will include everything in config.php in the index.php file.

You can use the include() function to neaten your coding by placing codes in diffrent files and only including them when you need to use a function or variable from it.

09
Sep

At some point you will want a random number string but dont have the time to create new ones all the time, this is where the rand() function comes in. rand() Function creates random numbers from the numbers you set.

<?php

echo rand(0, 10);

?>

The code above will create and display a random number anything from 0 to 10. If you would like a longer number you can change it, for example if i want a random number from 105 to 1043 the code will look like this.

<?php

echo rand(105, 1043);

?>

Very simple and easy, if you have any questions please post a comment and i will get back to you as soon as possible.

The function file_get_contents() reads a file into a string. Using the function doesnt always work or sometimes uses more server memory. Another way of grabbing content from a url is using cUrl. cUrl allows you to grab/retrieve content from another server/url.

I have written a simple function which will retrieve content from the given url using cUrl.

<?php

function getPage($url, $referer, $timeout, $header){
if(!isset($timeout))
$timeout=30;
$curl = curl_init();
if(strstr($referer,"://")){
curl_setopt ($curl, CURLOPT_REFERER, $referer);
}
curl_setopt ($curl, CURLOPT_URL, $url);
curl_setopt ($curl, CURLOPT_TIMEOUT, $timeout);
curl_setopt ($curl, CURLOPT_USERAGENT, sprintf("Mozilla/%d.0",rand(4,5)));
curl_setopt ($curl, CURLOPT_HEADER, (int)$header);
curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($curl, CURLOPT_SSL_VERIFYPEER, 0);
$html = curl_exec ($curl);
curl_close ($curl);
return $html;
}

?>

To use the function you will need to define 3 things.

“url” - The url you want to retreve

“refer” - Where would you like the website to think you came from, i.e. http://google.com

“timeout” - How long before you want your server to quit if the site doesnt respond. (30 seconds should be fine).

Now you understand the 3 main points you need to define, i will show you how to use the function.

<?php

getPage(’http://YourDomain.Com’, ‘http://google.com’, ‘30′);

?>

Making sure you have included the function in the top of the page which was shown earlier in the post. This will now grab the targeting page and display it in your browser.

Hope you have learnt something from this tutorial. Any questions please post a comment and i will get back to you as soon as possible.

08
Sep

htmlentities function converts all applicable characters to HTML entities. For example “<b>Hello World</b>” is converted to ” &lt;b&gt;Hello World&lt;/b&gt;

Using this function is simple and easy. I have coded a example below;

<?php

$text = ‘<b>Hello World</b>’;

echo htmlentities($text);

?>

If you have any questions please post a comment and i will contact you as soon as possible.

Not everyone can afford a encoder or trust them, so why not create your own basic encoder! In this tutorial i will show you how to encode letters into another letter of your choice. For example the letter “a” will be known as letter “f” and so on.

First of all i wrote out all the letters on paper and then wrote another letter above it which will be the replacement letter for it.

Now what this script will do is encode the word you submit in the form. For example i submitted my name “Shabbir” which was encoded to “ocettyl”. Let me explain it a little more. The letters are mixed around to make a completely different word. Using this method you could send encoded messages & decode it.

In the same method i used to encode the letters i used it to create the function to decode it as well. So you can send a message or password’s/urls ect to family/friends/clients and just tell them to use your decoder to decode it ;)

Now for the main course the code!

<?php
// Copyright PHP2k.com
// Get the message from the url and change it to lowercasing
$x = strtolower($_REQUEST['x']);
//Change the letters to something else, “a” is now “e”, “b” is now “t” ect….
Function Encode($x) {
$rand = array(”a” => “e”, “b” => “t”, “c” => “w”, “d” => “p”, “e” => “m”, “f” => “a”, “g” => “s”, “h” => “c”,
“i” => “y”, “j” => “v”, “k” => “r”, “l” => “q”, “m” => “u”, “n” => “d”, “o” => “h”, “p” => “g”, “q” => “j”,
“r” => “l”, “s” => “o”, “t” => “n”, “v” => “f”, “u” => “b”, “w” => “i”, “x” => “k”, “y” => “z”, “z” => “x”);
$encode = strtr($x, $rand);
echo $encode;
}
//Decode the lettering again so you get the orignal message, so “e” is changed back to “a” ect..
Function Decode($x) {
$rand = array(”e” => “a”, “t” => “b”, “w” => “c”, “p” => “d”, “m” => “e”, “a” => “f”, “s” => “g”, “c” => “h”,
“y” => “i”, “v” => “j”, “r” => “k”, “q” => “l”, “u” => “m”, “d” => “n”, “h” => “o”, “g” => “p”, “j” => “q”,
“l” => “r”, “o” => “s”, “n” => “t”, “f” => “v”, “b” => “u”, “i” => “w”, “k” => “x”, “z” => “y”, “x” => “z”);
$decode = strtr($x, $rand);
echo $decode;
}
?>
<p>
Encode: <br />
<form action=”./” method=”get”>
<textarea col=”2″ rows=”2″ name=”x”></textarea><br />
<input type=”hidden” name=”do” value=”e”>
<input type=”submit” value=”submit”>
</form>
</p>
<p>
Decode: <br />
<form action=”./” method=”get”>
<textarea col=”2″ rows=”2″ name=”x”></textarea><br />
<input type=”hidden” name=”do” value=”d”>
<input type=”submit”>
</form>
</p>
<p>
<?php
if($_GET['do'] == e) {
Encode($x);
} elseif($_GET['do'] == d) {
Decode($x);
}
?>
</p>

If you would like help with this, please leave a message and i will contact you back as soon as possible.
Hope you like the tutorial and learnt something.

07
Sep
stored in: PHP/MYSQL

Variables in PHP are represented by a dollar sign followed by the name of the variable. The variable name is case-sensitive.

<?php

$name = ‘John’;
$age = ‘23′;
$location = ‘London’;

echo ‘My name is: $name and i am $age years old, currently living in $location’;

?>

This is output the following:

My name is: John and i am 23 years old, currently living in London

Simple and Easy, try it your self ;)