User
Pass
2FA
 
 

O problema script !

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Programming / Scripting / Database
Author Message1453
icezone

[Mentally Stable]



Status: Offline
(since 13-04-2020 17:12)
Joined: 31 Jul 2009
Posts: 59, Topics: 23
Location: C:\windows\HERE

Reputation: 239.4
Votes: 8

Post Posted: 22-09-2009, 00:14:07 | Translate post to: ... (Click for more languages)

Salut !
am un script :
Code:

$handle = opendir("$director");
while (false !== ($file = readdir($handle))) {
    if ($file != "." && $file != "..") {

        $size = filesize("$director/$file")/1000;
        $size.=" kb";
        echo "<a href=$director/$file>$file\n</a>&nbsp $size<br>";
    }
}


scriptu asta imi citeste ce am in director toate fisierele cu toate extensiile dar ... cand dau click pe Lincu care mi-l da scriptu si fisierul are spatiu intre caractere ... mi-l da gen :
EX :
Daca am un fisier in public_html : a b c.wad
imi apare asa cand vreau sa downloadez :
https://freakz.ro/a
sau depinde cu ce litera incepe fisierul dupacare urmaza spatiul...

cum pot sa fac sa imi bage alte caractere in afara de spatiu ?

Multumesc !


hast
0 0
  
Back to top
View user's profile Send private message
Shocker

[Freakz owner]



Status: Offline
(since 08-02-2020 12:17)
Joined: Momentul zero
Posts: 33986, Topics: 1350
Location: localhost

Reputation: 6485.6
Votes: 829

   
Post Posted: 22-09-2009, 04:36:38 | Translate post to: ... (Click for more languages)

Code:

echo "<a href=$director/$file>$file\n</a>&nbsp $size<br>";

Baga valoarea intre ' ' la tag-ul href:
Code:

echo "<a href='$director/$file'>$file\n</a>&nbsp $size<br>";


FREAKZ COMMUNITY @ Facebook
WOW FREAKZ @ Facebook
0 0
  
Back to top
View user's profile Send private message
icezone

[Mentally Stable]



Status: Offline
(since 13-04-2020 17:12)
Joined: 31 Jul 2009
Posts: 59, Topics: 23
Location: C:\windows\HERE

Reputation: 239.4
Votes: 8

Post Posted: 22-09-2009, 09:01:37 | Translate post to: ... (Click for more languages)

Mersi ! -

hast
0 0
  
Back to top
View user's profile Send private message
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Programming / Scripting / Database  


The time now is 28-04-2024, 20:56:19
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x