Solved

PHP to ASP Translation

Posted on 2008-06-13
1
1,212 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This article discusses four methods for overlaying images in a container on a web page
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

706 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now