Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,143,373 members, 7,781,045 topics. Date: Friday, 29 March 2024 at 08:00 AM

10 Nights Of Cloning Nairaland With PHP - Programming (4) - Nairaland

Nairaland Forum / Science/Technology / Programming / 10 Nights Of Cloning Nairaland With PHP (15370 Views)

[Tutorial Post] How To Integrate Paystack Payment System With PHP / A Month Of Cloning Facebook, G+ And LIS. The Result= Gisthive.com / EMV Chip Cloning Software (2) (3) (4)

(1) (2) (3) (4) (5) (6) (Reply) (Go Down)

Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 5:24am On Oct 05, 2017
DanielTheGeek:
@kanayoNickel
It also looks as if you have a PHP file for each category... If i'm correct then the design pattern is bad. What if your mods (in future) want to create multiple categories at once?

The page content looks small on my 1980 x 1080 laptop screen...

You need to add proper finishing touches to the markup and style like padding and margin where necessary..


Thank u really.

That's how yo spot a rookie or intermediate rookie.

I never implemented MVC back then but I am looking into the points u raised now.

U are d best .

keep finding faults ...security wise, everywhere wise.
Re: 10 Nights Of Cloning Nairaland With PHP by Nobody: 8:16am On Oct 05, 2017
kanayoNickel:


Thank u really.

That's how yo spot a rookie or intermediate rookie.

I never implemented MVC back then but I am looking into the points u raised now.

U are d best .

keep finding faults ...security wise, everywhere wise.


I know you aren't using a MVC architecture but still you can have one file...maybe category.php that contains logic to load the desired category either based on the current URI string or by passing the category name/id via a $_get var.

So:
yoursite.com/category.php?cat=politics

Then your code will contain logic to parse the required category or throw a 404 error if category doesn't exist.

Then also try prettifying your URL. Remove .php from the URL for better SEO.
Re: 10 Nights Of Cloning Nairaland With PHP by okwyee(m): 8:30am On Oct 05, 2017
kanayoNickel:


Thank u really.

That's how yo spot a rookie or intermediate rookie.

I never implemented MVC back then but I am looking into the points u raised now.

U are d best .

keep finding faults ...security wise, everywhere wise.


For some reason, I find this sooo funny grin

Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 9:53am On Oct 05, 2017
okwyee:


For some reason, I find this sooo funny grin

grin grin grin grin
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 9:56am On Oct 05, 2017
DanielTheGeek:



Then also try prettifying your URL. Remove .php from the URL for better SEO.

cAN U PLEASE direct me on how to do this without having to resort to .htaccess that dosent seem to work for me undecided
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 1:02pm On Oct 05, 2017
Well I have been battling with prettifying my URL since this morning and there's no lite at the end of the tunnel yet.....

MEanwhile, I implemented an ajax Live search that should have the ability to change background color of the div for every random search.

OK, back to redressing all the issues raised. brb

1 Like

Re: 10 Nights Of Cloning Nairaland With PHP by Nobody: 3:15pm On Oct 05, 2017
kanayoNickel:
Well I have been battling with prettifying my URL since this morning and there's no lite at the end of the tunnel yet.....

MEanwhile, I implemented an ajax Live search that should have the ability to change background color of the div for every random search.

OK, back to redressing all the issues raised. brb

The .htaccess file isn't working probably because the apache mod.rewrite.c module has been disabled by the host.

For now, leave the URL's, when you switch to a better host you can do that easily...but can i see the .htaccess code? (Just the mod.rewrite part)

Did you check for mod.rewrite.c availability:

Do:

Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /

## hide .php extension
# To externally redirect /dir/foo.php to /dir/foo
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
RewriteRule ^ %1 [R,L,NC]

## To internally redirect /dir/foo to /dir/foo.php
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^ %{REQUEST_URI}.php [L]
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 3:57pm On Oct 05, 2017
DanielTheGeek:


The .htaccess file isn't working probably because the apache mod.rewrite.c module has been disabled by the host.

