I can't find anything like this in FPDF 1.53 or in the documentation for
version 1.60. I'd be interested if you can pinpoint it.
Paul
Sorry, you need to load a class extension, see the website below:
http://www.fpdf.de/downloads/addons/36/
notification.
HTH
Dan
=button name=send value=send
onClick=javascript:myScript()
HTH,
Dan
display the
information after the php script stops executing.
I am outputting this after every echo:
echo str_pad( , 4096 ) . \n;
flush();
ob_flush();
ob_implicit_flush();
Has anyone else had this issue? Anyone know how to fix it?
--
-Dan Joseph
at all even up to 144096 on the pad, but no dice.
Ajax unfortunately isn't an option in this particular case.
--
-Dan Joseph
www.canishosting.com - Plans start @ $1.99/month.
On Fri, May 1, 2009 at 10:40 AM, Robert Cummings rob...@interjinn.comwrote:
On Fri, 2009-05-01 at 10:34 -0400, Dan Joseph wrote:
Ajax unfortunately isn't an option in this particular case.
Why? Maybe you're thinking about it wrong.
Maybe, I'm open to suggestions:
Here's the basic way
. This
can then be queued for consumption by an AJAX script.
Ah ok, I've never used either of those before. I am going to give that a
shot and will let you know how it goes. I should be able to bolt that on
quickly. Thanks!
--
-Dan Joseph
www.canishosting.com - Plans start @ $1.99/month.
,
Dan
doesn't contain anything.
Am I going crazy or am I doing something wrong?
Thanks,
Dan
reason $stat_1 doesn't contain anything.
Am I going crazy or am I doing something wrong?
Thanks,
Dan
Please disregard...the brain freeze went away and i spotted the problem.
The array value name had a [ in it.
So when referencing it to assignmy variable I wasn't including the
additional
. Any ideas?
--
Dan Field d...@llgc.org.uk Ffôn/Tel. +44 1970 632
582
Peiriannydd Meddalwedd Senior Software Engineer
Llyfrgell Genedlaethol Cymru National Library of Wales
On 11 Mar 2009, at 11:42, Dan Field wrote:
As far as I was aware, member variable and object names had to start
with a non integer chracter, however I am utilising a JSON lib which
is providing me with the following resultset. As you can see a
member class member is numerically named
I'm trying to use the AdminID that returns from query #1 in the WHERE
AdminID = AdminID from Query 1
Okay, I think I understand what you are trying to do.
//query 1
$query1 = SELECT UserName, AdminID FROM admin
WHERE Retail1 = 'YES';
$result1 = mysql_query ($query1) ;
while ($row1
Hello all,
Can someone point me in the right direction?
I'm trying to call an EXE from PHP and pass it two variables.
I looked at the exec() command and I see that this can call the executable,
but I don't see that it can pass the variables to it.
Dan
Use the system() command, and enclose both your command and its
parameters in a pair of single quotes, as:
system('mycmd -a alfa -b bravo');
Paul
--
Paul M. Foster
Using both exec() and system() I am getting the error: Unable to fork
MAYBE a little closer to a solution!
//VB for Reference
Private Declare Function DTM_CONVDMSToMultiTIFF Lib D32_CONV.DLL _
(ByVal FullPathFrom As String, ByVal FullPathTo As String) As
Integer
Public Function hello(ByVal name As String) As String
hello = Hello name World!
End
Alrighty, so I went a different route...
I created my own ActiveX DLL...one that I know I can register.
Starting out really simple:
//My VB code
Public Function hello() As String
hello = Hello World!
End Function
//My PHP code
?php
function Hello() {
$new_com = new COM(DMStoTIFF.conv);
It doesn't appear that your function accepts a parameter. What does
this do:
//VB
Public Function hello(ByVal name As String) As String
hello = Hello name !
End Function
//PHP
echo $new_com-hello(Dan);
--
Thanks!
-Shawn
http://www.spidean.com
Shawn I tried what you
Just guessing as I haven't used the PHP COM stuff, but what do you get
if you change ByVal to ByRef?
--
Thanks!
-Shawn
http://www.spidean.com
Ooops! My fault! I created a new dll so I could keep the currently working
one and forgot to register it..
Registered and it allowed the
Check out the com [www.php.net/com] functionality
Bastien
Alrighty, I'm trying to use the COM function, but not getting much of
anywhere.
This is what I have:
?php
// The VB function for reference
/*function DTM_CONVDMSToMultiTIFF Lib D32_CONV.DLL _
(ByVal FullPathFrom As String, ByVal
I can't help much, but this might get you started.
1) Does the DLL you are trying to use actually supports COM. I know some
don't.
2) I'm pretty sure that the string you pass to new COM('...') should
be the name the class as registered with Windows, not the actual file
name. They are
I believe you do have to register it with regsvr32 for it to be visible.
I think the GUID that Todd mentioned might even work, but I've only
ever used the ProgID. If you don't know the ProgID that is registered,
you should be able to find it in the Windows registry after you've
registed it
H, maybe it's not a problem with the DLL I'm trying to access because
just doing a simple:
$my_com = new COM(Excel.Application);
Gives me the same error:
*Fatal error*: Uncaught exception 'com_exception' with message 'Failed to
create COM object `Excel.Application': Invalid syntax '
I've
to the DLL. I've
looked into W32api, but not sure if that's even what I need.
Any ideas?
Thanks,
Dan
, you could just do a DELETE FROM
my_table where course/tutor id = x
But I would recreate an index on the table after deletion of records to keep
the speed crisp.
Dan
tutor_table.tutor_id = course_table.tutor_id
AND tutor_table.active_tutor = 'Y'
AND course_table.active_course = 'Y'
That will return the course title and tutor name for all active events
Hope that helps.
Dan
Hi gang,
I was wondering if there is way to find out what is the time that every
day ends? I am planning to add this to the first page on an interface I am
developing.
--
Thodoris
Doesn't every day end at 23:59:59? the next second would be 00:00:00...the
beginning of a new day! :)
So
On Tue, Jan 13, 2009 at 10:17 AM, Gary gwp...@ptd.net wrote:
I have successfully set up the testing server, now I would like to test it
out on the remote server, but put does not seem to be working. I saved
the
php document, click put, nothing seems to happen. I am connected to the
remote
at the end?
Or should I not even use an array?
Thanks,
Dan
On Tue, Jan 13, 2009 at 2:09 PM, Eric Butera eric.but...@gmail.com wrote:
Are you asking how to do
$holidays[] = date;
array_push($holidays, date); ?
If you were generating dates to compare against today tho, you could
just return upon a match at that point and not even store them. No
On Tue, Jan 13, 2009 at 2:14 PM, c...@l-i-e.com wrote:
Hard to say without knowing the data structures...
You can't do a simple count of the holidays and add that, because you might
end up with yet another holiday in the result.
Start at 12/23 and want to add 6 business days.
You find 1
Hi,
I have one form where user fills data using radio buttons. Only one answer
goes from here to another page.
FORM 1
form action=form2.php method=post
input type=radio name=myname value=Answer 5 id=1 /
label for=15/label
br /
input type=radio name=myname value=Answer 1 id=2 /
label
so would I be correct that the only advantage to
having a page with a php extension is that you can use a testing server?
There are FAR more benefits!
1) PHP is FREE! So you save money from the get go
2) PHP is open source! So it is constantly being updated and improved by
users/devs.
3)
mysqli_stmt_prepare($stmt, UPDATE database.table (
FName, LName, email, phone,
url, record,
subscribed, date,
IPAddress, Business,
Address1,
page you would simply check the posted value of you band
radio input:
$band_id = $_POST['band'];
Hope that helps.
Dan
but, I'm more concern does client has to pay the changes/upgrade or it's
still my obligation?
Of course you charge him. Christ if I was expected to maintain stuff
gratis that I wrote 7 years ago I'd be mullahed.
--
Richard Heyes
I agree with Richard.
I bought a car 7 years ago. I
Thanks for the aswers, but there is still some problems.
I tested this code(below) and it works but when I add it to the rest of my
code it stops working.
Here's the working code:
page1:
?php
$bandname = Someband;
?
form name=goto_info action=band_info.php method=post
input
On Wed, Jan 7, 2009 at 3:01 PM, Mika Jaaksi mika.jaa...@gmail.com wrote:
Thanks! I got it working...
Excellent, happy to help.
or sound I've ever heard in my entire life was as beautiful
as those few seconds. My heart literally feels so full that it could
burst at any moment.
Congrats, Dan! I'm right there with you! My wife is 7 months preggo right
now! Wait until you get to feel the kicks every day and see little hands
conditions and exceptions, in order to avoid the
segfault, and at least finish the execution of a script even if the
connection is dropped.
I will let everyone know if I discover the source of the issue.
Nathan Nobbe wrote:
On Tue, Dec 23, 2008 at 5:30 PM, Dan Osipov dosi...@phillyburbs.com wrote
on this particular machine.
I've recompiled PHP 5.2.8 from source, upgraded all packages, recompiled
libc-client2002edebian, etc. I'm at loss at what I can do to debug this
issue further. Can someone recommend what I should check?
Dan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
?
I found this:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502996
But the patch didn't work. The library is required by php5-imap (which
is a standalone package).
Thanks!
Dan
Nathan Nobbe wrote:
On Tue, Dec 23, 2008 at 12:34 PM, Dan Osipov dosi...@phillyburbs.comwrote:
Hello,
I have
, it segfaults.
Otherwise it continues to run successfully. But why does it drop the
connection?
Thanks a lot for your help!!
Dan
Nathan Nobbe wrote:
On Tue, Dec 23, 2008 at 1:42 PM, Dan Osipov dosi...@phillyburbs.com wrote:
Everything matches. The only thing that's different is that the server
?php
// Good to go
if (0 == $totalRows_rsSearch) {
echo h3Sorry no products were found/h3;
} else {
echo h3Please click on a product for further information./h3;
while ($row_rsSearch = mysql_fetch_assoc($rsSearch)){
echo div class=\productitem\img src=\products.
Hi, I seem to have a bug in my code but can't see why. My first record
does
not display when I run a search. Can anyone spot what I have done wrong?
Thanks
if (0 == $totalRows_rsSearch) {
echo h3Sorry no products were found/h3;
} else {
echo h3Please click on a product for further
[Enabled] = True
)
[Count] = 1
)
When I try and access $x-Package-PackageID I don't get 804, I get:
SimpleXMLElement Object
(
[0] = 804
)
Could someone tell me how I just get the value 804 out of there?
--
-Dan Joseph
www.canishosting.com
On Thu, Dec 18, 2008 at 10:01 PM, German Geek geek...@gmail.com wrote:
$val = (string) $x-Package-PackageID;
or
$val = (int) $x-Package-PackageID;
Ha... I would have never figured that out... Thank you to you both! That
did the trick.
--
-Dan Joseph
www.canishosting.com - Plans start
functions in the manual (
http://us2.php.net/manual/en/ref.printer.php) but this does not seem to be
the right thing to use to print documents that already exist.
Thanks,
Dan
Do you want to print this on your office printer or on the website users
printer?
If you are looking for away to print it on their printer, why not just grab
all the files that need to be printed, make a PDF of it, and then use the
browsers print feature?
--
Jason Pruim
Does it save them to a folder on the server? Or does it save them on the
client?
If it is on the server then the server would have to send the docs to a
printer queue.
If it is on the client PHP cannot really do anything about. PHP cannot
force the client to print but it could send the
You can't, the best you can do is send the PDF down and let the user
choose to do with it what they will
--
Bastien
So you think I should try and look into a way to have FPDF append each
document to the already created document, and once all pages have been added
to the PDF force it
I did something similar, but it was some work I did for a company and the
application was an internal application that used PHP and a Java applet to
send the file to a workers local printer since it cant be accomplished by
PHP itself.
On Wed, Dec 17, 2008 at 3:30 PM, Dan Shirah mrsqua
ideas to accomplish a
selective multiple document print for documents that don't initially exist?
Thanks,
Dan
On Tue, Dec 16, 2008 at 2:32 PM, c...@l-i-e.com wrote:
Just generate a much larger PDF with all the pages they asked for and call
it done.
:-)
I don't think I can do it that way unfortunately.
They will be printing 100-300 records in bulk...the amount of time it would
take to generate one
/unsub.php
Yep, what bug are you running into? Remember you have session_start() on
the next page for it to be there.
--
-Dan Joseph
www.canishosting.com - Plans start @ $1.99/month.
Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm
Sorry for top posting, that's how my email client sets up the reply...
Anyway, I don't know what CLI is? I see the error on the web. As for
a DSN, I didn't think I need one connecting this way. That is why the
uname, password, database is supplied, no? This should be a dsn-less
Try something like this:
$dbhost=SERVER\\INSTANCE_NAME,PORT;
$dbuser=USERNAME;
$dbpass=PASSWORD;
$db_connect=mssql_connect($dbhost,$dbuser,$dbpass) or die ('Server
connection failed');
$mssql_database = mssql_select_db(DATABASE, $db_connect) or die ('DB
selection failed');
Is INTRA_SQL your instance name or database name? If it is the instance
name, is that instance setup to use 1433 as the port? I know 1433 is
the
default port for MSSQL, but the majority of people change that.
Correct - intra_sql is the instance, yes, it's using default port 1433
(which
successfully created a PHP-based
system to connect to a bank's server and download OFX data and consume it.
I'm looking to find a way to help reconcile our bank accounts with multiple
sources of transactions that can come in and confuse things.
Thanks
Dan
Can't seem to connect with MSSQL_CONNECT. The function IS available. I'm
in a Windows environment, connecting to a SQL 2000 instance. My code:
mssql_connect('INTRA_SQL,1433', 'uname', 'password');
mssql_select_db('database');
I've tried leaving the port out, tried using server IP address,
a
cookie.
--
-Dan Joseph
www.canishosting.com - Plans start @ $1.99/month.
Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life.
On Mon, Nov 24, 2008 at 3:05 PM, [EMAIL PROTECTED] [EMAIL PROTECTED]wrote:
On Nov 24, 2008, at 3:00 PM, Daniel P. Brown wrote:
On Mon, Nov 24, 2008 at 2:49 PM, Wolf [EMAIL PROTECTED] wrote:
Sure Dan, just pad your metrics with yet another post... :)
Much like you just did. ;-P
The Webkist engine afaik is licensed under the GPL, because of the use
of the code from the original KHTML. I'm not sure how this fits with M$
proprietary plan however...
Webkit is licensed under LGPL and BSD licenses.
You say that, have you heard the latest for IE9? They're already
(',',$_POST['BannerSize']);
Dan
repeatedly.
If this isn't your problem, and you're still having trouble, paste us the
code you're using (or a subset of it) and I'll have a look for you. :)
Dan
On Thu, Nov 13, 2008 at 7:52 AM, Yeti [EMAIL PROTECTED] wrote:
Some code would be quite helpful here. But your scenario should not
make
for later perusal and searching. And when I wanted to
go back a year ago and try to retrieve an old fax, it wouldn't be so hard.
:-)
Surely someone has done this, but I can't find itand I'm too busy and
cowardly to write it myself :-)
Thanks
Dan
--
PHP General Mailing List (http://www.php.net
of the last few that
actually do look at 'em. I stuck my web site in my sig when we opened for
business last spring for the same reason.
--
-Dan Joseph
www.canishosting.com - Plans start @ $1.99/month.
Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire
for 3 years :) I'm glad
someone finally realized it!
--
-Dan Joseph
www.canishosting.com - Plans start @ $1.99/month.
Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life.
English down here? We drop the 'U', but
they replace it with another 'O' in speech! It's aboot time yoo folks
spoke properly, Cummings! ;-P
Shouldn't that be proopley, eh?
--
-Dan Joseph
www.canishosting.com - Plans start @ $1.99/month.
Build a man a fire, and he will be warm
me an ifx_prepare fails message.
Can we not use the ifx_query, mssql_query, mysql_query functions to create
tables?
Can they only be used to select data?
Thanks in advance,
Dan
On 10/30/08, Daniel Brown [EMAIL PROTECTED] wrote:
On Thu, Oct 30, 2008 at 2:19 PM, Dan Shirah [EMAIL PROTECTED] wrote:
Is it possible for us to use PHP to create temp tables in our database?
[snip!]
But all that does is give me an ifx_prepare fails message.
(Forwarded to PHP-DB
if at
the top of each page:
if ( !isset( $_SESSION['blah'] )
{
header( Location: login.php );
}
You should read up on session tracking. That's really what you want. Once
the session is established, its really just a matter of Is it there? and
If not, what do I do?.
--
-Dan Joseph
TGIF?
Apparently my brain isn't working this Friday.
I'm trying to query my table to get the first 16 ID's. I then want
to assign the ID's to a variable and have them comma seperated.
// My query to select the first 16 rows
$get_charges2 = SELECT FIRST 16 * FROM history WHERE id = '$id;
//
from memory.
$var='';
while($row = mysql_fetch_array($charge_result2))
{
$var .= $row['id'] . ',';
}
cheers,
tedd
Thanks all!
It works and here is the code I used:
$get_charges2 = SELECT FIRST 16 * FROM history WHERE id = '$id;
$charge_result2 = ifx_query ($get_charges2,
template class to optionally automagically output the footer without
needing an explicit call on each page.
Never any issues this way? They always run without a hitch?
--
-Dan Joseph
www.canishosting.com - Plans start @ $1.99/month.
Build a man a fire, and he will be warm for the rest of the day
for the information!
--
-Dan Joseph
www.canishosting.com - Plans start @ $1.99/month.
Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life.
some stuff out of the database, and then the php script ends. Does
this also cause the deconstruct to execute?
--
-Dan Joseph
www.canishosting.com - Plans start @ $1.99/month.
Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest
to
execute the script? I tried CURL too, but it does not seem to be
working either.
http://get.live.com/toolbar/overview
If you run the file from command line (dos prompt), does it output anything?
--
-Dan Joseph
www.canishosting.com - Plans start @ $1.99/month.
Build a man a fire, and he
only ever used Joomla, and it was once...
--
-Dan Joseph
www.canishosting.com - Plans start @ $1.99/month.
Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life.
, and bring it back into 1
page (the content of 3 pages concatinated).
Is this doable in php? any other scripts? Thanks.
Check into curl, http://www.php.net/curl -- that should do what you want.
--
-Dan Joseph
www.canishosting.com - Plans start @ $1.99/month.
Build a man a fire, and he
On Mon, Oct 6, 2008 at 1:01 PM, Jason Pruim [EMAIL PROTECTED] wrote:
But... Which framework is better? :P
Oh my.. now we're gonna get all those guys popping back up telling us how
dumb we are and how awesome their frameworks are again!
--
-Dan Joseph
www.canishosting.com - Plans start
fix that query.
Although I'll admitt, I have no way to test that on mysql, but that is how
MS SQL works...
--
-Dan Joseph
www.canishosting.com - Plans start @ $1.99/month.
Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his
On Tue, Sep 30, 2008 at 2:12 PM, Daniel Brown [EMAIL PROTECTED] wrote:
I'd say that deserves a round of congratulations. Many - most,
Congratulations! May he grown strong and bring you honor!
--
-Dan Joseph
www.canishosting.com - Plans start @ $1.99/month.
Build a man a fire, and he
I thought that the json extensions where in =PHP5.2. Here's my example file
and the output. What's up? Do I need to install something else.
file:
?php
echo PHP version: , phpversion(), br/;
if (function_exists('json_encode'))
echo json_encode() exists;
else
echo json_encode() doesn't
. If you have demands from your
customer base to take their payment via one or the other, you should
probably just offer them both. Neither have a per month minimum, and there
is no obligation to keep it, so why not offer them both?
--
-Dan Joseph
www.canishosting.com - Plans start @ $1.99/month
On Fri, Sep 26, 2008 at 12:54 PM, Daniel Brown [EMAIL PROTECTED] wrote:
Yes, that's correct, Other Dan, that is something I do.
Same here. I have Visa/MC, Discover, Amex, PayPal, and Google Checkout.
I'll add Revolution Money Exchange when the demand tools are there.
Also
The json extension is included as default if the debug option is enabled, but
the json extension isn't included if the debug option is disabled. Bummer!
- Original Message
From: Nathan Nobbe [EMAIL PROTECTED]
To: Dan Zilavy [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Friday
With debug enable php -m shows json present and without debug json isn't. BTW,
I'm on FreeBSD 7.0 if that makes a difference.
- Original Message
From: mike [EMAIL PROTECTED]
To: Dan Zilavy [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Friday, September 26, 2008 12:12:47 PM
I rebuild again without debug and now it's working. Go figure! Thanks for the
help all.
- Original Message
From: mike [EMAIL PROTECTED]
To: Dan Zilavy [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Friday, September 26, 2008 12:12:47 PM
Subject: Re: [PHP] JSON in PHP5
Its pretty straight forward, you create a query that extracts the name
and id of the records with a relevant where clause created on the fly. When
outputing the data, each record gets created as a link that then loads
another page/div with the total dataset for that record. The question for
Hello all,
I'm looking for suggestions on how to create a search function within my
application. First I'll give you an overview.
At the top of my page I have a form that contains name and date fields.
When a user puts in some data and selects Search a simple column of
results will be displayed
Look... Spam the list, but PLEASE do NOT open up this thread again we
all let it rest 3 weeks ago.
--
-Dan Joseph
www.canishosting.com - Plans start @ $1.99/month.
Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his
.
Click on check in, page to check in comes up, does a session_start(), and
then you check for that $_SESSION variable to make sure its still them.
Check on each page for that session var, if its gone, put 'em back to the
log in page.
Make sense?
--
-Dan Joseph
www.canishosting.com - Plans start
, and utilize
session_set_save_handler(). Works well, and less overhead. Like you said,
you're under 1 second *NOW*. 1 second might actually even be a long time.
--
-Dan Joseph
www.canishosting.com - Plans start @ $1.99/month.
Build a man a fire, and he will be warm for the rest of the day.
Light a man
does your method of doing things w/o
sessions accomidate that? Does it use that information from the origin
POST? Also, is this secure? Any loop holes?
--
-Dan Joseph
www.canishosting.com - Plans start @ $1.99/month.
Build a man a fire, and he will be warm for the rest of the day.
Light
something with the ODBC driver, and updating the
ODBC driver isn't an option.
Anyone else having this problem? Any suggestions?
--
-Dan Joseph
www.canishosting.com - Plans start @ $1.99/month.
Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm
On 9/18/08, Dan Joseph [EMAIL PROTECTED] wrote:
Hi,
Anyone else using the odbc_* functions to interact with MS SQL Server 2005?
I'm having a problem getting odbc_num_rows() to return anything other than
-1 when querying a stored procedure. I can get it to work using Top in a
normal query
On Thu, Sep 18, 2008 at 3:36 PM, Dan Shirah [EMAIL PROTECTED] wrote:
If you already have your results in an array, try using count($result);
That should count the number of results returned to your result array.
Or you could try uncommenting the mssql extension in your php.ini file
, visit: http://www.php.net/unsub.php
I looked at PDO, and liked it, but it seems really buggy in the version of
php we're running. I had to stop using it. We're running 5.1.2.
--
-Dan Joseph
www.canishosting.com - Plans start @ $1.99/month.
Build a man a fire, and he will be warm for the rest
On Thu, Sep 18, 2008 at 5:35 PM, Micah Gersten [EMAIL PROTECTED] wrote:
You can't upgrade PHP?
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Dan Joseph wrote:
On Thu, Sep 18, 2008 at 4:35 PM, Micah Gersten [EMAIL PROTECTED]
wrote:
If you
101 - 200 of 2130 matches
Mail list logo