Solved

PHP to ASP Translation

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
EditableGrid how to fetch rows from MySql in php 14 44
Validating Date 4 28
What is define("__APPROOT__", __DIR__); 6 27
How do use '  ' within this code? 4 24
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

685 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