| 
		
			
			
				
			
			
				 
			
			
				
			
		 | 
		
			
			
				 
			
				
			
		 | 
	||||
| 
				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.  | 
		
		 
		![]()  | 
	
		
			
  | 	
	
	
		
		|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
| 
		 | 
	Thread Tools | 
| 
			
			 | 
		#1 | ||
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Industry Role:  
				Join Date: Oct 2018 
				Location: New Orleans, Louisiana. / Newcastle, England. 
				
				
					Posts: 1,225
				 
				
				
				
				 | 
	
	
	
	
		
			
			 I'm getting the following error message on a basic newsletter program im putting together, I'm assuming that it may have something to do with additional white/ blank spaces in the code but, I cant find any in the code. 
		
	
		
		
		
		
			Quote: 
	
 Quote: 
	
 
				__________________ 
		
		
		
		
	
	Extreme Link List - v1.0  | 
||
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Mar 2022 
				Location: In the moment 
				
				
					Posts: 95
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 The error was because you used '<<'  instead of '<<<'. You must've edited your question to fix the code to include 3 '<'. So now your question doesn't make sense. 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#4 | ||
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Industry Role:  
				Join Date: Oct 2018 
				Location: New Orleans, Louisiana. / Newcastle, England. 
				
				
					Posts: 1,225
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 If i change that to 2 or 1 < I get a different error: Quote: 
	
 
				__________________ 
		
		
		
		
	
	Extreme Link List - v1.0  | 
||
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#5 | |
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Industry Role:  
				Join Date: Oct 2018 
				Location: New Orleans, Louisiana. / Newcastle, England. 
				
				
					Posts: 1,225
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
				__________________ 
		
		
		
		
	
	Extreme Link List - v1.0  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Jun 2003 
				
				
				
					Posts: 3,285
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 I asked last time and Konrad brought up a valid point.  
		
	
		
		
		
		
			But are you looking to be a hirable PHP dev? if not... look into frameworks man, you're struggling for nothing. If you desire a job as a PHP dev, ignore me, but if not .. use a framework and skip this bullshit you're suffering through. 
				__________________ 
		
		
		
		
	
	dead.  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Mar 2022 
				Location: In the moment 
				
				
					Posts: 95
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 I'm not sure why, but you are 100% bullshitting us with your "issue". The 1st error ONLY happens in you use '<<EOF'. The second error happened because you changed it to '<>EOF'. I'm not sure who you're trying to BS, but you can run the code yourself 
		
	
		
		
		
		
		
	
	https : // onlinephp.io/c/aacd1  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#8 | |
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Jun 2003 
				
				
				
					Posts: 3,285
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 I dont see any benefit in making up bugs. 
				__________________ 
		
		
		
		
	
	dead.  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Aug 2006 
				Location: Poland 
				
				
					Posts: 9,229
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Jesus, just use quotes like a normal human being instead of this << heresy. 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	Mechanical Bunny Media Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#10 | |
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Industry Role:  
				Join Date: Oct 2018 
				Location: New Orleans, Louisiana. / Newcastle, England. 
				
				
					Posts: 1,225
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 This code will actually have several more fields on the page once’s I’ve gotten it to a somewhat ‘working’ version, that’s the only reason I’m using the EOF stuff. 
				__________________ 
		
		
		
		
	
	Extreme Link List - v1.0  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#11 | |
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Jun 2003 
				
				
				
					Posts: 3,285
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 So I suspect just listen to konrad! 
				__________________ 
		
		
		
		
	
	dead.  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#12 | |
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Aug 2006 
				Location: Poland 
				
				
					Posts: 9,229
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 ![]() Just use quotes dude. " outer, ' inner for the fields or vice versa. 
				__________________ 
		
		
		
		
	
	Mechanical Bunny Media Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#13 | 
| 
			
			
			
			 Bollocks 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Jun 2007 
				Location: Bollocks 
				
				
					Posts: 2,793
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Indeed. Just use \r\n if you want new lines in your text string. 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	Interserver unmanaged AMD Ryzen servers from $73.00  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#14 | 
| 
			
			
			
			 Registered User 
			
		
			
			
			Industry Role:  
				Join Date: Jun 2022 
				
				
				
					Posts: 37
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 I mean, is no one else going to comment that it's some really, custy-nasty-ass code that really shouldn't be in production or should I be a sycophant? 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#15 | |
| 
			
			
			
			 Industry Role:  
				Join Date: Aug 2006 
				Location: Little Vienna 
				
				
					Posts: 32,235
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#16 | 
| 
			
			
			
			 Industry Role:  
				Join Date: Aug 2006 
				Location: Little Vienna 
				
				
					Posts: 32,235
				 
				
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#17 | |
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Aug 2006 
				Location: Poland 
				
				
					Posts: 9,229
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
   It honestly looks like he's improving slightly though.
				__________________ 
		
		
		
		
	
	Mechanical Bunny Media Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#18 | 
| 
			
			
			
			 see you later, I'm gone 
			
		
			
			
			Industry Role:  
				Join Date: Oct 2002 
				
				
				
					Posts: 14,127
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Just want to say that everybody was a beginner at some point. 
		
	
		
		
		
		
			. 
				__________________ 
		
		
		
		
	
	All cookies cleared!  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#19 | ||
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Sep 2013 
				Location: The Netherlands 
				
				
					Posts: 805
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 Quote: 
	
 ![]() As a beginner, just be careful with user input when using your own code in production... It's better to write a paranoid rule for sanitizing user input, just to be safe (such as stripping everything except a-z and 0-9, which is fine for for most cases anyway).  | 
