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
1 Hour
1 Day
1 Week
1 Month
Forever
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
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
]
Author
Topic: $_SERVER['DOCUMENT_ROOT'] error (Read 4622 times)
jrough
Jr. Member
Offline
Posts: 46
$_SERVER['DOCUMENT_ROOT'] error
«
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
Posts: 46
Re: $_SERVER['DOCUMENT_ROOT'] error
«
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
Posts: 46
Re: $_SERVER['DOCUMENT_ROOT'] error
«
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
Posts: 4286
Kudos: 15522
Applications:
BlackBelt
(Guru)
FMTouch
(Guru)
Dolphin Cart Pro
(Guru)
FMStudio
(Guru)
USB Export
(Expert)
IPOST Web
(Expert)
Re: $_SERVER['DOCUMENT_ROOT'] error
«
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
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Discussion and Announcements
-----------------------------
=> FMWebschools updates and announcements
===> FMWebschool Training Schedule
=> Newsletter and Community Discussion
=> Webinar and FMWebschool Events
=> General Discussion
===> CDML Old School FileMaker Web Publishing
===> FileMaker Mobile 7/8
=> Holiday Special Product Support
-----------------------------
FMTouch
-----------------------------
=> FMTouch - FileMaker Databases on the iPhone and iPod iTouch
===> FMTouch - Multi Language Discussion
=> FMTouch BlackBerry and FileMaker
-----------------------------
FMStudio
-----------------------------
=> FMStudio
===> FMStudio Connection and Installation Problems
=> FMStudio Pro
-----------------------------
FMWebschool Products and Solutions
-----------------------------
=> Dolphin Shopping Cart System
=> BlackBelt CDML Software
-----------------------------
FileMaker Books
-----------------------------
=> FileMaker Book Questions and Suggestions
-----------------------------
PHP Web Publishing Technologies
-----------------------------
=> FileMaker's New PHP API
=> FileMaker PHP, FX.php custom web publishing
===> Ajax Code and Examples
-----------------------------
FileMaker Inc Products and Technologies
-----------------------------
=> FileMaker Server 9
===> FileMaker Server 7 / 8 Advanced
=> Web Viewer
=> Instant Web Publishing
=> FileMaker XML, XSLT
-----------------------------
Other Resources
-----------------------------
=> Search Engine Optimization and Consulting
===> Marketing Book Reviews
=> FileMaker Web Resources
=> Free JavaScript Code Snips
=> Free PHP Code Snips
=> Web Jobs, Web Consulting
Loading...