473,583 Members | 2,878 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

absolute paths

do I have to prefix every absolute path with document root to get it to
work?

For some reason I thought that prefixing a path with '/' or './' with make
it absolute w.r.t to document root but I guess not?

e.g., when I do

include './Scripts/AddNav.php';

or

include '/Scripts/AddNav.php';

It only happens to work if that path is in the current directory but it
won't goto the root directory.

i.e., the above is doing the exact same as if I did

include 'Scripts/AddNav.php';

But in any case this doesn't work in general unless I use

include $_SERVER['DOCUMENT_ROOT'].'/Scripts/AddNav.php';

ofcourse this seems like a mess to do every time I want to use an absolute
path... which is a lot.

Is that what I'm stuck with doing or is there a function, say, like abp that
will take a path and prefix the document root to it?

Thanks,
Jon
Apr 21 '07 #1
6 3149
>do I have to prefix every absolute path with document root to get it to
>work?
An absolute *FILE* path or absolute *URL* path? There are important
differences.

If you are attempting to use a URL path as an absolute file path,
yes, you have to prefix it with document root.

A file path might be used like this (on UNIX; try DIR on Windows):

ls -l /usr/local/www/document_root/images/flag.jpg

A URL path might be used like this:

http://myhost.mydomain.com/images/flag.jpg

>For some reason I thought that prefixing a path with '/' or './' with make
it absolute w.r.t to document root but I guess not?
If you mean something like:

SRC="/images/flag.jpg"
just prefixing it with / makes it an absolute URL. To get a *FILE* path,
you need to prefix the document root.

If you prefix "./", you're making it relative (to *WHAT* depends on
context - for include, see include_path).
>
e.g., when I do

include './Scripts/AddNav.php';

or

include '/Scripts/AddNav.php';
include takes a *FILE* path.
>It only happens to work if that path is in the current directory but it
won't goto the root directory.

i.e., the above is doing the exact same as if I did

include 'Scripts/AddNav.php';

But in any case this doesn't work in general unless I use

include $_SERVER['DOCUMENT_ROOT'].'/Scripts/AddNav.php';

ofcourse this seems like a mess to do every time I want to use an absolute
path... which is a lot.

Is that what I'm stuck with doing or is there a function, say, like abp that
will take a path and prefix the document root to it?
If you've got an include file that you include at the front of every
page, (PHP autoinclude?) you could include that one as above, and
inside it, set $ScriptDir and then:

include $ScriptDir.'/AddNav.php';

which is a little shorter.

Apr 21 '07 #2

"Gordon Burditt" <go***********@ burditt.orgwrot e in message
news:13******** *****@corp.supe rnews.com...
do I have to prefix every absolute path with document root to get it to
work?

An absolute *FILE* path or absolute *URL* path? There are important
differences.
No, only file paths... shit... I guess ;/ Didn't realize there was a
difference?

When someone uses my site: www.jonslaughter.com/somedir/somefile.php, can
everything after the domain name be considered a file path? (atleast if it
actually looks like a file path)

That is, on my site I will be using file paths to represent url paths.
Theres a one to one correspondence between the urls and files. (excluding
the additional domain name and protocol in the url)
If you are attempting to use a URL path as an absolute file path,
yes, you have to prefix it with document root.

A file path might be used like this (on UNIX; try DIR on Windows):

ls -l /usr/local/www/document_root/images/flag.jpg

A URL path might be used like this:

http://myhost.mydomain.com/images/flag.jpg

Ok, but what I am doing is only keeping the /images/flag.jpg

so maybe I'll have a file in document_root that opens the flag.jpg

if I do something like read('/images/flag.jpg') then it works because it
uses the relative dir scheme. But now if I wasn't in document root then it
wouldn't(assumi ng there is no /images/flag.jpg in that dir)

>>For some reason I thought that prefixing a path with '/' or './' with make
it absolute w.r.t to document root but I guess not?

If you mean something like:

SRC="/images/flag.jpg"
just prefixing it with / makes it an absolute URL. To get a *FILE* path,
you need to prefix the document root.
ok. I guess thats it then. I thought then that you could use absolute urls
and the would be resolved w.r.t to the document root.

If you prefix "./", you're making it relative (to *WHAT* depends on
context - for include, see include_path).
>>
e.g., when I do

include './Scripts/AddNav.php';

or

include '/Scripts/AddNav.php';

