Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Just wanted to let you know that I registered today, and your site is fantastic. I found solutions to problems that I have been encountering for months!..."

Geography

Where in the world do Tek-Tips members come from?
tweenerz (Programmer)
5 May 08 11:19
Is it possible through filemaker, via plugin or otherwise, to get the source code of a web site? For those that know PHP, I am looking for the equivalent of the curl function in PHP.  Is there such a thing that would get a screen grab of a particular web site?  Not an image screen capture, but the actual code of the web page.

I am using Filemaker Pro 8.5
Helpful Member!  TStriker (Programmer)
5 May 08 14:44
tweenerz,

You can use this function:

GetLayoutObjectAttribute(objectName;attributeName{;repetitionNumber; portalRowNumber})

in conjunction with the webviewer object to return the contents of a webpage but I don't think it returns the actual source like CURL.  I think it only captures what is displayed on the web page.

Since you're a PHP guy there is a PHP plug-in called SmartPill PHP Edition made by Scodigo that places the power of PHP inside of Filemaker.  You might want to check it out as you should be able to use CURL itself then and many of the other PHP extensions.

-Striker

tweenerz (Programmer)
5 May 08 17:58
Thanks Striker

That helps a lot.  And also thanks for the tip on the SmartPill plug-in; can't believe I never heard of that before.

By using the fmp function, GetLayoutObjectAttribute, I now have to figure out an efficient way of using it since it takes a half to a full second for the page to load in the webviewer.  If I scroll through thousands of records, it will take forever to evaluate the web viewers one at a time.  And it doesnt appear that I can place the web viewer on a liting layout so they all get evaluated at once - I guess that makes sense as it would be a lot of simultaneous requests.  It'd be like having a browser open with 1000's of tabs.

So not sure if there is an answer or not.  Maybe the PHP plug-in would be a better option.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close