256 Kilobytes

Home - Latest Content

Profile Photo - Some Guy

[PHP] How to get a random float between 0 and 1?

Answers in Server-Side | By Some Guy

Published 3 days agoSun, 13 Jan 2019 04:34:46 -0800

Profile Photo - Default

Last Reply Theres no standard PHP function for random floats specifically, but you can get a random whole number and then divide it to create a float. $rand... Hash Brown,

Theres no standard PHP fu...

Mon, 14 Jan 2019 15:02:05 -0800 1 day ago
🗨
1
🐏
0
👁
5
Profile Photo - Some Guy

[PHP] Issue with file_put_contents not working?

Answers in Server-Side | By Some Guy

Published 3 days agoSun, 13 Jan 2019 04:33:36 -0800

Profile Photo - Default

Last Reply Lots of the "file_" functions are disabled as standard in PHP so the first step is checking your php.ini file and enabling it. The next m... Hash Brown,

Lots of the "file_&q...

Mon, 14 Jan 2019 14:57:22 -0800 1 day ago
🗨
1
🐏
0
👁
7
Profile Photo - Some Guy

[PHP] Check if positive integer?

Answers in Server-Side | By Some Guy

Published 3 days agoSun, 13 Jan 2019 04:35:26 -0800

Profile Photo - Default