include takes a *FILE* path.
ok.

So essentially what your saying is that there is no such thing as absolute
file paths? That is, all file paths are relative?
>
>>It only happens to work if that path is in the current directory but it
won't goto the root directory.

i.e., the above is doing the exact same as if I did

include 'Scripts/AddNav.php';

But in any case this doesn't work in general unless I use

include $_SERVER['DOCUMENT_ROOT'].'/Scripts/AddNav.php';

ofcourse this seems like a mess to do every time I want to use an absolute
path... which is a lot.

Is that what I'm stuck with doing or is there a function, say, like abp
that
will take a path and prefix the document root to it?

If you've got an include file that you include at the front of every
page, (PHP autoinclude?) you could include that one as above, and
inside it, set $ScriptDir and then:

include $ScriptDir.'/AddNav.php';

which is a little shorter.
YEah, I thought about that. I haven't got the autoinclude stuff to work but
was just going to create a function like ap(somepath) that would prefix
somepath with the document root.

I just needed to understand the difference. I didn't realize that there
were url and file paths and that only urls had the absolute ability. I think
I got it now though.

Thanks,
Jon
Apr 22 '07 #3
Jon Slaughter wrote:
"Gordon Burditt" <go***********@ burditt.orgwrot e in message
news:13******** *****@corp.supe rnews.com...
>>do I have to prefix every absolute path with document root to get it to
work?
An absolute *FILE* path or absolute *URL* path? There are important
differences.

No, only file paths... shit... I guess ;/ Didn't realize there was a
difference?

When someone uses my site: www.jonslaughter.com/somedir/somefile.php, can
everything after the domain name be considered a file path? (atleast if it
actually looks like a file path)

That is, on my site I will be using file paths to represent url paths.
Theres a one to one correspondence between the urls and files. (excluding
the additional domain name and protocol in the url)
>If you are attempting to use a URL path as an absolute file path,
yes, you have to prefix it with document root.

A file path might be used like this (on UNIX; try DIR on Windows):

ls -l /usr/local/www/document_root/images/flag.jpg

A URL path might be used like this:

http://myhost.mydomain.com/images/flag.jpg


Ok, but what I am doing is only keeping the /images/flag.jpg

so maybe I'll have a file in document_root that opens the flag.jpg

if I do something like read('/images/flag.jpg') then it works because it
uses the relative dir scheme. But now if I wasn't in document root then it
wouldn't(assumi ng there is no /images/flag.jpg in that dir)

>>For some reason I thought that prefixing a path with '/' or './' with make
it absolute w.r.t to document root but I guess not?
If you mean something like:

SRC="/images/flag.jpg"
just prefixing it with / makes it an absolute URL. To get a *FILE* path,
you need to prefix the document root.

ok. I guess thats it then. I thought then that you could use absolute urls
and the would be resolved w.r.t to the document root.

>If you prefix "./", you're making it relative (to *WHAT* depends on
context - for include, see include_path).
>>e.g., when I do

include './Scripts/AddNav.php';

or

include '/Scripts/AddNav.php';
include takes a *FILE* path.

ok.

So essentially what your saying is that there is no such thing as absolute
file paths? That is, all file paths are relative?
>>It only happens to work if that path is in the current directory but it
won't goto the root directory.

i.e., the above is doing the exact same as if I did

include 'Scripts/AddNav.php';

But in any case this doesn't work in general unless I use

include $_SERVER['DOCUMENT_ROOT'].'/Scripts/AddNav.php';

ofcourse this seems like a mess to do every time I want to use an absolute
path... which is a lot.

Is that what I'm stuck with doing or is there a function, say, like abp
that
will take a path and prefix the document root to it?
If you've got an include file that you include at the front of every
page, (PHP autoinclude?) you could include that one as above, and
inside it, set $ScriptDir and then:

include $ScriptDir.'/AddNav.php';

which is a little shorter.

YEah, I thought about that. I haven't got the autoinclude stuff to work but
was just going to create a function like ap(somepath) that would prefix
somepath with the document root.

I just needed to understand the difference. I didn't realize that there
were url and file paths and that only urls had the absolute ability. I think
I got it now though.

Thanks,
Jon

Jon,

If it's being accessed using http protocol (i.e.
http://www.example.com/myfile.php) it is a URI and relative to your
document root.

If it's being accessed from your php code, i.e. by include (_once),
require (_once), fopen (to the local filesystem) it's relative to the
root directory of your machine.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Apr 22 '07 #4

