![]() |
New php error message and I'm not sure what to fix
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:
|
|
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.
|
Quote:
If i change that to 2 or 1 < I get a different error: Quote:
|
Quote:
|
Quote:
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. |
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 |
Quote:
I dont see any benefit in making up bugs. |
Jesus, just use quotes like a normal human being instead of this << heresy.
|
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. |
Quote:
So I suspect just listen to konrad! |
Quote:
Just use quotes dude. " outer, ' inner for the fields or vice versa. |
Quote:
|
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?
|
Quote:
|
Quote:
|
Quote:
|
Just want to say that everybody was a beginner at some point.
. |
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). :thumbsup |
Quote:
|
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. |
Quote:
|
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 |
Quote:
This code runs fine on my server : PHP Code:
There seems to be no problem with that code. :2 cents: |
Quote:
Quote:
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). |
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. |
Quote:
|
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 :winkwink: 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 :thumbsup |
Quote:
Fair, Thats why I asked what your goal was. Good luck brother! |
Quote:
|
Quote:
See if line 11 has all 3 "<". :2 cents: |
Why use EOF at all?
https://onlinephp.io/c/ecc2f Code:
<?php :2 cents: |
All times are GMT -7. The time now is 09:30 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123