Jump to content

changes not taking affect


phppup

Recommended Posts

Within my PHP code is a section as follows

echo '<form action="" method="POST"><button type="submit" name="xyz" value="123"> click to apply    </button>
                                   </form>';


There were some issues with scripting that followed, and I thought I had them figured out.  But when I implemented my solutions, the results were inconsistent.

I went back to the drawing-board several times until I concluded that the problem wasn't so much with my solution as it was with the server/browser SAVE process.

I went to the bottom of my file outside of the ?> tag and typed "TEST in HTML" and it appeared on my webpage
I went to the top inside the <? and added echo "TEST PHP"; and it showed up at the top of my page.

But when I CHANGE  my button from  "click to apply"  to  "never click this button ever ever ever"  the  "click to apply"  remains constant.  The characters I replace are not taking affect.

I've cleared browser cache and viewed the saved webpage on THREE different PCs on different networks, yet the OLD version continues to appear.

Is it me?  The code? Seems VERY odd to me.  Solution?

PS: just REMOVED the entire form code, but the form did not vanish from my webpage


 

Link to comment
Share on other sites

It always amazes me when people tell us what they did to create a problem but NEVER show us the code that they can so easily see themselves.

We are not mind-readers.

Here's a little thing I add to most of my pages:

<span class='smltxt yellow'>$ver_no</span>

where the smltxt class is something that is usually set to 12px.  I place this line immediately after my <body> tag and set the value of $ver_no at the top of my script.  Then when I make a new change I alter that value, which usually contains the date as well.  Something like:

Ver. #1.0a 07/18/22

Edited by ginerjm
Link to comment
Share on other sites

19 minutes ago, phppup said:

Is it me?  The code? Seems VERY odd to me.  Solution?

Sounds like the most likely cause is you accidentally uploaded the wrong file, uploaded to the wrong path, or edited the wrong file. 

If not that then maybe some server-side caching is in place that you need to either disable or find a way to clear.

 

Edited by kicken
Link to comment
Share on other sites

@ginerjm And how is that supposed to help me?  How does it even relate to the issue I described???

@kicken  It's the right file (edited directly on the server and checked the path several times).  Alternately, if it were the incorrect file or path, the other changes that DID show up would not have existed.

Is there some way to check or clear the server cache?  Or do I need to just wait in hopes that sometime in the future the hosting company flips a switch?

Still, seems ODD that some changes are being "accepted".  If it were cached, wouldn't everything be cached?

 

Edited by phppup
Link to comment
Share on other sites

Just a tool to make it easier to recognize that your latest version/changes are up on the screen.  If I wasted my time excuse me for trying to help you in your time of need.

And if you showed us the code that is not showing up properly perhaps there is something there we may see.

Link to comment
Share on other sites

12 minutes ago, phppup said:

Is there some way to check or clear the server cache?  Or do I need to just wait in hopes that sometime in the future the hosting company flips a switch?

You'd probably just want to talk to your hosting company to determine if there is a cache and if so, what you can do about it.

Alternatively, setup your own local development environment so you have control over such things.

Link to comment
Share on other sites

Did you maybe forget to upload your revised script?  Kind of hard to image removing all the code and yet still be seeing it online if it was truly replaced on your site as well as on your development tool. 

Or did you perhaps rename your current script and forget to use the new name online?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.