![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Apr 2002
Posts: 157
|
Need PHP assistance, please help
Hi,
I need some assistance, just starting out to play with php and I need to know how to do this: I have a variable which is a domain name, sometimes it can be domain.com, domain.net domain.whatever I need to know how to strip only what's after the dot and place it in another variable, for example com, net or whatever. So: If variable = domain.com then variable1 = .com and go there. If variable = domain.net then variable1 = .net and go fuckyourself ![]() What is the fastest why doing this? Thanks!
__________________
... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Nov 2001
Location: MTL
Posts: 5,060
|
Search for the explode() function on php.net
![]()
__________________
mmm my sig was too big... no more cool animation ![]() but hey still! need php? ICQ: 94586959 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Sep 2002
Posts: 5,391
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
if you only need the extension, function "strstr" may work better...
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Apr 2002
Posts: 157
|
Thanks SilverTab, jmk and wob for the speedy reply!!!
Much appreciated, have a great weekend ![]()
__________________
... |
![]() |
![]() ![]() ![]() ![]() ![]() |