Allan Topp wrote:
[color=blue]
> I know little to nothing about PHP and need to clarify something before
> committing to learning it.
>
> From what I have heard PHP would be ideal to interrogate a database and
> populate HTML tables with found data (text AND URL's).
>
> However, what I want to do is to have the files on a CD rather than a web
> site.
>
> One colleague assures me that having PHP run on my machine is not a problem.
> Another says absolutely not, PHP is server based.
>
> So, my question is can PHP be run locally to access data and web pages on a
> CD? And a follow up is, can PHP (also?) be installed ON the CD and be able
> to run on any PC that had a compatible browser?[/color]
OK, I have yet to delve into the stand alone application possibilities
of PHP. However, you may want to look into the roadsend compiler
(
http://www.roadsend.com/) and PHP-GTK (
http://gtk.php.net/). I would
assume that there will be some idiosyncrasies for each compared to what
you'd experience for web scripting.
Depending on where the database is, what type it is, etc., you may also
encounter other issues with connecting to the database on the client
machine (for instance, their computer doesn't have the correct ODBC
drivers, is behind a strict firewall, etc.).
If you're a quick study with programming languages like C/C++, Java,
Real Basic or Visual Basic, maybe something like that would better suit
your needs.
On the other hand, if you simply want the resulting HTML pages on CD
(IOW the data would NOT be updated realtime through the app), then you
can simply have PHP write out the HTML pages for you to burn to disk.
--
Justin Koivisto -
spam@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.