English > Scripts and Templates
PHP Script Development
rick.ca:
It still doesn't work. The behaviour is exactly the same as before. ???
mgpw4me@yahoo.com:
Simple test script:
<?php
phpinfo();
?>
Save this in a file (ie. test2.php) and run it. It should send many lines of php configuration information...indicating php is working properly.
I've added some print statements to send messages at important points in the transname script and re-upped it. Run it from a command prompt and let me know what messages come up.
If you still don't get any messages, then I'd have to assume that the php extension is not properly associated with the php.exe program. From a command prompt, go to the directory where you have php.exe installed and enter:
php.exe transname.php
rick.ca:
The test script produced the php config info, but still the same results from transname.php. I guess it's not even getting to the first echo statement. So is it failing to connect? Are you sure this "ibase" function (I have no idea what it is) is compatible with my Firebird Server installation? Also, I found it odd your demo database path started with "C:\\\", but I've used both that and "C:\" with the same result.
rick.ca:
Nice try. You realize, of course, I get the notification—even if you delete the post. Your debugging (batting?) skills are being tested. Tick-tock... ;D
mgpw4me@yahoo.com:
I can run firebird server at the same time as the script runs. The script uses the embedded dll (fbembed.dll). If you start PVD and then run the script, you'll see connection errors and the script will fail...or at least, that's what should happen.
I just uninstalled php on my machine, reinstalled, copied fbembed over and everything works.
The database path works on my system with c:\\\ and c:\. The \\\ ends up being \\ when the code is actually executed.
Some further testing...you have 2 choices.
1) add the PVD directory to your environment path variable ( control panel -> system -> Advanced system settings -> environment variables
2) copy the following dlls from the pvd directory to the php directory
- icudt30.dll
- icuin30.dll
- icuuc30.dll
Once the dlls are 'available', transname should work. Strange you wouldn't get errors from this...I did.
The reason things worked after my reinstall is that I used option #1 (add pvd to path variable)...which I'd actually recommend...it maintains compatibility with updates of PVD.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version