fmwebschool.com
Top Experts [learn more]Top 4-10
webko

9743 K
bandmandq

2458 K
Genx

1525 K
4. tcmeyers
5. kbata
6. Martie
7. Hammerton
8. rrenfrow
9. bneeman
10. plegler
Welcome, Guest. Please login or register.
May 23, 2013, 07:39:33 PM

Login with username, password and session length
Search:     Advanced search
FMWebschool releases more educational FMStudio webinars - check them out here:
http://www.fmwebschool.com/webinars.php
27464 Posts in 6066 Topics by 1523 Members
Latest Member: donok
* Home Help Search Calendar Login Register
+  fmwebschool.com
|-+  PHP Web Publishing Technologies
| |-+  FileMaker PHP, FX.php custom web publishing
| | |-+  $_SERVER['DOCUMENT_ROOT'] error
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: $_SERVER['DOCUMENT_ROOT'] error  (Read 4622 times)
jrough
Jr. Member
**
Offline Offline

Posts: 46


« on: October 10, 2009, 11:14:02 AM »

I'm using FX.php examples, the detail.php example has an error on the first line.  I have Apache 1.3 on a Mac.  Does that mean it doesn't define the $_SERVER['DOCUMENT_ROOT']
global?  I have the detail.php file in the document root defined by Filemaker Server Advanced (Library/WebSErver/Documents/detail.php).  Does that mean there are other global variables that aren't defined?  What is happening?  Is it Filemaker Server or Apache?
thanks very much,

Notice: Undefined index: ID in /Library/WebServer/Documents/detail.php on line 5
Logged
jrough
Jr. Member
**
Offline Offline

Posts: 46


« Reply #1 on: October 10, 2009, 11:24:04 AM »

I think something else is going on. I am getting another error.  It can't find the include file FX.php. 
Warning: include_once(localhost/Library/WebServer/Documents/FX/FX.php) [function.include-once]: failed to open stream: No such file or directory in /Library/WebServer/Documents/detail.php on line 6.  Can I repost?  I have FM Server configured for php.   Should the php pages go in localhost/~jr/Sites/  or in /localhost/Library/WebServer/Documents/  ?
thanks,
Logged
jrough
Jr. Member
**
Offline Offline

Posts: 46


« Reply #2 on: October 10, 2009, 11:31:08 AM »

I would like to know why the $_SERVER['DOCUMENT_ROOT'] variable is not defined if anyone knows.  I think I got the include files figured out.  Sorry
Logged
Michael Petrov
Chief Software Developer
Administrator
Hero Member
*****
Offline Offline

Posts: 4286
Kudos: 15522




Applications:
« Reply #3 on: October 12, 2009, 07:08:16 AM »

Document root is one of those variables that are sometimes defined and sometimes are not. It is rarely needed and you can usually just replace it with the name of the file you want to reference. It is definitely not FileMaker Server though, just Apache not properly configured.
Logged

Michael Petrov,
Chief Software Developer
FMWebschool
800.353.7950
michael@fmwebschool.com
Keep up with our development, follow me on Twitter
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!