Jump to content


Recommended Posts



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:


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>

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

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

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.