For now, leave the URL's, when you switch to a better host you can do that easily...but can i see the .htaccess code? (Just the mod.rewrite part)

Did you check for mod.rewrite.c availability:

Do:
 

I had something similar to this but I will this one. thanks

Maybe indeed my host is hindering certain scripts from work in . perhaps as a demo server these restrictions must be .

There are some stuff , esp jscripts that just refused to work online even though they work on my local host (main reason I am looking increasing towards jquery)

Thanks really.

1 Like

Re: 10 Nights Of Cloning Nairaland With PHP by Nobody: 4:12pm On Oct 05, 2017
Anytime man, you're welcome.

kanayoNickel:


I had something similar to this but I will this one. thanks

Maybe indeed my host is hindering certain scripts from work in . perhaps as a demo server these restrictions must be .

There are some stuff , esp jscripts that just refused to work online even though they work on my local host (main reason I am looking increasing towards jquery)

Thanks really.
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 4:52pm On Oct 07, 2017
Well, in the process of trying to prettify my URLs and increase my margins ( I am yet to fix them) I had dabbled into building dashboard functions for users. I want it to hold all their topics, job creations and orders, and a photo pin up.

So today, I had been working on
1. Scroll to top button
2. delete comments by user
3. a photo gallery pin up using Ajax and WookMark.
4. Full text Search Using Ajax . Here I want a function that splits the strings before searching.
5. Mouse over effect while cursor is on picture. slight jump upon placing cursor.
6. viewers rating / like a user's pic and other stuff. I am just too deep into cosmetics cool

So the photo gallery involves a drag and drop file upload with image previews as u can see below and it doesn't depend on any library to function.

Its a playground ..huhuhu.

I think Jquery them should give me scholarship...lol

Re: 10 Nights Of Cloning Nairaland With PHP by Nobody: 7:36pm On Oct 07, 2017
Always have something great to show on each new update. Good job man

kanayoNickel:
Well, in the process of trying to prettify my URLs and increase my margins ( I am yet to fix them) I had dabbled into building dashboard functions for users. I want it to hold all their topics, job creations and orders, and a photo pin up.

So today, I had been working on
1. Scroll to top button
2. delete comments by user
3. a photo gallery pin up using Ajax and WookMark.
4. Full text Search Using Ajax . Here I want a function that splits the strings before searching.

So the photo gallery involves a drag and drop file upload with image previews as u can see below and it doesn't depend on any library to function.

Its a playground ..huhuhu.

I think Jquery them should give me scholarship...lol
Re: 10 Nights Of Cloning Nairaland With PHP by AfricaNigerian: 10:25am On Oct 08, 2017
Wow! This Op is professional programmer. I'm a user on infobreak , my id is AfricaNigerian.
Re: 10 Nights Of Cloning Nairaland With PHP by Jaddo19(m): 12:09pm On Oct 08, 2017
kanayoNickel:

4. Full text Search Using Ajax . Here I want a function that splits the strings before searching.
I have something close to dat...only problem is that it splits the string into letters

I can drop d code if u want so u can modify it
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 12:43pm On Oct 08, 2017
AfricaNigerian:
Wow! This Op is professional programmer.
I'm a user on infobreak , my id is AfricaNigerian.

Not yet professional but getting there. I believe

Thank you for accessing the site. plz do critique.
Re: 10 Nights Of Cloning Nairaland With PHP by olamil34(m): 2:10pm On Oct 08, 2017
kanayoNickel:


Not yet professional but getting there. I believe

Thank you for accessing the site. plz do critique.
my brother in code am deeply proud of u, i wish i could hug u.
Re: 10 Nights Of Cloning Nairaland With PHP by Lemeechi: 4:03pm On Oct 08, 2017
If you want to split a search string just remember someone may just be looking for an exact match.
Re: 10 Nights Of Cloning Nairaland With PHP by Lemeechi: 4:35pm On Oct 08, 2017
Tried to visit the site using Windows Phone. On Opera Mini, UC Browser, IE, different pages don't show at all, or appear broken. I see Login so where is the Register option?
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 10:46pm On Oct 08, 2017
grin
olamil34:
my brother in code am deeply proud of u, i wish i could hug u.

