Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,159,122 members, 7,838,844 topics. Date: Friday, 24 May 2024 at 10:17 AM

Ivcraig's Posts

Nairaland Forum / Ivcraig's Profile / Ivcraig's Posts

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (of 11 pages)

Programming / Re: Hello House: Let's Do A Little PHP Using PDO by ivcraig(m): 9:12pm On Feb 29, 2016
This benchmark is flawed, as PDO does escaping/preparing entirely on the client-side, while MySQLi uses the mysql protocol for that (thus network IO).
The writer even agreed to it himself. Read the end of the article.
Programming / Re: Hello House: Let's Do A Little PHP Using PDO by ivcraig(m): 4:38pm On Feb 29, 2016
Thanks for taking out time to do this for all who want to transit from function-oriented (procedural) PHP programming to object-oriented. I have become very much accustomed to mysqli procedural. But please I need to know why switching to PDO for database operations is advantageous, apart from PDO's power to connect to other databases? Thank you.
Technology Market / Re: Hardshell Transparent Case For Macbook Pro - 15 Inches - 14k by ivcraig(m): 10:15am On Feb 23, 2016
You can contact me on : 08062239670
Technology Market / Hardshell Transparent Case For Macbook Pro - 15 Inches - 14k by ivcraig(m): 3:00pm On Feb 22, 2016
Ready to sell.

Webmasters / Re: Prevent Mod_rewrite From Rewriting Image Links by ivcraig(m): 7:27pm On Feb 18, 2016
vicsrael:
try this


<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>

RewriteEngine On

# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
Thanks man. What's the advantage of this over the solution I got. I'm very interested in making positive changes and learn new stuff.
From the looks of this one it seems I can easily redirect all my links.
Webmasters / Re: Prevent Mod_rewrite From Rewriting Image Links by ivcraig(m): 12:04am On Feb 18, 2016
I tried this but it didn't work.
Rewriterule ^tracks-([0-9]+)+([0-9a-zA-Z_-]+)$
This worked tho:
Rewriterule ^tracks/([0-9]+)/([0-9a-zA-Z_-]+)$
I changed the slashes to dashes. I guess the
slashes convert the link to directories, which also reroutes all files on the page.
Programming / Re: Why Is OOP PHP So Confusing? by ivcraig(m): 8:05pm On Feb 17, 2016
dhtml18:
Yeah, i recommend the use of altorouter - http://altorouter.com/ for routing
Thanks bro. I really can't figure out how to use it. I'm still stuck with procedural php orientation. I think it's high time I started to take this oop serious. Everything on the Web nowadays are objects.
PHP object orientation dey turn my head.
Programming / Re: Why Is OOP PHP So Confusing? by ivcraig(m): 6:57pm On Feb 17, 2016
dhtml18:
Great that you have solved the problem, .htaccess can be a bit crazy atimes. Sometimes when you move your stuff to online server, you may start another battle again.
I hope this solves it permanently. I checked WordPress, laravel and codeigniter's own Htaccess. They seem to have a generic approach to rewriting links. I guess php also plays a major role.
Programming / Re: Why Is OOP PHP So Confusing? by ivcraig(m): 7:16am On Feb 17, 2016
dhtml18:


If your images are stored in lets say images folder,
then try something like this in your .htaccess

RewriteCond %{REQUEST_URI} !/images

put that after the RewriteEngine on
Thanks bro. I tried it but didn't work. This just worked tho:
Rewriterule ^tracks-([0-9]+)+([0-9a-zA-Z_-]+)$
instead of:
Rewriterule ^tracks/([0-9]+)/([0-9a-zA-Z_-]+)$
I changed the slashes to dashes. I guess the slashes convert the link to directories. I also feel this is not appropriate.
Programming / Re: Why Is OOP PHP So Confusing? by ivcraig(m): 6:18am On Feb 17, 2016
Ive tried all advise and its still same thing. I wish there was a better way
Programming / Re: Why Is OOP PHP So Confusing? by ivcraig(m): 6:16am On Feb 17, 2016
Options -Indexes
ErrorDocument 404 /index.php
RewriteEngine on
Rewriterule ^home index.php [NC,L]
Rewriterule ^events events.php [NC,L]
Rewriterule ^music music.php [NC,L]
Rewriterule ^articles articles.php [NC,L]
Rewriterule ^article article.php [NC,L]
Rewriterule ^news news.php [NC,L]
Rewriterule ^ministration ministration.php [NC,L]
Rewriterule ^tracks/([0-9]+)/([0-9a-zA-Z_-]+)$ view_music.php?page=$1&title=$2
Webmasters / Re: Prevent Mod_rewrite From Rewriting Image Links by ivcraig(m): 7:20pm On Feb 16, 2016
vicsrael:
there is a way to exempt physical files Google it
I've tried all methods I found online. None seems to work.
Programming / Re: Why Is OOP PHP So Confusing? by ivcraig(m): 5:57pm On Feb 16, 2016
Guys please help out.
I'm trying to cleanup my the links on a website I'm working on, using htaccess. My rewrite rule works fine, but the images on the page don't display because a part of image links are also rewritten.

