i need help with php
- azza3809
-
azza3809
- Member since: Jan. 14, 2006
- Offline.
-
- Forum Stats
- Member
- Level 26
- Blank Slate
well i'm entirly new to php but I don't really need it... apart from now. I want to make a link go to 1 of 10 links when clicked but I or my brother (who is quite good at php) don't know. So is there anyway for me to do this with practicly no knowlage of php?
- Jordan
-
Jordan
- Member since: Apr. 23, 2006
- Offline.
-
- Forum Stats
- Member
- Level 14
- Blank Slate
So, when you click the link it randomly selects a url and goes to it?
- azza3809
-
azza3809
- Member since: Jan. 14, 2006
- Offline.
-
- Forum Stats
- Member
- Level 26
- Blank Slate
At 11/19/06 05:11 PM, Jordan wrote: So, when you click the link it randomly selects a url and goes to it?
Ye, thats basicly what I would like it to do. But like I said I am new to PHP as I do not use it
- azza3809
-
azza3809
- Member since: Jan. 14, 2006
- Offline.
-
- Forum Stats
- Member
- Level 26
- Blank Slate
- JeremysFilms
-
JeremysFilms
- Member since: Feb. 18, 2005
- Offline.
-
- Forum Stats
- Member
- Level 18
- Blank Slate
<?
$urls = array('http://jeremysfilms.com','http://newgr ounds.com','http://flash-gear.com','http://go ogle.com','http://myspace.com');
echo '<a href="'.$urls[rand(0,count($urls)-1)].'">Rand om Site</a>';
?>
- eWhabs
-
eWhabs
- Member since: May. 4, 2006
- Offline.
-
- Forum Stats
- Member
- Level 13
- Blank Slate
http://newgrounds.com/bbs/topic.php?id=372899
Then change every quotes with an url, and put the code between
link
Btw, your brother sucks.
-Disregard females (fuck bitches)
-Acquire currency (get money)
-Ignite cannabis frequently (smoke sum with your homies)
- azza3809
-
azza3809
- Member since: Jan. 14, 2006
- Offline.
-
- Forum Stats
- Member
- Level 26
- Blank Slate
oh Fu**... I need a site that can support PHP >:(
- azza3809
-
azza3809
- Member since: Jan. 14, 2006
- Offline.
-
- Forum Stats
- Member
- Level 26
- Blank Slate
- JeremysFilms
-
JeremysFilms
- Member since: Feb. 18, 2005
- Offline.
-
- Forum Stats
- Member
- Level 18
- Blank Slate
- Mister-Mind
-
Mister-Mind
- Member since: Jul. 1, 2006
- Offline.
-
- Forum Stats
- Member
- Level 07
- Blank Slate
At 11/19/06 05:48 PM, JeremysFilms wrote: free php web hosting
better yet.
Register for an account, or if you cant do that, Ill give you my old one, well just the ftp username password and host. I dont need it anyways. =)

