₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,330,348 members, 8,445,037 topics. Date: Tuesday, 14 July 2026 at 11:42 AM

Toggle theme

DualCore1's Posts

Nairaland ForumDualCore1's ProfileDualCore1's Posts

1 2 3 4 5 6 7 8 ... 19 20 21 22 23 24 25 26 27 (of 371 pages)

WebmastersRe: Procedural Vs Object Oriented PHP by DualCore1: 8:30am On Aug 28, 2012
Make una no fight tongue

I think I was being general with my previous posts. OOP for web development is different for OOP for standalone dev.

In my opinion OOP for standalone development is serious business and that for web development can be toyed with.

OOP PHP is just a buzz word that most people get swayed by. If you are going to be working in a very small team and have everything planned out well, modular procedural coding is just fine and gets the job done. The strength of OOP is in its polyphormism, abstraction and encapsulation. The GOAL: Never write the same piece of code twice.

You do NOT need OOP in PHP to achieve the goal of never writing the same code twice. This can also be achieved with procedural programming using a well planned modular approach to coding in the form of functions. Most OOP PHP tutorials always use the example of a list of cars and trucks and their similarities and differences. It beats my comprehension how the writters of this tutorial try so hard to write very stuupiid procedural codes and compare it with a very well written OOP code just to point out the benefits of OOP.

So really... a lazy man is a lazy man... OOP does not save your time. Self discipline saves your time. Use what works best with minimum investment in time and a high return on this minimum investment of time.

As far as PHP is concerned I see OOP as just another style of coding. I have written pure procedural scripts in the past, after learning OOP I didn't start writing pure OOP scripts. Its now a blend of both... in fact I just call my style of coding "functional programming". Its neither fully procedural or fully OOP... its a perfect blend. I'm too old to be swayed by buzz words, I just pick out the juice from the buzz words.

My thoughts, really.
WebmastersRe: I Was Scammed 2000 Pounds Online by DualCore1: 8:45pm On Aug 27, 2012
I now believe 9jahoster.com has a hand in promoting fraudulent practices going on in that website.

After contacting "Peter" on 9jahoster.com's live chat at about 2PM this afternoon, Peter in his words said "we are suspending the site now and will investigate".

The time now is past 8PM and the site is still LIVE and kicking.

Its a shame.
WebmastersRe: I Was Scammed 2000 Pounds Online by DualCore1: 12:44pm On Aug 27, 2012
brother20102010: Slyr0, Guy I pity you, they there dey form guru make u go put innocent person for prison, How can you just point that he his the person, dont forget that when buildiing website, 3 people are involved, 1 is the owner of the site, 2 is the person that built it, 3 is the hosting company, I am sorry to say, that You might either be talking about the person that host it, and if he his, then i dont think they need to blame it, because first and foremost, if the hoster saw that the domain was something related to zenith bank, he wouldn't have hosted the site, looking at this bank domain, even if you are the host company, you cannver tell if its for fraud because you didnt see any domain like zenithbank. something, so please one more time, non go put innocent person into trouble just becos say u wan make name, I Tell you...... make the blood of innocent person non go flow for ur blood ooo
==============
WHOIS - Wikipedia
Purpose

The WHOIS system originated as a method for system administrators to obtain contact information for IP address assignments or domain name administrators. The use of the data in the WHOIS system has evolved into a variety of uses, including:[citation needed]

Supporting the security and stability of the Internet by providing contact points for network operators and administrators, including ISPs, and certified computer incident response teams;

Determining the registration status of domain names;

Assisting law enforcement authorities in investigations for enforcing national and international laws, including, in some countries, specialized non-governmental entities may be involved in this work;[original research?]

Assisting in combating abusive uses of information communication technology;[2]

Facilitating inquiries and subsequent steps to conduct trademark research and to help counter intellectual property infringement;[citation needed]

Contributing to user confidence in the Internet as a reliable and efficient means of information and communication and as an important tool for promoting digital inclusion, e-commerce and other legitimate uses by helping users identify persons or entities responsible for content and services online; and

