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 02-20-2023, 01:31 PM   #1
mopek1
Confirmed User
 
Industry Role:
Join Date: Jun 2004
Location: Canada
Posts: 3,074
Are php Includes considered current for website use Still?

If I build a php website and use code like this:

<?php include 'includes/navbar.php';?>

... so that when I want to make a change in the navbar across thousands of pages, the entire site is updated by changing one file only in the /includes folder.

Is that current or is everyone onto a different version of php, or different code etc...?

If I build a new site I want it to be able to adapt to any future change without having to individually change each page (or worse, rebuild the site) which would take forever.

Thanks.
mopek1 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2023, 01:50 PM   #2
WiredGuy
Pounding Googlebot
 
Industry Role:
Join Date: Aug 2002
Location: Canada
Posts: 34,452
I still do this with Perl... old school for life
WG
__________________
I play with Google.
WiredGuy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2023, 02:13 PM   #3
NoWhErE
Too lazy to set a custom title
 
NoWhErE's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Canada
Posts: 10,232
That will work just fine.

If you're building for long-term durability, try looking into PHP frameworks like Symfony/Laravel. It's a bit of a learning curve, but at least you'll have a solid foundation for your code when it comes time to update it.
__________________
skype: lordofthecameltoe
NoWhErE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2023, 07:18 PM   #4
mopek1
Confirmed User
 
Industry Role:
Join Date: Jun 2004
Location: Canada
Posts: 3,074
Quote:
Originally Posted by WiredGuy View Post
I still do this with Perl... old school for life
WG
I still wish for Windows XP to be current. Simple with everything I needed.
mopek1 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2023, 08:06 PM   #5
plsureking
bored
 
plsureking's Avatar
 
Industry Role:
Join Date: Aug 2003
Location: Metaverse
Posts: 4,675
Quote:
Originally Posted by mopek1 View Post
I still wish for Windows XP to be current. Simple with everything I needed.
i just stopped using Win7 last year

one note about includes. if they are called cross-domain, name them .inc not .php. otherwise the script will try to process it instead of include it.

#
__________________
#
plsureking is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-20-2023, 09:51 PM   #6
2MuchMark
Videochat Solutions
 
2MuchMark's Avatar
 
Industry Role:
Join Date: Aug 2004
Location: Canada
Posts: 48,610
Quote:
Originally Posted by mopek1 View Post
If I build a php website and use code like this:

<?php include 'includes/navbar.php';?>

... so that when I want to make a change in the navbar across thousands of pages, the entire site is updated by changing one file only in the /includes folder.

Is that current or is everyone onto a different version of php, or different code etc...?

If I build a new site I want it to be able to adapt to any future change without having to individually change each page (or worse, rebuild the site) which would take forever.

Thanks.
Yes, and doing it this way makes it really easy to keep all of the pages of your site consistent. I use includes for the nav bar / menus, footers, and most of the header. It saves a ton of time too.
__________________

Custom Software | Server Management | Integration and Technology Solutions
https://www.2much.net
2MuchMark is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2023, 05:34 AM   #7
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Quote:
Originally Posted by mopek1 View Post
I still wish for Windows XP to be current. Simple with everything I needed.
I would pay good money for winxp version which would be exactly same but with updated driver database.
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2023, 06:15 AM   #8
ravo
Confirmed User
 
ravo's Avatar
 
Industry Role:
Join Date: Jun 2001
Location: Skype: ravo.fpctraffic
Posts: 5,436
Quote:
Originally Posted by WiredGuy View Post
I still do this with Perl... old school for life
WG
+1
I think you and I are the only ones still using Perl. lol
__________________
AdultAdBroker - Buy and Sell Your Flat Rate Banners, Links, Tabs, Pops, Email Clicks and Members' Area Traffic - updated May 2025
ravo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2023, 06:21 AM   #9
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Quote:
Originally Posted by ravo View Post
+1
I think you and I are the only ones still using Perl. lol
Anyone remember UBB board which was based on perl?
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2023, 06:41 AM   #10
WiredGuy
Pounding Googlebot
 
Industry Role:
Join Date: Aug 2002
Location: Canada
Posts: 34,452
Quote:
Originally Posted by ravo View Post
+1
I think you and I are the only ones still using Perl. lol
The internet hit a plateau with Perl
WG
__________________
I play with Google.
WiredGuy 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
site, change, php, current, website, build, code, adapt, version, future, page, forever, rebuild, worse, individually, considered, navbar, thousands, pages, file, /includes, changing, entire, includes, updated



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.