Search the Community
Showing results for tags 'directory'.
-
BACKGROUND: My jubilation was short-lived. For the internal server error that was plaguing my site in general is now plaguing a crucial file in particular. Please find below a file that works perfectly well on my local test server, but fails with an internal server error on my host server. Please also note that the file matomo/index.php is located on the same server as that from which the cURL call is made, but under a different domain name. ini_set('log_errors', 1); ini_set('error_log', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'error.log'); ini_set('html_errors', 0); ini_set('display
-
I'm trying to set chroot. I get the following error message: ( ! ) Fatal error: Call to undefined function chroot() in X:\wamp\www\dir1\dir2\test-getcwd.php on line 5 Call Stack # Time Memory Function Location 1 0.0005 130720 {main}( ) ...\test-getcwd.php:0 my script is like this: <?php echo getcwd() . "\n"; chroot('X:\wamp\www\dir3') . "\n"; echo getcwd() . "\n"; ?> Is it possible chroot is not default set in wamp or am I making a mist
-
so i have a pic editing website set up, and i have a function which lets you download images.http://jsfiddle.net/9Ytsk/ is what it looks like. what i want it to do is also generate the image to a different directory (gallery/gallery), and add +=1 if the image already exists (ex. image.png exists so it's named image1.png). Thanks!
-
Hi All, I'm new to web programming in general and need some advice for a site that I'm trying to pull together. The best I can do is try to describe what I'm trying to do because I really have no idea of how to implement this idea.The primary purpose of the site is to be a blog with separate directories for different themes. I was hoping to have a navigation menu on the side of the site with sort of an archive list in which a user could select the article they wish to read by selecting their way through directories as displayed in the menu. I want to be able to just bring up the article withou
- 3 replies
-
- interactive
- menu
-
(and 3 more)
Tagged with:
-
What is the difference between using the directory functions to change the directory and opening file as opposed to just opening the file straight? I am not sure if you can open a file in a different directory by using the directory function or not, so correct me if it is not possible. chdir("info/");$fileName="info.txt";$file=fopen($fileName,"r+"); VS $directory="info/";$fileName="info.txt";$file=fopen($directory.$fileName,"r+"); If we use the first, how do we change back to the previous directory? If both is possible, which is the better method? Outside of opening files, which is bette
-
Okay this is part of my file upload script what has been taken from tizag websites. Somehow this is giving me the error and $target_path = ../Materials/ if (isset($_GET['submit'])) {$target_path = $_GET['directory'];$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { echo "File ". basename( $_FILES['uploadedfile']['name']). " has been sussefully added to websites.";} else { echo "There was error during upload, please check that filesize is not higer than 8MB.";echo $target_path;}}
- 6 replies
-
- File Upload
- PHP
-
(and 2 more)
Tagged with:
-
My directory tree looks like this - Public_html (Working directory) Images (contains all my .png files) css_Files (contains my css files)first_html_filesecond_html_file so I have one directory containing two sub-directories and my html files. The first_html_file calls a css file in css_Files Part of the css file reads - body{background-color: #cde6ff;background-image:url(public_html/Images/tbc_backdrop.png);background-repeat: repeat-x;padding-top: 0px;}Is the second line a valid reference, if not, what paths can the css file legally follow? This is the first time I've tried to use a r