Jump to content

Afrite

Members
  • Posts

    5
  • Joined

  • Last visited

Afrite's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. I found out was was wrong with the download and why it wouldn't work. A.) I was storing a reference instead of the actual file(read the php doc from filemaker and they say it's a no no). B.) I was storing PDF's as an image for viewing in the database using a filemaker client and that is also unacceptable. So i fixed those 2 problems and I was able to use the modified bridge with Content-Disposition to force a download of a PDF.
  2. I've been making a website for the past few days and have recently run into a problem while trying to make files from a container field download with a specific name.ext. I've been using a modified version of the image bridge like I've seen others do that they say has worked. //the path is the standard urlencode(getfield) //typical database connection info here $dl = $fm->getContainerData($_GET('path')); header('Content-type: application/force-download; name="p.pdf"'); header("Content-Disposition: attachment; name="p.pdf"'); echo($dl); What I get is a download that has the name p.pdf but when it finishes downloading it is unable to be opened by anything. I've tried removing the content-disposition and it downloads a file with the same name as my php bridge and if i rename it it opens perfectly fine as a pdf. I'm really lost as to why it's doing what it's doing. If anyone has any input as to where to go from here I'd be very appreciative. Other Info I've seen where filemaker gives 3 options in the path URL: 1 data.jpg 2 data.gif 3 data.con in order to determine what is in the container. mine always come out to jpg.
  3. Hi everyone, I'm having a problem running scripts from php. One of many things may be happening but I'm not very familiar with the api. What I'm trying to do is run a script that will create a pdf and put it in a temporary location in my web directory. I know the script works perfect using the Filemaker Client but I am unable to call it from php. I've tried both ways below: $params = 2; $conn = new FileMaker(......); $test = $conn->newPerformScriptCommand('layout','some_Script',$params); $result=$test->execute(); /* $cmd = $fm->newFindAnyCommand('layout'); $cmd->setScript('some_Script',$params); $blah=$cmd->execute(); */ Unfortunately no matter how it's written it always comes up with the same error and won't run the script. I've tested this with a simple script as well that finds and changes the value of a known record field. nothing seems to work. It always comes to the error shown below. Notice: Only variable references should be returned by reference in /Library/FileMaker Server/Web Publishing/publishing-engine/php/lib/php/FileMaker/Command.php on line 126 If anyone has gotten scripts to work with php please let me know what i'm doing wrong. OS Mac OSX Filemaker 9 server Thanks in advance, Afrite
  4. I need to import a PDF into a Filemaker Database and have the users view the PDF at a later time. The problem is when the PDF's are more than 1 page, they import fine and when exported have multiple pages again but in the database I can't make it so that they can be viewed all at once. If anyone knows of a plugin that I have missed or an easier way of doing it I would appreciate the help.
  5. There is no error code generated when the user cancels a print, is there any way to detect it? FM version 5.5
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.