Solved

PHP to ASP Translation

Posted on 2008-06-13
1
1,215 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to properly use session_regenerate_id when user logs in 7 40
age from date of birth 4 42
Dynamic varibles 5 32
Select record with the most recent date 14 56
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

770 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