🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #1951

Re: [PHP]huidige mapnaam en file verplaatsen

#1951
From: TiM
Date: Mon, 08 Nov 2004 19:11
26 lines
2010 bytes
"TiM" <tim.van.kerckhove_NOSPAM_@pandora.be> schreef in bericht 
news:lbsid.11274$bH7.506911@phobos.telenet-ops.be...
> Goeiedag,
>
> Heb voor de moment volgende problemen en hopelijk zijn er hier met wat 
> goeie
> wil die me daarbij willen helpen.
> 1.    Ik zou de naam van het huidige PHP-bestand dat op mijn scherm staat,
> de naam van de map als titel hebben op mijn site, iemand enig idee hoe dit 
> kan verwezenlijkt worden?
> 2.    Ik zou een file willen verplaatsen met onderstaand stukje code, maar
> als ik op de link Verplaats klik, kan hij de map niet terug vinden naar 
> waar
> het bestand moet verplaatst worden.
>
> Code:
> if (isset($_GET['verplaats'])){
>  $filemove = $uploadDir.$_GET['verplaats'];
>  $movetoDir = $uploadDir.$_REQUEST['toDir']."/";
>  @move_uploaded_file($filemove, $movetoDir.$filemove) or die("Can't copy
> ".$filemove." to ".$movetoDir);
>  header("Location:index2.php");
> }
>
Weet er hier nu eigenlijk iemand een oplossing voor?
Technical Details
Message-ID: <HxPjd.15846$6F.913501@phobos.telenet-ops.be>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!nerim.net!feed1.news.be.easynet.net!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail
References: <lbsid.11274$bH7.506911@phobos.telenet-ops.be>

Show Full Headers
Complete Article Headers
X-Google-Thread: fcea4,92446d64393f61ae
X-Google-Attributes: gidfcea4,public
X-Google-Language: DUTCH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!nerim.net!feed1.news.be.easynet.net!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail
From: "TiM" <tim.van.kerckhove_NOSPAM_@pandora.be>
Newsgroups: be.comp.programming
References: <lbsid.11274$bH7.506911@phobos.telenet-ops.be>
Subject: Re: [PHP]huidige mapnaam en file verplaatsen
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
Message-ID: <HxPjd.15846$6F.913501@phobos.telenet-ops.be>
Date: Mon, 08 Nov 2004 19:11:35 GMT
NNTP-Posting-Host: 81.164.22.243
X-Complaints-To: abuse@telenet.be
X-Trace: phobos.telenet-ops.be 1099941095 81.164.22.243 (Mon, 08 Nov 2004 20:11:35 MET)
NNTP-Posting-Date: Mon, 08 Nov 2004 20:11:35 MET
Organization: Telenet Internet