Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • 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!

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

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Get a web page's source code?

Get a web page's source code?

Get a web page's source code?

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

RE: Get a web page's source code?


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.


RE: Get a web page's source code?

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

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! Already a Member? Login

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