Toggle navigation
Dashboard
Dashboard Tracker
Add / Edit My Forums
System Announcements
Discussion
Active Thread Feed
Top Threads Today
Top Threads This Week
Top Threads Library
Go!
View All
View All
Login
Logout
Home
Forums Index
Server Side
/
PHP Server Side Scripting
11:44 pm Jun 26, 2026
This page requires javascript.
Forum Moderators:
coopster
Message Too Old, No Replies
str_replace( 'after a certain point')
Striping everything after domain.com
sauce
Msg#:1312319
9:18 pm on Nov 16, 2005
(gmt 0)
I'm try to display a list of domain links but some of them are full URL links and I just awnat the certain domain...How can I tell the server to strip say after domain.com...
$var = str_replace( 'after [
domain.com',
...] '', $var );?
coopster
Msg#:1312320
4:59 am on Nov 17, 2005
(gmt 0)
How about
parse_url()
[php.net]?
Join The Conversation
Register
For Free! -
Become a
Pro Member
!
See forum categories
-
Enter the Forum
Moderators and Top Contributors
Moderator List
| Top Contributors:
This Week
,
This Month
,
May
,
Apr
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
June 2026 Google Search Observations
AdSense Earnings and Observations - June 2026
Quite quiet in here, anyone know why?
Best Learning Path for a Web Development Beginner?
Buying traffic to appear on Google Discover
Home
Forums Index
Server Side
/
PHP Server Side Scripting
11:44 pm Jun 26, 2026