PHP questions
- Started
- Last post
- 8 Responses
- Claymantis0
If I edit any PHP file on my server, you can see the changes in the browser. Like if I edit a paragraph tag, the text changes.
However, the PHP emailer doesn't not change when I receive it in my inbox, even after I edit it. Even if I delete the php emailer file, the email still arrives in my inbox.
There are no other files or directories which have the php emailer.
So assume its cached, but my host is saying there is no cache setting for you server that would cause this error.- you might edit in parts of code that don't get executed. check surrounding statements of your code.mekk
- The emailer was just a basic div with the emailer content. I replaced it with a more elaborate responsive email that was designed.Claymantis
- I dont see any code in the surrounding that was important. Whats strange is if i delete the file completely, the site still spits out the emailer.Claymantis
- My host says the server has no cache set up. So beats me.Claymantis
- Claymantis0
I've edited other php files on the save server and they change.
However, the emailer must be cache or something... it just wont change no matter what.
- mekk0
Without code or knowing your server we can only guess.
My guess is that you are working in a wrong directory or server. Try adding a debug line or so to verify that you are working in the right environment.
What do you mean with "Updated PHP with new HTML"? Did you add a new Template? What "emailer" do you use and what is that? A contact form?
- Yes I added a new template or as I said new HTML. It just a account verification emailer. Saying click this link to verify your email.Claymantis
- There isnt any other php emailer files. So I dont know where else it would be coming from.Claymantis
- Claymantis0
I deleted the file and the emailer is still arriving in the inbox!
So strange.
- Claymantis0
Yeah I have no cache on my php.
I'll try deleted and re-uploading...Thanks
- renderedred0
I had this issue a few times on different servers, it sometimes takes a few minutes for the new PHP code "to kick in" when files are overwritten (server caching maybe?). What I do is delete the old version on the server then upload the new version. That did work for me.
- Claymantis0
I dont think so.
I just replaced the HTML that was in the old html emailer php file.
There isnt any other pho emailer files.
- uan0
you edited, deleted the wrong directory, server?
- Claymantis
I've updated my PHP emailer, with new HTML. However, when I receive the new emailer in my inbox, it displays the old PHP emailer. How is this possible, when the old PHP emailer doesn't exist anymore?
Thanks