Encerrado

PHP Relative Path To Absolute Path Convertor

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/[url removed, login to view]">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: [url removed, login to view]

content:

< a href="[url removed, login to view]">some link

converted paths:

< a href="[url removed, login to view]">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

Habilidades: Engenharia, Linux, MySQL, Perl, PHP, Ruby on Rails, Arquitetura de software, Teste de Software, Hospedagem Web, Gestão de Site , Teste de Website

Ver mais: regexp linux, regexp example, linux regexp, absolute software, absolute hire, absolute, path to, make curl php script, lynx, linux php, audios, convert links html php, linux video convert, check input function php, function check php, php script path, curl input, video converted script, php curl source code, linux php video, webpage html php css, curl install linux, php script webpage, php parameter url, perl convert code

Acerca do Empregador:
( 9 comentários ) Romania

ID do Projeto: #3046801

20 freelancers estão ofertando em média $44 para este trabalho

maeenul

See private message.

$34 USD in 5 dias
(159 Comentários)
5.8
barros

See private message.

$51 USD in 5 dias
(72 Comentários)
5.6
pixvista

See private message.

$76.5 USD in 5 dias
(30 Comentários)
5.6
ChinesePHPDev

See private message.

$51 USD in 5 dias
(10 Comentários)
5.1
sumon4work

See private message.

$61.2 USD in 5 dias
(42 Comentários)
4.7
devansvw

See private message.

$12.75 USD in 5 dias
(7 Comentários)
3.5
danilkus

See private message.

$29.75 USD in 5 dias
(7 Comentários)
2.7
andreipvw

See private message.

$17 USD in 5 dias
(17 Comentários)
2.7
sylhet

See private message.

$17 USD in 5 dias
(14 Comentários)
2.3
sumramca

See private message.

$72.25 USD in 5 dias
(9 Comentários)
2.4
vickie123

See private message.

$85 USD in 5 dias
(9 Comentários)
1.9
normancboy

See private message.

$21.25 USD in 5 dias
(2 Comentários)
1.3
michaelcmorin

See private message.

$8.5 USD in 5 dias
(2 Comentários)
0.0
kvsergei

See private message.

$42.5 USD in 5 dias
(0 Comentários)
0.0
newsoftera

See private message.

$34 USD in 5 dias
(0 Comentários)
0.0
ricscar

See private message.

$85 USD in 5 dias
(6 Comentários)
0.0
artcodersvw

See private message.

$42.5 USD in 5 dias
(0 Comentários)
0.0
simpletool

See private message.

$25.5 USD in 5 dias
(0 Comentários)
0.0
newwritervw

See private message.

$34 USD in 5 dias
(2 Comentários)
0.0
salvialovervw

See private message.

$76.5 USD in 5 dias
(0 Comentários)
0.2