Thank you
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 10:47pm On Oct 08, 2017
Lemeechi:
If you want to split a search string just remember someone may just be looking for an exact match.

Hmmmm. ..this is something I'd never thought of
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 10:49pm On Oct 08, 2017
Jaddo19:

I have something close to dat...only problem is that it splits the string into letters

I can drop d code if u want so u can modify it

Of course, you can. Thanks.
Re: 10 Nights Of Cloning Nairaland With PHP by ACFreeHost: 10:54pm On Oct 08, 2017
Are you a website developer or a web designer and you need a reliable hosting server provider to host your website for FREE and Adverts FREE? That's why ACFreeHost is here to make that possible for you Publishers, just all you need is to visit www.acfreehost.com and register then you are good to go. No Adverts on your sites, No disk limite, No bandwidth limite e.t.c. Don't worry all are FREE and if you have any question their pleased to assist you. So visit www.acfreehost.com and register Now.!!



VISIT : [url]WWW.ACFREEHOST.COM[/url]
Re: 10 Nights Of Cloning Nairaland With PHP by Lemeechi: 10:04am On Oct 09, 2017
kanayoNickel:


Hmmmm. ..this is something I'd never thought of
Well, the standard practice is that if the search string is enclosed in double quotes, then an exact match is required. Otherwise you then do the word-based search, but remembering to ignore "noise" words like "the", "a", etc.
Re: 10 Nights Of Cloning Nairaland With PHP by Nobody: 10:12am On Oct 09, 2017
Very good advice, take it or leave it... I learnt something.



Lemeechi:

Well, the standard practice is that if the search string is enclosed in double quotes, then an exact match is required. Otherwise you then do the word-based search, but remembering to ignore "noise" words like "the", "a", etc.
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 12:45pm On Oct 10, 2017
@DanielTheGeek, @lemmeechi, Pardon me, but How do I Check if a remote server is online with JS?
Re: 10 Nights Of Cloning Nairaland With PHP by Nobody: 1:03pm On Oct 10, 2017
By pinging the server.
In PHP;

You never know how simple it is till you try;

