![]() |
#1 |
Junior Member
Join Date: Jul 2006
Posts: 16
|
![]()
include ('http://localhost/phpdatagrid.php');
include ('../phpdatagrid.php'); include ('localhost/phpdatagrid.php'); include ('/localhost/phpdatagrid.php'); I've moved the datagrid files that came with this to my WWW directory...then to my localhost directory.... File structure looks like this C:\Apache2\WWW\localhost This should be pretty easy but I'm getting very frustrated. |
![]() |
![]() |
![]() |
#2 |
Super Moderator
Join Date: Nov 2005
Posts: 84
|
![]()
Have you tried
PHP Code:
|
![]() |
![]() |
![]() |
#3 |
Administrator
Join Date: Nov 2005
Posts: 243
|
![]()
Maybe try:
PHP Code:
Also try Matthijs' suggestion. (P.S. I've moved your thread to the support forum)
__________________
Dennis Pallett |
![]() |
![]() |
![]() |
#4 |
Junior Member
Join Date: Jul 2006
Posts: 16
|
![]()
I've tried
include $_SERVER['DOCUMENT_ROOT'] . '/phpdatagrid.php'; I don't get an error when I run the page. It's just a balnk white page. When I remove the the $_DATAGRID->bind the html formats and the page shows what it's supposed to without the grid and data from samplephp.php. Since I'm new to php I'm assuming I've missed a .ini setting or something. GAAAAAAAAAAAAAAAAAAA!!!!!!!!!!!!!!!!!! |
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Jul 2006
Posts: 16
|
![]()
What I just said is not exactly true. I need to comment out both include statements and the bind statement for the html to format. The moment I uncomment an include statement and view the page, the page goes blank. I am using 1.php from the samples I received from the download. It's got to be something smple. My file structure is either not correct or I'm missing a setting somewhere.
Thanks. |
![]() |
![]() |
![]() |
#6 |
Junior Member
Join Date: Jul 2006
Posts: 16
|
![]()
Well, it seems this works
include $_SERVER['DOCUMENT_ROOT'] . 'phpdatagrid.php'; So now I have: include $_SERVER['DOCUMENT_ROOT'] . 'phpdatagrid.php'; // Include Sample data include $_SERVER['DOCUMENT_ROOT'] . 'sampledata.php'; // Bind data to datagrid $_DATAGRID->bind ('demo', $data); When the $_DATAGRID is commented, the subsequent HTML works, when I uncomment it, nothing happens...blank screen. sampledata.php and phpdatagrid.php are located in C:\Apache2\WWW\localhost The $data variable is referenced in sampledata.php as $data_one. I tried changing $data to $data_one but got the same results. I'm guessing now that something is wrong in the sampledata.php script or in the phpdatagrid.php script. It all seems like fairly simple code, but I'm missing something somewhere. Thanks. |
![]() |
![]() |
![]() |
#7 |
Junior Member
Join Date: Jul 2006
Posts: 16
|
![]()
Well...I started by downloading the latest version of PHP. This was nice. I was suddenly presented with errors when I tried to run instead of the dreaded blank white screen. It was, ultimately, my directory structure. My files weren't were they were supposed to be. The errors presented pointed right to it and viola!!!...changed the structure, gotta it to work and what a happy 4th I'm having now. (That sounds rather pitiful...instead of enjoying a beer and fireworks...I'm debugging code).
Thanks all! |
![]() |
![]() |
![]() |
#8 |
Administrator
Join Date: Nov 2005
Posts: 243
|
![]()
I'm glad you got it working!
![]() If there's anything else you need help with, just post another thread, and I will reply as fast as possible.
__________________
Dennis Pallett |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|