[PHP] CORRECT sort
I have a list of nicknames inside my page $t®ike_19a M@x ARNALDO_MOTA20 AXL-FUCKIN-ROSE AbAgUaLaDo Adolf Al_Cap0ne Anda_pelas_Sombr Anjo Tora Anjo_noturno Arcanjo_ Atras_E_AVANTE BHILL BRAIN_DAMAGE BURNER B_l_a_d_e BaRTHY BichoPapaun BoNo-VoX Bob_Marley^ Bony_Gyn Boy_in_Flames Buzz_Buzzard C@sþË® CA0S CARIOCA_H_19 CLAUDIM CONVERTIDO COWBOY-DAS-MULHE Calu Cereau_Quiler Chrono_Jadson CoRTeZ Crash'n_Over Crison Cyberflux DIEGO (USA) DOOTman DhIMEnOr_ DicK_DaLe Dick-||-Tracy Doc_Holiday DoomMan Duende_Fumacinha Dunkel EDDIE_|_VEDDER E_o_ToRa Ed_Cav@lerA Eslander Eudd F103_Mirage F14-TONCAT FREDDY2002 FUNtastic FaIm Ferds Feyhong Feyhong Filipe_TJF FireBelt FlAnIgAnS FoRgAdOsEmKoNtIa Folley Fred_TJB Fulias GARTHBRooKs Gagary Gaspper_Man Gatinho Carente Geburah GiNeS_fRoBoW Godsmack GuiLhErMe_LP_17 GustavoBond HADSPACE Hass HeItOrZiM HenRiQuE-GO IIGuttoII Ice_Hot IrOn_MaN- Ispirokado JONNY-BH JR2000 Japa_loiro Jerry_Cantrell JuNiOr-GyN JuNiOr-JR Junior_GO KINDAROW Karaiba Khazed Kobaiat Krug LEO LOOSEBOY_DF Larry_Mullen_Jnr Leonardo-_- Lethal_Dan Liquidsnake LoS-LoCoS LoUkEtS Logansan Lone_Eagle Luisinho Lunnatic MAGNATO MAL-ACABADO MARCIOPAULISTANO aInFrAmE MaKoRn MaZiN Mackau McFlay McJay MoLeQuE_fEiO Monitorr Morte_aos_hansoN Mula_Cobain MuricocaTheCrazy Mwell MysteriousBoy NETO23A. Nash_Bridges NiCk_man Nivercon_JP_ NoBIOS O-SuRtO OVERMARZ Orfheu Orion-br OsManoW_ PDIOGO PISCAO PaSSoKKa Packardd-Pillow PcWizarD Pedro-A iQUi PiRaTaH Pumbassauro R@uL_GuNNe REILLER RICKY RPD Rave Red_Squadrow Rhumba Rideitor Ritler Rockslife SER_FEIO_DOI SIGFRIED SPOKEN Santana^ ScoobyDubyDoo Seinfeld- Sheep_Man Sheepboy SiDMont Simple_Of_Heart Sir_Galahad Skolgt Sky_Cobain SpAnK_ThRu Spaik Spartacus_goiano Spider`s_Lullaby Spire_maze Stierman T-Blue_Wolf-T TC TIRAONDA_MAN_USA TOMPOO TYLLY Tabata-Jiraya Tekathlon The_Mad The_Scream ThiagoPozzato Tiglup Topera_Roedor Vegetal Victor Vox_Dei Wolwerine XXXReCrUtAXXX ZZOOOO [C410] [DarkWolf] [HellRayser] [SKELTER] [[[Amon-Ha]]] [mino] [{MORPHEU}] [{morpheu}] [|Dugy|] ^ANJO-DE-LUZ^ ^AsTrOnOmY^ ^Buiu^ ^Poltergeist^ ^Saga^ ^SuBLinE^ ^Tourniquet^ ^MAU^^ ^the-redpeppars^ _Cheick_ _Kaiser_ _Magaiver_ _ObsessioN_ _PEnsADor_ _]Speck[_ _bandit_ _marvin_ _re_volt_VoX _xXJecaXx_ antonelli bacteria_ bad_clusters bitoca bowser bussund c_a_i_o cenourinha cessel chinforinforo colders cooldevil curquens derboy derboy didi_forever digb eygeryryrurt ezomatrixx ferdoido flakiko flyd free_e_o_mano gatodoido get46aps glauco-tavera haway_ hebert jrhot-angel k@¥ßë® ¤¤¤ anjo kadu-usa lindinho-usa llnetaoll m3rl1n mr-boy murilo_usa netao netscaper p3 paul-USA pilha primo profvitor rafa_man rvt sLauGhter^ scoop-mem silverfreak starvation trapizomba wolfthedie z3r0k {B_I_S_C_O_I_T_O {Blink-182} {Blink-182} {Prince} {ScReaM{ {VeN0N_Br0WeR} {[DEDEL]} {[dust]} {]Kdinho[} {{AgAiNsT}} {{SPRINT}} {{WhiteWolf}} {{vbsk8}} {{{iron}}} }??? {}CeLiM{} |AtEcUbAnOs|{ |BaRdOk| |CirrOZZY| |JAMES-HETFIELD| |MaVeRiCk| |NiZoN| |PiRuLiTo| |RICKFIO| |RzO| |SuperMan| |TiBoR| |_DaNgErOuS_| |_ninguem_| |vasquito| ||AciD_PillS|| ||Corinthiano|| ||DeUsGrEgU|| ||EmINeM|| ||Guest|| ||LoRd|| ||Th0MaS_Br0wN||
[PHP] ORDER PROBLEMS
Hello Guys, i'm with problems first i try to add a value like 8.55 into my sql data base that was set up to DOUBLE (10,0) and isn't work... i don't know how this work... but i'm here to ask for someone explain me. well... i did with varchar to add this value as i want to.. do i have a lot of values like votes average 2 8.5 10 5.5 1 10 205.1 and i wanna sort by votes and average have someway to do that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] What's wrong?
What's wrong with my php file? ? if (acao == 1) { if (!copy($MyFile,c:\\temp\\$MyFile_name)) { echo can't copy; exit; } } ? html head title/title /head body bgcolor=#FF text=#00 link=#00 alink=#00 vlink=#00 marginwidth=10 marginheight=10 topmargin=10 leftmargin=10 form action=teste.php method=post name=teste ENCTYPE=multipart/form-data input type=hidden name=acao value=1 table width=0 cellpadding=0 cellspacing=0 border=0 tr bgcolor=#DD td width=20%font face=verdana size=2bFile/b/font/td tdinput type=file name=MyFile size=40/td /tr /table input type=submit name=submit value=test /form /body /html --- --- [ r a f a e l f a r i a] _ [EMAIL PROTECTED] WebMaster Universo Online - http://www.uol.com.br Phone # +55 11 3038-8665 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] IMAGE
Hy guys how can i know the width and height of an image? --- [ r a f a e l f a r i a] _ [EMAIL PROTECTED] WebMaster Universo Online - http://www.uol.com.br Phone # +55 11 3038-8665 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] MP3
Have some way to make a script to get the info of mp3 file? like ID3 tag? --- [ r a f a e l f a r i a] _ [EMAIL PROTECTED] WebMaster Universo Online - http://www.uol.com.br Phone # +55 11 3038-8665 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Lines
I should tell you that the text file is an htm that i have to print withou the header HTMLTITLE and footer /BODY/HTML :PP Rafael I know, it was already answered before me (you), I just though that an SQL database is a good advice for these who are trying to do this kind of jobs. It is obvious that the reason to use this function is to manage a stored data in files. then why not a database, if possible? Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Jason Murray [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 25, 2001 4:52 PM To: Maxim Maletsky; 'Rafael Faria'; [EMAIL PROTECTED] Subject: RE: [PHP] Lines it's my first post on this list, and my doubt is... how can i take a file.txt and 1 - know how many lines i have in this text 2 - print line 5 until 10 Is there any chance for you to use a database? these thing would become MUCH, MUCH easier. Actually, this is really easy without using a database. 1. ? $filename = /path/to/file; $filedata = file($filename); $linesinfile = count($filedata); ? 2. ? $startline = 5; $stopline = 10; for ($i = $startline; $i $stopline; $i++ ) { echo $filedata[$i-1]; } ? (Use $i-1 because the first line is actually 0). Jason --- [ r a f a e l f a r i a] _ [EMAIL PROTECTED] WebMaster Universo Online - http://www.uol.com.br Phone # +55 11 3038-8665 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Upload a File
Hey Guys, i'm here thinking what i did wrong.can u guys help me? i did 2 ways to upload a file and none of them work fine! :/ first way $folder = /tmp; if(!copy($MyFile,$folder.$MyFile)){ echo can't copy; } else { echo work it!; } second way $folder = /tmp; $dest = $folder./.$MyFile_name; if(!move_uploaded_file($MyFile, $dest)) { echo can't copy!; exit; } so. can someone help me please? i just have to make it to finish my job :/ thanks --- [ r a f a e l f a r i a] _ [EMAIL PROTECTED] WebMaster Universo Online - http://www.uol.com.br Phone # +55 11 3038-8665 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Upload a File
i tried: if (!move_uploaded_file($MyFile,/home/vacamarela/public_html/rafael)) { echo can't copy; exit; } and retur can't copy my form is input type=file name=MyFile size=40 :/ Rafael Acesso fácil, rápido e ilimitado? Suporte 24hs? R$19,90? Só no AcessoBOL. http://www.bol.com.br/acessobol/ move_uploaded_file($newfile,/complete/path/to/move/file/to); My form variable for the file was called newfile. That should help. It is very nice, just use it instead of copy and uyou should be good. Good luck. +---+ | | | If Yoda so strong in force is, | | why words in proper order he cannot put? | | | +---+ | | +---+ | Daniel J. Cleveland | | e-mail: [EMAIL PROTECTED]| +---+ --- [ r a f a e l f a r i a] _ [EMAIL PROTECTED] WebMaster Universo Online - http://www.uol.com.br Phone # +55 11 3038-8665 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Count....
I'm doing a seach function... everything is okbut i wanna put something like Use more specific terms when the search don't have anything to show. but i can't do that can someone helpme? i'm doing that! = $query = mysql_query(select * from Newsletter_Members where Newsletter_Members.email like '%$search%' order by id); while ($row = mysql_fetch_row($query)) { echo tr bgcolor=#DD\n; echo td align=centerinput type=checkbox name=id[] value=$row[0]/td\n; echo td align=centerfont size=2 face=verdananbsp;$row[0]nbsp;/font/td\n; echo td align=centerfont size=2 face=verdananbsp;a href=mailto:$row[1]$row[1]/anbsp;/font/td\n; echo td align=centerfont size=2 face=verdanaa href=\javascript:openwin('editmember.php?email=$row[1]id=$row[0]','adicionar','400','110')\Editar/a/font/td\n; echo /tr\n; } === how can i make if doen't match anything say it doen't match anything ? --- [ r a f a e l f a r i a] _ [EMAIL PROTECTED] WebMaster Universo Online - http://www.uol.com.br Phone # +55 11 3038-8665 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Lines
Hey Guys, it's my first post on this list, and my doubt is... how can i take a file.txt and 1 - know how many lines i have in this text 2 - print line 5 until 10 ? can someone help me? --- [ r a f a e l f a r i a] _ [EMAIL PROTECTED] WebMaster Universo Online - http://www.uol.com.br Phone # +55 11 3038-8665 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Lines
But how can i put into a var $total the total lines that i have into the file? Rafael f you use the file() function to open up the file, it will put each line of the file into an array. At that point you can say: for($i=5;$i11;$i++){ print $myFile[$i]; } Michael Rafael Faria wrote: Hey Guys, it's my first post on this list, and my doubt is... how can i take a file.txt and 1 - know how many lines i have in this text 2 - print line 5 until 10 ? can someone help me? --- [ r a f a e l f a r i a] _ [EMAIL PROTECTED] WebMaster Universo Online - http://www.uol.com.br Phone # +55 11 3038-8665 --- [ r a f a e l f a r i a] _ [EMAIL PROTECTED] WebMaster Universo Online - http://www.uol.com.br Phone # +55 11 3038-8665 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] IRC CHAT
Hi again, have somewhere that i can find a chat that connect with irc server? --- [ r a f a e l f a r i a] _ [EMAIL PROTECTED] WebMaster Universo Online - http://www.uol.com.br Phone # +55 11 3038-8665 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]