Grow your CSS skills. Land your dream job.

Last updated on:

Random Slogan Displayer

Create a text file called slogans.txt with permissions that it can be read by the server. Put each slogan on a different line, e.g.:

Building websites since before there was a web.
The internet is for lovers.

       $f_contents = file ("slogans.txt");
       $line = $f_contents[array_rand ($f_contents)];
       print $line;


  1. simply briliant!
    unfortunatley I already installed jquerry plugin …
    but probably wordpress takes more hacking since
    it likes get those from a database…

  2. Permalink to comment#

    Hey , I need help 2 create contact & inquiry form in PHP + PHP code if you plz

Leave a Comment

Posting Code

Markdown is supported in the comment area, so you can write inline code in backticks like `this` or multiline blocks of code in in triple backtick fences like this:

<div>Example code</div>

You don't need to escape code in backticks, Markdown does that for you. If anything screws up, contact us and we can fix it up for you.

*May or may not contain any actual "CSS" or "Tricks".