"Jerry Stuckle" <js*******@attg lobal.netwrote in message
news:WO******** *************** *******@comcast .com...
Jon Slaughter wrote:
>"Gordon Burditt" <go***********@ burditt.orgwrot e in message
news:13******* ******@corp.sup ernews.com...
>>>do I have to prefix every absolute path with document root to get it to
work?
An absolute *FILE* path or absolute *URL* path? There are important
differences .

No, only file paths... shit... I guess ;/ Didn't realize there was a
difference?

When someone uses my site: www.jonslaughter.com/somedir/somefile.php, can
everything after the domain name be considered a file path? (atleast if
it actually looks like a file path)

That is, on my site I will be using file paths to represent url paths.
Theres a one to one correspondence between the urls and files. (excluding
the additional domain name and protocol in the url)
>>If you are attempting to use a URL path as an absolute file path,
yes, you have to prefix it with document root.

A file path might be used like this (on UNIX; try DIR on Windows):

ls -l /usr/local/www/document_root/images/flag.jpg

A URL path might be used like this:

http://myhost.mydomain.com/images/flag.jpg


Ok, but what I am doing is only keeping the /images/flag.jpg

so maybe I'll have a file in document_root that opens the flag.jpg

if I do something like read('/images/flag.jpg') then it works because it
uses the relative dir scheme. But now if I wasn't in document root then
it wouldn't(assumi ng there is no /images/flag.jpg in that dir)

>>>For some reason I thought that prefixing a path with '/' or './' with
make
it absolute w.r.t to document root but I guess not?
If you mean something like:

SRC="/images/flag.jpg"
just prefixing it with / makes it an absolute URL. To get a *FILE*
path,
you need to prefix the document root.

ok. I guess thats it then. I thought then that you could use absolute
urls and the would be resolved w.r.t to the document root.

>>If you prefix "./", you're making it relative (to *WHAT* depends on
context - for include, see include_path).

e.g., when I do

include './Scripts/AddNav.php';

or

include '/Scripts/AddNav.php';
include takes a *FILE* path.

ok.

So essentially what your saying is that there is no such thing as
absolute file paths? That is, all file paths are relative?
>>>It only happens to work if that path is in the current directory but it
won't goto the root directory.

i.e., the above is doing the exact same as if I did

include 'Scripts/AddNav.php';

But in any case this doesn't work in general unless I use

include $_SERVER['DOCUMENT_ROOT'].'/Scripts/AddNav.php';

ofcourse this seems like a mess to do every time I want to use an
absolute
path... which is a lot.

Is that what I'm stuck with doing or is there a function, say, like abp
that
will take a path and prefix the document root to it?
If you've got an include file that you include at the front of every
page, (PHP autoinclude?) you could include that one as above, and
inside it, set $ScriptDir and then:

include $ScriptDir.'/AddNav.php';

which is a little shorter.

YEah, I thought about that. I haven't got the autoinclude stuff to work
but was just going to create a function like ap(somepath) that would
prefix somepath with the document root.

I just needed to understand the difference. I didn't realize that there
were url and file paths and that only urls had the absolute ability. I
think I got it now though.

Thanks,
Jon


Jon,

If it's being accessed using http protocol (i.e.
http://www.example.com/myfile.php) it is a URI and relative to your
document root.

If it's being accessed from your php code, i.e. by include (_once),
require (_once), fopen (to the local filesystem) it's relative to the root
directory of your machine.
Ok, thanks. I didn't know there was a differentiation .
Apr 22 '07 #5
>do I have to prefix every absolute path with document root to get it to
>>>work?

An absolute *FILE* path or absolute *URL* path? There are important
differences.

No, only file paths... shit... I guess ;/ Didn't realize there was a
difference?

When someone uses my site: www.jonslaughter.com/somedir/somefile.php, can
everything after the domain name be considered a file path? (atleast if it
actually looks like a file path)

That is, on my site I will be using file paths to represent url paths.
My bet is that the document root of your web site is NOT / .
And it certainly shouldn't be.
>Theres a one to one correspondence between the urls and files. (excluding
the additional domain name and protocol in the url)
No, there isn't. There should be *NO* URL that pulls up the file
/etc/passwd from your system. Or in the case of Windows, there should
be *NO* url for the files containing the registry, or any of the files
in the Windows system directory. There should be *NO* URL that pulls up
most of the executables for your system, as they might be copyrighted
and your license may not permit you to distribute them without the
corresponding source code. Besides, nasty people will see you have
unpatched executables and try to crack your system.

