Hello.
I've noticed in MediaWiki (the software used by Wikipedia.org) uses
forward-slashes "/" some of the time to organize the different items.
example http://www.zeldarealm.com/zeldapedia....php/Main_Page
notice the
index.php/Main_Page
it uses a slash, rather than a question mark.
can someone please show me how to do this myself? It'd be appreciated
thanks 7 5047 ps**********@gm ail.com wrote: Hello.
I've noticed in MediaWiki (the software used by Wikipedia.org) uses forward-slashes "/" some of the time to organize the different items.
example
http://www.zeldarealm.com/zeldapedia....php/Main_Page
notice the
index.php/Main_Page
it uses a slash, rather than a question mark.
can someone please show me how to do this myself? It'd be appreciated
Easiest are RewriteRules in .htaccess files.
Grtz,
--
Rik Wasmus ps**********@gm ail.com wrote: notice the
index.php/Main_Page
it uses a slash, rather than a question mark.
can someone please show me how to do this myself? It'd be appreciated
You can parse the $_SERVER['REQUEST_URI'] variable and, per example, parse
it as follows:
$arg = substr(
$_SERVER['REQUEST_URI'],
1 + strrpos($_SERVE R['REQUEST_URI'], '/')
);
JW
On Tue, 02 May 2006 11:55:04 -0700, pspauthority wrote: Hello.
I've noticed in MediaWiki (the software used by Wikipedia.org) uses forward-slashes "/" some of the time to organize the different items.
example
http://www.zeldarealm.com/zeldapedia....php/Main_Page
notice the
index.php/Main_Page
it uses a slash, rather than a question mark.
can someone please show me how to do this myself? It'd be appreciated
The answer other people seem to have missed is that $_SERVER["PATH_INFO"]
will be filled with /Main_Page on Apache servers.
Cheers,
Andy
--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer http://www.gphpedit.org | PHP editor for Gnome 2 http://www.andyjeffries.co.uk | Personal site and photos
Andy Jeffries wrote: The answer other people seem to have missed is that $_SERVER["PATH_INFO"] will be filled with /Main_Page on Apache servers.
In case there is any doubt, this is the way to go.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
On Wed, 03 May 2006 09:07:08 +0100, Toby Inkster wrote: The answer other people seem to have missed is that $_SERVER["PATH_INFO"] will be filled with /Main_Page on Apache servers.
In case there is any doubt, this is the way to go.
-- Toby A Inkster BSc (Hons) ARCS
Just out of interest what does ARCS stand for?
Cheers,
Andy
--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer http://www.gphpedit.org | PHP editor for Gnome 2 http://www.andyjeffries.co.uk | Personal site and photos This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Xaradas |
last post by:
Someone could tell me why preg_replace eat a slash when it do replacement?
<?
$stringToReplace = "blah blah {nome} blah blah";
$replacement = "Two slash: \\\\";
$stringToReplace =
preg_replace("/{nome}/Us",$replacement,$stringToReplace,1);
echo($stringToReplace);
#
|
by: Stephen Ferg |
last post by:
I have a question that is not directly Python-related. But I thought
I'd ask the most erudite group that I know... :-)
When did Windows start accepting the forward slash as a path separator
character?
At one time, it was accepted as a truism that Windows (like MS-DOS)
was different from Unix because Windows used the backslash as the path...
|
by: Victor Porton |
last post by:
What can be and what should be xml:base attribute?
Should/can it end with a slash? What to do if it
doesn't end with a slash?
If xml:base="http://xxx.org/aaa/" anything is clear.
But what if xml:base="http://yyy.org/bbb"? Does now
href="a.html" mean http://yyy.org/bbb/a.html or
http://yyy.org/a.html?
As I read the RFC2396 the base URL of
|
by: Kevin Blount |
last post by:
Background:
My script is designed to only allow the downloading of a file if a
cookie exists to say that someone is logged into my companies site.
A colleague set up a test area the extension .EXE is associated with
the aspnet_isapi.dll. This means that if anyone tries to access a .EXE
file in this area, web.config is run and web.config...
|
by: Just Me |
last post by:
With VB6 I wanted to be consistent in how I named variables so I developed
the following doc.
The last column is what I named the variable.
I tried to be consistent wit the Win32 document but it is not consistent.
For example, Filename is used many different ways.
Now I'm trying to find out what .NET does and am looking for help from...
| |
by: Paw Pedersen |
last post by:
When using Encoding.Convert to convert from UTF-8 to ISO646-US the special
Chars like ÆØÅ are replaced with a questionmark (?).
Is there any other way to convert between encodings where you can set the
char used to replace the special chars, or where the special chars is simply
left out instead? Since this is for an EDI document it won't work...
|
by: pedrito |
last post by:
I have a regex question and it never occurred to me to ask here, until I saw
Jesse Houwing's quick response to Phil for his Regex question.
I have some filenames that I'm trying to parse out of URLs.
(href=("|')http://.www\.thesite\.com/.{1,7}/)(?<filename>.)
This generally works, but the problem is some of the image files have
..th.jpg...
|
by: DavidPr |
last post by:
I'm using sessions now but I've just realized a potential problem. It's a small job board and the employers have to register and login to post ads, and the job seekers have to register, login and post a resume in order to respond to certain ads.
The employers and the job seekers register their information into their own database table.
I...
|
by: Ilya |
last post by:
Hi, all!
Some weird thing happens...
I'm trying to create a shortcut programmatically in C#. I need to
create a shortcut with the "target" parameter using slash. Actually
I'm creating a shortcut to a file using command line arguments, smth
like:
"C:\PATH\MyFile.exe" /param1
The problem is that when I create a shortcut the regular slash...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |