You are here: Daniel Dumas »

Tag : Tips and Tutorials

CSS Stylesheet Switcher using PHP

Hi everyone! today I’ll teach you how to separate CSS stylesheet for your website or web projects. there are many ways to do this but I am going to use PHP for this tutorial.

As a Web Developer or Web Designer, it is important that website’s we develop are working on all major browsers, or on all(old or new) browsers if possible. but some browsers (specially the old one’s) has their own specific way Keep Reading…

WordPress Search and Replace

Hey everyone, I am alive again to blog after a long time haha welcome back to me. I’ve decided to blog again to make this site alive in search engines because i been out for a very long time, and my site traffic and ranks has decreased huhu.. alright so much for the blah blah..

well today I’ll share some ways on how to Search and Replace datas or texts in WordPress. this will be useful when you are transferring a wordpress blog from one domain to another or if you’ve developed a wordpress site on your localhost and you’re gonna upload it to an online server or on your own domain, of course you need to update the paths on your posts.

for example you’ve developed a wordpress site on your local machine and you installed it on http://localhost/wordpress, when you transfer the site into a live server, you need to change that path in your Keep Reading…

Internet Explorer (IE) or CSS Conditional Statements

Internet Explorer conditional statement or CSS Conditional statements is a bit of code specially made for Internet Explorer browers which instructs ie browser to perform specific instructions only for internet explorer browser, only windows platform supports ie conditional statements.

the basic structure or syntax of conditional statements is just.. Keep Reading…

Comment Luv + Linky Luv = Link Love (Do Follow)

Weeee my blog is now a do follow blog thanks to lucias’ linky love do-follow plugin for wordpress this plugin is shared to me by Andy bailey the creator of Comment luv plugin. i set linky luv plugin to make links do follow after 5 comments so that my loyal commenters can benefit for sharing their ideas :) actually its been a week since i found this plugin and i have seen many blog sites using these two plugins together which Keep Reading…

Fix wordpress fatal error allowed memory size exhausted

Fatal error: Allowed memory size of …… bytes exhausted (tried to allocate …. bytes) in home/of/some/thing/fishy.php :)

Wordpress Fatal Error allowed memory size exhaustedI experienced this weird WordPress or rather PHP error last night when trying to view my blog when i got home, at first i thought that there was a technical problem at my server so i waited, then i waited and waited and waited again for almost 7 hours then i cant wait no more i want to blogggg… so i contact my hosting provider and they told me that there is nothing wrong with the server nahhh WTF! i told to my self. . :) Keep Reading…

PHP and MySQL Basics: Comments

For greater readability of your PHP code, you should add comments to it, so that you or other people who will look at the code later will understand it clearly.

To do this refer to the example below..

PHP Single Line Comment: Keep Reading…

PHP and MySQL Basics: Your First PHP Script

Now that you know the basic syntax of PHP, let me congratulate you, congrats! hehe. . You are now ready to learn your very first PHP script.

consider this example on embedding your first PHP script into HTML.

<html>
<head>
<title>Hello World!</title>
</head>
<body>
<!-- This is how you print output in PHP-->

<h2><?php echo "Philippines is a beautiful country!"; ?></h2>

</body>
</html>

copy and save this to your text editor with a .php extension then run it on your localhost.. Keep Reading…

PHP and MySQL Basics: Syntax

PHP syntax is very simple it has 3 main parts, the first part is the php opening tag which is <?php, after that is your PHP CODE then the last part is the php closing tag which is ?>

it looks like this..

<?php
. . . . . . . . . . . . . . . . . . . . . .
YOUR PHP CODE HERE
. . . . . . . . . . . . . . . . . . . . . .
?>

you can also use the PHP Short open tags:

<? ?>
<?= ?>

but this is considered a bad habit.. you can use this tags but be sure that short open tag is set to on in your PHP.INI file.

Keep Reading…

PHP and MySQL Basics: Software Needed

Now that you have a little background about PHP, let’s now talk about the tools/software that you need in this lesson.

WHAT DO YOU NEED…

  1. A Web Server - Apache / IIS will work too..
  2. PHP - so that our web server can understand our php file.
  3. Database - MySQL
  4. Text Editor - Notepad, Dreamweaver, PHP Designer or any text editor that you want..
  5. Web Browser - you can use any broswer of your choice(Firefox, IE, SAFARI, OPERA, Chrome)..
  6. Operating System - Linux, Windows or Mac OS.

Keep Reading…

PHP and MySQL Basics: Introduction

Hello this is the first part of the PHP and MySQL basic tutorial here in my blog. if you have any questions or other concerns feel free to leave a comment or contact me through my contact page. okey before we go deep in learning the PHP langauge. lets first define what php is..

Keep Reading…