Your URL might be: http://www.jonslaughter.com/images/flag.jpeg
The corresponding file might be:
/usr/local/www/document_root/images/flag.jpeg
>If you are attempting to use a URL path as an absolute file path,
yes, you have to prefix it with document root.

A file path might be used like this (on UNIX; try DIR on Windows):

ls -l /usr/local/www/document_root/images/flag.jpg

A URL path might be used like this:

http://myhost.mydomain.com/images/flag.jpg


Ok, but what I am doing is only keeping the /images/flag.jpg

so maybe I'll have a file in document_root that opens the flag.jpg
Files do not open other files.
>if I do something like read('/images/flag.jpg') then it works because it
uses the relative dir scheme. But now if I wasn't in document root then it
wouldn't(assum ing there is no /images/flag.jpg in that dir)
To further confuse things, there is the PHP setting include_dir,
and PHP does have a current working directory, which you can change.
I suspect a lot of what you claim about how things work will suddenly
break if these are changed.

On my system, I have an include directory which is *OUTSIDE* the
document root, for, among other things, database login and password
information. This directory is listed, by absolute FILE path, in
include_path. I can refer to a particular file containing a
particular database login for a particular application with:
include "tv.inc";
from *ANY* PHP script on any of several virtual hosts, in one of
the document root directories or several levels below that, and
I'll always get the file. The only caveat is that I can't leave
a different "tv.inc" file around in the same directory as one of
the scripts. Even that I could fix by putting the path to my include
directory *FIRST* in include_path, or leave "." out of it entirely.
>>>For some reason I thought that prefixing a path with '/' or './' with make
it absolute w.r.t to document root but I guess not?

If you mean something like:

SRC="/images/flag.jpg"
just prefixing it with / makes it an absolute URL. To get a *FILE* path,
you need to prefix the document root.

ok. I guess thats it then. I thought then that you could use absolute urls
and the would be resolved w.r.t to the document root.
You can use an absolute URL *IN A BROWSER* and they will be resolved with
respect to the document root. That is *NOT* true of "include".
>If you prefix "./", you're making it relative (to *WHAT* depends on
context - for include, see include_path).
>>>
e.g., when I do

include './Scripts/AddNav.php';

or

include '/Scripts/AddNav.php';

include takes a *FILE* path.

ok.

So essentially what your saying is that there is no such thing as absolute
file paths? That is, all file paths are relative?
No, there are absolute file paths. File paths are what you use
with a shell, and what you get back when you type "pwd". There
won't be any URL paths to files on your system if you remove the
web server (and therefore, PHP).

Look at it this way: You have to use a file path where a file path
is required and you have to use a URL path where a URL path is
required. In some places you can use either but a URL path has to
start with "http:". You can't mix them, just like you cannot dial
a postal address nor can you put a phone number and a stamp on a
letter and expect it to arrive at the correct place. It may be
that in your office complex, your office number is both the last 3
digits of your phone number AND it's the last 3 digits of your (USA,
9-digit) zip code. You can use a short-cut reference (relative
path) to your office by just office number, but not when talking
to someone in a different building.

>>>It only happens to work if that path is in the current directory but it
won't goto the root directory.

i.e., the above is doing the exact same as if I did

include 'Scripts/AddNav.php';

But in any case this doesn't work in general unless I use

include $_SERVER['DOCUMENT_ROOT'].'/Scripts/AddNav.php';

ofcourse this seems like a mess to do every time I want to use an absolute
path... which is a lot.

Is that what I'm stuck with doing or is there a function, say, like abp
that
will take a path and prefix the document root to it?

If you've got an include file that you include at the front of every
page, (PHP autoinclude?) you could include that one as above, and
inside it, set $ScriptDir and then:

include $ScriptDir.'/AddNav.php';

which is a little shorter.

YEah, I thought about that. I haven't got the autoinclude stuff to work but
was just going to create a function like ap(somepath) that would prefix
somepath with the document root.
Fine. Now how do you define that function? With include, or require,
probably. Otherwise it's a lot more work than
include $_SERVER['DOCUMENT_ROOT'].'/Scripts/AddNav.php';
>
I just needed to understand the difference. I didn't realize that there
were url and file paths and that only urls had the absolute ability. I think
I got it now though.

