Hi
Wrox -- thanks for providing this online resource.
I tried using the HiddenFrameGetExample as explained in chapter 2, "Ajax Basics."
I've installed Apache HTTP server, PHP, and MySql. I created the Customers table and populated it with data shown in the book. Apache and MySql are both running.
I enter
1 in the field and click the button, but no data gets displayed on the html page. My Apache error log shows the following:
Code:
[Thu Nov 26 19:31:56 2009] [error] [client 127.0.0.1] PHP Parse error: parse error in D:\\D_ProgramFiles\\Apache\\http_server_2.2\\htdocs\\GetCustomerData.php on line 12, referer: http://localhost/HiddenFrameGetExample.htm
Line 12 contains the following:
Code:
if (is_numeric($sID) {
As part of debugging, I modified the frameset definition so the hidden frame is visible. The "hidden" frame displays the HTTP 500 error "The page cannot be displayed."
I've tested my Apache installation with a simple
"hello world" PHP script, which works so Apache is aware of PHP.
My php.ini file includes the following:
Code:
extension_dir="D:\D_ProgramFiles\php\ext"
[PHP_MYSQL]
extension=php_mysql.dll
My path env variable starts with the following:
Code:
D:\D_ProgramFiles\php\;
Does anyone have any ideas how to go about resolving this issue?
Thanks,
Steve