briedis Posted January 16, 2005 Report Posted January 16, 2005 Sasodiits! Uzinstaleeju PHP 5.0.3 un Apache 2. Tagad meeginu kaut ko shtukot. Bet aplauzos pie brolbeemas, ka man vinsh vienkaarshi ignoree komandu Include() . Tas ir normaali? Dariiju taa... [..]function butiba() { window.open('main.php?id=butiba','_self',''); }[..] <?php $id = "doc/" . $id . ".txt"; If(file_exists($id)){ include($id); } ?> Kur ir mana kljuuda? Varbuut vaina ir PHP vai Apache konfiguraacijaa? :unsure:
orion Posted January 16, 2005 Report Posted January 16, 2005 A tu esi meegjinaajis pierakstiit else? Mazums fails nemaz neeksistee. Un mok ka fails ir tukshs. un vispaar ir: include'$fails';, nevis include($fails);!!! dau
briedis Posted January 16, 2005 Author Report Posted January 16, 2005 (edited) A tu esi meegjinaajis pierakstiit else? Mazums fails nemaz neeksistee. Un mok ka fails ir tukshs. un vispaar ir: include'$fails';, nevis include($fails);!!! dau 12809[/snapback] Nu es netaa redzeeju ar Include() ; Un viena lapa man kas ir internetaa vel ar taadu include() straadaa. BEt prikols, ka vinsh nepaarnes tos mainiigos :( piem. taa: "index.php?id=blaaa" :huh: Man ir fails window.php un vinjaa ir kods <img src=<?php echo $id; ?>> un es ieeju ka $id = 1.jpg (window.php?id=1.jpg) un vinsh to bildi tik un taa neatver, k-gan taa bilde ir blakus. Edited January 16, 2005 by briedis
briedis Posted January 16, 2005 Author Report Posted January 16, 2005 Jaa. Idiots es. Iesleedzu globaalos mainiigos un viss aizgaaja ;P
tamster Posted January 16, 2005 Report Posted January 16, 2005 un vispaar ir: include'$fails';, nevis include($fails);!!! Abi varianti strādā.
Recommended Posts