Assisting businesses, other organizations and users in combating fraud, complying with relevant laws and safeguarding the interests of the public
=============
Source: http://en.wikipedia.org/wiki/Whois


Bottomline: The administrative contact information in the WHOIS records of a domain is responsible for whatever happens on that domain, whether he is a reseller or end user... he is totally responsible for the use of the domain. The authorities will pin him down and it is left for him to prove he's just a middle man or not... that is not our business. His name is there and he's responsible. End of story.
WebmastersRe: I Was Scammed 2000 Pounds Online by DualCore1: 12:32pm On Aug 27, 2012
everyday: I have just visited the webhosting company who gave these scammers a roof over their heads and guess what they said that there is no sufficient evidence to prove that the website theu are hosting is a scam fellow nairalanders please try to call them ooo if u have credit abeg this is their contact link http://9jahoster.com/contact.html
If they have said they have no real evidence and will investigate, that's fine. If they have said they have no real evidence and have closed the case, that's foolishness.


The scam site "gin-fb.com" is a phishing site. The official site of the Gulf International Bank is "gibonline.com".

Well if 9jahoster.com will not be doing anything about it.... its like complaining to a driver that he's a rough driver... if he refuses to heed advice you move on to tell his boss.

9jahoster.com is hosting "gin-fb.com" on a server with the following details:
=====
NetRange: 184.154.0.0 - 184.154.255.255
CIDR: 184.154.0.0/16
OriginAS: AS32475
NetName: SINGLEHOP
NetHandle: NET-184-154-0-0-1
Parent: NET-184-0-0-0-0
NetType: Direct Allocation
RegDate: 2010-06-21
Updated: 2012-03-02
Ref: http://whois.arin.net/rest/net/NET-184-154-0-0-1
=====

The IP address block is registered to Singlehop. Those are the people who have the power to take down the entire server if the smaller resellers refuse to take down a phishing site.

=======
RAbuseHandle: ABUSE2492-ARIN
RAbuseName: Abuse Department
RAbusePhone: +1-866-817-2811
RAbuseEmail: abuse@singlehop.com
RAbuseRef: http://whois.arin.net/rest/poc/ABUSE2492-ARIN
========
The email address in bold is the email you should use to contact them about this.

After sending the mail you can go back and thank 9jahoster.com for their support and you won't need their assistance anymore as you have reported the issue to the datacenter responsible for that server.
WebmastersRe: I Was Scammed 2000 Pounds Online by DualCore1: 9:33pm On Aug 26, 2012
LoLZ
ProgrammingRe: Figure Out The Error Please (PHP And Mysql)!!! by DualCore1: 7:55pm On Aug 26, 2012
[quote author=D-sense]This is a web application that is meant to conduct transaction after being connected to Database. But, it seems i still haven't positioned the BEGIN and COMMIT perfectly. Please drop your input if any!


