php-general Digest 3 Sep 2006 11:12:49 -0000 Issue 4327
Topics (messages 241332 through 241335):
Re: local php.ini not recognized in php 5.1.x?
241332 by: Robert Cummings
Re: Working with an existing PDF doc
241333 by: Silent1
php credit reporting API
241334 by: Dan Harrington
Re: Functions vs html outpuit
241335 by: Ivo F.A.C. Fokkema
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
On Sat, 2006-09-02 at 22:13 +0200, Marten Lehmann wrote:
> Hello,
>
> we switched from php 5.0.6 to 5.1.6. php is running as CGI. We have a global
> php.ini in the /lib directory of the php installation with settings that are
> valid for all users.
>
> In php 5.0.6 (and previous php releases) additionally the local php.ini in the
> directory of the executed php-script has been parsed so users could overwrite
> options like register_globals. But now in php 5.1.6 this local php.ini doesn't
> seem to be recognized at all, not any option in it is evaluated.
>
> Is there anything that changed from php 5.0.x to 5.1.x regarding the handling
> of php.ini's? I don't have any idea what went wrong because I compiled php
> 5.1.6 with the same options as php 5.0.6.
I know there was discussion and a patch submitted for allowing version
specific php.ini files for PHP5. I don't know if that's what got you,
but I'd check the bug list and if you don't find a match, perhaps submit
a bug report.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
--- End Message ---
--- Begin Message ---
I believe the id or name of the html elements must match the name of
each field in the pdf. On monday, at work, i'll go over my code to see
for sure. But i'm sure the name of each html element matches the field
in the html form. The names of the fields in the pdf can be anything
you like, i used this format {$fieldname} but can be anything.
On 9/2/06, tedd <[EMAIL PROTECTED]> wrote:
Silent1:
I know how to create a pdf document from a html form, see:
http://xn--ovg.com/pdf
The only part I don't have here is how to set-up a pdf with the
correctly stated fields -- what form do the fields take [name],
[EMAIL PROTECTED], ???
For example, the link you gave me provides a pdf with awaiting
fields, a html form that contains those fields, and php code to
insert those fields into the pdf, but not a description of what those
fields must be inside the pdf document for the code to find and
replace them.
Please send your example, that may help.
Thanks very much for your help.
tedd
>Sorry, i was at work but the example i followed is located here.
>http://www.accesspdf.com/article.php/20050510131850979
>
>Once you have pdftk compiled/setup this script in the example will
>pass the post/get data to the pdf to each field you setup in the pdf.
>If need be, i can send you the php i've created based on the example
>above. BTW if you're not familiar with pdf's, as i wasn't, you
>basically setup in the pdf fields (just like html forms) with names
>that you pass data to. You will also need adobe acrobat pro to be able
>to edit the pdf's. Hope this helps.
>
>
>On 9/1/06, tedd <[EMAIL PROTECTED]> wrote:
>>Silent1:
>>
>>That sounds like what I need, but from what I've read (no offense),
>>it's not possible.
>>
>>Do you have an example?
>>
>>tedd
>>
>>
>>>I actually just finished messing around with something like this.
>>>Basically the task was to have a form where users would input stuff
>>>and that needs to be autofilled into a pdf (already created). I used
>>>pdftk (http://www.accesspdf.com/pdftk/) and a php script called
>>>(forge_fdf http://www.pdfhacks.com/forge_fdf/) which would dump the
>>>data to the pdf.
>>>
>>>I took the pdf i was given and I added fields to the original pdf that
>>>would get filled in from the form. pdftk allows to to completly
>>>control the pdf, add passwords (user and owner) and restrict the pdf
>>>(edit,print,view) and encrypt it and even flatten the fields.
>>>
>>>
>>>On 8/31/06, tedd <[EMAIL PROTECTED]> wrote:
>>>>Hi gang:
>>>>
>>>>I can create a pdf document "on-the-fly" pretty easily, as shown here:
>>>>
>>>>http://xn--ovg.com/pdf
>>>>
>>>>However, what I need is to find out how to open an existing pdf
>>>>document and insert data into it -- does anyone have any experience
>>>>in doing this, or references they can point me to?
>>>>
>>>>As always, mondo thanks for those who reply.
>>>>
>>>>tedd
>>>>--
>>>>-------
>>>>http://sperling.com http://ancientstones.com http://earthstones.com
>>>>
>>>>--
>>>>PHP General Mailing List (http://www.php.net/)
>>>>To unsubscribe, visit: http://www.php.net/unsub.php
>>>>
>>>
>>>--
>>>PHP General Mailing List (http://www.php.net/)
>>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>--
>>-------
>>http://sperling.com http://ancientstones.com http://earthstones.com
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
Hello,
Anyone successfully implemented an online real-time credit reporting
scenario for consumer lending? We need to pull credit in the united states
for consumers before lending them money for school and I would like to use
PHP to connect to a credit vendor. I have been surprised at how little I
can find on google and all the major vendors (equifax, trans union,
experian) only talk in generalities on their website and seem to be geared
only for desktop software solutions.
I need to pull a score and based on that, provide a decision and offer. Has
anyone got this working, and would you recommend a vendor?
Thanks
Dan
--- End Message ---
--- Begin Message ---
On Fri, 01 Sep 2006 16:44:19 +0200, M. Sokolewicz wrote:
> Dave Goodchild wrote:
>> Hi all, this may seem like a silly question, but I am creating a library of
>> html form element generation function, for example a textarea fucntion that
>> takes rows and cols as parameters, a function that generates a day, month
>> and year select box, etc. My question is - is it significantly to switch
>> off
>> the parser and emit raw html than calling a function? If it is faster to
>> just allow the server to send the html I will not bother.
>>
>
> I'm not quite sure I understand your question. Are you asking if it's
> faster to parse and process a php script vs. a page of raw HTML?
>
> In that case, OF COURSE SERVING A RAW HTML FILE IS FASTER!!!
> Does the server have to do *anything* with the contents of the HMTL file? no
> Does the server have to do *anything* with the contents of the PHP file?
> yes! of course! it needs to parse and process it BEFORE it can actually
> server the RESULT of that script.
>
> So, if possible, stick to raw HTML files.
> - tul
That said, if you feel that it saves you a lot of development time (like
me) to use such functions, and you're writing a basic app that will not
likely attract lots of hits, then go for it.
I use a viewForm() function, that takes an array as a argument describing
the required form, for all of my projects. Surely it's faster for the
server if you just write the HTML, but this is much easier for me to
create, edit and re-use in other projects...
Just my 2 cts.
Ivo
--- End Message ---