Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,194,815 members, 7,956,081 topics. Date: Monday, 23 September 2024 at 12:57 AM

Kehers's Posts

Nairaland Forum / Kehers's Profile / Kehers's Posts

(1) (2) (3) (4) (5) (6) (7) (of 7 pages)

Webmasters / Re: Web/wap Hosting by kehers(m): 7:45am On Feb 19, 2009
A wap site is identified as one by d development language/platform - just as html denotes a webpage. In d case of a wap site it is either wml (for very low level phones) or xhtml (for newer fones). So really, no special configuration is needed at the design ends. In some instance though, if u are using wml, u may need to configure ur server, mostly thru the .htaccess file, to correctly identify wml files as wap pages. But that is if it is not already configured on the server.
Webmasters / Re: Non-mobile Version Sites/forums And Motorola Q? Please Help! by kehers(m): 5:30pm On Feb 17, 2009
What OS do they run on? If it is Java or Symbiam (which also supports Java) or generally any OS that supports java apps, you can download a java browser that renders webpages on phone close to the way it is on PC. Example of such browsers include Opera Mini and TeaShark. Check out the downloads section of the naija mobile community: http://mobile.ngbot.com for these apps.
Webmasters / Re: Quick Question by kehers(m): 12:14pm On Feb 17, 2009
Depends on au u r populating the table.
If from a db,u can declare a counter variable this way

