
brown2005
Members-
Posts
942 -
Joined
-
Last visited
Everything posted by brown2005
-
Hi, I want to be able to take a URL and strip it so it only comes out with say domain.co.uk. I want the function to be able to combat the following things.... 1) if it has a http:// or https:// at the front or any other alternative 2) if it has www. at front or any other alternative 3) if they just put domain.co.uk it just returns domain.co.uk Thanks
-
rite i know why it doesnt work. going on wildteen88's code, if someone put just domain.com and misses out both the http://www. then it echo's nothing, so how do i combat this please....
-
ok ill have a look. thanks
-
nope still comes out blank
-
can anyone help with the above please. need this to work.
-
Change IP from 000.00.00.000 to 000.##.##.000
brown2005 replied to brown2005's topic in PHP Coding Help
thanks very much -
Change IP from 000.00.00.000 to 000.##.##.000
brown2005 replied to brown2005's topic in PHP Coding Help
well i was using ip's to record hits.... -
hi... i wondered if it was possible to take an IP address and keep the digits at the front and end and use # or * fro the middle two...? Regards Richard
-
wat are the different priorities
-
hi sorry me again..... i am using the above function.... but wat if i have while($homepages_array = mysql_fetch_array($homepages_query)) { $websites_id = $homepages_array[websites_id]; $websites_website = StripUrl('$homepages_array[websites_website]'); echo" <tr> <td> </td> <td class='text' height='25'><a href='$config_website_url/$config_website_url_topic/files/url.php?id=$websites_id' class='red_bold_none'>$websites_website</a></td> <td class='text' height='25'> <a href='a' class='red_bold_none'>Delete</a> - <a href='' class='red_bold_none'>Edit</a> - <a href='' class='red_bold_none'>Stats</a> </td> </tr>"; echo" <tr> <td colspan='3'><img src='$config_url/include/images/lines/blue.gif' width='100%' height='3'></td> </tr>"; } it doesnt print owt....
-
thanks very much for all your help
-
hi, the above code works fine. How can I add to this code to change anything put in front... i.e. http://www. http:// www. etc, etc ....
-
o i see what ur saying, sorry read it wrong.... thought u wrote are u making a come back IMO... lol...
-
thanks very much
-
hi i was wondering if u could use to if satements together and how u do it? if($a == 5 AND $b == 5)
-
i have an echo which echos say www.hello.co.uk what i want to do is create a function that will strip the www. and just leave hello.co.uk is this possible. Thanks in advance Regrads Richard
-
are making a come back IMO? wats that mean
-
thanks obsidian. Do you think there is anything else that needs to be added to the viewing part, i mean do u know something that people woul dlike to do when viewing others websites....
-
also i like to know if there any more ideas on other things i can add, things i can do to make better, etc, etc..
-
rite, i have set it up so now it shows a different website everytime u click home or refresh
-
well it is only displaying google uk because that is the only website in the database and i havnt finished the site. It will have people who have added there website in it and it will display the website with the lowest unique hits, everytime someone views it. But what i want to know is, is it ok to use frames like this... or are frames a bad idea?
-
Hi, I have just started designing www.randomhomepage.co.uk and on the main page it uses two frames, top and bottom, but I have been hearing from my friend that this is a bad idea. Any critique would be good please. Regards Richard Brown
-
ok cool thanks for all ur help
-
nice one, is there a list of the functions like the php ones on phpfreaks.com
-
one more thing, before i leave u alone, lol, if say i use month(), obviously it prints out 9 as the numeric month, but how can i print out September instead