Archive for the ‘php programming’ Category
Whats the best way to encrypt passwords in php programming?
was thinking and searching about this topic all day I am just curious, If you know whats the best way to crypt information and still be able to decrypt them later own safely Please let me know And wouldn’t other people be able to decrypt data just like I did ?
There are two algorithms for encryption md5 and sha but i think md5 is a good way to ecnrypt a password in php
What would you recommend I exchange for php programming service?
I am incorporating an business that will have a lot to do with backend stuff like php/mysql. I have enough experience to make the page look pretty and enough to do basic forms, but I need someone with additional php knowledge for more advanced applications. If I am just beginning this venture, what would you recommend I exchange for a person to be my “head webmaster” of sorts? A % of profit, stock….? Keep in mind that I am low on capital.
Caffeinated Content
How can i study or try PHP programming at home if I only have a laptop with WIndowsXP SP3 OS?
I want to learn php programming but I do not have that big server computers or a network of computers. Is it possible to do PHP programming using only a laptop connected only to internet, through a 3g modem; and running on Windows XP SP3 OS? What are the application and/or software that I need to install to make it work?
Caffeinated Content
what is the best way to learn PHP programming ?
How can I learn php programming !?
Caffeinated Content – Members-Only Content for WordPress
Where can I find some PHP programming exercises?
In the few computer sciences classes I took (long ago), I really liked the fact that assignments built on one another, getting progressively more complex. I now want to learn PHP and MySQL, but I’m having a hard time finding a good set of programming exercises to work on in building my skills. Can anyone point me to some PHP/MySQL programming exercises (or a book that includes exercises) that start with the basics and work their way up?
Thanks!
Website content
How to upload multiple files using php programming?
<form action="" method="post" enctype="multipart/form-data">
<p>Pictures:
<input type="file" name="pictures[]" />
<input type="file" name="pictures[]" />
<input type="file" name="pictures[]" />
<input type="submit" value="Send" />
</p>
</form>
<?php
//places files into same dir as form resides
foreach ($_FILES["pictures"]["error"] as $key => $error) {
if ($error == UPLOAD_ERR_OK) {
echo"$error_codes[$error]";
move_uploaded_file(
$_FILES["pictures"]["tmp_name"][$key],
$_FILES["pictures"]["name"][$key]
) or die("Problems with upload");
}
}
?>
Google Maps alternative for PHP programming?
I need something that can be used in php programming and can work offline since, as we know, Google Maps requires an Internet Connection.
There isn’t a choice as php requires online to work.
You might interested on programming such as c++. it works offline without any hassle.
Is it possible to watermark image using php programming?
Is it possible to watermark image using php programming? I want to watermark all the images in the folder
Yes it is possible use following code
<?php
require_once( "watermark.php" );
$original_directory = "pictures/";
$watermarked_images = "temp/";
if ($handle = opendir($original_directory))
{
while (false !== ($file = readdir($handle)))
{
if(!is_file($original_directory.$file))
continue;
if(exif_imagetype($original_directory.$file)==2)
{
watermark($original_directory.$file,
"watermark.png",
$watermarked_images.$file);
}
}
closedir($handle);
}
?>
function watermark($original_image,$original_watermark,$destination="")
{
$image=imagecreatefromjpeg($original_image);
list($imagewidth,$imageheight)=getimagesize($original_image);
$watermark = imagecreatefrompng($original_watermark);
list($watermarkwidth,$watermarkheight)=getimagesize($original_watermark);
if($watermarkwidth>$imagewidth || $watermarkheight>$imageheight)
{
$water_resize_factor = $imagewidth / $watermarkwidth;
$new_watermarkwidth = $watermarkwidth * $water_resize_factor;
$new_watermarkheight = $watermarkheight * $water_resize_factor;
$new_watermark = imagecreatetruecolor($new_watermarkwidth , $new_watermarkheight);
imagealphablending($new_watermark , false);
imagecopyresampled($new_watermark , $watermark, 0, 0, 0, 0, $new_watermarkwidth, $new_watermarkheight, $watermarkwidth, $watermarkheight);
$watermarkwidth = $new_watermarkwidth;
$watermarkheight = $new_watermarkheight;
$watermark = $new_watermark;
}
$startwidth = ($imagewidth – $watermarkwidth) / 2;
$startheight = ($imageheight – $watermarkheight) / 2;
imagecopy($image, $watermark, $startwidth, $startheight, 0, 0, $watermarkwidth, $watermarkheight);
if(!empty($destination))
imagejpeg($image,$destination);
else
imagejpeg($image);
}
?>
Does having a certification in Php Programming or any Computer Progamming without a college get you a job?
Can it get you a job for Programming with a certified without a college degree??
Yes, I got a 40k+ a year job with nothing but an A+ and a resume. I personally think that experience beats out college education when it comes to development and design gigs.
i had .PHP FILE.but i want to preview and edit it and No need to know PHP programming language?
i had .PHP FILE.but i want to preview and edit it and No need to know php programming language.what application to use so i just copy paste the item i want to desire place within the frame?
You can preview and edit a PHP file in whatever text editor you have on your system…such as Notepad on a Windows machine. However you don’t just copy and paste it into a frame to make it work. It is much more detailed than that.