I've run into a strange problem - probably compounded by my ignorance!
I'm trying to move a client web-site from their old host to my server (a VPS at WiredTree)
We will be building a new site for them but in the meanwhile I just need to make their old content work on my server - it doesn't!
In their old site each php file has an include statement like this:
and in the textblocks.php are defined a number of functions. The textblocks.php file begins and ends with <?php and ?>
In their old environment everything works fine. On my server - although the textblocks.php file is loaded (I tested that by changing the include to require) When a function form that file is called I get an undefined function error.
Okay - the problem is solved and I'm going to split the points according to the number of comments - that's the only thing I think is fair because although I learned a lot from the exchange, none of the
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.
Then you just need to pass your date to the function.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…