Last Reply Yes this is very easy Just check that the integer is bigger than 0 For example: $i = 15; if(is_numeric($i) && $i >= 0){ echo... Hash Brown,

Yes this is very easy<br...

Mon, 14 Jan 2019 14:43:42 -0800 1 day ago
🗨
1
🐏
0
👁
7
Profile Photo - Some Guy

How to check if a string is valid XML using PHP?

Answers in Server-Side | By Some Guy

Published 3 days agoSun, 13 Jan 2019 04:34:26 -0800

Profile Photo - Default

Last Reply You can use PHP's DomDocument::validate feature dear for all your XML validation needs $dom = new DOMDocument; $dom->Load('book.xml'); //... Hash Brown,

You can use PHP's Dom...

Mon, 14 Jan 2019 14:28:34 -0800 1 day ago
🗨
1
🐏
0
👁
6
Profile Photo - Some Guy

[PHP] How to remove duplicate dashes?

Answers in Server-Side | By Some Guy

Published 3 days agoSun, 13 Jan 2019 04:34:36 -0800

Profile Photo - Default

Last Reply preg_replace() will do this pretty easily. I'm not sure if you want to completely remove double dashes or replace them with a single dash, the... Hash Brown,

preg_replace() will do th...

Mon, 14 Jan 2019 14:23:10 -0800 1 day ago
🗨
1
🐏
0
👁
5
Profile Photo - Some Guy

[PHP] Remove empty array elements?

Answers in Server-Side | By Some Guy

Published 3 days agoSun, 13 Jan 2019 04:35:46 -0800

Profile Photo - Default

Last Reply Hey, If you are dealing with an array of strings you might want to look at array filters, this would work like so: array_filter($yourArray, fu... Hash Brown,

Hey,

Mon, 14 Jan 2019 14:08:57 -0800 1 day ago
🗨
1
🐏
0
👁
8
Profile Photo - Some Guy

Fixing "MySQLi_real_connect(): (hy000/2002): no such file or directory?"

Answers in Databases | By Some Guy

Published 3 days agoSun, 13 Jan 2019 04:37:06 -0800 | Last update 1 day agoMon, 14 Jan 2019 13:57:45 -0800

Profile Photo - Default

Last Reply Go into your script or config file and find your database credentials. Look for "localhost" and replace it with "127.0.0.1".... Hash Brown,

Go into your script or co...

Mon, 14 Jan 2019 14:00:03 -0800 1 day ago
🗨
1
🐏
0
👁
9
Profile Photo - Some Guy
Profile Photo - Default

Last Reply Hello, This is fairly simple, adding the code below to your .htaccess file will blanket remove all .php extentions from your URL. #remove php... Hash Brown,

Hello,

Mon, 14 Jan 2019 13:18:34 -0800 1 day ago
🗨
1
🐏
0
👁
7
Profile Photo - Louis J. V. Cicalese

Top 4 Ghetto Hacks to Fix Your Nintendo Hardware (Plus 1 Well-Known Trick that Doesn't Work)

Articles in Computer Hardware | By Louis J. V. Cicalese

Published 1 day agoMon, 14 Jan 2019 12:10:33 -0800 | Last update 1 day agoMon, 14 Jan 2019 15:39:36 -0800

Profile Photo - Louis J. V. Cicalese

A few nice tips and tricks for fixing yo...

MoreNintendo is well known for its durable hardware, and rightfully so. Their consoles have extremely
🗨
0
🐏
0
👁
18
Profile Photo - August R. Garcia

HOW LONG DO SNAILS SLEEP

Forum in Garbage Can | By August R. Garcia

Published 2 days agoMon, 14 Jan 2019 08:29:02 -0800 | Last update 2 days agoMon, 14 Jan 2019 08:57:22 -0800

Profile Photo - August R. Garcia

Last Reply What are sleeping snails? And why does it matter for THREE? The Internet has swept us off our feet and with the onset of SLEEPING SNAILS it had evo... August R. Garcia,

What are sleeping snails?...

Mon, 14 Jan 2019 08:47:16 -0800 2 days ago
🗨
1
🐏
0
👁
27
Profile Photo - August R. Garcia

The Top 5 Ways to Make Money on the Internet (If You're Fucking Retarded)

Articles in Internet Marketing | By August R. Garcia

Published 2 days agoMon, 14 Jan 2019 08:16:15 -0800 | Last update 2 days agoMon, 14 Jan 2019 08:30:48 -0800

Profile Photo - August R. Garcia

Sir I can do you a nice S E O.

MoreHoly shit: People are fucking retarded. "How do these brain dead children make mon
🗨
0
🐏
1
👁
46
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

It's time to duct tape together some Jav...

MoreIf you often need to generate random names, which you probably do, if you're here, you might
🗨
0
🐏
0
👁
9
Profile Photo - August R. Garcia

Quality Content Dump: The Thread

Forum in Offtopic | By August R. Garcia

Published 2 weeks agoMon, 31 Dec 2018 00:41:13 -0800

Profile Photo - August R. Garcia

Last Reply If you are unaware of the Majestic Million, it is a list of websites sorted by number of referring subnets (which is the number of referring domains i... August R. Garcia,

If you are unaware of the...

Mon, 14 Jan 2019 04:58:39 -0800 2 days ago
🗨
9
🐏
0
👁
71
Profile Photo - August R. Garcia

[Article and Code] Are the "real time" comments on those ads for shitty mobile games real?

Articles in Web Development | By August R. Garcia

Published 2 days agoMon, 14 Jan 2019 04:20:51 -0800 | Last update 2 days agoMon, 14 Jan 2019 04:51:32 -0800

Profile Photo - August R. Garcia

Answer: No, obviously.

MoreFor example, here's some guy on an Internet forum asking for a "fake real time comments
🗨
0
🐏
0
👁
49
Profile Photo - Some Guy

How to reinstall Ubuntu?

Answers in Operating Systems | By Some Guy

Published 3 days agoSun, 13 Jan 2019 05:16:08 -0800

Profile Photo - August R. Garcia

Last Reply If you're installing the same version, you should be able to plug in the USB, smash F2 (or whatever your machine uses) during startup to get to th... August R. Garcia,

If you're installing...

Sun, 13 Jan 2019 10:44:01 -0800 2 days ago
🗨
1
🐏
0
👁
11
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreHello. I came up with a Zero Division Error in my Python code today. It says that I tried to divi
🗨
0
🐏
0
👁
6
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreI was working on a personal project on Python this morning. The project is about coming up with a
🗨
0
🐏
0
👁
4
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreHi! I just started learning Python so I'm still trying to get used to it. I was wondering if
🗨
0
🐏
0
👁
5
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreHello. I've been trying to concatenate some code in Python, and this error showed up today.
🗨
0
🐏
0
👁
4
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreOur programmer is gone and I'm trying to fix some Python code, I keep getting an erorr that
🗨
0
🐏
0
👁
4
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreI'm trying to code in Python and I just got the error: "ValueError: x and y must have
🗨
0
🐏
0
👁
4
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreHas anyone ever had a value error on Python? It's telling me that x and y must be the same s
🗨
0
🐏
0
👁
7
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreHi. I've been working in Python, and I came across this Value Error today while I was workin
🗨
0
🐏
0
👁
5
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreWhen running a code on Python, I keep getting an error that seems to be easy to fix. However, I c
🗨
0
🐏
0
👁
6
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreHi! I'm new to Python and I've been trying to figure out this one error message I keep
🗨
0
🐏
0
👁
5
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreHi! I'm kind of a beginner when it comes to Python, so sorry if this is a super easy questio
🗨
0
🐏
0
👁
5
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreI'm working with arrays in Python and I am trying to add more items and keep getting an erro
🗨
0
🐏
0
👁
4
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreI'm coding in Python and just got the error " "ValueError: too many values to unpa
🗨
0
🐏
0
👁
4
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreI need help with a Python error message. Does anyone have experience with the error message &quot
🗨
0
🐏
0
👁
3
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreHi. A Value Error popped up on my screen while I was working in Python today. I'm trying to
🗨
0
🐏
0
👁
4