if ( @fsockopen( "www.example.com", 80 ) {
// It's reachable
} else {
// it's not online or there's no internet connection
}

JavaScript:
Internet connection
if(navigator.onLine) {
// connected
} else {
// offline
}

Checking the status of a remote server through JavaScript can be tricky if you don't own the remote server (CORS disabled)...
There are other tricks but at this point Google is your friend man or check this.
I'd just advice you to make an Ajax call to a PHP script that does the checking. It's easier that way.
@kanayoNickel

2 Likes 1 Share

Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 3:13pm On Oct 10, 2017
DanielTheGeek:
By pinging the server.
In PHP;

You never know how simple it is till you try;

if ( @fsockopen( "www.example.com", 80 ) {
// It's reachable
} else {
// it's not online or there's no internet connection
}

JavaScript:
Internet connection
if(navigator.onLine) {
// connected
} else {
// offline
}

Checking the status of a remote server through JavaScript can be tricky if you don't own the remote server (CORS disabled)...
There are other tricks but at this point Google is your friend man or check this.
I'd just advice you to make an Ajax call to a PHP script that does the checking. It's easier that way.
@kanayoNickel

Thanks Wella. The PHP version was just perfect for my need.
Re: 10 Nights Of Cloning Nairaland With PHP by Nobody: 3:20pm On Oct 10, 2017
I guess you know why i used @fsock... instead of fsock...

kanayoNickel:


Thanks Wella. The PHP version was just perfect for my need.
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 3:34pm On Oct 13, 2017
DanielTheGeek:
I guess you know why i used @fsock... instead of fsock...


yeah i know
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 3:42pm On Oct 13, 2017
I neva knew i could achieve all this this year. Thanks to all who guided me @DanieltheGeek, @Olamil34, @DharkPoet , @LinuxMint et al.

so, I went back to my village. Here theres abundant lite and GLO is superb....imagine.

I am taking a break , for the rest of this month ,to goto that other side of me ---- Game character Development

this month alone i have gained a lot in:
1. having a function that detects if the browser function is Opera Mini or UC WEB (thanks @LinuxMint for pointin out this)
2. Jquery drag and Drops
3. Masonic grid layouts that are responsive regardless of screen size
4. Lightbox pop-ups on picture click (check gallery of user Kanye)
5. Ajax fetch
6. Infinite scroll extended to topics
8. I began using password_hash thanks to the advice of

Thanks once again to every body.

I know there are still major stuff that I had to review (like that page margin and one page view for all categories) but i dont have to let them bug me angry sad undecided. Do u know that in this my almost-getting-futile-attempt to prettify my url, i'd discovered several stuff. Like i am trying to solve a problem and hitting gold nuggets grin

I might add augmented reality-like stuff used in Snapchat next November. Users might start adding Dog Ear lobes, Rabbit Nose and funny glasses to their pics. DON't LAFF or SCOFF, I am looking at a tutorial on it as i writeth cool grin. Stay tuned.

FOR NOW itx Blender and Zbrush

Re: 10 Nights Of Cloning Nairaland With PHP by ACFreeHost: 10:38am On Oct 14, 2017
Are you a website developer or a web designer and you need a reliable hosting server provider to host your website for FREE and Adverts FREE? That's why ACFreeHost is here to make that possible for you Publishers, just all you need is to visit www.acfreehost.com and register then you are good to go. No Adverts on your sites, No disk limite, No bandwidth limite e.t.c. Don't worry all are FREE and if you have any question their pleased to assist you. So visit www.acfreehost.com and register Now.!!



VISIT : [url]WWW.ACFREEHOST.COM[/url]
Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 10:15pm On Nov 04, 2017
Ahoy, its November and I am back for this project.

I am dabbling a bit into a rather primitive form of Machine learning with this project. That aug Reality stuff is suspended for the mean time. sad

Its still wobbly at best but i am soldiering on. PHP, i discovered, much to my chagrin, is limited as of now with machine learning (thats what my tutors say o)....So to cover up, i am linking a certain aspect of this project with another function that i am building with Rust.

This Certain Aspect came as niffty inspiration after perusing Olamil's Quickfinda dot com.

- so what i planned to do ( rather i am implementing them, gradually) is to be able to detect images and sanction them if need be.
- I want the system to be doing this automatically.
- So in a situation where a user posts a N.ude character, i want my system to identify the image as N.ude and place a black bar or a big Smiley on the privates

- Then I want it to differentiate btwn entire nudity and lets say, someone wearing a Lingerie or boxers . This means if picture character x wearing noting but boxers/lingerie dont place smiley/black bar but if completely without place smiley.


I will put up demonstrations as soon.

and then maybe, I will have a side feature that will still use the image identification algorithms to search for web links associated to the image.
For e.g, a user can drag the image of a Lingerie to the upload box and the algorithm searches for beauty shop that sells that kinda of lingerie and maybe delineate to the price

Re: 10 Nights Of Cloning Nairaland With PHP by kanayoNickel: 10:39pm On Nov 04, 2017
so in this sample, The image is of a Masai girl with exposed breasts.

The algorithm did not consider it offensive becose their were partial covering.

But check out the parameters it identified.

So i am still wondering how to utilize these parameters properly.

Most of the classes i am using (especially the one known as back-propagation, which means the system learning all of the model parameters to optimize the output of the task) r from Berkeley libraries that are common license. The documentation is also there and with a little utube research one can modify them to taste. which is what i am doing albeit with cussings and tantrums angry angry cool

(1) (2) (3) (4) (5) (6) (Reply)

Challenge Me / Why Self Taught Programmers Over “Exaggerate”. / Are Mini Laptops Good For Programming?

(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. 57
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.