Page 1 of 1
How to create URLs?
Posted: Thu Dec 24, 2009 11:37 pm
by manojsemwal1
Pl help to try to means the url
http://www.foobar.com/watch?v=Ofyb0323N ... re=related
here
http://www.foobar.com/ is url
watch? here watch is directory of file name?
v=Ofyb0323NqU is video id
&feature=related
if directory name or file name so how can i do it in php
give some raugh idea....................
Re: http://www.youtube.com/watch?v=Ofyb0323NqU&feature=related
Posted: Thu Dec 24, 2009 11:45 pm
by requinix
I was
this close to reporting this as spam, but figured I should probably read it so I could write something in the Further Information box.
manojsemwal1 wrote:if directory name or file name so how can i do it in php
"if directory name or file name"... what?
"how can I do"... what?
General Posting Guidelines
And change the title to something meaningful.
Re: http://www.youtube.com/watch?v=Ofyb0323NqU&feature=related
Posted: Thu Dec 24, 2009 11:55 pm
by manojsemwal1
i meant that in url /watch? is file name or folder
if file name so without given any extension how can we do it in php.............
if it is folder name so how can i find the video in folder ....
Re: http://www.youtube.com/watch?v=Ofyb0323NqU&feature=related
Posted: Fri Dec 25, 2009 1:35 am
by requinix
manojsemwal1 wrote:i meant that in url /watch? is file name or folder
Who knows? Could be a file, could be a folder.
But it's probably a file. In Apache
If the file is called "/watch.php" then using "/watch" alone will work too. No special PHP required.
Re: http://www.youtube.com/watch?v=Ofyb0323NqU&feature=related
Posted: Fri Dec 25, 2009 3:55 am
by manojsemwal1
<a href='ViewDetails.php?a=edit&id=<?php echo $Sno; ?>'>
above link iam using in my program shall i write this line as it is like...
<a href='ViewDetails?a=edit&id=<?php echo $Sno; ?>'>
Re: http://www.youtube.com/watch?v=Ofyb0323NqU&feature=related
Posted: Fri Dec 25, 2009 3:58 am
by requinix
Okay.
Re: http://www.youtube.com/watch?v=Ofyb0323NqU&feature=related
Posted: Fri Dec 25, 2009 7:29 am
by manojsemwal1
Okay means yes or no ?
if yes
<a href='ViewDetails?a=edit&id=<?php echo $Sno; ?>'>
if i used like this it will searching the viewdetails file. it will not get the file and and display file not found error.
Re: How to create URLs?
Posted: Fri Dec 25, 2009 4:58 pm
by requinix
"Okay" as in "Sure, you can do that".
Did you read the rest of my post? Like the part that talks about Apache and the Options directive?
You need MultiViews* to give links without extensions.
* There are, of course, other ways, but this is the easiest.
Re: How to create URLs?
Posted: Sat Dec 26, 2009 12:53 am
by manojsemwal1
No I did'nt read pl provide the link for me i want read .
Re: How to create URLs?
Posted: Sat Dec 26, 2009 1:18 am
by requinix
manojsemwal1 wrote:No I did'nt read pl provide the link for me i want read .
Here you go. Keywords are "Apache" and "Options".
Re: How to create URLs?
Posted: Wed Dec 30, 2009 7:56 am
by manojsemwal1
iam new in php and apachie............
so pl give small example.......................to easy to understand