Solved

i have a link that have a ? in it like this ?http://www.dsdks.com/dsaljnd.rar i want to take the ? off the link how can i do that?

Posted on 2008-10-01
2
181 Views
Last Modified: 2012-05-05
$link = ?http://www.dsdks.com/dsaljnd.rar

i want the link like this

http://www.dsdks.com/dsaljnd.rar 
how ?
0
Comment
Question by:mgtm3
  • 2
2 Comments
 
LVL 9

Expert Comment

by:khaledf
ID: 22619897
you can do it like this

0
 
LVL 9

Accepted Solution

by:
khaledf earned 500 total points
ID: 22619962
LOL forgot the code, here it is

$strlength= strlen($link);

$link=substr($link,1,$strlength);

echo $link;

Open in new window

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
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…
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.

920 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