-
Posts
830 -
Joined
-
Last visited
-
Days Won
1
Posts posted by phppup
-
-
@maxxd but how do THEY do it?
If they are using a method that I can use in PHP, then I would assume they have all the same obstacles.
-
I want to be able to distinguish between emails that the recipient ignored and emails that were opened.
I've looked at code with a header item Disposition-Notification-To but indications are that this is easily turned off and therefore an unreliable choice.
Other alternatives state that placing a .gif image in the email's body is effective. But some indicate that it, too, is often blocked by major email providers.
Either way,I have not found a working example to test for myself.
Additionally, I plan to use this primarily when sending an email to an address that is NOT maintained by Google or Yahoo etc. More likely to momandpop.com type domains (that may have a GoDaddy-ish hosting plan).
Any helpful information would be great.
-
I think there are methods available.
-
I want to send an email via php (no problem)
Now I want to get a confirmation when the email is opened.
I've seen a few bits of code but nothing that seems very well defined.
Any guidance or direction to valuable explanations or links would be great.
Thanks.
-
@ginerjm OK, yes. Not sure if it will "error" but it was a quick example of my thought process.
Now I understand that you were pointing out my loopiness.
-
@kicken Thanks for the help, but I wasn't as clear as I should have been.
I'm not interested in the page loading speeds (at this time)
I am only trying to determine how long each user remained on the specific page before advancing. This would let me know if a question was too complicated, or maybe randomly answered.
Hypothetically, it would take more than 3 seconds to write 500 words versus cut & pasting. Likewise, if it took 20 minutes to add 3 + 3, then maybe you were distracted from the webpage, etc.
Or, maybe my design or layout is not easy enough to follow.
-
@ginerjm Care to explain why?
-
I want to assemble a multi-page questionnaire/quiz whereby submitting page 1 will lead to page 2 etc.
I have locked in the time that each page loads by using
unset($_SESSION['start']); if($_SESSION['start'] == ""){ $_SESSION['start'] = time(); }
at the top of each page
However, I am having difficulty in getting the time at submission.
I realize I can simply use the start time of page 2 as the submission time for page 1, but that would technically be incorrect, right?
In actuality, a page would load (and the time recorded). A person would submit after any amount of expended time (and that would be recorded) Then there would be a gap before the next page loaded.
How can I effectively obtain these events? Or am I unnecessarily overthinking this?
-
@gizmola Thanks.
And yes. Again, I haven't started to write the actual code, but that was my thought process (especially since so many of the tags fit such a similar format.
I guess I've actually come quite a way (thanks to those that have helped me HERE).
*i wonder if it's time to change my username???!?*
-
1
-
-
Quote
So you're good
@cyberRobotThanks for removing a heavy burden. *not sure what emoji would be appropriate* LOL
-
OK, yes.
@cyberRobotThat is in the realm of what I was planning
-
I haven't begun to write the actual code yet.
Only began to formulate the concept.
How would
echo implode($meta);
work?
-
@cyberRobot Yes, I do consider the description tag as one of the "usual."
I discovered a meta for security and refresh that I am unfamiliar with and uncertain about.
As for you saying
Quotetoo many people willing to pack those meta tags
Yes, that was me from way back when. I suppose I owe an apology to everyone that I effected. (although I never got too crazy and NEVER used irrelevant terms)
-
@gizmola With all due respect, I don't think google is the ONLY search engine on earth. (Sorry, not a fan of theirs, but still fond of you. LOL)
Are there any less popular meta tags that I should use (beyond the usual list) or recommended settings to be aware of?
-
I'm not sure whether I'm becoming overindulgent or a real developer, so please advise me.
I have several webpages for a new website. I am well acquainted with them and their content.
As I began planning to publish these pages, I realized I could probably utilize an array to include meta data for bots and search engines.
My thinking was something like:
for ($I=0; $I<count($meta); $I++){ if ($page.I){ echo $meta[I] } }
I'm concerned with the effectiveness of doing this.
Will bots and crawlers see it as legitimate and valid the same as if each page had "hand written" meta data?
Or will it flag it as illegitimate or miss it, thereby hurting the pages placement in search results?
Not much more to provide since I'm asking the question BEFORE attempting the code.
Thanks
-
Get back to the withing script.
Add the $gname association in the SAME loop and create $sql_2 to ADD a token.
Don't forget to also call $sql_2
Gotta go for now.
-
If the second UPDATE is to ADD, then it CANNOT be $sql_1 ALSO because you already have a variable of $sql_1.
So, perhaps that should be variable $sql_add throughout the second UPDATE.
Revert to the code that was working with the subtraction and then work out the kinks for the addition.
-
It's very possible, but this is a clumsy methodology. Mac_gyver has the right idea.
I'm also running out of free time.
Have you tried replacing user_updated_token with a hardcoded number (like 20) just to validate that addition will occur?
-
OOPS!
Just realized the code error I made.
I made $gname = 20 which is WRONG.
$gname is a user name, I meant to add an increase of value by 20 for easy verification.
Sorry.
-
I like to test one item at a time. This let's you know where problems originate.
If the subtraction is working, then now get the addition to adhere.
I would think the two updates should be in the same loop, this way all criteria is the same.
-
I'd try this for starters:
////$gname = $row["fname"]; $gname = 20; //this will give you an easy way to spot the added value and see that it increases $user_updated_token = ($user_token) + 1; $sql_l = "UPDATE users SET token='$user_updated_token' WHERE id=$gname";
I don't use PDO, some in not sure about
if ($conn_l->query($sql_l) === TRUE) //would == be more accurate than ===
And are you repeating this query? You already have it once, don't you?
-
I guess the first question is what exact code you added and where to trigger these errors.
You are getting no errors prior to these added lines?
-
Did you get it working?
(If it's good please mark the solution)
PS: you may want to review and consolidate your tables to eliminate redundancy. Streamlining is good.
-
Looks like it would.
Why not give it a shot?
Method for email acknowledgement
in PHP Coding Help
Posted · Edited by phppup
Clean up post
@maxxd I've found allot of ambiguity in the vague endorsements for being able to achieve a reliable count in this manner. But the "unreliable" crowd seems more consistent.
That's why I created the post here for an honest dialogue.
I, like you, considered the possibility that certain email providers might receive special treatment. However, that reality would strongly lean towards the topic of collusion and violations of Federal anti-trust statutes that would probably temper that behavior.
Then again, I'm not gonna say it can't be happening. [But do you REALLY think a company would act unlawfully on the pristine roads of the internet highway?? *scratching my head*]