Em Andamento

Conditional PHP Script to one of two graphic buttons

I have an existing PHP script on a membership site. I deliver large files to my members when they are ready to be downloaded from the download page.

I need a php script that will:

Check a hardwired directory to see of a certain file exists

example: [url removed, login to view]

IF that file exists, I want the script to display a particular download button along with the hyperlink info.

IF that file is NOT in the subdirectory, THEN display another not ready download button graphic with NO hyperlink info, IOW, just a graphic.

Both graphics already are in the sites' /images

The script will simply select the appropriate one to match the condition.

In VB6 it would be something like:

If DIR$(downloads/[url removed, login to view]) then

<p><a href=".downloads/[url removed, login to view]">

<img border="0" src="file:///C:/AutoBurnCD/website/AutoBurn%20CD/images/[url removed, login to view]" width="292" height="101"></a></p>

ELSE

<img border="0" src="file:///C:/AutoBurnCD/website/AutoBurn%20CD/images/[url removed, login to view]" width="292" height="101">

ENDIF

BUT I need to do it in PHP

That way if the file isn't uploaded yet, they won't get a file not found error.

I will insert the proper paths, etc, but make sure the code is well commented as I am not a PHP programmer, I am a VB6 programmer. Thanks

The dowload pg

Habilidades: Engenharia, PHP, Gestão de projetos, Instalação de Script, Shell Script, Arquitetura de software, Teste de Software, Hospedagem Web, Gestão de Site , Teste de Website

Ver mais: programmer vb6, php pg, i am a php programmer, graphics 101, graphic downloads, t zip graphics, install php script, graphic buttons, error in php script, download script vb6, php download zip files, php insert select, php download files zip, script src, download file php zip, error exists page, php download zip, large script, script height, php hyperlink files directory, insert download buttons php website, download vb6 code, vb6 zip files, zip files vb6, install php script site

Acerca do Empregador:
( 59 comentários ) Taft, United States

ID do Projeto: #2974050

Premiar a:

theneos

See private message.

$7 USD em 2 dias
(2 Avaliações)
0.6

3 freelancers estão ofertando em média $69 para este trabalho

thecid

See private message.

$29.75 USD in 2 dias
(56 Comentários)
6.5
erpoojasharma

See private message.

$170 USD in 2 dias
(1 Comentário)
0.0