Jump to content


tomfmason

Member Since 31 Dec 1969
Offline Last Active Dec 05 2013 02:11 PM

Posts I've Made

In Topic: Just put it to rest.

14 July 2013 - 01:41 PM

I've never been a fan of CI. Actually passed up on a job two years ago because they were going to force me to work with it.


In Topic: Problem Listing $_POST values

09 January 2012 - 09:03 AM

I would replace that while/each with a simple foreach e.g.

foreach($_POST as $key=>$value) {
    //do some stuff
}

In Topic: Ubuntu partitions

11 December 2011 - 01:31 PM

Without knowing your partition layout I would assume you can. I would recommend you get a live distro on a usbstick or dvd and use parted/gparted to remove the windows partition and resize the ubuntu partition. I keep a copy of the gparted live on a small 4 gig usb stick for situations like these.

In Topic: Form Validation : Showing errors without passing inputs

07 December 2011 - 03:01 PM

offtopic: how can I highlight the PHP code here?


php code within [code][/code] will automatically be highlighted if you start with <?php. Otherwise you can use [php][/php]

In Topic: Problem redirecting CGI id= pages to new php pages!

07 December 2011 - 09:12 AM

if that wont work then you will most likely need to replace the current guide.cgi with a simple redirection script using the redirect method e.g.

#!/usr/bin/env perl
use CGI; 
my $q = CGI->new(); 
print $q->redirect( 
  -location => 'http://domain.tld/guide_final.php?paper=' . $q->url_param('paper'), 
  -status => 301, 
); 

It has been a very long time since I have written anything in perl but from what I remember that is how you would do it.

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com