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
180 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
Comment Utility
you can do it like this

0
 
LVL 9

Accepted Solution

by:
khaledf earned 500 total points
Comment Utility
LOL forgot the code, here it is

$strlength= strlen($link);

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

echo $link;

Open in new window

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
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 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…

744 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

15 Experts available now in Live!

Get 1:1 Help Now