When I got my NAS, I had clear that I wanted to access it from anywhere in the world, as I’m a person who loves travelling and from time to time I’ll need the documents, photos and files in general stored in it. It just made sense for me. To make things easier, I purchased […]
As some of you may know, I recently moved all my services and infrastructure to Alibaba Cloud (阿里云), being this one of the best decisions I made in 2017 in terms of Cloud Computing. I used several services in the past, from DreamHost to 1&1 and from AWS to DigitalOcean. So far, Alibaba Cloud (阿里云) […]
You want to create a Template in your theme, and somehow you don’t have FTP access in that moment. But, hey, you have the WordPress logins to enter in the backend, so… stay tuned! 1 Indentify the theme directory To know the directory in which the theme is located, you will need to see the source […]
Ok, you want know if you are a positive or negative person. Or maybe you want to know if your death is close. Or you just want a personality test. Anyway, you are here because you need to build an online test to see results. Here you’ll learn how to write a paged testing system with […]
One way to do more dinamyc our pages, write less code and simplifying the architecture of the files is using PHP. You can use CSS3 to make the web coolest than others, but the content can be dinamized linking many files. Imagine that you have a master ‘index.php’ with a space to include the content. You […]
There are situations in wich we want to edit separately the content of a website instead to edit all in one file. <?php include ‘FILE.inc’; ?> For me it’s more comfortable edit the files in parts. We can make a file like this: <!DOCTYPE html> <html> <head> <?php include ‘head.inc’; ?> </head> <body> <?php include ‘body.inc’; ?> […]
Usually we visit some pages in which the year in the footer isn’t the current year. This recurrent problem can be easily solved replacing the current-year-place with this PHP code: <?php echo date(“Y”); ?> Simple as milk.
Yesterday I posted “301 REDIRECTION WITH PHP“, a mini how-to where I explained how to make a permanent redirection with PHP. But, if your case is similar to mine, that code it is not sufficient, and we must make a different redirection for each URL request. To do that in one file, you must write the […]