scm22ri Posted January 3, 2013 Share Posted January 3, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/272655-question-regarding-php-echo-statement/ Share on other sites More sharing options...
Jessica Posted January 3, 2013 Share Posted January 3, 2013 Quote Link to comment https://forums.phpfreaks.com/topic/272655-question-regarding-php-echo-statement/#findComment-1403032 Share on other sites More sharing options...
White_Lily Posted January 4, 2013 Share Posted January 4, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/272655-question-regarding-php-echo-statement/#findComment-1403196 Share on other sites More sharing options...
Christian F. Posted January 7, 2013 Share Posted January 7, 2013 PS: It's a variable, not a function, White_Lily. Details matter, especially in programming. Quote Link to comment https://forums.phpfreaks.com/topic/272655-question-regarding-php-echo-statement/#findComment-1403919 Share on other sites More sharing options...
haku Posted January 7, 2013 Share Posted January 7, 2013 Probably something wrong with your code. Quote Link to comment https://forums.phpfreaks.com/topic/272655-question-regarding-php-echo-statement/#findComment-1403926 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.