if(isset($_POST['amount']))
{
if(isset($_POST['ADD']) && $number !=""wink
{
mysql_query("BEGIN"wink;
$query="UPDATE accounts SET balance='balance+amount' WHERE number='12345'";
mysql_query($query);
}
else
{
$query="UPDATE accounts SET balance='balance-amount' WHERE number='12345'";
mysql_query($query);
}

mysql_query("COMMIT"wink;[/quote]Look at what I have put in bold. That's not correct variable declaration.
What you should have there is

$query="UPDATE accounts SET balance = balance + '$amount' WHERE number='12345'";

AND

$query="UPDATE accounts SET balance = balance - '$amount' WHERE number='12345'";

Assuming the variable holding the amount is $amount.
i.e $amount = $_POST['amount'];



Then again, although the whole MySQL BEGIN thing is not necessary and should be removed its still good to point to you that you have placed it in a wrong place. If it was necessary to use the BEGIN command, it should have been placed outside the IF block checking if the operation is an addition. You have placed yours inside the IF block that will only run if the operation is an addition. So if the operation is not addition, the BEGIN query wont run. Discard the BEGIN and keep the principle in mind for future tasks.
ProgrammingRe: Problem With Php And Mysql by DualCore1: 7:43pm On Aug 26, 2012
You may have overridden the string variable with an array variable. Consider this among the suggestions given above.

A scenario where this may apply

    ...
$result = "this is the text I want to trim ";

...
...
...
$result = @mysql_fetch_array(@mysql_query("select * from women" ));
...
...
...
trim($result);
ProgrammingRe: How Do Go About Building A Database Management System For My Church? by DualCore1: 7:34pm On Aug 26, 2012
Call me, call me, call me..... that's mostly what I see here. huh
WebmastersRe: Does Anyone Know How To Send Emails As Sms To Mobile Phones Using PHP by DualCore1: 6:09pm On Aug 26, 2012
If you have done those steps then it means you should have the API documentation. Provide the documentation so we can have a look at it and help you from there.

If the documentation is not readily available via a link but is in PDF format, just copy paste the example url to send an sms, as stated in the document.
WebmastersRe: Does Anyone Know How To Send Emails As Sms To Mobile Phones Using PHP by DualCore1: 3:31pm On Aug 26, 2012
nelklyn: I guess you didn't read the post properly, I said "using PHP"...
I think he read properly. I don't think you understand the concept.

You need a (bulk) sms service API to connect to for this to work.
PHP is only a medium to connect to the API.

I don't think this should be a major issue.

1. Get a bulk SMS service
2. Study the API of the service
3. Create a function using PHP cURL to connect to the service and send SMS.
4. Call the function on every transaction, adding any arguments to the function like the amount and the description of the transaction.

====
function sendSms($amount, $description){
//write the cURL block that connects to the bulk sms service
}

if(//carry out transaction successfully){
sendSms($amount, "Balance payment for reservation made." );
}
WebmastersRe: Procedural Vs Object Oriented PHP by DualCore1: 12:52pm On Aug 26, 2012
ActiveMan: for me i see this as a waste of resources and also time consuming....
OOP: Spend 1 hour writing a class once and then subsequently spend 30 seconds instantiating that class whenever you need it for various conditions.

Procedural: Spend 10 minutes each, writing a block of code with same functionality but different conditions and applications. For each of the different conditions and applications of the function, its a fresh 10 minutes. Imagine writing that same block for a hundred different applications and conditions.

Bottom Line:
Use what works for you. Its a technological sin to waste time and its punishable by a life of regrets sooner or later. Life is too short.
WebmastersRe: Procedural Vs Object Oriented PHP by DualCore1: 12:37pm On Aug 26, 2012
There are 2 classes of people who would choose procedural programing over object oriented programming.

1. People who are very comfortable with the tons of functions they have written over time (to simplify almost every task).
2. People who are just too lazy to grasp the OOP concept and then take consolation in the fact that they can code in procedural.

Its the way forward. Some employers now ask to see a code snippet you have written in OOP, as part of the determining factors to get hired.

Again, its the way forward and its worth learning now even if you don't know why you should learn it or you don't intend to switch to it immediately.
WebmastersRe: I Was Scammed 2000 Pounds Online by DualCore1: 12:10pm On Aug 26, 2012
WHOIS (gin-fb.com)
albert jones (aljones11@gmail.com)
+234.08061195717
12 paul hendricks street new bodija ibadan
ibadan, oyo 2001
NG

Nameservers
ns10.9jahoster.com
ns9.9jahoster.com


What more info could you possibly need to catch the thief?

everyday: Is it possible to close down their websites they are using to deceive innocent people
Goto 9jahoster.com and contact them. They are the ones hosting this phishing site.
WebmastersRe: Controlling Cpanel With Php Scripts To Create Email, Dbase, Subdomains: by DualCore1: 11:24pm On Aug 24, 2012
Textaiwo: There's is this issue on smartweb cpanel webmail, whenever I try to login on a different machine, it blocks me and trigger "IP has changed, please login again" pls am I the only one getting this or can anyone help in to find a way aroud it, I called smartweb and mailed them, they said am browsing with either airtel or mtn modem meanwhile I used etisalat, immediately I knew they dnt knw much abt this, pls can anyone recommend a different host company. Thanks in advance
This problem you are having has little to do with your webhost. This has a lot to do with your internet connection. If I wasn't an Etisalat subscriber I would be giving you the same answer they gave you that it's because you are using either MTN or Glo as these two are known to cause this problem. However Etisalat just started having the same problem about a month ago. The only logical explanation I can give for this happening is that these ISPs use several IPs in a pool and whenever a connection disconnects and quickly reconnects it reconnects with a different IP in the pool. Your cPanel and other sensitive web applications see this as a threat and flag an "IP changed" error because the IP that was recorded for your session (via cookies) at the point of your cpanel login is no longer the same IP your connection is on (as there was a split second disconnection-reconnection cycle which caused an IP change).

A mild fix for this problem is to disable cookie IP validation on the cPanel server. While this softens the problem it does not eliminate it entirely as this can only be eliminated entirely from the ISPs end.

This is not a problem worth changing hosts for.

[quote author=*dhtml]use www.trudigits.com[/quote]The cookie validation has been turned off on the shared hosting servers and some of the VPS servers of TruDigits on customer request so you may not experience the full effect of the problem but it is still there.
WebmastersRe: Who Fit Teach Me Web Design by DualCore1: 8:31pm On Aug 24, 2012
LOLz @ the topic. I wish I could teach... I would have thought you free of charge.
WebmastersRe: How Can I Get This Admin wahala Fixed? by DualCore1: 5:51pm On Aug 23, 2012
I am confused
Did you really mean "mydomain.com/wp" or the "mydomain.com" was just an example. Cuz the actual "mydomain.com/wp returns a 404 error.

Well in my experience the 406 error you are getting could be as a result of your requests being blocked by the server due to some firewall settings. Delete the WP files in your root directory including the .httaccess file and reinstall.

If that doesn't work and if you have nothing to lose request for your hosting account to be reprovisioned (terminated and re-created) by your host. Once that is done, do a fresh WP installation. If you still jam the error (very unlikely), contact your host and tell them its their problem.
WebmastersRe: How Can One Own A Web Hosting Site Ih Nigeria That Accept Billing Chart. by DualCore1: 5:43pm On Aug 23, 2012
hislordship: sorry i meant billing system, thank for your reply
Ok let's add that up... your topic becomes:
"How Can One Own A Web Hosting Site in Nigeria That Accepts Billing System?"

This still doesn't add up to form a complete meaning, in my opinion.

Leave English alone, what do you want?

The more detailed you can be in your explanation the better the quality of replies you will get.
WebmastersRe: How Can One Own A Web Hosting Site Ih Nigeria That Accept Billing Chart. by DualCore1: 2:42pm On Aug 23, 2012
Your request is not clear, what do you mean by "that accepts billing chart"?
WebmastersRe: Please Help Check This It's Urgent Please by DualCore1: 1:20pm On Aug 23, 2012
miracle4: thanks for such insightful review I'm sure gonna implement it .
now this area got me confused as I couldn't figure out the body part you are referring to
Adding "text-align:justify" to the "home-middle" div style gives you the alignment of the text as shown below:
https://easycaptures.com/fs/uploaded/636/7728734308.jpg

Compare it with what is there presently, if it looks better you can implement it.



For the footer this may be close to giving you ideas as to what you should do with it. The text is best served as white or grey on a dark background, I didn't change the text in the image below though.
https://easycaptures.com/fs/uploaded/636/7085704481.jpg
WebmastersRe: Please Help Check This It's Urgent Please by DualCore1: 11:09am On Aug 23, 2012
The images in the banner slideshow are of poor quality and over stretched (to fit your banner size).

The "header" and "navigation bar" do not flow well, they don't tally with the the entire curved theme.
You can take a look at the "header" and "navigation bar" in www.saharabet.com for inspiration.

The texts in the body of your site, add a "center:justify" to the <p> styles. It will make the texts define your columns well as they will be aligned on both the left and the right sides.

Optimise the background image so it loads up quicker.

The scrolling marquee in red makes no sense in that position and with that effect. You can add the text as a static line on the footer or anywhere else.

If you are to keep your background you will have to put all texts on that site on a plain background for visibility. You have done so with all areas of the site except the footer. Add a background to the footer to make it visible.

Enjoy!
WebmastersRe: Liberty Reserve Funding Needed by DualCore1: 7:42am On Aug 23, 2012
Site has been down for about 3 days now. Looks like they intend to add funding LR via Credit Cards for verified members. The delay should be a pay off for that feature. smiley
WebmastersRe: Liberty Reserve Payment Module For Interspire Shopping Cart. by DualCore1(op): 6:07am On Aug 23, 2012
[quote author=php.NET]@ dual, can i get LR payment module for wordpress or woocommerce?
thanks.[/quote]Use Google to check if its already out there. If you don't fine any let us know. I can't readily opt to write one now, time constraints.
WebmastersRe: Liberty Reserve Funding Needed by DualCore1: 6:58pm On Aug 21, 2012
e-topup.com.ng will fund your account if everything (from the payment gateway to the site) is in order.

Meanwhile Liberty Reserve's site has been down for over 24 hours for "scheduled maintenance".
So there's no way you are getting any USDs in and outta that place until its back up.
WebmastersRe: Wanted Urgently: A Web Developer by DualCore1: 6:55pm On Aug 21, 2012
uholdtheace: You will within 24hrs max come up with an application to run on our website.
If you think its that easy, why don't you hold the code ace bro? Do it yourself... its just a 24-hour stunt! innit?
WebmastersRe: Airtel Official Website Internal Server Error (500) by DualCore1: 12:15am On Aug 18, 2012
I get that with Etisalat as often as I go there to check for their data plans and activation code. I usually really on forums and blogs to get that info now.
WebmastersRe: Am I The Only One Seeing Cockroach In Yahoomail by DualCore1: 12:13am On Aug 18, 2012
I don't use Yahoo! mail, however I had cause to check some mail routing problems from some servers to Yahoo! It was really disgusting for me because at home I work with an additional wall-mounted screen that I connect to my laptop for a wider work area. So I had the browser on the wall-mounted screen and several times I felt there was a cockroach on the wall and my reflex action was natural.

Really that's a very terrible ad.
CelebritiesRe: Pictures Of Peter Psquare's Beautiful Bedroom by DualCore1: 4:04pm On Aug 17, 2012
Una jobless o. huh
BusinessRe: Online Shop, Kasuwa Rebrands To Jumia by DualCore1: 5:25pm On Aug 16, 2012
^^ not the Government. Google Adwords should put policies on the age of a domain and the amount it can spend per day running ads. How can you create a domain today and immediately pump 200 Dollars per day into ads? ...Just an instance.
BusinessRe: Online Shop, Kasuwa Rebrands To Jumia by DualCore1: 4:26pm On Aug 16, 2012
Are the owners related to the dealfish/kalahari freaks? Common behavioral trend.

Get a brainwave > pump money into the brainwave > create a brand via Google Adwords > Jam reality > Accept the harsh reality > Rebrand/Die/Merge > Damage control telling the world how wow everything will be now that it has "evolved" or gone through a "rebrand".

Am I the only one wondering when Mocality will die? It looks like the next in line.
WebmastersRe: Voguepay is Processing!!! by DualCore1: 12:33pm On Aug 15, 2012
I am not talking about the issue that was raised as, according to Voguepay that was resolved on Monday. The issue I am talking about is bank accounts being debited while Interswitch is reporting a transaction failed situation. That problem existed even before these agregators were born. In theory the money is reversed after 24 hours. Practically the money is reversed after a couple of hours in most cases or never at all (maybe going to the bank to lay a complaint should work then, but this is Nigeria).

I did some transactions on one of Voguepay's merchant sites. It failed twice and I can confirm the first failure was reversed but I cannot confirm the second was reversed as its not in the account statement and the amount is too negligible to be detected.
WebmastersRe: Voguepay is Processing!!! by DualCore1: 10:48am On Aug 15, 2012
I don't think everyone understands this problem. This is NOT a Voguepay issue. This is a switching problem. Dealing directly with Interswitch does not solve any switching issues.

1 2 3 4 5 6 7 8 ... 19 20 21 22 23 24 25 26 27 (of 371 pages)