Thanks,
Jon


Apr 22 '07 #6
On Apr 22, 1:24 am, gordonb.n5...@b urditt.org (Gordon Burditt) wrote:
do I have to prefix every absolute path with document root to get it to
work?
An absolute *FILE* path or absolute *URL* path? There are important
differences.
No, only file paths... shit... I guess ;/ Didn't realize there was a
difference?
When someone uses my site:www.jonslaughter.com/somedir/somefile.php, can
everything after the domain name be considered a file path? (atleast if it
actually looks like a file path)
That is, on my site I will be using file paths to represent url paths.

My bet is that the document root of your web site is NOT / .
And it certainly shouldn't be.
Theres a one to one correspondence between the urls and files. (excluding
the additional domain name and protocol in the url)

No, there isn't. There should be *NO* URL that pulls up the file
/etc/passwd from your system. Or in the case of Windows, there should
be *NO* url for the files containing the registry, or any of the files
in the Windows system directory. There should be *NO* URL that pulls up
most of the executables for your system, as they might be copyrighted
and your license may not permit you to distribute them without the
corresponding source code. Besides, nasty people will see you have
unpatched executables and try to crack your system.

Your URL might be:http://www.jonslaughter.com/images/flag.jpeg
The corresponding file might be:
/usr/local/www/document_root/images/flag.jpeg


If you are attempting to use a URL path as an absolute file path,
yes, you have to prefix it with document root.
A file path might be used like this (on UNIX; try DIR on Windows):
ls -l /usr/local/www/document_root/images/flag.jpg
A URL path might be used like this:
>http://myhost.mydomain.com/images/flag.jpg
Ok, but what I am doing is only keeping the /images/flag.jpg
so maybe I'll have a file in document_root that opens the flag.jpg

Files do not open other files.
if I do something like read('/images/flag.jpg') then it works because it
uses the relative dir scheme. But now if I wasn't in document root then it
wouldn't(assumi ng there is no /images/flag.jpg in that dir)

To further confuse things, there is the PHP setting include_dir,
and PHP does have a current working directory, which you can change.
I suspect a lot of what you claim about how things work will suddenly
break if these are changed.

On my system, I have an include directory which is *OUTSIDE* the
document root, for, among other things, database login and password
information. This directory is listed, by absolute FILE path, in
include_path. I can refer to a particular file containing a
particular database login for a particular application with:
include "tv.inc";
from *ANY* PHP script on any of several virtual hosts, in one of
the document root directories or several levels below that, and
I'll always get the file. The only caveat is that I can't leave
a different "tv.inc" file around in the same directory as one of
the scripts. Even that I could fix by putting the path to my include
directory *FIRST* in include_path, or leave "." out of it entirely.
>>For some reason I thought that prefixing a path with '/' or './' with make
it absolute w.r.t to document root but I guess not?
If you mean something like:
SRC="/images/flag.jpg"
just prefixing it with / makes it an absolute URL. To get a *FILE* path,
you need to prefix the document root.
ok. I guess thats it then. I thought then that you could use absolute urls
and the would be resolved w.r.t to the document root.

You can use an absolute URL *IN A BROWSER* and they will be resolved with
respect to the document root. That is *NOT* true of "include".


If you prefix "./", you're making it relative (to *WHAT* depends on
context - for include, see include_path).
>>e.g., when I do
>>include './Scripts/AddNav.php';
>>or
>>include '/Scripts/AddNav.php';
include takes a *FILE* path.
ok.
So essentially what your saying is that there is no such thing as absolute
file paths? That is, all file paths are relative?

No, there are absolute file paths. File paths are what you use
with a shell, and what you get back when you type "pwd". There
won't be any URL paths to files on your system if you remove the
web server (and therefore, PHP).

Look at it this way: You have to use a file path where a file path
is required and you have to use a URL path where a URL path is
required. In some places you can use either but a URL path has to
start with "http:". You can't mix them, just like you cannot dial
a postal address nor can you put a phone number and a stamp on a
letter and expect it to arrive at the correct place. It may be
that in your office complex, your office number is both the last 3
digits of your phone number AND it's the last 3 digits of your (USA,
9-digit) zip code. You can use a short-cut reference (relative
path) to your office by just office number, but not when talking
to someone in a different building.


