Frank Verhoeven

Webdevelopment Blog

  • Home
  • Forums
  • Contact

Home ⟩ PHP

Quick Results

    Forums

    • FV Community News
    • General Discussion
    • FV Code Highlighter

    Recent Topics

    • jQuery error
    • How to translate?
    • Link for posts not working
    • Changing the font on the form?
    • Tags

    Tag Archives: PHP

    Create an RSS Feed with WordPress

    Posted by Frank | Filed under PHP WordPress

    When you are busy creating a wonderful plugin for your WordPress blog, it might be possible that you need to create a RSS feed. For example, when creating a guestbook people could ask for a RSS feed to view the recent added posts and stay updated, or take a look at my own Community News Plugin, isn’t it great if it had a build-in RSS feed as well?

    Well don’t worry I am busy to create that and it is almost finished. In the mean while, I wanted to share some stuff I learned while creating this RSS feed.

    The Beginning

    The first thing we need is a function that actually creates the RSS feed. This function doesn’t need any parameters and it also shouldn’t return anything.

    17 Replies | October 6, 2008

    Using Sessions in WordPress

    Posted by Frank | Filed under PHP WordPress

    Yesterday, when I was creating a new plugin for my friend Stefan Vervoort, I needed sessions to work. Unfortunately, WordPress doesn’t support them?!

    I searched the whole source code of this great piece of blogging software, and not on one single line I found even one session. Also the session_start() function is not called, but I still needed my sessions to work :-? .

    So I started searching Google for a fix of my problem. I found a lot of people asking the same question: “Why do sessions not work in WordPress?” Finally I found a solution to fix this little issue and guess what, it is a simple one.

    104 Replies | September 20, 2008

    New PHP Highlighter In Town

    Posted by Frank | Filed under PHP Wordpress Plugins

    Hey everyone,

    As you could have read here, the current release of my code highlighter has some trouble with highlighting PHP on servers running PHP version 4. I told you I should try to fix the problem and include a better PHP highlighter in the next release.

    I worked very hard this morning to get PHP fixed, and I’m proud to announce that PHP is almost working the way it should. That means: including servers running PHP4.

    You want an example? Sure, here it is:

    PHP Code Like It Should

    {code type=php}
    mysql_connect ($host, $user, $password);
    $result = mysql_db_query ('Database', 'select * from table');
    while ($row = mysql_fetch_assoc ($result))
    {
    echo $row['user_id'];
    echo $row['fullname'];
    }
    mysql_free_result ($result);
    ?>
    {/code}

    So, What’s Next?

    After this highlighter is finished, I create one for JavaScript and properly one for Java. As soon as they all work the way it should, I will release version 1.1.

    See you.

    4 Replies | September 18, 2008

    Short If-Else Structure

    Posted by Frank | Filed under PHP

    In addition to the enlarged if – else statement that you will use in most cases, there is also a short structure for an if – else statement. This format uses the so-called “ternary operator ‘. The syntax of this shorthand structure is as follows:
    [code type=php]
    $var = condition ? true : false;
    [/code]

    1. Condition = The condition which must be met.
    2. True = Executed if the condition is met.
    3. False = Executed if the condition failes.
    9 Replies | September 16, 2008

    WordPress Plugin – FV Code Highlighter

    Posted by Frank | Filed under Wordpress Plugins

    The main subject of this blog will be web development and feature some interesting articles and tutorials ranging from PHP and jQuery to HTML and CSS. The problem I was facing when I built this theme was the lack of awesome code highlight plugin. I just couldn’t find one that was working for me.

    I thought maybe more people were looking for a plugin that simply publish codes that looks great. I started to write my own, and the FV Code Highlight plugin was born and now open for the public. The features are plain and simple, read on.

    September 10, 2008

    Meta

    • Login
    • Lost Password
    • Register

    Categories

    • Internet
    • News
    • PHP
    • Web Hosting
    • WordPress
    • Wordpress Plugins

    Tags

    Community News FV Community News Hosting Internet News PHP Web WordPress Wordpress Plugins

    Home | Sitemap | Top


    Copyright © 2013 Frank Verhoeven