Jump to content

Wideawake

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://www.ppcgeeks.com

Profile Information

  • Gender
    Not Telling

Wideawake's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thats what I did at first but I know this has got to be a one liner.....lol at least I admit Im a b00n and I have searched, so its not like Im not trying.
  2. Very nice! Thanks so much for your help! You wouldn't happen to know if theres a way to put txt in the first then drop down and see files? Like when you get to the page it says Choose File to Download, then drop down with all the files in it? Again I do appreciate your time helping the b00n. ~Mike
  3. So Im working on making a very simple php script to pull filenames from a directory and post the link as the same of the file. I a b00n when it comes to php and Im trying to learn. So far I got this piecing together some stuff. If anyone could help make it all in one drop down and remove the . and .. boxes it would be great! Thanks for any help in advanced, Mike <?php $dir="/my/file/downloads"; // Directory where files are stored if ($dir_list = opendir($dir)) { while(($filename = readdir($dir_list)) !== false) { echo '<SELECT name=ID>'; echo '<OPTION value='.$filename.'> '.$filename.''; echo '</select>'; ?> <?php } closedir($dir_list); } ?> <input type="submit" value="Download" name="Download">
  4. I knew it was a simple ?, thanks that done it. the only thing I didnt try lol i tried .. and //. Thanks for the reply ;)
  5. oh and my header is not wrong it really is labeled as _header.php
  6. [quote author=redarrow link=topic=101597 .msg402206#msg402206 date=1153693589] example ok. include="header.php"; include("header.php"); require_once("header.php "); require("include.php"); [/quote] huh? u lost me.... the example I posted works fine in the root, but the .phps in folders within the root it doesn't work. I being a n00b can only guess theres a command to tell it to look in the root or one directory up. but I'm new to al this. say the example I posted above is my index.php, it works in the root, but if I move to say folder /includes it doesn't pull those like it should. any suggestions. I need help quick ;)
  7. Ok so I tried installing a script of a test site. Got everthing working except the .phps which are in a different folder. Ok so my index pulls info like this and it works <? include("_header.php"); $title = "mysite ;)"; include ('title.php'); ?> this is in the root folder. but my other pages inside of folders within the root, are set up the same way and dont pull the info like it should. I can place those pages in the root and the work, but within another folder they dont. Im sure its a easy fix, but im a complete n00b and cluess. Any help would be greatly appreciated. Thx, Mike
×
×
  • 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.