Re: [PHP] Non required argument

2012-01-06 Thread Donovan Brooke
function list_formvars($pmatch="value") {... } thanks to Tolga. Donovan -- D Brooke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Non required argument

2012-01-06 Thread Simon J Welsh
On 7/01/2012, at 2:13 PM, Donovan Brooke wrote: > Hello, > > I have a simple function that contains an argument that is not required, ie: > > function list_formvars($pmatch) {... > > > However, if I call the function without the argument, I get a warning (I'm > having the app show all warning

[PHP] Non required argument

2012-01-06 Thread Donovan Brooke
Hello, I have a simple function that contains an argument that is not required, ie: function list_formvars($pmatch) {... However, if I call the function without the argument, I get a warning (I'm having the app show all warnings for development): "Warning: Missing argument 1 for list_formva

Re: [PHP] passing variables to php script

2012-01-06 Thread Ashley Sheridan
On Fri, 2012-01-06 at 11:53 -0600, David Savage wrote: > OK...I admit I'm new at thisI have this html file: > > > Generate pdf file of LD, Toll Free, and Directory Assistance > calls > > > Account Number: > Year (4 digit): > Month (2 digit): > > > > > > to which I would input

Re: [PHP] How to find where class is used?

2012-01-06 Thread Dotan Cohen
On Fri, Jan 6, 2012 at 15:05, richard gray wrote: > Can you not put a debug_print_backtrace() in the class constructor? > Thanks, that might have worked. In the end, I found it by grepping for VisitorMessaging instead of vB_ProfileBlock_VisitorMessaging. It turns out that there is an array of th

Re: [PHP] PDF Printing instead?

2012-01-06 Thread Robert Williams
On 1/5/12 14:40, "Paul M Foster" wrote: >The fpdf and/or tcpdf libraries are the standard answers to this. Depending on requirements, another good option may be Pdftk. Where TCPDF is focused on document creation, Pdftk is focused on document manipulation, and because it's a compiled binary that

[PHP] passing variables to php script

2012-01-06 Thread David Savage
OK...I admit I'm new at thisI have this html file: Generate pdf file of LD, Toll Free, and Directory Assistance calls Account Number: Year (4 digit): Month (2 digit): to which I would input an account number, 4 digit year, then 2 digit month. Then click Submit. What I see in t

RES: [PHP] Printing

2012-01-06 Thread Alejandro Michelin Salomon
Jim: The TCPDF software library does not need php pdf functions. Is 100% php code. To use only put a require_once '/tcpdf/tcpdf.php'; lik this. Create a new instance: $pdf = new TCPDF( 'P', 'mm', 'A4', true, 'UTF-8', false); And call the methods. The library has a folder with a lot of examples.

Re: [PHP] How to find where class is used?

2012-01-06 Thread Nilesh Govindarajan
On Fri, Jan 6, 2012 at 6:35 PM, richard gray wrote: > On 06/01/2012 12:11, Dotan Cohen wrote: >> >> In a large application that I am tasked with maintaining (vBulletin) >> there is a particular class that is used: >> vB_ProfileBlock_VisitorMessaging. I know the file that it is defined >> in, but I

Re: [PHP] How to find where class is used?

2012-01-06 Thread richard gray
On 06/01/2012 12:11, Dotan Cohen wrote: In a large application that I am tasked with maintaining (vBulletin) there is a particular class that is used: vB_ProfileBlock_VisitorMessaging. I know the file that it is defined in, but I cannot find the file that actually creates a vB_ProfileBlock_Visito

Re: [PHP] How to find where class is used?

2012-01-06 Thread Nilesh Govindarajan
On Fri, Jan 6, 2012 at 5:08 PM, Curtis Maurand wrote: > > it will be somewhere in php's search path.  you'd be better off trying > search for a file of the same name. > > cd /usr/lib/php5 > find . -iname "vB_ProfileBlock*" > > if you have locate installed, try: "locate vB_ProfileBlock" > This wor

Re: [PHP] How to find where class is used?

2012-01-06 Thread Curtis Maurand
it will be somewhere in php's search path. you'd be better off trying search for a file of the same name. cd /usr/lib/php5 find . -iname "vB_ProfileBlock*" if you have locate installed, try: "locate vB_ProfileBlock" Cheers, Curtis On 1/6/2012 6:11 AM, Dotan Cohen wrote: In a large applica

[PHP] How to find where class is used?

2012-01-06 Thread Dotan Cohen
In a large application that I am tasked with maintaining (vBulletin) there is a particular class that is used: vB_ProfileBlock_VisitorMessaging. I know the file that it is defined in, but I cannot find the file that actually creates a vB_ProfileBlock_VisitorMessaging object. I tried the brute-force