PHP Relative Path To Absolute Path Convertor

Stängt Publicerat Jun 18, 2007 Betalades vid leverans
Stängt Betalades vid leverans

I need a PHP script that will converts all relative links to absolute links. The script will use a parameter with the url and it should returns the webpage with all links coverted. (it's mandatory to convert css/js/links/images/audio/video content)

It can be used regexp, curl, wget, lynx, etc to acomplish this.

I need a function that will make the conversion.

The input parameter will be an url. The function will check all the paths from the url (css/js/images/links/audios/videos/etc) and if the paths are relative - something like:

[some link][1] ...

the function will convert it to absolute paths - something like:

< a href="http://urlpath/[login to view URL]">some link</ a> The function must detect that if the file requested is in the current folder of the url or in the main folder.

Example:

url: [login to view URL]

content:

< a href="[login to view URL]">some link

converted paths:

< a href="[login to view URL]">some link</ a>

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

Linux/PHP

Ingenjörsvetenskap Linux MySQL Perl PHP Ruby on Rails Programvaruarkitektur Programvarutestning Webbhotell Webbplatshantering Test av hemsidor

Projekt-id: #3046801

About the project

19 offerter Distansprojekt Aktivt Jul 9, 2007

19 frilansare har lagt bud på i genomsnitt $45 för det här jobbet

maeenul

See private message.

$34 USD inom 5 dagar
(159 omdömen)
5.8
barros

See private message.

$51 USD inom 5 dagar
(72 omdömen)
5.6
pixvista

See private message.

$76.5 USD inom 5 dagar
(30 omdömen)
5.6
ChinesePHPDev

See private message.

$51 USD inom 5 dagar
(10 omdömen)
5.1
sumon4work

See private message.

$61.2 USD inom 5 dagar
(42 omdömen)
4.7
devansvw

See private message.

$12.75 USD inom 5 dagar
(7 omdömen)
3.5
andreipvw

See private message.

$17 USD inom 5 dagar
(17 omdömen)
2.7
sylhet

See private message.

$17 USD inom 5 dagar
(14 omdömen)
2.3
vickie123

See private message.

$85 USD inom 5 dagar
(9 omdömen)
1.9
sumramca

See private message.

$72.25 USD inom 5 dagar
(9 omdömen)
2.4
normancboy

See private message.

$21.25 USD inom 5 dagar
(2 omdömen)
1.3
michaelcmorin

See private message.

$8.5 USD inom 5 dagar
(2 omdömen)
0.0
newwritervw

See private message.

$34 USD inom 5 dagar
(2 omdömen)
0.0
simpletool

See private message.

$25.5 USD inom 5 dagar
(0 omdömen)
0.0
kvsergei

See private message.

$42.5 USD inom 5 dagar
(0 omdömen)
0.0
newsoftera

See private message.

$34 USD inom 5 dagar
(0 omdömen)
0.0
ricscar

See private message.

$85 USD inom 5 dagar
(6 omdömen)
0.0
artcodersvw

See private message.

$42.5 USD inom 5 dagar
(0 omdömen)
0.0
salvialovervw

See private message.

$76.5 USD inom 5 dagar
(0 omdömen)
0.2