Showing posts with label another. Show all posts
Showing posts with label another. Show all posts

Saturday, June 4, 2016

Redirect To Another Page In PHP Without Using Header

A little bit of Javascript might help you to rediect to another page.A sample code is given below:

<?php

// show some bits
printf("<html><body>");
printf("Just some bits on this page...");

// do your condition based tests
.....

if ($myConditions != $meetsExpectation)
{
printf("<script>location.href=errorpage.html</script>");
}
else
{
// show other stuffs
}
?>
Hope this leads you in the right diection.Though there are many other ways of doing it,this appears to be the simplest one,isnt it?

If you like this php script the please subscribe to our blog and we will send you updates from this blog right in your Inbox.

Enjoy!

Wednesday, May 4, 2016

Watermark Image PHP Script Create A Watermark Image In PHP Using Another Image

The php script will watermark image using another image. A simple approach to put your company logo or copyright notice on the image, thus protect it from stealing.

Package contains example for watermarking all the jpg images in a folder. Can be easily changed to process gif and png images.

How to use:

  • Unpack php  files, and save them on the server where you have images for watermarking.
  • Update watermark_image_example.php to match your requirements: set images folder and watermarked images folder.
  • Open the file in browser, and it will generate watermarked images according to your settings.
Download Watermark Image PHP Script