Jump to content

Search the Community

Showing results for tags 'folder'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Calendars

  • Community Calendar

Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 3 results

  1. Removing specific items from a list

    Hi, I would like to list all the items contained in a folder except for 2 or 3 specific ones. For example, let's say I've item 1, item 2, …, item 10 in /myFolder. I would like to list all the items of /myFolder but item 1, item 3 and item 4. I've come up with the following code which does the work but looks a bit awkward. <?php $dir = '/myFolder'; $filesDir = new FilesystemIterator($dir, FilesystemIterator::SKIP_DOTS); $fileName = ''; foreach ($filesDir as $file) { $fileName = $file->getBasename(); if ($fileName != 'item1' && $fileName != 'item3' && $fileName != 'item4') { echo $fileName.'<br>'; } } Is there a simple and more elegant way to accomplish this? Any help would be appreciated, thanks!
  2. Multiligual Folder, File, and DB Names

    Hi, As you all know, it is recommended to give folders, files, and the DB less obvious names for extra security. For the above, as well as for username and password associated with website access, I am thinking of giving each name a mix of letters and numbers of multiple languages, hoping to face no problems using charset=utf-8 in all pages, css, js, and DB. Do you consider this to be an acceptable approach or there could be drawbacks I am not aware of?
  3. hello all from w3s again... i have seemed the PHP word ''Define''. now my questio is. if i have 2 files in my root, and 3 files in a folder called include, and one of those inside include folder is called main_design.php. and called by 2 functions like so inside all the other files inside root...: function stdhead($title = "",$css_file = ""){$stdhead_start = "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv='Content-Type' content='text/html'; charset=iso-8859-1' /><link rel='stylesheet' type='text/css' href='styles/".$css_file.".css'/><link rel='shortcut icon' href='fav_icon.ico' /><title>".$title."</title></head><body><table class='banner_table' align='center' cellpadding='0'><tr><td><a href='index.php'><img src='styles/images/banners/banner.png' width='1000' height='140' alt='SS_2012' /></a></td></tr></table> <table class='menu_table' border='0' align='center'><tr><td class='navigation'><a href='index.php'>HOME</a></td><td class='navigation'><a href='browse.php'>TORRENTS</a></td><td class='navigation'><a href='index.php'>REQUESTS</a></td><td class='navigation'><a href='index.php'>BECOME UPLOADER</a></td><td class='navigation'><a href='index.php'>CHAT</a></td><td class='navigation'><a href='index.php'>FORUM</a></td><td class='navigation'><a href='index.php'>GUIDES</a></td><td class='navigation'><a href='index.php'>BONUS</a></td><td class='navigation'><a href='index.php'>RULES</a></td><td class='navigation'><a href='index.php'>FAQ</a></td><td class='navigation'><a href='index.php'>LINKS</a></td><td class='navigation'><a href='index.php'>SUPPORT</a></td></tr></table> <table class='main_table' align='center'><tr><td>";return $stdhead_start;}//stdhead ends... function stdfooter(){$stdfoot_start ="</td></tr></table> <table class='foot_table' align='center'> <tr> <td>Speed-Scene © 2012 -> Revision 01</td> </tr> </table> </body> </html>";return $stdfoot_start;}//stdfooter ends... and root files ect; <?phprequire_once("include/bittorrent.php");echo stdhead("Home","1");?>This is the Index Page!...<?phpecho stdfooter();?> now my question is, that if i have an another file inside include called config.php. and wish to make a define inside there... and after that, call it on one of the root files, so it would go inside the include folder, and then i just need to write the name of the file i need to have ect... how do i do this?... thanks in advance!
×