Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-14-2006, 06:09 AM   #1
Registered: Jan 2005
Posts: 40

Rep: Reputation: 15
script to modify url

ok i have two applications one will only output urls like myserver/fmi/xml/fmlresult.xml/?name=gaz&surname=man
but the second will only accept urls that are

the information that is different never changes so would it be possible to write a perl/php script that would be queried like this myserver/script.php?name=gaz&surname=man it would then reformat the url to be myserver/fmi/xml/fmlresult.xml/?-db=student&-lay=students&firstname=gaz&surname=man&-findall query that and retrun the result.

Last edited by gazman1; 06-14-2006 at 06:11 AM.
Old 06-14-2006, 08:53 AM   #2
Registered: Apr 2006
Location: Delhi, India
Distribution: Fedore , CentOs, Debian
Posts: 121

Rep: Reputation: 15

as per my understanding to you question that is possible in PHP , but franking i am not clear with idea how you are going to use it...

for in general you can try something like this

header ("Location: myserver/fmi/xml/fmlresult.xml/?-db=student&-lay=students&firstname=$_GET[name]&surname=$_GET[surname]&-findall
a very basic PHP script to redirect your




Hope that help
Old 06-14-2006, 09:17 AM   #3
Registered: Jan 2005
Posts: 40

Original Poster
Rep: Reputation: 15
basically we have a virtual learning environment which we use for course notes etc. and a database which we use for storing information on accounts etc. We want users to be able to see select info stored about them in database from the learning environment so the learnign environ is supposed to query the database, however the learnign environment will only produce urls like myserver/script.php?name=gaz&surname=man but the datbase will only accept queries in the form myserver/fmi/xml/fmlresult.xml/?-db=student&-lay=students&firstname=gaz&surname=man&-findall


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Resolving URL script irfanhab Programming 1 12-08-2005 07:38 AM
ERROR The requested URL could not be retrieved While trying to retrieve the URL: /re Niceman2005 Linux - General 1 06-29-2005 09:51 AM
Use PHP URL processor script with Apache remi Linux - Networking 0 07-18-2004 01:44 PM
modify bash script - recursive action xscousr Programming 6 09-17-2003 01:52 PM
modify file access & modify timestamps i2itstud Linux - General 1 05-20-2003 03:34 AM

All times are GMT -5. The time now is 07:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration