By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,304 Members | 1,253 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,304 IT Pros & Developers. It's quick & easy.

Re: Transfering Website, PHP Configuration

P: n/a

"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:ga**********@registered.motzarella.org...

......

>
Your problem is you're using an absolute path. Rather, you should
be using $_SERVER['DOCUMENT_ROOT'] to reference the server's
document root, i.e.

require($_SERVER['DOCUMENT_ROOT']) .
'/includes/application_top.php');

Had you done this correctly in the first place, you wouldn't have
this problem.

Don't use relative paths - if you move the file including others,
the relative path will no longer work. This will work as long as
the included files don't move.

BTW - I normally place included files BELOW the document root. Then
they cannot be accessed via the web.
Jerry,
please read the question before replying. It is not his programming.
No need to be so offensive.

You probably mean ABOVE the document root.

BTW: why are you posting when you were so sure this has absolutely
nothing to do with PHP?

Have a coffee, take a break.
Richard.
Sep 18 '08 #1
Share this Question
Share on Google+
7 Replies


P: n/a
Richard wrote:
"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:ga**********@registered.motzarella.org...

.....

>Your problem is you're using an absolute path. Rather, you should
be using $_SERVER['DOCUMENT_ROOT'] to reference the server's
document root, i.e.

require($_SERVER['DOCUMENT_ROOT']) .
'/includes/application_top.php');

Had you done this correctly in the first place, you wouldn't have
this problem.

Don't use relative paths - if you move the file including others,
the relative path will no longer work. This will work as long as
the included files don't move.

BTW - I normally place included files BELOW the document root. Then
they cannot be accessed via the web.

Jerry,
please read the question before replying. It is not his programming.
No need to be so offensive.

You probably mean ABOVE the document root.

BTW: why are you posting when you were so sure this has absolutely
nothing to do with PHP?

Have a coffee, take a break.
Richard.
No, I do mean below the document root. As in a lower directory, i.e.
/var/www/example (lower - closer to the root) vs. /var/www/example/html
(higher - farther away from the root).

And please show me anything in the original post which is a PHP question
- other than he's using PHP in his site. I'll be he's using HTML, also,
and maybe even CSS. Maybe those are the proper newsgroups? What about
javascript?

Oh wait - he's asking about a WEB SERVER. So maybe he should be in once
of the Apache newsgroups. There he can get good answers to what he needs.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Sep 18 '08 #2

P: n/a

"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:ga**********@registered.motzarella.org...
Richard wrote:
>"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:ga**********@registered.motzarella.org...

.....

>>Your problem is you're using an absolute path. Rather, you should
be using $_SERVER['DOCUMENT_ROOT'] to reference the server's
document root, i.e.

require($_SERVER['DOCUMENT_ROOT']) .
'/includes/application_top.php');

Had you done this correctly in the first place, you wouldn't have
this problem.

Don't use relative paths - if you move the file including others,
the relative path will no longer work. This will work as long as
the included files don't move.

BTW - I normally place included files BELOW the document root.
Then they cannot be accessed via the web.

Jerry,
please read the question before replying. It is not his
programming.
No need to be so offensive.

You probably mean ABOVE the document root.

BTW: why are you posting when you were so sure this has absolutely
nothing to do with PHP?

Have a coffee, take a break.
Richard.

No, I do mean below the document root. As in a lower directory,
i.e. /var/www/example (lower - closer to the root) vs.
/var/www/example/html (higher - farther away from the root).

And please show me anything in the original post which is a PHP
question - other than he's using PHP in his site. I'll be he's
using HTML, also, and maybe even CSS. Maybe those are the proper
newsgroups? What about javascript?

Oh wait - he's asking about a WEB SERVER. So maybe he should be in
once of the Apache newsgroups. There he can get good answers to
what he needs.
Ah yes, I totally agree now.
He has a PHP website to transfer, but of course it is offtopic in
comp.lang.php
A PHP website is no sign that anything he says is PHP related.
Sure everyone in the apache newsgroups is going to help him with his
PHP config and includes.

I thought you being a "trainer" would be able to read between the
lines and not judge too soon.

Please Jerry, can you NEVER admit to making a mistake?
Does every other thread REALLY have to have your name at the end?

*sigh*

Richard.
Sep 18 '08 #3

P: n/a
Richard wrote:
"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:ga**********@registered.motzarella.org...
>Richard wrote:
>>"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:ga**********@registered.motzarella.org...

.....
Your problem is you're using an absolute path. Rather, you should
be using $_SERVER['DOCUMENT_ROOT'] to reference the server's
document root, i.e.

require($_SERVER['DOCUMENT_ROOT']) .
'/includes/application_top.php');

Had you done this correctly in the first place, you wouldn't have
this problem.

Don't use relative paths - if you move the file including others,
the relative path will no longer work. This will work as long as
the included files don't move.

BTW - I normally place included files BELOW the document root.
Then they cannot be accessed via the web.

Jerry,
please read the question before replying. It is not his
programming.
No need to be so offensive.

You probably mean ABOVE the document root.

BTW: why are you posting when you were so sure this has absolutely
nothing to do with PHP?

Have a coffee, take a break.
Richard.
No, I do mean below the document root. As in a lower directory,
i.e. /var/www/example (lower - closer to the root) vs.
/var/www/example/html (higher - farther away from the root).

And please show me anything in the original post which is a PHP
question - other than he's using PHP in his site. I'll be he's
using HTML, also, and maybe even CSS. Maybe those are the proper
newsgroups? What about javascript?

Oh wait - he's asking about a WEB SERVER. So maybe he should be in
once of the Apache newsgroups. There he can get good answers to
what he needs.

Ah yes, I totally agree now.
He has a PHP website to transfer, but of course it is offtopic in
comp.lang.php
A PHP website is no sign that anything he says is PHP related.
Sure everyone in the apache newsgroups is going to help him with his
PHP config and includes.

I thought you being a "trainer" would be able to read between the
lines and not judge too soon.

Please Jerry, can you NEVER admit to making a mistake?
Does every other thread REALLY have to have your name at the end?

*sigh*

Richard.
I admit to making mistakes when I make them. But nothing in his first
post had anything to do with PHP.

Again, I ask you. What was his PHP question? You can't answer that
because there wasn't one!

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Sep 19 '08 #4

P: n/a

"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:ga**********@registered.motzarella.org...
Richard wrote:
>"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:ga**********@registered.motzarella.org...
>>Richard wrote:
"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:ga**********@registered.motzarella.org.. .

.....
Your problem is you're using an absolute path. Rather, you
should be using $_SERVER['DOCUMENT_ROOT'] to reference the
server's document root, i.e.
>
require($_SERVER['DOCUMENT_ROOT']) .
'/includes/application_top.php');
>
Had you done this correctly in the first place, you wouldn't
have this problem.
>
Don't use relative paths - if you move the file including
others, the relative path will no longer work. This will work
as long as the included files don't move.
>
BTW - I normally place included files BELOW the document root.
Then they cannot be accessed via the web.
>
Jerry,
please read the question before replying. It is not his
programming.
No need to be so offensive.

You probably mean ABOVE the document root.

BTW: why are you posting when you were so sure this has
absolutely nothing to do with PHP?

Have a coffee, take a break.
Richard.

No, I do mean below the document root. As in a lower directory,
i.e. /var/www/example (lower - closer to the root) vs.
/var/www/example/html (higher - farther away from the root).

And please show me anything in the original post which is a PHP
question - other than he's using PHP in his site. I'll be he's
using HTML, also, and maybe even CSS. Maybe those are the proper
newsgroups? What about javascript?

Oh wait - he's asking about a WEB SERVER. So maybe he should be
in once of the Apache newsgroups. There he can get good answers
to what he needs.

Ah yes, I totally agree now.
He has a PHP website to transfer, but of course it is offtopic in
comp.lang.php
A PHP website is no sign that anything he says is PHP related.
Sure everyone in the apache newsgroups is going to help him with
his PHP config and includes.

I thought you being a "trainer" would be able to read between the
lines and not judge too soon.

Please Jerry, can you NEVER admit to making a mistake?
Does every other thread REALLY have to have your name at the end?

*sigh*

Richard.

I admit to making mistakes when I make them. But nothing in his
first post had anything to do with PHP.

Again, I ask you. What was his PHP question? You can't answer that
because there wasn't one!
What is with your eyes?
"started PHP clients site in PHP", "index.php" ...
The guy wants to transfer a PHP site and asks if there is something he
should know.

Nooohhoooo, that has absolutely NOTHING to do with PHP.
LOL!

I leave it to you to close this thread.

Bye.
R.
Sep 19 '08 #5

P: n/a
Richard wrote:
"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:ga**********@registered.motzarella.org...
>Richard wrote:
>>"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:ga**********@registered.motzarella.org...
Richard wrote:
"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:ga**********@registered.motzarella.org. ..
>
.....
>
>
>Your problem is you're using an absolute path. Rather, you
>should be using $_SERVER['DOCUMENT_ROOT'] to reference the
>server's document root, i.e.
>>
>require($_SERVER['DOCUMENT_ROOT']) .
>'/includes/application_top.php');
>>
>Had you done this correctly in the first place, you wouldn't
>have this problem.
>>
>Don't use relative paths - if you move the file including
>others, the relative path will no longer work. This will work
>as long as the included files don't move.
>>
>BTW - I normally place included files BELOW the document root.
>Then they cannot be accessed via the web.
>>
Jerry,
please read the question before replying. It is not his
programming.
No need to be so offensive.
>
You probably mean ABOVE the document root.
>
BTW: why are you posting when you were so sure this has
absolutely nothing to do with PHP?
>
Have a coffee, take a break.
>
>
Richard.
>
>
>
No, I do mean below the document root. As in a lower directory,
i.e. /var/www/example (lower - closer to the root) vs.
/var/www/example/html (higher - farther away from the root).

And please show me anything in the original post which is a PHP
question - other than he's using PHP in his site. I'll be he's
using HTML, also, and maybe even CSS. Maybe those are the proper
newsgroups? What about javascript?

Oh wait - he's asking about a WEB SERVER. So maybe he should be
in once of the Apache newsgroups. There he can get good answers
to what he needs.

Ah yes, I totally agree now.
He has a PHP website to transfer, but of course it is offtopic in
comp.lang.php
A PHP website is no sign that anything he says is PHP related.
Sure everyone in the apache newsgroups is going to help him with
his PHP config and includes.

I thought you being a "trainer" would be able to read between the
lines and not judge too soon.

Please Jerry, can you NEVER admit to making a mistake?
Does every other thread REALLY have to have your name at the end?

*sigh*

Richard.
I admit to making mistakes when I make them. But nothing in his
first post had anything to do with PHP.

Again, I ask you. What was his PHP question? You can't answer that
because there wasn't one!

What is with your eyes?
"started PHP clients site in PHP", "index.php" ...
The guy wants to transfer a PHP site and asks if there is something he
should know.

Nooohhoooo, that has absolutely NOTHING to do with PHP.
LOL!

I leave it to you to close this thread.

Bye.
R.
ROFLAMO! You still can't point to a PHP question!

I'll bet he had HTML in there, also. Maybe he should have asked in an
HTML newsgroup.

And BTW - Linux is written in C. So maybe Linux questions should be
asked in a C newsgroup.

You just can't understand the difference, can you? Just because there
is PHP code involved does not necessarily indicate a PHP question.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Sep 19 '08 #6

P: n/a

"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:ga**********@registered.motzarella.org...
Richard wrote:
>"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:ga**********@registered.motzarella.org...
>>Richard wrote:
"Jerry Stuckle" <js*******@attglobal.netwrote in message
news:ga**********@registered.motzarella.org.. .
Richard wrote:
>"Jerry Stuckle" <js*******@attglobal.netwrote in message
>news:ga**********@registered.motzarella.org.. .
>>
>.....
>>
>>
>>Your problem is you're using an absolute path. Rather, you
>>should be using $_SERVER['DOCUMENT_ROOT'] to reference the
>>server's document root, i.e.
>>>
>>require($_SERVER['DOCUMENT_ROOT']) .
>>'/includes/application_top.php');
>>>
>>Had you done this correctly in the first place, you wouldn't
>>have this problem.
>>>
>>Don't use relative paths - if you move the file including
>>others, the relative path will no longer work. This will work
>>as long as the included files don't move.
>>>
>>BTW - I normally place included files BELOW the document root.
>>Then they cannot be accessed via the web.
>>>
>Jerry,
>please read the question before replying. It is not his
>programming.
>No need to be so offensive.
>>
>You probably mean ABOVE the document root.
>>
>BTW: why are you posting when you were so sure this has
>absolutely nothing to do with PHP?
>>
>Have a coffee, take a break.
>>
>>
>Richard.
>>
>>
>>
No, I do mean below the document root. As in a lower directory,
i.e. /var/www/example (lower - closer to the root) vs.
/var/www/example/html (higher - farther away from the root).
>
And please show me anything in the original post which is a PHP
question - other than he's using PHP in his site. I'll be he's
using HTML, also, and maybe even CSS. Maybe those are the
proper newsgroups? What about javascript?
>
Oh wait - he's asking about a WEB SERVER. So maybe he should be
in once of the Apache newsgroups. There he can get good answers
to what he needs.
>
Ah yes, I totally agree now.
He has a PHP website to transfer, but of course it is offtopic in
comp.lang.php
A PHP website is no sign that anything he says is PHP related.
Sure everyone in the apache newsgroups is going to help him with
his PHP config and includes.

I thought you being a "trainer" would be able to read between the
lines and not judge too soon.

Please Jerry, can you NEVER admit to making a mistake?
Does every other thread REALLY have to have your name at the end?

*sigh*

Richard.

I admit to making mistakes when I make them. But nothing in his
first post had anything to do with PHP.

Again, I ask you. What was his PHP question? You can't answer
that because there wasn't one!

What is with your eyes?
"started PHP clients site in PHP", "index.php" ...
The guy wants to transfer a PHP site and asks if there is something
he should know.

Nooohhoooo, that has absolutely NOTHING to do with PHP.
LOL!

I leave it to you to close this thread.

Bye.
R.

ROFLAMO! You still can't point to a PHP question!

I'll bet he had HTML in there, also. Maybe he should have asked in
an HTML newsgroup.

And BTW - Linux is written in C. So maybe Linux questions should be
asked in a C newsgroup.

You just can't understand the difference, can you? Just because
there is PHP code involved does not necessarily indicate a PHP
question.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
If I post a reply, will you do another one to have the last word and
cover up your mistake?

*grin*

R.
Sep 19 '08 #7

P: n/a
On Sep 18, 11:05*pm, "Richard" <root@localhostwrote:
"Jerry Stuckle" <jstuck...@attglobal.netwrote in message

news:ga**********@registered.motzarella.org...
Richard wrote:
"Jerry Stuckle" <jstuck...@attglobal.netwrote in message
news:ga**********@registered.motzarella.org...
Richard wrote:
"Jerry Stuckle" <jstuck...@attglobal.netwrote in message
news:ga**********@registered.motzarella.org.. .
Richard wrote:
"Jerry Stuckle" <jstuck...@attglobal.netwrote in message
>news:ga**********@registered.motzarella.org.. .
>>>>.....
>>>>>Your problem is you're using an absolute path. *Rather, you
>should be using $_SERVER['DOCUMENT_ROOT'] to reference the
>server's document root, i.e.
>>>>>require($_SERVER['DOCUMENT_ROOT']) .
>'/includes/application_top.php');
>>>>>Had you done this correctly in the first place, you wouldn't
>have this problem.
>>>>>Don't use relative paths - if you move the file including
>others, the relative path will no longer work. *This will work
>as long as the included files don't move.
>>>>>BTW - I normally place included files BELOW the document root.
>Then they cannot be accessed via the web.
>>>>Jerry,
please read the question before replying. It is not his
programming.
No need to be so offensive.
>>>>You probably mean ABOVE the document root.
>>>>BTW: why are you posting when you were so sure this has
absolutely nothing to do with PHP?
>>>>Have a coffee, take a break.
>>>>Richard.
>>>No, I do mean below the document root. *As in a lower directory,
i.e. /var/www/example (lower - closer to the root) vs.
/var/www/example/html (higher - farther away from the root).
>>>And please show me anything in the original post which is a PHP
question - other than he's using PHP in his site. *I'll be he's
using HTML, also, and maybe even CSS. *Maybe those are the
proper newsgroups? *What about javascript?
>>>Oh wait - he's asking about a WEB SERVER. *So maybe he should be
in once of the Apache newsgroups. *There he can get good answers
to what he needs.
>>Ah yes, I totally agree now.
He has a PHP website to transfer, but of course it is offtopic in
comp.lang.php
A PHP website is no sign that anything he says is PHP related.
Sure everyone in the apache newsgroups is going to help him with
his PHP config and includes.
>>I thought you being a "trainer" would be able to read between the
lines and not judge too soon.
>>Please Jerry, can you NEVER admit to making a mistake?
Does every other thread REALLY have to have your name at the end?
>>*sigh*
>>Richard.
>I admit to making mistakes when I make them. *But nothing in his
first post had anything to do with PHP.
>Again, I ask you. *What was his PHP question? *You can't answer
that because there wasn't one!
What is with your eyes?
"started PHP clients site in PHP", "index.php" ...
The guy wants to transfer a PHP site and asks if there is something
he should know.
Nooohhoooo, that has absolutely NOTHING to do with PHP.
LOL!
I leave it to you to close this thread.
Bye.
R.
ROFLAMO! *You still can't point to a PHP question!
I'll bet he had HTML in there, also. *Maybe he should have asked in
an HTML newsgroup.
And BTW - Linux is written in C. *So maybe Linux questions should be
asked in a C newsgroup.
You just can't understand the difference, can you? *Just because
there is PHP code involved does not necessarily indicate a PHP
question.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================

If I post a reply, will you do another one to have the last word and
cover up your mistake?

*grin*

R.
Thanks Everybody for All the input and thought into my problem. I
finally got a hold of the original programmer and he is going to help
me get it configured properly. Apparently he ocnfigured to only run on
specific server for security reasons. He is willing to help rectify
the code.

Thanks Again Everyone!
Sep 21 '08 #8

This discussion thread is closed

Replies have been disabled for this discussion.