Jump to content
  • Revista PROGRAMAR: Já está disponível a edição #60 da revista programar. Faz já o download aqui!

diokhan

link

Recommended Posts

diokhan

boas,

eu no meu projecto na empresa fiz um upload de ficheiros, no Windows quando abro o ficheiro corre bem, mas no servidor Linux da barraca, o link fica:

e eu queria que fosse:

/home/siteProjectManager/protocol/MIDs.xls

para mostrar o conteúdo do ficheiro

como posso alterar isto?

o meu código onde faço isto é:

$dir = "/home/siteProjectManager/protocol";

...

if ($type == "application/pdf"){
					echo '<td>
						<span style="padding-left: 5px; padding-right: 5px">
							<img src="images/doc_pdf.png" border="0">
							<a href="'.$dir."/".$dados[$i].'" target="_blank">'. $dados[$i] .'</a>

							<a href="javascript:confirmation(\''.$dados[$i].'\', \''.$_GET[id].'\')">
								<img src="images/cross.png" border="0" /></a>
						</span>
					</td>';


...Join the dark side...and get a free cookie...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.