Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-09-2022, 10:35 PM   #1
Publisher Bucks
Confirmed User
 
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,190
Before I spend an hour fucking around with this...

If i want to include a selection of arrays in an external file i just do this right?

array.php
Quote:
$array1 = $row['1'];
$array2 = $row['2'];
$array3 = $row['3'];
$array4 = $row['4'];
Then just call it at the top of the page using an include like this:

Quote:
<?php include '../dir/to/array.php';?>
Or is there more to it than that?

Any easier ways to achieve what I want? I'm basically trying to (kind of) have a 'settings' file with site name, keywords and other random shit that I can just edit and upload once and forget about.
__________________
Extreme Link List - v1.0
Publisher Bucks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-09-2022, 10:45 PM   #2
plsureking
bored
 
plsureking's Avatar
 
Industry Role:
Join Date: Aug 2003
Location: PORNCMS.com
Posts: 4,763
waste the boards time instead of your own? makes sense

#
__________________
#
plsureking is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-09-2022, 11:35 PM   #3
LaSexorcisto
Confirmed User
 
LaSexorcisto's Avatar
 
Industry Role:
Join Date: Mar 2022
Location: In the moment
Posts: 95
It literally would've taken you less than half the time for you just to test it than to write a post asking about it. I am like 90% sure at this point you're just trolling with these questions.

But just look below and some nitwit will eventually answer your question to continue the cycle.
LaSexorcisto is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-10-2022, 12:48 AM   #4
plsureking
bored
 
plsureking's Avatar
 
Industry Role:
Join Date: Aug 2003
Location: PORNCMS.com
Posts: 4,763
Quote:
Originally Posted by LaSexorcisto View Post
It literally would've taken you less than half the time for you just to test it than to write a post asking about it. I am like 90% sure at this point you're just trolling with these questions.

But just look below and some nitwit will eventually answer your question to continue the cycle.
true

#
__________________
#
plsureking is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-10-2022, 12:52 AM   #5
plsureking
bored
 
plsureking's Avatar
 
Industry Role:
Join Date: Aug 2003
Location: PORNCMS.com
Posts: 4,763
actually i just read the question and i can't believe you aren't up to OOP yet. how long you been at this?

you dont have the chops to be a programmer. go do something else.



#
__________________
#
plsureking is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-10-2022, 08:34 AM   #6
CurrentlySober
Too lazy to wipe my ass
 
CurrentlySober's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: A Public Bathroom
Posts: 38,644
Quote:
Originally Posted by plsureking View Post
i can't believe you aren't up to OOP yet...
is that like a backwards poo?
__________________


👁️ 👍️ 💩
CurrentlySober is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-10-2022, 09:32 AM   #7
plsureking
bored
 
plsureking's Avatar
 
Industry Role:
Join Date: Aug 2003
Location: PORNCMS.com
Posts: 4,763
Quote:
Originally Posted by CurrentlySober View Post
is that like a backwards poo?


#
__________________
#
plsureking is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-10-2022, 10:32 AM   #8
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,229
Quote:
Originally Posted by CurrentlySober View Post
is that like a backwards poo?
That's...surprisingly accurate
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-11-2022, 04:02 AM   #9
plsureking
bored
 
plsureking's Avatar
 
Industry Role:
Join Date: Aug 2003
Location: PORNCMS.com
Posts: 4,763
Quote:
Originally Posted by k0nr4d View Post
That's...surprisingly accurate


#
__________________
#
plsureking is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-11-2022, 08:31 PM   #10
MelkieWey
Hypno Sissy
 
MelkieWey's Avatar
 
Industry Role:
Join Date: May 2022
Location: Europe/Austria
Posts: 273
im the nitwit to continue the cycle

external file with the <head>
<base href="https://gfy.com/" /><!--[if IE]></base><![endif]--> section? WHY?

instead of PHP use .phtml & javascript


unorderly list saved as phtml!

Quote:
<ul>
<li>poo</li>
<li>shit</li>
<li>scat</li>
<li>excrement</li>
<li>diarrea</li>
<li>scheiße</li>
</ul>
Quote:
<script>
//define location & files
const partials = {
shitlist: "./where/is/the/shitlist.phtml",
poolist:"./where/is/the/poolist.phtml",
}
//fetch the content of the files into constants
const fetchContent =async (section) => {
const contentPartial = await fetch(partials[section]);
const content = await contentPartial.text();
return content;
}
//loads section with fetched content
async funtion loadSection(section) {
const dom = document.getElementById(section);
const content = await fetchContent(section);
dom.innerHTML = content;
}
//loads sections from contants
async function main() {
await loadSection('shitlist');
await loadSection('poolist');
}
//final execution
(async function () {
await main();
})();
</script>

Melkanea showed off!
MelkieWey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-11-2022, 08:36 PM   #11
MelkieWey
Hypno Sissy
 
MelkieWey's Avatar
 
Industry Role:
Join Date: May 2022
Location: Europe/Austria
Posts: 273
Quote:
Originally Posted by MelkieWey View Post
external file with the <head>
<base href="https://gfy.com/" /><!--[if IE]></base><![endif]-->
<base href="https://gfy.com/" /><!--[if IE]></base><![endif]--> section? WHY?
this is what happens when something fuckes up or sometimes when i figure out some new way of doing shit
MelkieWey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
file, include, basically, achieve, hour, easier, site, edit, upload, forget, shit, random, keywords, spend, settings, $array1, array.php, $row[1];, $array2, arrays, selection, external, $row[2];, $array3, top



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.