473,426 Members | 1,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,426 software developers and data experts.

Re: Transfering Website, PHP Configuration


"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
7 1408
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

"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
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

"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
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

"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Niyazi | last post by:
Hi, I have BIG question and I gues it is the BEST question. I have a problem that I am guessing the best solution is to create some sort ..NET Services. This Service(s) must check every...
5
by: NoNickname | last post by:
Basically, how do I know that the release versions of all components are being published? The Build | Configuration Manager is confusing me a little in VS2005. I have three projects in my...
14
by: Adrian Parker | last post by:
For deployment reasons, we don't want to have to install our large app on each network client manually; we'd like to have our users run a very small app on their clients that basically runs the main...
2
by: brett | last post by:
On my local machine, I've created an ASP.NET website, which will go into a sub folder of a website on a remote web server. I did this on my local machine because at some point, this site will have...
2
by: keithb | last post by:
Can someone suggest a course of action? Thanks, Keith Using the ASP.NET Website Administration tool to set up security, I get the following error message: An error was encountered. Please...
2
by: Erland | last post by:
Hi all, I have developed an asp.net( 1.1) website using vb.net and Microsoft Access and my hosting company does support asp.net1.1. Now I've FTP'd the website , but whenever i try to access the...
1
by: kurt sune | last post by:
I am having trouble publishing a website for RELEASE. 1. web.config: <compilation defaultLanguage="vb" debug="false"> 2. in Configuration manager I set the configuration to Release for the...
3
by: mrajanikrishna | last post by:
Hi friends, I've designed an application in my local system using VS.NET 2003. (VB.NET and ASP.NET) Its working fine. Now, I want to publish to my ISPs server. I've FTP account. How can I...
5
by: Dariusz Tomon | last post by:
Hello I have no idea how to deploy my website to another server (in virtual folder I cannot see dlls file). Is thate any simple and quick manner to deploy web site to another servers? Best...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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...
1
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.