Jump to content

Question regarding PHP Echo Statement?


Guest

Recommended Posts

Hi Everyone,

 

I have a question regarding echoing statements for my website. For some reason my website is echoing out statements that are unrelated to my website. For example, if you visit my website and type in whatever after the /(slash) Google is indexing the term "whatever"

 

A few examples are

http://www.mydomain.com/whatver

 

http://www.mydomain.com/advices

http://www.mydomain.com/review_ratings

http://www.mydomain.com/widgets

http://www.mydomain.com/terms_and_conditions

http://www.mydomain.com/latest_news

http://www.mydomain.com/users/frontend_change_year

http://www.mydomain.com/put_whatever_you_want_here_because_google_will_index_it

 

I can go on and on but I think you get the point of what I'm doing.

 

Often times, on my landing page it will say "Latest News", "Whatever", "Review Ratings", "Widgets" etc...

 

In other words, it's echoing out the keyword that's associated with the URL.

 

My question is, how would I go out stopping/fixing this?

 

Thanks Everyone.

Link to comment
https://forums.phpfreaks.com/topic/272655-question-regarding-php-echo-statement/
Share on other sites

The only reason I can think of as to why its doing that is because your echoing the $_GET[""] function, which pulls specified data from the url so that you can use it inside your script. The only solution here is to find that $_GET function and delete it, tbh, i think thats all you can do lol.

Archived

This topic is now archived and is closed to further replies.

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