||
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#20 | |
| 
			
			
			
			 Industry Role:  
				Join Date: Aug 2006 
				Location: Little Vienna 
				
				
					Posts: 32,235
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 ![]()  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#21 | |
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Sep 2013 
				Location: The Netherlands 
				
				
					Posts: 805
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 I also really dislike digging through other people's code... debugging takes so much more time if you didn't write the code yourself.  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#22 | |
| 
			
			
			
			 Industry Role:  
				Join Date: Aug 2006 
				Location: Little Vienna 
				
				
					Posts: 32,235
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#23 | |
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Jun 2003 
				
				
				
					Posts: 3,285
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 As it takes a lot of the absolute bullshit out of raw PHP, that may keep this poor guy developing for years and never producing anything. XSS prevention, Security, Media files, Image uploads, validation, relationships, etc etc etc, are a lot of work in raw php, and DEAD simple with a framework. So is he trynna make a site? or trynna learn PHP. If all he wants to do is make a site, and he has basic PHP Knowledge a framework will take alot of the pain out. If he wants to learn PHP, have at 'er 
				__________________ 
		
		
		
		
	
	dead.  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#24 | |
| 
			
			
			
			 Making PHP work 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Nov 2002 
				Location: 🌎🌅🌈🌇 
				
				
					Posts: 20,652
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 This code runs fine on my server : PHP Code: 
	
			
	There seems to be no problem with that code. ![]()  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#25 | ||
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Sep 2013 
				Location: The Netherlands 
				
				
					Posts: 805
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
   OP does seem to be working on it for ages now... Gotta admire that.Quote: 
	
   So yeah, I guess it makes sense to use a framework when you're just starting out learning PHP and the website needs more than just the basic SQL stuff.Or perhaps even buying a fully working script and just modify it a bit to your own needs. That's what I often did when I barely knew the basics. Learned a lot that way (with trial and error... lots of error).  | 
||
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#26 | |
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Jun 2003 
				
				
				
					Posts: 3,285
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 If I just wanted to build a site, I'd use a framework. If I wanted to brush up my PHP skills, or master them.. Id not. but if you just wanna get a site up and running.. and the syntax and fundamentals of PHP are slowing that down, alot of those fundamental problems become very trivial with a framework. Based on his previous questions, the most likely outcome of him actually producing a live site, from the code he's been doing, is that it's instantly hacked, OR he's gotta spend 6 months learning hot to prevent every possible attack, how to sanitize data etc etc. He'll NEVER get a site going. 
				__________________ 
		
		
		
		
	
	dead.  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#27 | |
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Industry Role:  
				Join Date: Oct 2018 
				Location: New Orleans, Louisiana. / Newcastle, England. 
				
				
					Posts: 1,225
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 
				__________________ 
		
		
		
		
	
	Extreme Link List - v1.0  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#28 | |
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Industry Role:  
				Join Date: Oct 2018 
				Location: New Orleans, Louisiana. / Newcastle, England. 
				
				
					Posts: 1,225
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 By learning this myself, by hand, I'm actually enhancing my knowledge and have the option (at a later date) of putting something that I've learned into practice. As far as not getting a site running, I'm already using a lot of what I've learned in the past few months as an ebook spinner and cover generator that has been a huge benefit to my main business, every day it generates as many new titles with covers as needed and they're all making sales each month So while to some I may be taking the long route, as of right now, it appears to be paying off for me, despite hitting a few roadbumps along the way, but only by trying, asking and understanding where *I* am messing things up, will I actually learn anything and I genuinely do appreciate all of the help and advice (and yes, even criticism) that Ive bene getting for those of you who are more knowledgable about .php than I am at this point in time 
				__________________ 
		
		
		
		
	
	Extreme Link List - v1.0  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#30 | |
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Industry Role:  
				Join Date: Oct 2018 
				Location: New Orleans, Louisiana. / Newcastle, England. 
				
				
					Posts: 1,225
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 
				__________________ 
		
		
		
		
	
	Extreme Link List - v1.0  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#31 | |
| 
			
			
			
			 Making PHP work 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Nov 2002 
				Location: 🌎🌅🌈🌇 
				
				
					Posts: 20,652
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 See if line 11 has all 3 "<". ![]()  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#32 | 
| 
			
			
			
			 Monger Cash 
			
		
			
			
			Industry Role:  
				Join Date: Jul 2010 
				
				
				
					Posts: 2,773
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Why use EOF at all? 
		
	
		
		
		
		
		
	
	https://onlinephp.io/c/ecc2f Code: 
	<?php
  require_once 'config.php';
  login_required();
  $users = count_query("SELECT COUNT(*) AS num FROM users");
  $emails = count_query("SELECT COUNT(*) AS num FROM subscribers");
  $subs = count_query("SELECT COUNT(*) AS num FROM subscriptions");
  $nls = count_query("SELECT COUNT(*) AS num FROM newsletters");
  $mess = count_query("SELECT COUNT(*) AS num FROM messages");
  $temps = count_query("SELECT COUNT(*) AS num FROM templates");
  $title = "Home!";
  $content = "
    <h3>current stats</h3>
    <p>{$users} user registered</p>
    <p>{$emails} subscribers</p>
    <p>{$subs} newsletter subscriptions</p>
    <p>{$nls} newsletters</p>
    <p>{$mess} messages</p>
    <p>{$temps} templates</p>
  ";
  include 'layout.php';
?>
![]()  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 |