Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9269923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:14:37+00:00 2026-06-18T15:14:37+00:00

I am running a website based on php on a server run by a

  • 0

I am running a website based on php on a server run by a large host. My goal is very simple. Include link on my site to google search where I dynamically give the search term.

Starting with the url that appears in the address bar, I’ve narrowed the syntax down to

http://www.google.com/search?q=test

This works when I type it into the address bar. However, when I launch from the server, it redirects to:

www.google.com/webhp...lots of characters

There are references on the web to webhp being related to a virus but I’m pretty sure my host does not have any viruses on its servers.

Does anyone know proper way to launch simple google search from a link? Is a straight link forbidden? I am Willing to use JS to push link to client if necessary (which I use for google maps at Google’s recommendation due to usage limits) but want to keep things as simple as possible. This link is just to save people a few clicks.

Thanks for any suggestions.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T15:14:39+00:00Added an answer on June 18, 2026 at 3:14 pm

    Simply use the urlencode Method

    <?php
    echo '<a href="http://www.google.com/search?q=', urlencode($userinput), '">';
    ?>
    

    If you wish to do it with Javascript the answer is here: Encode URL in JavaScript?


    Try to track down the “Url Rewriting”, I think its a virus you need to remove: http://www.ehow.com/how_8728291_rid-webhp.html

    WebHP is a computer virus that automatically sets your homepage to a
    fake Google site, known as Google.com/WebHP. This virus will also
    randomly open windows or tabs to load this website, as well as
    generate pop-ups and fake errors. Also installed with this virus is a
    rootkit which can disable your PC’s firewall and other methods of
    security. If left untreated, the WebHP virus allows hackers to
    remotely access your computer and steal personal information, such as
    credit card numbers and email passwords.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running through a pretty simple Flash based website tutorial from ActiveTuts. Any who,
I am looking at the possibility of running a PHP-based website (built in symfony)
i'm running a php/mysql based website. I already let my users upload p7m files
Background I've recently setup a php based site on a host I have root
I'm an absolute newbie to EC2. My goal is to run a php-mysql-website on
I have a website built in PHP and currently running on an Apache server
Currently my website is based around MVC and the Entity Framework running against a
I've built a PHP based website with MySQL as the back-end, and am planning
I have a website running on PHP and i need to develop apps for
I work on a website based on Perl CGI. It's run with Perl -T

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.