$x = 1;
while(. . .){
echo '<td id="cell'.$x.'" onmouseover="this.className=\'anodaclass\'" onmouseout="this.className=\'defaultclass\'">. . .';
//. . .
$x++;
}
By the way i hope that was wat u mean.
Webmasters / Re: How To Design A Free Php Login Page by kehers(m): 2:29am On Feb 16, 2009
@dhtml
Sure. D array can be populated from a db but why d performance overhead? Y not validate directly from d db?
Webmasters / Re: How To Design A Free Php Login Page by kehers(m): 4:02pm On Feb 14, 2009
Storing in an array isnt much of a real world instance. What happens every time you want to add more or modify the usernames/password? Go back and edit the codes? And since we are talking of a login page I believe there are users involved. That means for 1000 members, an array of 1000 key/values must be created?
Webmasters / Re: How To Design A Free Php Login Page by kehers(m): 10:59am On Feb 14, 2009
Did u actually tried dat nd it worked? I didn't, just curious.
By d way, talking about a more flexible approach with usernames/passwords stored in database other than an array will be better.
Webmasters / Re: How Do I Reach Interswitch? by kehers(m): 12:19pm On Feb 12, 2009
U may have to go to their office in person. Had to in my own case as attempts to reach them via email proved abortive.
Webmasters / Re: CSS Vs Tables by kehers(m): 3:33pm On Feb 11, 2009
This is a topic developers won't stop arguing about. Personally, I go with the idea that CSS are better for layouts while tables should go for tabular data. But that's just me and then again it depends on the complexity of design. Pause for a minute and visit your favorite site. View the source and search for "table". It will be there in use - for layout and not tabular data! No? Browse through 5 more pages of the site and you will find out it is. Google, Facebook, Mozilla labs, just name it.
Like I said, it depends on the design. If it is a simple one with very little layout structuring CSS is fine. But if it is a bit complex, tables will have to come in - @lst for me grin . Or how do you think facebook do the rounded cornered shadow effect those in-browser popup boxes have?
Webmasters / Re: How To Create Wap Sites by kehers(m): 3:14pm On Feb 11, 2009
For a little bit of advanced mobile site design here is a tutorial link: http://www.developershome.com/wap/xhtmlmp/
It features designing with a lighter form of xhtml other than wml. Some of the main advantages of this over wml is dat it is accessble on web browsers and allows for better design capabilities. e.g use of CSS, more content etc
Webmasters / Re: Java Script Needed For Wapsite by kehers(m): 3:02pm On Feb 11, 2009
Why would you nee javascript for a wapsite? Remember it is a wapsite and not a website. It is intended to run on mobile devices especially phones that are of lesser capabilities. By the way what is the javascript you want intend to do?
Webmasters / Re: Pls Help With Naija Credit Card Info by kehers(m): 3:00pm On Feb 11, 2009
I run on GTB master card and so far I have not been disappointed. They claim to charge $100 to set it up but AFAI remember, the $100 was deposited there in the dom account for me to spend - I even paid it in after the account had been set up. That was o'er a year now though but I don't think nothing would have changed much. I use the card to make alot of payments online - hosting, domain reg, organizatn membership and so far it had not been declined for any "It is Nigerian, it is fake, blah blah blah" excuse.
Webmasters / Re: Problems With Mysql by kehers(m): 5:18pm On Jan 30, 2009
@webdezzi
Been busy wt a lot of sku work and hardly come online ds days. Hopefully, I will b fully back real soon
Webmasters / Re: Nairaland Now Serving Pop-up Ads? by kehers(m): 3:44pm On Jan 28, 2009
It is been a while I was around here but I doubt it. On the other hand, it could be that ur system have been infected with a spyware, trojan or virus.
Webmasters / Re: Problems With Mysql by kehers(m): 3:38pm On Jan 28, 2009
$tables=mysql_list_tables("today"wink;

The function mysql_list_tables returns a resource identifier to the result. And that is why you are getting what you are getting. You still need a couple of code lines to draw up the resource result.
Here:

,
$tables=mysql_list_tables("today"wink;
while(list($tbl) = mysql_fetch_array($tables)){
echo $tbl;
}
,
I didnt test that (stole just some minutes to come around NL) but I hope it works.
Webmasters / Re: Review This Site by kehers(m): 1:29pm On Jan 05, 2009
Had to do a hurried check too. The design is ok but Im having issues with the logo. It is too big and that background doesnt jell well. The other thing I quickly noticed is that the front page is not catchy. I mean it doesnt really portray what the site is all about. It should show captions of activites from various parts of the site and be more active.
I have not gotten the chance to register and review the other parts but I will as soon as I am chanced.
Webmasters / Re: Dissapointed by kehers(m): 1:18pm On Jan 05, 2009
Probably you posted during the festive period - when people who can help with reviews were busy doing other things. Its been a while me as a person have been around (the festivity u know wink ) . So probably you should post again.
Webmasters / Re: World Currencies by kehers(m): 12:55pm On Dec 30, 2008
For those interested in the extraction details, here is how I went about it. I simply checked the source code, copied out the table element containing the currencies (name, currency, symbol, code) and saved it in a file (currencies.txt).
I then used the following snippet to match, extract and insert into the mysql table.


<?php
mysql_connect("localhost", "root", ""wink;
mysql_select_db("tests"wink;
//
$content = file_get_contents('currency.txt');
preg_match_all("/<tr.*>(.*)<\/tr>/Usi", $content, $all);
$matches = $all[1];
foreach($matches as $match)
{
list($country, $currency, $iso, $symbol) = split('</td>', $match);
$country = trim(strip_tags($country));
$currency = trim(strip_tags($currency));
$iso = trim(strip_tags($iso));
$symbol = trim(strip_tags($symbol));
if(!empty($currency) && !empty($iso))
{
mysql_query("insert into `bills`.`currencies` (country, currency, symbol) values ('".addslashes($country)."', '".addslashes($currency)."', '$iso')"wink;
}
}
?>

It is a very rough piece of code - was so much in a hurry to do it better. Feel free to tweak in watever way. Whatever, this one altleast works.
Webmasters / World Currencies by kehers(m): 12:48pm On Dec 30, 2008
A current project requires a list of world currencies. I got the ISO-4217 codes from the link: http://fx.sauder.ubc.ca/currency_table.html and extracted the country name, currency name and symbol into a mysql table.
Attached is the mysql statements (the create table and inserts) in case it is needed by someone else - so u dont av to go through the stress of the extraction like I did.

Webmasters / Re: Chrome, Firefox, Or Internet Explorer 8? by kehers(m): 12:31pm On Dec 30, 2008
ThePhantom:

@Seun

Curious, What does Nairaland stats  show about the browser type been used to view Nairaland?

Lemme guess, the highest will be IE - and I think dat will be v6
Webmasters / Re: Chrome, Firefox, Or Internet Explorer 8? by kehers(m): 11:03am On Dec 30, 2008
Seun:

We can fight over whether Google Chrome should be in beta, but the fact is that it is not in beta.

Yeah, Chrome is outta beta - even for a while now.
Webmasters / Re: Chrome, Firefox, Or Internet Explorer 8? by kehers(m): 4:21pm On Dec 29, 2008
Hmm, here we go again.

For looks, I will go for Chrome (Im a sucker for simple things) and then for the cool features they copied from other browsers. And hey I love their way of seperating each tabs in different memory blocks. Dont be decieved though, FF is still the browser I stand up for  grin - my best, my default! Not actually for their comformance to web standards (I actually think Opera conforms more), but for the millions of available add-ons on it. The two things I hate about FF though is its memory mngt problem (not that bad though - esp when u compare to IE) and popping out that download manager window when I want to download. Cant it just handle the download w/o bringing dat up? The truth however is that if Chrome starts allowing extensions and I can get as well the all the extensions/addons I have on FF, I will switch to Chrome as my default  undecided

Oh IE? The only reason Im still keeping it is for development purpose. By the way the idea that IE 6 doesnt work on vista is senseless of microsoft. Must I use 7? And not forgetting, when did we have to wait till Chrome have an inbuilr RSS reader?
Webmasters / Re: Phpmyadmin And Dreamweaver8 Uploading Picture Issues by kehers(m): 10:17pm On Dec 09, 2008
I code directly in Editplus (an editor like d notepad, notepad++, and co)
Webmasters / Re: Phpmyadmin And Dreamweaver8 Uploading Picture Issues by kehers(m): 9:50pm On Dec 09, 2008
Sorry to burst ur bubbles but i dont do DW as well. We can only hope another developer in d house will help out on d DW part.
Webmasters / Re: CSS Layout Debate by kehers(m): 9:39pm On Dec 09, 2008
I'm yet to confirm if xhtml (strict) supports block elements in ULs ('m on mobile at d moment) but the truth is that a 3 column design is achievable wt UL. It is just not advisable. But for d record, it can be done.
The ul list-style type will simply be set to none, padding nd margin out as well, d (3) LIs floated left and d containg block element giving a specific width. That i guess wil do d trick.
Webmasters / Re: CSS Layout Debate by kehers(m): 7:02pm On Dec 09, 2008
I wil go for floated divs. Uls are better of for menus. Besides, since ur page content wil contain other block elements - p, other divs and co, using a list item (li) isnt a good idea. I cant remember the xtml strict dtd supporting a block element inside li.
Webmasters / Re: Websites And Browser Compatibilty Issues by kehers(m): 4:46pm On Dec 08, 2008
Lol.
Dont miss out IE6. It is still d most used out there.
Webmasters / Re: Phpmyadmin And Dreamweaver8 Uploading Picture Issues by kehers(m): 4:13pm On Dec 08, 2008
Im hoping you have average skills in PHP and Mysql so Ive purposely left out some more detailed parts. And by the way, the create sql for the tbl table Im using here goes like this

CREATE TABLE `tbl` (
`id` int(11) NOT NULL auto_increment,
`src` blob NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM

So lets continue. With the form and upload probably taken care of. The last worry is displaying the image. You actually need a script that will take of the image display. Lets call it image.php. Here is what it will contain:

<?php
mysql_connect("localhost", "db_usrname", "db_password"wink;
mysql_select_db("ur_dbname"wink;
//
$id = $_GET['id'];
$r = mysql_query("select src from tbl where id='$id'"wink;
list($src) = mysql_fetch_array($r);
echo $src;
?>

So that from anywhere, u can simply call up any image stored in the tbl this way:


<img src="image.php?id=1" alt="Hmmm, " />

And thats all. The id of the needed image is simply passed to image.php where it is retrieved and the value of the blob field is outputted.
By the way, there may be better ways to achieve storing images in a database but this is the idea I have. Anyone with other ideas should please share.
Let me know if it works.
Webmasters / Re: Phpmyadmin And Dreamweaver8 Uploading Picture Issues by kehers(m): 4:00pm On Dec 08, 2008
LAst post's edit. The MAX size specified there is 500KB and not MB.
That said, the next thing is handling the uploaded image. First, create a folder called tmp and then handle the submission this way

$err = array(
0=>"There is no error, the file uploaded with success",
1=>"The uploaded file exceeds the maximum upload filesize",
2=>"The uploaded file exceeds the maximum upload filesize",
3=>"The uploaded file was only partially uploaded",
4=>"No file was uploaded",
6=>"Missing a temporary folder"
);
if(move_uploaded_file($_FILES['source']['tmp_name'], "tmp/".$_FILES['source']['name'])){
$filecontent = file_get_contents("tmp/".$_FILES['source']['name']);
//query
$r = mysql_query("insert into tbl (src) values ('".mysql_escape_string($filecontent)."')"wink;
echo mysql_error();
}
else{
echo 'Upload Error: '.$err[$_FILES['source']['error']];
}
Webmasters / Re: Phpmyadmin And Dreamweaver8 Uploading Picture Issues by kehers(m): 3:39pm On Dec 08, 2008
The null means no data is inserted in the field. Are u sure the image is uploaded in the first place?

<form action="" enctype="multipart/form-data" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="524280">
Picture source: <input type="file" name="source" />
<input type="submit" value="Upload" />
</form>
The MAX_FILE_SIZE parameter is important and should come before your input file. its value is the maximum bytes allowed (here it is set to around 5MB). Take note of the form enctype as well. For uploads, it should be set to multipart/form-data
Webmasters / Re: Web Developers Column! by kehers(m): 6:57am On Dec 08, 2008
He hee hee, developers go show codes. (Just Kidding)
What I actually do is show them the site but make them see beyond the physical appearance i.e show them the functionality - wat the site is capable of.
If for example it has an admin ends, i will simply login there and show how easy it is to manage the site from there.
For ex in cases I want to brag about my code skills with my mobile site, d core things I show are the sms/wappush api integration, d players (mp3, flv) coded with flash actionscript, xtreme js pages (profile px, my social line, my phonebk, etc) and the integration of web techs/standards (opensearch, auto generation of rss, etc) among other things.
In other words, since we cant show our codes (i'v heard the 'this is boring' a million nd one times), we can show what our codes can do. Sure though, d showoff is easier wt designers dan developers but if we can steal some time with who ever it may concern, we will be more appreciated.
Webmasters / Re: Phpmyadmin And Dreamweaver8 Uploading Picture Issues by kehers(m): 2:35pm On Dec 07, 2008
To start wit, it is not advisable to store up images in ur db fields. Store it in a folder snd store the imae path in the db instead.
Attached is a snippet for that

<?php
if(move_uploaded_file($_FILES['source']['tmp_name'], "foldername/".$_FILES['source']['name'])){
//query
$r = mysql_query("insert into tableName (src, size) values ('".$_FILES['source']['name']."', '".round($_FILES['source']['size']/1024."')"wink;
if($r){
//upload success
}
else{
//sql query error
//echo mysql_error();
}
}
else{
//Upload error
}
?>
And if you must store it in a db, simply make the data type f the field blob (binary large object - if Im correct) as Yawa said and once u upload, use any of the php file functions to read the content (binary) and it is that u insert into the db. Here is a simpel analogy:

<?php
$filecontent = file_get_contents('path/to/uploaded/file.ext');
$sql = "insert into tbl (px) values ('$filecontent')";
//, the query and otherthings follows
?>
Nairaland / General / Re: Spam On Webmaster Section Vs Spam On Programming Section by kehers(m): 2:22pm On Dec 05, 2008
I dont see captcha as a solution here. Dat is only effective in cases in which d bots posts without member registeratn - which i doubt is d case here. Catchas wil only work if members as well av to use it wen posting/replying any thread - an idea which im not down wit.

(1) (2) (3) (4) (5) (6) (7) (of 7 pages)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 82
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.