[FX.php List] Globals and FileMaker 7
Michael Layne
fx at 9degrees.com
Mon Jan 3 13:57:56 MST 2005
I'm have a similar problem, but I need to modify globals for the entire
solution. The only way I can successfully edit globals and have my
changes show up is to open the database locally with FMP, change the
globals, and reopen the files in Server. I wish this was different!
As for PHP sessions...
first, have this at the very beginning of every page:
<?
session_start();
header("Cache-control: private"); //IE 6 Fix
...
then simply assign variables like this:
$_SESSION['id'] = $data['id'][0];
// this is from your $result of an FMFind(), FMNew(), etc...
$result = $query->FMFind();
$data = current($result['data']);
then call your variable whenever you need to:
$myid = $_SESSION['id'];
This is all using FM7SA, Apache 1.3, PHP 4.3, and lovely Mac OS X 10.3.
Hope this helps.
Michael Layne : 9 degrees development : www.9degrees.com :
404.226.7835
On Jan 3, 2005, at 3:46 PM, Stephen Knight 1-800-353-7950 wrote:
> Wesley Miller has asked that I post this to the list:
>
> **I have a working fx.php/FileMaker 7 solutions which is connected and
> queries correctly. I have been able to edit a few fields in the
> database,
> but have been unable to edit a global field.
>
> Is there a way to edit a global field with FX.php?**
>
> I realize that you should store a global value as a PHP session, does
> anyone
> have an example of this?
>
> In Kindness
> Stephen K. Knight
> www.fmwebschool.com
> 1-800-353-7950
> Professional FileMaker Web Services
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1808 bytes
Desc: not available
Url : http://www.iviking.org/pipermail/fx.php_list/attachments/20050103/51f1f288/attachment.bin
More information about the FX.php_List
mailing list