Click here to Skip to main content
15,886,110 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: I want to learn whow to make like that project. Pin
walterhevedeich16-Jun-11 15:38
professionalwalterhevedeich16-Jun-11 15:38 
Questionsimulated annealing for distribution in php Pin
wahyu oke14-Jun-11 9:58
wahyu oke14-Jun-11 9:58 
QuestionI urgently need an online exam or test script Pin
E.O.Akinyemi13-Jun-11 13:53
E.O.Akinyemi13-Jun-11 13:53 
AnswerRe: I urgently need an online exam or test script Pin
walterhevedeich16-Jun-11 15:35
professionalwalterhevedeich16-Jun-11 15:35 
AnswerRe: I urgently need an online exam or test script Pin
Glen Villar16-Jun-11 18:32
Glen Villar16-Jun-11 18:32 
AnswerRe: I urgently need an online exam or test script Pin
cjoki17-Jun-11 11:04
cjoki17-Jun-11 11:04 
AnswerRe: I urgently need an online exam or test script Pin
thatraja8-Jul-11 17:05
professionalthatraja8-Jul-11 17:05 
QuestionBreak down URL Pin
djhankypark11-Jun-11 2:46
djhankypark11-Jun-11 2:46 
This is foxing me a little and I wonder if someone could point me in the right direction please or include what is needed to resolve this.

My page at the moment only includes the following and the address(URL) is given as the example.

<?php
//As an example the address is taken as http://www.newusb.co.uk/jh6k95/
$url = $_SERVER['REQUEST_URI'];
//Show me the folder name
echo $url;
?> 


The return is...

/jh6k95/index.php

However the only thing I want from that is...

jh6k95

So, I suppose the question is how do I strip out folder name.


Many thanks in advance for any help.

Ray
AnswerRe: Break down URL Pin
Graham Breach11-Jun-11 5:37
Graham Breach11-Jun-11 5:37 
GeneralRe: Break down URL Pin
djhankypark11-Jun-11 6:42
djhankypark11-Jun-11 6:42 
Question[SOLVED] Keep the page position? [modified] Pin
Joan M9-Jun-11 3:33
professionalJoan M9-Jun-11 3:33 
AnswerRe: Keep the page position? Pin
all_in_flames9-Jun-11 3:58
professionalall_in_flames9-Jun-11 3:58 
GeneralRe: Keep the page position? Pin
Joan M9-Jun-11 4:20
professionalJoan M9-Jun-11 4:20 
GeneralRe: Keep the page position? Pin
all_in_flames9-Jun-11 4:25
professionalall_in_flames9-Jun-11 4:25 
GeneralRe: Keep the page position? Pin
Joan M9-Jun-11 5:06
professionalJoan M9-Jun-11 5:06 
GeneralRe: Keep the page position? Pin
Joan M9-Jun-11 5:14
professionalJoan M9-Jun-11 5:14 
GeneralRe: Keep the page position? Pin
Joan M9-Jun-11 4:38
professionalJoan M9-Jun-11 4:38 
GeneralRe: Keep the page position? Pin
Joan M9-Jun-11 5:16
professionalJoan M9-Jun-11 5:16 
AnswerRe: Keep the page position? Pin
Graham Breach9-Jun-11 5:06
Graham Breach9-Jun-11 5:06 
GeneralRe: Keep the page position? Pin
Joan M9-Jun-11 5:18
professionalJoan M9-Jun-11 5:18 
GeneralRe: Keep the page position? Pin
Graham Breach9-Jun-11 8:15
Graham Breach9-Jun-11 8:15 
QuestionRunning .NET app on Linux Pin
AmbiguousName9-Jun-11 3:01
AmbiguousName9-Jun-11 3:01 
AnswerRe: Running .NET app on Linux Pin
Groulien9-Jun-11 4:28
Groulien9-Jun-11 4:28 
GeneralRe: Running .NET app on Linux Pin
Eddy Vluggen19-Aug-11 6:54
professionalEddy Vluggen19-Aug-11 6:54 
AnswerRe: Running .NET app on Linux [modified] Pin
anthonybates11-Jul-11 18:14
anthonybates11-Jul-11 18:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.