Jump to content

ajetrumpet

Members
  • Posts

    195
  • Joined

  • Last visited

Everything posted by ajetrumpet

  1. hey @requinix, I know you and I have talked about this before but I just want to clarify this issue. Sadly, I have produced very few websites that have made use of dynamics in the form of database querying. But, the next project that I'm looking at will require it. The last thing I did with a query string involved the recording of downloads of file on a website. and on the page, I had this code: The archive is located here: <a href="dl.php?f=archive.zip">archive.zip</a> and the ''dl'' page had this code: if(!$_GET['f']) error('Missing parameter!'); $stmt = $conn->prepare("INSERT INTO tblDownloads (ip, file, date, time) VALUES (?, ?, ?, ?)"); $stmt->bind_param("ssss", $ip, $file, $date, $time); $stmt->execute(); $stmt->close(); $conn->close(); header("Location: archive.zip"); exit; and all the variables in the above ''dl'' page are declared in a file that is required by it, called ""conn.php"". My question for anyone here is: I am going to be producing a website similar to the testing site called ""jsFiddle"": https://jsfiddle.net/ . And it is slated to have a huge amount of content on it. for example, a main page might have 100 links on it whereby, if a user clicks on any of them, it should take them to another page (or load async content) that illustrates and example of any given issue being asked about. So, I know we've talked about $_GET before Requinix, and how most websites use it to produce dynamic content. And we've also talked about the concept of markdown. But once again, can someone here remind me....what's the best way to go about doing this? Storing the actual ""answer to the issue"" content in a backend database and pulling/displaying it appropriately, kind of like what I am showing I did with the file in the above code? thanks. Adam
  2. well I guess I could ask them, but obviously google has no phone numbers, so I would have to post a question on the gmail forum. and unfortunately, those folks don't know much. and I think the reason is because they don't work for google technically. I think one of the responders there once told me that they are volunteers. just a little less important than microsoft's independent advisors? (sorry, everyone has value). but I've had unknowledgeable experiences with the MS ""advisors"" too. =(
  3. I understand req, but all 5 accounts were mine. and all of them had user information (account name) as "Adam" + [Last Name]. the ones I'm talking about that showed the message, more than likely, had never gotten a message from the email address I put in the PHP header. is that why, I suppose? that's gmail's default suggestion to typical users?
  4. req, I have inserted all of the records into the DNS that I need to, aside from the DKIM. that fixed most of the issues when the PHP code sends the mail to gmail email servers. however, there is still a little ""question mark"" on the upper left corner when the message is opened in gmail. but the user doesn't get a message about suspicion unless he/she hovers the mouse over the question mark. so that is OK with me. what bugs the heck out of me though, is that for instance, I have 5 different gmail accounts and I ran a test.....sent mail using PHP with a valid ""from"" address and domain in the ""from"" line of the email headers, and some of my gmail accounts popped up the same warning message when opening the email in gmail. some did not. do you have an answer to that phenomenon? would that possibly be because gmail's servers are checking to see whether or not the receiving email account has ever gotten a message from the address in the ""from"" line of the email header, sent by PHP?? when I saw those warnings in a few of my gmail accounts, that was the warning message. something like: ""be careful. you have never received a message from adam@domain.com"" before. thanks guys.
  5. thank you very much for all of this information, giz. I will take it and learn greatly from it.
  6. understood. trust me, requinix, most godaddy agents don't know $hit. a lot of them are very young kids, just given the buttons to click and given a title that makes them sound intelleagible. but then again, all hosting companies do that. they hire the same way, and give those people only certain sets of knowledge. but isn't that most corporate structures? šŸ˜ƒ I will do the work myself, and if I have to, I will call godaddy ''x'' times to get the right guy on the phone who has been there for years. there are many and they've been around the block. thanks again. enjoy your weekend. like I said, I will report here my results.
  7. point taken, mr. administrator. I value your advice, always. I will take it and make good use of everything you said. but according to GoDaddy, the DKIM concept is only sold by specific email providers. they do not offer that concept as an integratable feature with their products. so I will run some tests using SPF first and see how that goes. I will let you know here if that seems to fix the issue or not. thanks again.
  8. OK, so all email messages that are sent from GoDaddy shared servers are sent from a servercname called "secureserver.net". Is that what you're telling me that I should put in that statement argument? I would assume if I did that, it would act just like an email coming from a client owned by GoDaddy, as if I actually pushed a "send" button. like with their "webmail" accounts. correct? I'm not sure if the secure server name has any other junk attached it when sending email. would that be the case do you think? I don't think there's anyway to find that one out. I may have actually put a server name in there at one point. it was so long ago that I worked this out with the other professional, I don't even remember. do you want to see the entire script? I am WELL aware of this. server side code is irrelevant most of the time when it sends information to an external source. it depends on the situation of course.
  9. can you clarify this? I worked with someone else for 3 days to get these class libraries to work. GoDaddy's servers kept throwing security errors. something to do with their protocol. eventually he instructed me to write the email message inside the script using vars as well as place it inside another var with actual HTML markup in it. here are the 2 pieces of relevant code that I'm talking about: $email_body = "This is test message from the GoDaddy email server to ensure that GMail is not throwing it to SPAM."; $temp_HTML = "<!DOCTYPE html> <html> <head> <title>TITLE OF THE EMAIL MESSAGE</title> </head> <body> <p>This is test message from the GoDaddy email server to ensure that GMail is not throwing it to SPAM.</p> </body> </html>"; $mail->msgHTML($temp_HTML); //Replace the plain text body with one created manually $mail->AltBody = "This is test message from the GoDaddy email server to ensure that GMail is not throwing it to SPAM."; //send the message, check for errors if (!$mail->send()) { echo "Mailer Error: ". $mail->ErrorInfo; } else { echo "<script>alert('Email Has Been Sent'); window.location.href='';</script>"; actually, now that I've inserted that code, I realize that the actual PHP var at the top is not being used. it was at one point, but it was throwing the error. Does any of this stuff really even matter?
  10. LOL. thank you Mr. Administrator! I send automated emails back to them with one-liners. they play the numbers game so much, I get many a day. I'm sure it ticks them off greatly. and yes, I am actually changing the email headers in the PHP script. Here is the code that is being used with the class libraries taken from github: //Set who the message is to be sent from $mail->setFrom("the.trumpet.player.ajetrumpet@gmail.com", "Adam LastName"); //Set an alternative reply-to address $mail->addReplyTo("the.trumpet.player.ajetrumpet@gmail.com", "Adam LastName"); //Set who the message is to be sent to $mail->addAddress("the.trumpet.player.ajetrumpet@gmail.com", "Adam LastName");
  11. sender policy framework and Domain Keys Identified Mail? so DKIM is a digital signature? I will read about these 2 things. apparently SPF is just a record in the DNS for the server being used? GoDaddy tells me that an MX record in the DNS will fix this issue. but they don't know anything about anything. they are horrible. I've never trusted them. attached is the warning I saw during the test run:
  12. does anyone have any update on this? I am using it pretty heavily, and someone who has a gmail account just told me that their message was sent to spam. I have a gmail account myself and last night I ran a test and it was not sent there for me. I guess google could be doing some algorithmic nonsense to analyze behavior patterns, but I would guess not in this case. Does anyone know the status of some of the major email clients and their acceptance of PHP mailer receipts? I know the DNS is also associated, but the test that I ran myself came to the inbox without the need for a DNS change. gmail simply popped up a warning of information. thank you guys. I'm just fishing for info here as to see what I can do to stop this.
  13. I think I've got pretty much everything I need here. thanks for letting me bother you about this. šŸ˜ƒ I'll keep feeding my curiosity about whether or not you are retired and just passing on knowledge for the enjoyment of it like @Barand
  14. thanks man. I don't think I have any interest in delving into XML transformations, as it seems like your first example would be an easier way to do this. I took a look here: https://en.wikipedia.org/wiki/Markdown#Example the only other question I suppose I have about this whole thing, is if content in the db record looks like this: # Page Header This is article 1's first paragraph of text. * ![some image](image.jpg "CAPTION") then wouldn't that require an extensive amount of application coding to decipher the symbolisms and transform them into actual rendered HTML during the request? per the wiki article example, there are many symbolisms involved to indicate what an author would want. does the code required for this type of transformation have to be written from scratch all the time, or have there been tools developed already that can make that process easier? I suppose this article would be a great example of how a markdown process and database querying could be used? This page looks like what I'm talking about. content printed out onto a template layout page: https://www.thestreet.com/investing/bitcoin-scams-14640202
  15. thanks req. just a follow up question here if you don't mind. Is front end code ever stored in a database and echoed out with server side code like PHP, along with plain text content like what I'm talking about in my previous post? so for instance, according to professional programming standards, would doing something like this ever be needed? either that, or would there ever be a reason to do it? DB content in field 1: <h1>PAGE HEADER</h1> <p> This is article 1's first paragraph of text. </p> <ul> <li><a href="image.jpg" target="_blank">CAPTION</a></li> </ul> code on the page: <?php $var = $_GET operation here to get above content; echo $var; ?>
  16. Most of the websites I have built have not been large and not dynamic in nature, but I need to make one now with a boatload of content on it. and Iā€™m needing a little resource help where I can research something. Iā€™m sure all developers do this, and I know I need a massive database or 2 and the PHP knowledge I already have, but Iā€™m just looking for a little guidance about how to do this the easiest way. It may actually sound like a stupid question and I might be over-thinking a bit. Soā€¦ Lets say I have 500 articles that I want to make available to a site visitor and give them the option to choose what they want to look at through nav menus and submenus. I want the same page to display to the user, regardless of what article is chosen. how does PHP play a part in that? Would I be right by saying the following? If the home page had this content on it: This website is a course in PHP coding. <a href="courseTemplate.php" target="_blank">Click here</a> to view course #1. and I wanted all the course content to be displayed through the use of the ā€œcourseTemplate.phpā€ file, how simple is that? I would assume that these types of things would be the results and the techniques to accomplish the goal, right? => a resulting URL that looks like this: www.site.com/courseTemplate.php?id=1 => storing all the text of the course material in one single field of a DB record. NOT storing the layout-oriented code (HTML, etc.) and echoing it out with the rest of the text. => making use of the GET() function somehow to pull the courseā€™s text content out of the database. Can someone show me a website that demonstrates this? I donā€™t think this is very difficult, and Iā€™m sure there are web resources available that show how this is done. Iā€™m almost sure that most news agency websites do this, and I know for a fact that most forum software has this template technique written into it, regardless if SEO is included or not. Sorry for the basic nature of this question. I know some of my previous posts have been such where Iā€™ve asked much more difficult questions than this. I have seen youtube tutorials on issues similar to this, but nothing pulled up by google really shows this in a very simplistic nature. thanks.
  17. req, I appreciate your advice. I will take what you said and see what I can do with it. If I have issues with it, I will get back to you. thanks again for your help on this. sorry it took so long for me to respond here.
  18. well the site that I'm referring to is not set up yet. but yes, that's right. Once content is exposed, you can't let them "unknow" it, now can I? the reason I mentioned them looking at "a few pages" is simply because after they have done that, they really should not get a refund on their money, but I'm sure I would have to provide proof to them that they were visiting multiple pages. the money spending has not been set up yet. that code has yet to be written, if it can even be written at all. do you have another idea for this? I'm talking about giving away intellectual property. Once it's gone, you can not get it back. so what other choice do I have besides doing things this way? I was not going to so far as having accounts be required, but I supposed that could solve the TOR browser issue. There are no accounts really required to view what I've got to show.
  19. from what I've heard req, a lot of the world has that ability. what i'm trying to do here, possibly, is charge for reading the content on one of my sites and not issue a refunds if ''X'' number of pages are viewed. and I can't do that if I'm detecting a page render with INCLUDE() or REQUIRE() and everytime a render comes through it lists a different TOR exit node, now can I? If the page requests come from the same ip address, more than likely I can tell its the same person reading the different pages. I have no idea how fast those onion systems cycle through their nodes, but I would assume it's fairly fast. so for instance, if 2 pages are read 10 minutes apart from each other more than likely PHP would pick up 2 different IP addresses for those 2 different page visits if someone is using TOR, wouldn't it?
  20. I would like to be able to detect, for instance, people who are using the TOR browser when they attempt to log in to one of my sites. my traffic report globals can already tell me if they are coming from a TOR node, but I would like to reject a login if an onion system or an anonymity browser is being used. I have only ran into one other site that has the capability of doing this, in terms of talking about forums only, and that is MrExcel: https://www.mrexcel.com/board/ if you try to register an account there with TOR, the page renders and says ā€œwe have detected you are trying to use automated queries to register an accountā€. there are of course, ways to get around that, if you click buttons in a timely manner, so they are not that good. but regardless, the pre-packaged software they bought does the job fairly well. can anyone offer any help in this regard? I know for a fact that most of the big banks in the USA have this covered, so I know that technology exists to block traffic coming from these sources, but I donā€™t know if itā€™s available to the little guy like me.
  21. req, I just want to make sure that these 2 things are not related. it doesn't make sense that they would be. Are the "allowed PHP modules" on a shared server related at all to the HTTPD software implementations listed here? https://en.wikipedia.org/wiki/Httpd . Your instruction guide says it is HTTPD. considering that HTTP is a protocol and PHP is a language, I'm thinking this is completely irrelevant. from GoDaddy: https://techmipro.com/php-mods-on-godaddy-shared-hosting/
  22. are you talking about SSH? apparently programs like PUTTY can be used for this, purpose.
  23. Req, In that resource you pointed me to, it looks like everything that has to be done is being done through the command line and the appropriate statements in it. is that correct? is this a common way to do things when working with a server directly?
  24. this might be exactly what I'm looking for, mac! thanks! so the rest of you guys....I have changed all of the files on my website to this: <?php include("relative_path_pointer/r/pagevisit.php"); ?> so essentially what I did for a file that is nested ''x'' dirs deep, to capture traffic, is THIS: <?php include("../../../r/pagevisit.php"); ?> there's nothing wrong with that, is there you guys? that isn't a security risk, is it? thanks!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.