Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

PHP to ASP Translation

Posted on 2008-06-13
1
1,217 Views
Last Modified: 2012-05-05
Experts,

I'm no good with PHP, and I need this line translated into ASP so I can use it on the website I'm developing.

Thanks in advance,

Lyell
<?php echo urlencode('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); ?>

Open in new window

0
Comment
Question by:lyellr
1 Comment
 
LVL 5

Accepted Solution

by:
Alex-w474 earned 500 total points
ID: 21782891

<%
Response.Write Server.URLEncode("http://" & Request.ServerVariables("HTTP_HOST
") & Request.ServerVariables("URL"))
%>

Open in new window

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Wordpress Security 29 48
Force PDF to open inline as opposed to dowload 16 22
Checking https returns 301 21 21
Reference key in foreach loop 4 19
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question