I'm rewriting view_music.php?id=$1&title=$2 to: track/id/title
track/id/title gets appended to all image links.
Webmasters / Prevent Mod_rewrite From Rewriting Image Links by ivcraig(m): 4:53pm On Feb 16, 2016
Hello guys. I'm trying to cleanup my the links on a website I'm working on, using htaccess
. My rewrite rule works fine, but the images on the page don't display because a part of image links are also rewritten.
NYSC / Re: NYSC 2016 Batch A Corp Members House by ivcraig(m): 6:37pm On Feb 12, 2016
What youre getting is a "404 HTML Response". It literarily means, the page or file you are trying to access doesn't exist on the server.
Val601:
gurus in the house should try using this link to open the 2016 remobilization page and kindly explain what it means : portal.nysc.org.ng/nysc1/PrepPaymentRemob.aspx
NYSC / Re: NYSC 2016 Batch A Corp Members House by ivcraig(m): 8:29pm On Feb 11, 2016
Please help!!! A friend of mine mistakenly choose a wrong year of birth, hence he cannot continue registration because the year he chose makes him above 30 years old.
NYSC / Re: NYSC 2016 Batch A Corp Members House by ivcraig(m): 7:07pm On Feb 11, 2016
Please my friend chose a wrong year of birth and he can't continue registration. Any solution to this?
NYSC / Re: NYSC 2016 Batch A Corp Members House by ivcraig(m): 10:14am On Feb 11, 2016
NYSC / Re: NYSC 2016 Batch A Corp Members House by ivcraig(m): 8:44am On Feb 11, 2016
chinakanelson:
I did Dat it was showing me my green card
Once you login, don't click on the print slip button. Just change the link immediately.
NYSC / Re: All 2016 Batch A Corpers Posted To Oyo Lets Meet Here. by ivcraig(m): 8:41am On Feb 11, 2016
Is there any of such? I'm not on any.
NYSC / Re: All 2016 Batch A Corpers Posted To Oyo Lets Meet Here. by ivcraig(m): 7:53am On Feb 11, 2016
The title of this post is damn too long and boring.
NYSC / Re: All 2016 Batch A Corpers Posted To Oyo Lets Meet Here. by ivcraig(m): 7:51am On Feb 11, 2016
Victor Uniben Pol science and pub admin Oyo! Sharp Team
NYSC / Re: NYSC 2016 Batch A Corp Members House by ivcraig(m): 2:01am On Feb 11, 2016
If ure using your mobile phone to check. Firefox or the default browser works best on Android devices. Ensure you change your settings to enable it view desktop site.
NYSC / Re: NYSC 2016 Batch A Corp Members House by ivcraig(m): 1:57am On Feb 11, 2016
rusty9:
Tnx agn man.. u dey try die
Nothing do you. You fresh.
NYSC / Re: NYSC 2016 Batch A Corp Members House by ivcraig(m): 1:54am On Feb 11, 2016
mickyswaggz:


Presido check for me abeg
Lagos. Stream 1.
NYSC / Re: NYSC 2016 Batch A Corp Members House by ivcraig(m): 1:51am On Feb 11, 2016
rusty9:
LogoDwhiz abeg help us ooo
Benue. Stream 1.
NYSC / Re: NYSC 2016 Batch A Corp Members House by ivcraig(m): 12:24am On Feb 09, 2016
Good news guys. If your call up number wasn't showing, you can check back online now. Mine is showing now.
NYSC / Re: NYSC 2016 Batch A Corp Members House by ivcraig(m): 7:38pm On Feb 08, 2016
registered successfully without a call up number. Any solution?
Webmasters / Re: Lets Rate The Design Of Each Other's Website by ivcraig(m): 7:57pm On Feb 07, 2016
Lazyreporta:
www.lazyreporta.com
Nice one bro. How old is the site.
Webmasters / Re: Lets Rate The Design Of Each Other's Website by ivcraig(m): 12:08pm On Feb 07, 2016
9iceX:
Letme bluff a lil'bit cheesy
If you visit http://www.nawesabi.com , ur gonna get trapped with mah cool design.. #Trust
Nice one bro. What language or software did you use to write/make the site?
Programming / Re: Phpbrowserbox Update - Google Chrome + PHP/MySQL Server In One! by ivcraig(m): 8:26pm On Jan 30, 2016
SeunOni your site needs more work. It's seems unfinished and very much unresponsive. You fit contract me, make I finish am up for you.
NYSC / Re: NYSC 2016 Batch A Corp Members House by ivcraig(m): 10:08am On Jan 14, 2016
Uniben prospective Batch A corpers. What's the status on the collection of our SOR?

(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (of 11 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. 36
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.