User Profile

Collapse

Profile Sidebar

Collapse
phobia
phobia
Last Activity: May 30 '10, 12:43 AM
Joined: May 15 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Try using the show-body-only option.
    See more | Go to post

    Leave a comment:


  • phobia
    replied to How To make SEO Friendly URL
    in PHP
    You need to create a column e.g. your article table (given that the articles are in a database) that holds that value, so that you can look it up that way.

    You could e.g. set the value automatically from the title on save just by making it lowercase, restricting it to be alfanumeric, and replace spaces with underscores.

    Example table:
    Code:
    ID     TITLE          URL_SLUG     CONTENT
    5      The Name    the_name
    ...
    See more | Go to post

    Leave a comment:


  • There are multiple providers for that kind of data, e.g. ip2location.com and maxmind.com.

    Since you only need to know the country, the free GeoLite Country db from Maxmind should do. Have a look here: http://www.maxmind.com/app/geolitecountry
    See more | Go to post

    Leave a comment:


  • phobia
    replied to Notice: Undefined index:..
    in PHP
    The notices are issued because you're trying to access indexes not currently set in the $_GET variable. Most likely because the form hasn't been submitted, so you should probably create a check for that, but one way to define a default value for the variables is by using ternary statements:
    Code:
    $user = (isset($_GET['user'])) ? $_GET['user'] : '';
    Here the $user variable will be set to the contents of $_GET['user'] if that is set, otherwise...
    See more | Go to post
    Last edited by phobia; May 16 '10, 02:27 PM. Reason: added quick explanation

    Leave a comment:


  • phobia
    started a topic Which programming language to learn?

    Which programming language to learn?

    Up till now I've been a self though PHP programmer, with all the good and bad that comes with that.

    I want to expand my horizon by learning a new language, and was hoping some of you here could enlighten me with some good alternatives.

    I want to continue with web development, and I guess a typical application would be a CMS, with database integration and all that.

    I've been thinking of C#, Java, Python and...
    See more | Go to post
No activity results to display
Show More
Working...