vesperala

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Imagine cu extensie .png

vesperala
post Apr 24 2008, 03:50 PM
Post #1


Miradoniz
Group Icon
**********

Group: *vesperala*
Posts: 37,096
Joined: 30-December 07
From: În castel de treci prin colonade...
Member No.: 1



am gsit o imagine ciudat...

cnd e ncrcat n forum, la fiecare refresh al paginii apare altceva...

cum e fcut oare?

Attached File(s)
Attached File  ciudat.png ( 28.4K ) Number of downloads: 47
 


User's Signature

O raclă mare-i lumea. Stelele-s cuie/Bătute-n ea şi soarele-i fereasta/La temniţa vieţii
Mihai Eminescu

Stelele-n cer, deasupra mărilor, ard depărtărilor, până ce pier...

Go to the top of the page
PM
+ Quote Post

Christina_Whispe...
post Apr 24 2008, 07:57 PM
Post #2


SuperStar
Group Icon
*****

Group: Stars
Posts: 1,254
Joined: 5-January 08
From: SilverMoon City
Member No.: 40



prima se schimba.. ce-a de a 2a nu...


User's Signature

~~~~~~~~~~~~~~

May the Stars guide you...

Go to the top of the page
PM
+ Quote Post

vesperala
post Apr 24 2008, 08:08 PM
Post #3


Miradoniz
Group Icon
**********

Group: *vesperala*
Posts: 37,096
Joined: 30-December 07
From: În castel de treci prin colonade...
Member No.: 1



QUOTE (Christina_Whisperwind @ Apr 24 2008, 08:57 PM) *
prima se schimba.. ce-a de a 2a nu...

a doua e aceeai cu prima.

doar c prima nu e ncrcat n forum, ci preluat cu tag-uri img, ca s se vad la refresh...

am upload-at doar pentru c e avatar al cuiva i dac l schimb, atunci topicul i pierde practic sensul...smile.gif


User's Signature

O raclă mare-i lumea. Stelele-s cuie/Bătute-n ea şi soarele-i fereasta/La temniţa vieţii
Mihai Eminescu

Stelele-n cer, deasupra mărilor, ard depărtărilor, până ce pier...

Go to the top of the page
PM
+ Quote Post

Christina_Whispe...
post Apr 24 2008, 08:10 PM
Post #4


SuperStar
Group Icon
*****

Group: Stars
Posts: 1,254
Joined: 5-January 08
From: SilverMoon City
Member No.: 40



ok biggrin.gif angel_not.gif


User's Signature

~~~~~~~~~~~~~~

May the Stars guide you...

Go to the top of the page
PM
+ Quote Post

amadino
post Apr 25 2008, 01:07 AM
Post #5


Banned by Users
Group Icon
*****

Group: Stars
Posts: 1,361
Joined: 30-December 07
From: Toronto/Ontario/Canada
Member No.: 5



ii facuta animatie
Go to the top of the page
PM
+ Quote Post

Asimetric
post Apr 25 2008, 08:12 AM
Post #6


StarGazer
Group Icon
******

Group: Admin
Posts: 7,258
Joined: 20-April 08
From: Uncanny valley
Member No.: 161



PNG-ul nu suporta animatie, ci doar o "ramura" a lui, MNG. Si imaginea aia nu e MNG. smile.gif

Edited by Stelist_4_3v3r: Apr 25 2008, 08:15 AM
Go to the top of the page
PM
+ Quote Post

vesperala
post Apr 25 2008, 08:34 AM
Post #7


Miradoniz
Group Icon
**********

Group: *vesperala*
Posts: 37,096
Joined: 30-December 07
From: În castel de treci prin colonade...
Member No.: 1



din cte mi-a zis crysty2k5 e ceva fcut cu .php.... adic o list de imagini scris n php....


sunt doar curioas cum se face aa ceva... cum arat codul unei astfel de liste nu am reuit s aflu...


User's Signature

O raclă mare-i lumea. Stelele-s cuie/Bătute-n ea şi soarele-i fereasta/La temniţa vieţii
Mihai Eminescu

Stelele-n cer, deasupra mărilor, ard depărtărilor, până ce pier...

Go to the top of the page
PM
+ Quote Post

Asimetric
post Apr 25 2008, 09:27 AM
Post #8


StarGazer
Group Icon
******

Group: Admin
Posts: 7,258
Joined: 20-April 08
From: Uncanny valley
Member No.: 161



Am gasit ceva care pare sa mearga...
CODE
<?php

$folder = '';

$exts = 'jpg jpeg png gif';

$files = array(); $i = -1;
if ('' == $folder) $folder = './';

$handle = opendir($folder);
$exts = explode(' ', $exts);
while (false !== ($file = readdir($handle))) {
foreach($exts as $ext) {
if (preg_match('/\.'.$ext.'$/i', $file, $test)) {
$files[] = $file;
++$i;
}
}
}
closedir($handle);
mt_srand((double)microtime()*1000000);
$rand = mt_rand(0, $i);

header('Location: '.$folder.$files[$rand]);
?>


Sincer, nu inteleg aproape nimic din codul asta (n-am facut inca PHP) emo-lol.gif Dar daca il pui intr-un fisier "aleatoriu.php", pui pozele in acelasi loc cu scriptul si scrii codul html sau BBC ca si cum ar fi pentru o imagine, functioneaza.

Exemplu:

CODE
<img src="http://www.vesperala.com/forum/upload/images/aleatoriu.php" />


biggrin.gif
Go to the top of the page
PM
+ Quote Post

vesperala
post Apr 25 2008, 09:46 AM
Post #9


Miradoniz
Group Icon
**********

Group: *vesperala*
Posts: 37,096
Joined: 30-December 07
From: În castel de treci prin colonade...
Member No.: 1



cumva ai dreptate...

doar c dac fac aa pozele nu se schimb chiar la orice refresh...
iar dac ncerc s salvez una mi apare estensie de genul veperala.php.jpg/gif/png

iar imaginea de mai sus nu are php n numele ei.


cert e c da, codul e aproape de ceea ce trebuie...


User's Signature

O raclă mare-i lumea. Stelele-s cuie/Bătute-n ea şi soarele-i fereasta/La temniţa vieţii
Mihai Eminescu

Stelele-n cer, deasupra mărilor, ard depărtărilor, până ce pier...

Go to the top of the page
PM
+ Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th November 2018 - 03:29 AM
Arta si savoare www.iconcert.ro
 Vesperala Forum