[fx.php_list] Re: A PHP question

  • From: Joel Shapiro <info@xxxxxxxxx>
  • To: fx.php_list@xxxxxxxxxxxxx
  • Date: Wed, 24 May 2017 12:57:49 -0700

Hi Bob

Are you concerned that he would be able to access the DB directly in FMPro, or 
that he’d make his own PHP (or XML) pages to access the data?

If it’s the former, then if the Privilege Set of that account is set to only 
have “(fmphp)” extended privileges — and not “(fmapp)” — then he would not be 
able to open the DB in FMP.

-Joel



On May 24, 2017, at 12:30 PM, Bob Patin <bob@xxxxxxxxx> wrote:

It just occurred to me that he could do the same thing and retrieve the 
password.

SO…

I’m triggering a shell script, and I don’t want the client to see the server 
root password.

How could I hide the password so that this page can use it, yet the client 
(who has access to the calling page) cannot?

Probably not doable.

B


Bob Patin
Longterm Solutions
bob@xxxxxxxxxxxxxxxxxxxxx <mailto:bob@xxxxxxxxxxxxxxxxxxxxx>
615-333-6858
FileMaker 9, 10, 11, 12 & 13 Certified Developer
http://www.longtermsolutions.com ;<http://www.longtermsolutions.com/>
-
iChat: bobpatin@xxxxxx <mailto:bobpatin@xxxxxx>
Twitter: bobpatin

FileMaker Consulting 
FileMaker Hosting for all versions of FileMaker
PHP • Full email services • Free DNS hosting • Colocation • Consulting

On May 24, 2017, at 2:28 PM, Bob Patin <bob@xxxxxxxxx 
<mailto:bob@xxxxxxxxx>> wrote:

OK guys, have a (probably) simple question:

I have a PHP page that needs to use a password; the issue is that my client 
can see these PHP pages, and this isn’t a password I want him to see.

So I thought that I could put a page in my website (which he doesn’t have 
any access to), and then INCLUDE or REQUIRE it in his page.

First question:

When I use my website’s entire URL (http://www.longtermsolutions.com ;
<http://www.longtermsolutions.com/> plus the location of the file) in an 
include, like this

include_once('http://www.longtermsolutions.com/thefolder/thefile ;
<http://www.longtermsolutions.com/thefolder/thefile>.php');

I don’t get anything back.

Is it even legal to use a URL? If I try using a header

header('Location: http://www.longtermsolutions.com/thefolder/thefile ;
<http://www.longtermsolutions.com/thefolder/thefile>.php');

I’m also not getting back what I expect.

How would I do what I’m trying to do?

Thanks,

Bob Patin
Longterm Solutions
bob@xxxxxxxxxxxxxxxxxxxxx <mailto:bob@xxxxxxxxxxxxxxxxxxxxx>
615-333-6858
FileMaker 9, 10, 11, 12 & 13 Certified Developer
http://www.longtermsolutions.com ;<http://www.longtermsolutions.com/>
-
iChat: bobpatin@xxxxxx <mailto:bobpatin@xxxxxx>
Twitter: bobpatin

FileMaker Consulting 
FileMaker Hosting for all versions of FileMaker
PHP • Full email services • Free DNS hosting • Colocation • Consulting



Other related posts: