473,378 Members | 1,577 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Help getting URL?

I may post the URL of a post on my blog at some one else's blog. The
URL is

blog/index.php/2006/10/23/application-software

but is cut after being posted

blog/index.php/2006/10/23/application

I'm trying to catch this and redirect to the first URL. However, I
can't figure out how to get the correct URL. I've tried:

$_SERVER['PHP_SELF']
blog/index.php

$_SERVER['HTTP_REFERER']
this gives the URL of the statcount script I'm using

Any suggestions?

Thanks,
Brett

Nov 11 '06 #1
3 1674

brett napisal(a):
I may post the URL of a post on my blog at some one else's blog. The
URL is

blog/index.php/2006/10/23/application-software

but is cut after being posted

blog/index.php/2006/10/23/application

I'm trying to catch this and redirect to the first URL. However, I
can't figure out how to get the correct URL. I've tried:

$_SERVER['PHP_SELF']
blog/index.php
$_SERVER["REQUEST_URI"]
$_SERVER['HTTP_REFERER']
this gives the URL of the statcount script I'm using

Any suggestions?
If you have such address: blog/index.php/2006/10/23/application, the
request that will be sent to your server will look like this:
/index.php/2006/10/23/application
so your server won't know that user wants:
/index.php/2006/10/23/application-software

Nov 11 '06 #2
If you have such address: blog/index.php/2006/10/23/application, the
request that will be sent to your server will look like this:
/index.php/2006/10/23/application
so your server won't know that user wants:
/index.php/2006/10/23/application-software
Correct. That's my question - how to I check for the URL,
"/index.php/2006/10/23/application"? Which server variable should I
check?

Thanks,
Brett

Nov 11 '06 #3


On 11 Lis, 18:38, "brett" <acco...@cygen.comwrote:
If you have such address: blog/index.php/2006/10/23/application, the
request that will be sent to your server will look like this:
/index.php/2006/10/23/application
so your server won't know that user wants:
/index.php/2006/10/23/application-softwareCorrect. That's my question - how to I check for the URL,
"/index.php/2006/10/23/application"? Which server variable should I
check?
As I wrote in my previous post: $_SERVER[REQUEST_URI]

Nov 16 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: James | last post by:
Please help - getting very desperate! Sun, 12 October 2003 05:39 I have PHPDEV 4.2.3 from Firepages.com.au as the upgrade to 4.3.0 did not work. I also had an abortive download from PHP.NET as...
7
by: Catherine Jones | last post by:
Hi all we are getting active x component can not create object (Error No. 16) while creating an instance of File System Object in ASP client side script. Could you plz help us in solving this...
3
by: glenn | last post by:
Can anyone tell me what resource you use to get help with C# VS? or VS in general? I have been programming in Delphi for 10 years and am just getting started with VS and I have to say that the...
5
by: SStory | last post by:
Hi all, I really needed to get the icons associated with each file that I want to show in a listview. I used the follow modified code sniplets found on the internet. I have left in...
6
by: Jack Duijf | last post by:
Hello, I am looking for a person in The Netherlands that is willing to help me getting started with Vb.net. Please send a message to jack@aicn.nl if you can help me getting started with the...
22
by: KitKat | last post by:
I need to get this to go to each folders: Cam 1, Cam 2, Cam 4, Cam 6, Cam 7, and Cam 8. Well it does that but it also needs to change the file name to the same folder where the file is being...
7
by: Ladysniper | last post by:
DESPERATE doesn't begin to describe it. Can someone PLEASE tell me what is WRONG with this code? Now..a bit of background. It is a search results page for http://www.azsoma.info/directory.htm....
15
by: Jay | last post by:
I have a multi threaded VB.NET application (4 threads) that I use to send text messages to many, many employees via system.timer at a 5 second interval. Basically, I look in a SQL table (queue) to...
0
by: lvishnugoud | last post by:
Hi, Please Help me for solve this problem. Actually i am create ing help (.chm) files by using HelpNavigator enumrator and showhelp method. I am getting result but in help file left...
47
by: Jo | last post by:
Hi there, I'm Jo and it's the first time I've posted here. I'm in process of creating a database at work and have come a little unstuck.....I'm a bit of a novice and wondered if anyone could...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.