>>It only happens to work if that path is in the current directory but it
won't goto the root directory.
>>i.e., the above is doing the exact same as if I did
>>include 'Scripts/AddNav.php';
>>But in any case this doesn't work in general unless I use
>>include $_SERVER['DOCUMENT_ROOT'].'/Scripts/AddNav.php';
>>ofcourse this seems like a mess to do every time I want to use an absolute
path... which is a lot.
>>Is that what I'm stuck with doing or is there a function, say, like abp
that
will take a path and prefix the document root to it?
If you've got an include file that you include at the front of every
page, (PHP autoinclude?) you could include that one as above, and
inside it, set $ScriptDir and then:
include $ScriptDir.'/AddNav.php';
which is a little shorter.
YEah, I thought about that. I haven't got the autoinclude stuff to work but
was just going to create a function like ap(somepath) that would prefix
somepath with the document root.

Fine. Now how do you define that function? With include, or require,
probably. Otherwise it's a lot more work than
include $_SERVER['DOCUMENT_ROOT'].'/Scripts/AddNav.php';


I just needed to understand the difference. I didn't realize that there
were url and file paths and that only urls had the absolute ability. I think
I got it now though.
Thanks,
Jon- Hide quoted text -

- Show quoted text -- Hide quoted text -

- Show quoted text -- Hide quoted text -

- Show quoted text -- Hide quoted text -

- Show quoted text -
I always did something like this.. I Can't remember the exact $_Server
part b/c I am not at home, but it goes something like that where
$_Server is http://www.orbstra.com/ and then I toss guava/ at the end.

class get
{
function url()
{
return ($_SERVER['URL'] . guava/);
}
}

so when I need to:

include get::url() . 'system/';

So on and so forth...

Apr 22 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
1874
by: David Siroky | last post by:
Hi! When I "compile" my python files with "python -OO ...." into pyo files then they still contain absolute paths of the source files which is undesirable for me. How can I deal with that? Thank you. David
1
3102
by: William Starr Moake | last post by:
Another problem with absolute paths in the WYSIWYG editor I'm putting together. The function to toggle between WYSIWYG and HTML modes works except for one glitch. If you use a relative path for a link, like <a href="download.htm">Click Here</a>, the editor returns an absolute path the second time you toggle HTML mode: <a...
4
6069
by: Vitali Gontsharuk | last post by:
Hallo! When using the XPATH document() function to load a new XML document, we are coming across problems, because XALAN seems to have problems with absolute paths. XALAN always assumes that the path is relative to the current directory. So if we e.g. are in "c:\xslt_scripts" and are trying to load an XML file from "c:\xml_files\test.xml"...
7
78627
by: Rizaan Jappie | last post by:
is it possible to get the relative path based on a absolute path in c#? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
0
1295
by: Jason Lawrence | last post by:
I have an attributed ATL project (call it B) that I am building with Microsoft Visual C++ .NET (55537-640-3684941- 18356). In the project I include the COM generated file A.h (from another ATL project A). The compiler interprets this and injects the command "import A.idl" into the idl for B. So far everything is okay. The problem is that...
2
1188
by: David Cho | last post by:
This is a simple issue I am trying to figure out. How would I express absolute paths to various aspx files in the aspx page. I am not intereted in relative paths. For example, I want to encapsulate a HyperLink control in a user control. Of course this user control can go anywhere vin various subfolders, but when the link is clicked, I...
0
1312
by: Chris Gill | last post by:
I'm trying to use cookieless sessions in asp.net using the InProc mode (for various reasons it is not desirable for us to use the other modes if it is possible to avoid them). My problem revolves around the use of absolute and relative paths under this mode. Obviously absolute paths break the sessionId tracking in the url, which in our...
3
1869
by: JeffDotNet | last post by:
I wrote a small data processing application that writes a summary of several hundred files. I use drag and drop on a panel (Panel1) to grab the absolute path to each of these files. Then I begin analyzing all of the files. I noticed (on the same machine) that some user profiles appear to abbreviate the absolute paths to these files thus...
19
5065
by: Jerry M. Gartner | last post by:
Greetings: What is the best way to resolve paths within a document regardless of what path it is opened under? For example: I have x.php and it contains <img src="images...">, (amongst other things, like php code), which resolves the correct image path when opened under / but when x.php is read into a file under /dir the image no longer...
0
7811
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8159
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8314
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7922
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6571
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5366
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3811
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3836
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1416
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.