Questions tagged [realpath]

The canonical path of the specified filename.

The canonical path of the specified filename, eliminating any symbolic links encountered in the path (if they are supported by the operating system)

127 questions
0
votes
0 answers

Is it possible to improve performance of php old architecture with php7 (realpath cache and opcache)?

I have an old php architecture with conditional files requires/includes: that is if the program controller needs a component to manage a service it require/include the corresponding file. I tested it with php7 and it seems slower than with php 5.x…
Alessandra
  • 467
  • 2
  • 6
  • 24
0
votes
0 answers

Android: get uri realpath return null

The code below uploads a file for an user. How can I fix it? I selected a file from my drive and data.getData() is not null, but get real path does not work: protected void onActivityResult(int requestCode, int resultCode, Intent data) { if…
0
votes
2 answers

How to check whether utility 'realpath' is available for the script?

We were asked to write a project in shell that should be compatible with every general shell (dash, ksh, bash). We should also cover the possible option that the utility realpath is not available on a particular machine. Is there any easy way how to…
Saeko
  • 421
  • 1
  • 4
  • 14
0
votes
1 answer

How to fetch actual web resource source file path in java?

I have developed java application which is actually stored at d drive.I have imported that application into eclipse which is stored at C drive. In my application there is one folder named as 'Image'. So whenever I search for the real Path of image…
tushar
  • 75
  • 4
0
votes
1 answer

PHP realpath returns blank on localhost

I'm new to PHP but have a very frustrating, seemingly simple problem echo realpath("../../Database/mydb.mdb"); Works perfectly on a live server but returns blank on localhost! I may be barking up the wrong tree , but is it a PHP setting in IIS I'm…
0
votes
1 answer

realpath vs str_replace to normalize slashes

Say I have a badly formatted path /public/var/www/html/images\uploads\ Are there any performance benefits between these two methods to "normalize" the slashes, or is it just a different way of doing things? realpath($path) .…
Alex
  • 9,215
  • 8
  • 39
  • 82
0
votes
0 answers

PHP realpath not work at Firefox and Chrome?

I've PHP code like that
user8124226
  • 104
  • 12
0
votes
2 answers

How can servlet create a file that user can visit directly

I'm using eclipse and tomcat to develop. It seems that only files in the WebContent folder can be visited by user. And now I need to create a file dynamically in servlet,But how can I get the real path of WebContent folder? I tried…
disinuo
  • 75
  • 9
0
votes
1 answer

uploading file to web root directory using jsf Primefaces

I am trying to store client logo into "src/main/webapp/clientImage/clientcode" clientcode directory will be created based on different-2 client. For Example if client Code is TEST then the complete path will be like…
MostlyJava
  • 345
  • 3
  • 21
0
votes
2 answers

C multithreading and realpath

I'm creating a program which recursively finds all #include dependencies between C files in a specified directory and its child directories. Dependency paths should be absolute, so I use realpath to resolve relative paths and symbolic links. Since…
0
votes
1 answer

how to catch file or dir from a certain dir in php

I am trying to catch (echo) a file or directory from a certain directory. I want to bind it to a variable. No i am experiencing with realpath and he gives me the exact file location but from the server. echo realpath($dir.'/'.$file); So my echo…
Jack Maessen
  • 1,780
  • 4
  • 19
  • 51
0
votes
1 answer

tcl split string with variables

how can split the name in tcl? NEW in ARCHIVE XVID/J/JURASSIC.WORLD path is not always the same, it may also be so /XVID-BOXSET/007.A.VIEW.TO.A.KILL and set this as variable, one variable set the name and one the path. I need the following…
user4457475
0
votes
1 answer

ServletContext#getRealPath(File.separator) giveing null in tomcat

I use following code in HttpServlet. String pathToWeb = getServletContext().getRealPath(File.separator); I have application where above code is working fine and return the real path of application directory. Whereas I send another branch for QA…
Amol Patil
  • 985
  • 2
  • 11
  • 43
0
votes
3 answers

php class path not file path where its methods are called

I want to create a class in php to upload files and validate file information before doing it. My class is not in the root directory. The structure is something like this: -project -root index.php -src -classes …
jaec86
  • 45
  • 9
0
votes
1 answer

Referencing file from realpath PHP

I have a class that handles FTP stuff located here: /var/www/html/crm/rhinos/classes/ftp.php This class is included in a script that generates a spreadsheet here: /var/www/html/crm/send_cust_lock.php The generated spreadsheet is located…
I wrestled a bear once.
  • 22,983
  • 19
  • 69
  • 116
1 2 3
8 9