Questions tagged [absolute-path]

global address for a file, independent from the working directory of the calling process

An absolute (or full) path is the general form of the name of a file or directory that specifies a unique location in a file system. An absolute path contains the root directory and all other subfolders in which the requested file or folder is contained.

833 questions
0
votes
2 answers

PHP ftp functions won't use absolute paths

The goal is to use php to FTP into a server and get the directory listings. The only problem is that I need to use the absolute path to get to the directory. Example: $host = "example.com"; $port = 21; $connection = ftp_connect($host,…
user1052474
  • 73
  • 1
  • 5
0
votes
2 answers

Organizing folders and sub-folders in htdocs

I'm using windows 7 (64 bit). If I place a site (index.php, other docs and other sub folders [css, js, imgs etc] directly inside the htdocs folder (amongst the XAMPP folders) and view the site through localhost there is no problem. If instead the…
EnglishAdam
  • 1,380
  • 1
  • 19
  • 42
0
votes
1 answer

RewriteRule causes a malfunction of the other path (subdir), css/imgs/js

Like title, that rule: RewriteRule pagtwo/pic/(.*) index.php?pic=$1 [PT,QSA] Rule working, but not the file included by subdirectory for example and…
Donovant
  • 3,091
  • 8
  • 40
  • 68
0
votes
1 answer

multiversioned sub application asset paths in flex 4

Hopefully someone can help here, more or less looking for a) solution to relative paths or b) insight on another method of loading assets. We have a standalone web application that is using SDK 4.1 and looks in its relative assets folder for all…
0
votes
3 answers

Relative path / Absolute path queries doesn't work from current directory

While traversing from my current path , and searching for a file , I'm having problems locating the file . I suspect the that the path is the blame for that due to chdir , in the next code : The associated folders are : 12,13,14 , 12 is father…
JAN
  • 21,236
  • 66
  • 181
  • 318
0
votes
3 answers

PHP: replace relative urls to absolute urls in a textarea

I would like to replace relative URLs to absolute URLs in a textarea. So something like this: /somefolder/somefile Is replaced to: http://www.mysite123.com/somefolder/somefile I have this replace function to do the job: $replaceStrs =…
Jens Kirk
  • 526
  • 1
  • 5
  • 19
0
votes
1 answer

Write a path to call a particular servlet.

I need a help with getting right path so that my request from a JSP page to a servlet works fine. Right now its giving me an error Servlet not found .. I am working in eclipse. My directory is like this :: At the top level is my Project_Name…
Shantanu Tomar
  • 1,572
  • 7
  • 38
  • 64
0
votes
1 answer

.htaccess relative mod_rewrite path - simplify deployment of an application

Each time it's time to deploy a CodeIgniter application, I find myself struggling with changing the path in the .htaccess. Therefore; I'm looking for a proper, good working solution which works no matter of the location of the actual…
Zar
  • 6,786
  • 8
  • 54
  • 76
0
votes
2 answers

Wordpress is cut off when linking to pages using /index.php/page-name

I have posted this question on bitnami answers as well but I am refining it here. The relevant link is: I am running the bitnami wordpress stack on my Kubuntu Linux machine. I am linking to pages internal to my site in my content with absolute links…
nandac
  • 335
  • 3
  • 16
-1
votes
1 answer

require_once() function unable to include functions()

index.php fr.php functions.php function abspath() { return $_SERVER['DOCUMENT_ROOT']; } Now when i go to index.php, it gives me…
Django Anonymous
  • 2,987
  • 16
  • 58
  • 106
-1
votes
2 answers

Set cron job for absolute path

I am using MVC framework. Now I want to set up cron such that the URL "http://www.xyz.com/controllera/functiona" should be executed. what should i write in the path section for it. I got something about "GET" command but it wasnt clear. Can someone…
Abhishek Sanghvi
  • 4,582
  • 6
  • 28
  • 36
-1
votes
1 answer

cant to connect absolute import in ts

enter image description here in the photo is the whole essence of the problem, tell me what will help to solve it? probably something in the assembly causes a conflict because of which the path does not work, but I am not sure
Eduard
  • 1
-1
votes
1 answer

Losing absolute paths after returning them from function

I have this function here that renames (if necessary) all files in a given folder and returns all filenames as absolute paths: I forgot to mention: filepath is always an absolute path. import re import os # This function renames all files in a…
-1
votes
1 answer

Windows 10 - ObjectOutputStream can't find relative paths because current working directory is System32

When I call method System.out.print(new File("").getAbsolutePath()) from main I get the project workspace C:\Users\darkr\Desktop\NuovoWorkSpace\ProjectName. When it gets called by our save() method, which serializes what we need, suddenly the…
-1
votes
1 answer

Call a python file from bash script (.sh) file by providing absolute path

I am calling a python file result.py from a script file result.sh. Both the files are present in different folders. How can I provide an absolute path? My result.sh code: if [[ $1 = "Census" ]]; then python -u result.py --model_name mlp…
RasK
  • 51
  • 6