Jump to content

Exussum

Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Exussum's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. did you install them all yourself ? or did you use something like WAMP ?
  2. i dont know if it would help - but using a for or while loop would decrease the processeing page File length.
  3. i would use a get varable page.php?start=13 that any help ? or you want an exaple Script
  4. King arther - i corrected that since i posted - and the second bit means the First letter not the first part of the array - i get the same error though :(
  5. Sorry for the Bump - but has any one got any ideas ?
  6. 'Content-type: text/html; charset=iso-8859-1' try that ?
  7. $headers  = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; you need them extra headers
  8. same thing - it  woudnt make too much differnce atm because the pics are all jpegs atm Thanks for the reply though
  9. Hey - aint used PHP in a few months and now a simple script wont work for me <?php function dirlisting($folder){ //set a function if ($handle = opendir($folder)) { // open the Folder $num = 0; while (false !== ($file = readdir($handle))) { // Make an array if ($file{0} != '.') { //if the file dont start with a "." $files[$num] = $file; $num++; }//End if }// End While }  // End open $random= rand(0, (count($files)-1)); $dir ='images/'; // where the images $ll = substr($files[$random], -1); if($ll = 'g'){ header ('Content-type: image/jpeg'); include ($dir . $files[$num]); }else{ header ('Content-type: image/gif'); @include ($dir . $files[$num]); //header ("Location: " . $dir . $files[$random]); }//end else }//end function dirlisting($folder){ //use function ?> and this error comes up <br /> <b>Warning</b>:  main(images/) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/home/exussum/public_html/sig/index.php</b> on line <b>16</b><br /> <br /> <b>Warning</b>:  main(images/) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/home/exussum/public_html/sig/index.php</b> on line <b>16</b><br /> <br /> <b>Warning</b>:  main() [<a href='function.include'>function.include</a>]: Failed opening 'images/' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/home/exussum/public_html/sig/index.php</b> on line <b>16</b><br /> Any ideas on how to fix ? Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.