PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 19th, 2000, 01:00 PM
devCisk devCisk is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 29 devCisk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm including my code below. Whenever i click on the "next" link it laggs and never seems to change the page or connect when passing teh variable...

It's a simple page that i'm using to debug another bigger page but i can't seem to figure out what the problem is. I'm on win98/php4rc2/apache 1.3.9. Every other php works... Actually the other page where i have simliar code(as far as reading a directory) works too so i'm lost? :/

any help would be appreciated

-cisk

-------
<?
$PHP_SELF = getenv("PHP_SELF");
$picPath = "C:WINDOWSDesktopwebpagesdjcisktry1piximagesgirls";
$d = dir($picPath);
$imgs = array();
$numImgs = 0;
while($file = $d->read()) {
if($file[0] != "." && eregi(".jpg$|.gif$|.png$", $file)) {
$imgs[$numImgs] = $file;
$numImgs++;
}
}

/* find previous place */
if(!isset($imgPlace) | | $imgPlace = "")
$imgPlace = 0;

?>
<html>
<head>
<title>Picture viewer</title>
<body>

<?
/* display links */
$counter = 1;
for($i = $imgPlace; $i < $numImgs; $i++) {
if($counter <= 10) {
printf("%d. <a href="%s%s">%s</a>n<br>n", $i+1, $picPath, $imgs[$i], $imgs[$i]);
$counter++;
}
}
$oldPlace = $imgPlace;
$imgPlace = $counter;

printf("<br>Counter: %d<br>nn", $counter);

if(!$oldPlace == 0) {
printf("<a href="%s?imgPlace=%s">back</a>n", $PHP_SELF,$oldPlace);
}
printf("<a href="%s?imgPlace=%s">next</a>n", $PHP_SELF, $imgPlace);

$d->close();
?>
</body>
</html>


Reply With Quote
  #2  
Old May 20th, 2000, 04:40 PM
devCisk devCisk is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 29 devCisk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i fixed it never mind

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > not responding...?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap