Jump to content

Search the Community

Showing results for tags 'directory'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








Donation Link

Found 8 results

  1. Hi, I'm not sure why but search engines are indexing the following urls on my site: domain.com/index.php/about-us domain.com/index.php/contacto domain.com/index.php/any-word-can-go-here These aren't URLs I'm using or are in my sitemap. Can anyone tell me how I can turn off these URLs after the .php ? I'm not sure why this is happening or what words to use to find out what my problem is.
  2. I am trying to include a file from another directory and so far I keep getting errors such as "failed to open stream: No such file or directory in...". Here's my directory setup. home/ /template/header.php /members/private/settings.php All I want to do is include "header.php" file on my "settings.php" page. Here's an example. settings.php <?php $dir = dirname(__FILE__); require_once $dir.'/template/header.php'; Can you tell me what's wrong with it? It's not working.
  3. The code works but it puts the files into /uploadir/. The users directories go by their email addresses ($email). Using the error reporting it tells me: ! ) Notice: Undefined variable: email in /var/www/html/Lab5/uploadfile.php on line 10 Call Stack # Time Memory Function Location 1 0.0010 129288 {main}( ) ../uploadfile.php:0 Any help is much appreciated!! <?php error_reporting(E_ALL | E_NOTICE); ini_set('display_errors','1'); session_start(); if ($_COOKIE["auth"] == "1") { $file_dir = "/var/www/html/uploaddir/$email"; foreach($_FILES as $file_name => $file_array) { echo "path: ".$file_array["tmp_name"]."<br/>\n"; echo "name: ".$file_array["name"]."<br/>\n"; echo "type: ".$file_array["type"]."<br/>\n"; echo "size: ".$file_array["size"]."<br/>\n"; if (is_uploaded_file($file_array["tmp_name"])) { move_uploaded_file($file_array["tmp_name"], "$file_dir/".$file_array["name"]) or die ("Couldn't copy"); echo "File was moved!<br/>"; } } } else { //redirect back to login form if not authorized header("Location: userlogin.html"); exit; } ?>
  4. I am looking for a really simple link directory script. Something similar to http://www.cygnusdirectory.com/ but with a banner on top. Any suggestions / recommendations ?
  5. Hi , i read many articles and tried many things before asking but i came to a dead end. My problem is very simple (or at least i believe so). In the main directory \httpdocs there is this file we call "header.php" and another file we call "article.php". So the code of the article is very simple: <?php include("header.php"); echo "bla bla bla\n"; ?> So far so good. Let's say that we create a new folder \httpdocs\new_folder and inside there we create a new file that we call "new_file.php". So we would simple like to call the header.php from the parent folder BUT IT TURNS TO BE IMPOSSIBLE ! I have tried: include('../header.php'); (in an article of this website says that this work - well IT DOESN'T ! i have tried many other things but i cannot load the header.php from the previous directory ! I wanna tip the person who will find the solution so you better leave a paypal along with the answer !
  6. I'm new to this forum and also new to php coding. I wish to list all the files in a given directory on my website and have seen quite a few examples but cant get any to work for me. My code is located in /Gallery and I wish to list all files in /Gallery/Thumbnails. What is the best way to go about this?
  7. Hi, I have a question that's bugging me really badly, I want to make it so that when I have a <img> tag, the source of that image is shortened to look something like this... <img src="../../image.jpg" alt="picture_1" /> But when I do this, it doesn't work. I've tried many methods and different combination but it doesn't seem to work, so I figured that It must be some kind of option in the apache .htaccess file? Help would be much appreciated, thanks.
  8. Hi I use "Ubuntu 12.04.1" in my VPS. I have a directory password protected . But i need another script to access the directory for my work . But it wont access as it is password protected . Now what i want to do is add some codes to the script so that it would login automatically. Guys need help with the code . Cant decide how to do it Thx in advance
  • 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.