Re: link to include

martin wrote:

i have a code to browse all thumb images in dir/ with link to pics to dir2/:


$folder1 = (folder1/);
$folder2 = (folder2/);
$open_folder= opendir($folder1);

while($pic = readdir($open_folder))
if($pic == '.' || $pic == '..'){
<a href="<?=$folder2.$pic?>"><img style="border: 0" src="<?=$folder1.$pic?>" title="<?=$pic?>" /></a>

and it's OK. but..
how to modify the code so that the <a href...> would open the pics to the same page (a la include), not to blank new one as current? or all the code should be any other?

Unless you've done something weird to your browser, an <A href=...> link should open in the same window. Nothing to do with include, or PHP at all, in fact.

-- Oli .

Relevant Pages

  • just some code
    ... This code is free to use, modify, sell, non-exclusively re-license, ...
  • Re: Relative paths in require_once problem (possibly all include routines)
    ... but when you are on virtual hosting, the only way you can modify ... You just have to have PHP installed as an ISAPI app - not a CGI. ... so I can't fiddle the install. ... the file to another directory without having to modify your code? ...
  • Re: Outside variables needed inside class
    ... hundred links if I change my php extension to something else (php4, ... PHP raises an error if you try to modify it. ... Which is not to say that global variables aren't occasionally useful. ... the forces of evil need great consideration and respect before use. ...
  • Re: Cannot find page- cgiemail
    ... This depends on your host server supporting PHP files ... How to modify the code: ... The "mailer.php" and the "thank_you.htm" MUST be in the same folder as the form page. ... > where do i find out what extension my mailer has? ...
  • Re: which 4gl compiler
    ... I would recommend you investigate Java or PHP. ... you'll have downloadable presentations on Java. ... Hmm, actually what I was hoping was to modify what we have, as the ...