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
186 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
[X]
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
  • 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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

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…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
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…
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.

717 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