/pre;
?
But it just returns blank. Can anyone help me get ImageMagick working
on my server?
On Nov 20, 2008, at 4:41 PM, Stephen Johnson wrote:
No but you can use imagemagicks convert to convert the pdf to an
image and
then make a thumbnail of it.
--
Stephen Johnson
The Lone Coder
No but you can use imagemagicks convert to convert the pdf to an image and
then make a thumbnail of it.
On 11/20/08 4:39 PM, Brian Dunning [EMAIL PROTECTED] wrote:
Well can it?
--
Stephen Johnson
The Lone Coder
http://www.ouradoptionblog.com
*Join us on our adoption journey*
[EMAIL
PROTECTED] wrote:
Eric Butera wrote:
On Mon, Oct 6, 2008 at 7:28 PM, Stephen Johnson
[EMAIL PROTECTED] wrote:
OK .. I am upgrading to PHP5 on a clients box, and after doing so I have
run into the problem that files that get brought in by a require statement,
or include, end up just getting dumped
what you see here :
http://www.thumbnailresume.com/index.html?allow=1
Any one have any thoughts on what is going on?
--
Stephen Johnson c | eh
The Lone Coder
office: 562.366.4433
fax: 562.278.0133
http://www.thelonecoder.com
continuing the struggle against bad code
http
then gives me in PHP
0.00104167 = 1.25 / (12 * 100);
-2.170138889 = 25000 * ( 0.00104167 / (1 - (1 +
0.00104167) ^ -12)) ::
^ is the problem ...
The solution SHOULD be 2,097.47 ... Not 2.17
Would be willing to help correct this and make it valid in PHP?
--
Stephen
Right ... But that is producing even funkier results...
doing pow( (1-(1+$nMonthlyInterest)) , ($iMonths*-1) ) ;
Gives me :
4.2502451372964E-35 = 25000 * (0.00104167 / 6.1270975733019E+35);
--
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
continuing the struggle
Eric ... I LOVE YOU...
Thanks
--
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
continuing the struggle against bad code
http://www.fortheloveofgeeks.com
I¹m a geek and I¹m OK!
--
From: Eric Gorr [EMAIL PROTECTED]
Date: Fri, 19 Sep 2008 16:13:49 -0400
To: Stephen
It sounds like you simply need to number format the data to ensure that PHP
does not truncate
http://php.net/number_format
If excel, or whatever your using to view the csv file, is truncating then
you will need to properly format that cell.
--
Stephen Johnson c | eh
The Lone Coder
http
On 8/20/08 6:57 AM, tedd [EMAIL PROTECTED] wrote:
Seriously, I saw a new invention recently. The inventor made
underwear with three leg holes. The idea was to rotate the underwear
as needed.
What people won't invent.
Cheers,
tedd
--
That is disturbing.
--
Stephen Johnson
1057
--
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
continuing the struggle against bad code
http://www.fortheloveofgeeks.com
I¹m a geek and I¹m OK!
--
Thanks everyone ... It was a brain fart ...
Long bad day today, and I am not paying proper attention ... :)
--
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
continuing the struggle against bad code
http://www.fortheloveofgeeks.com
I¹m a geek and I¹m OK!
--
--
PHP
!
true-that ;)
anyway, the DateTime class is implemented as a 64-bit unsigned (i think)
value. so if you use it you should be good to go.
php echo date_create('2040-10-24')-format('M-d-Y');
Oct-24-2040
-nathan
--
Stephen Johnson
The Lone Coder
http://www.ouradoptionblog.com
*Join
I thought ASP was the language and .NET was the framework.
I was under this impression as well.. I always equated .NET to ASP the same
way I would ZEND to PHP...
--
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
continuing the struggle against bad code
http
This is AWESOME!... I am so saving this post for my next Review...
Couldn't have said it better Dan...
--
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
continuing the struggle against bad code
http://www.fortheloveofgeeks.com
I¹m a geek and I¹m OK!
--
From: Daniel Brown
Talk about a thread hijack... LOL
In my day we had to write basic going up hill in the snow... Both ways...
--
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
continuing the struggle against bad code
http://www.fortheloveofgeeks.com
I¹m a geek and I¹m OK!
--
From
) {
// go secure
header(location:https://www.domain.com$pageTo;);
exit;
}
?
--
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
continuing the struggle against bad code
http://www.fortheloveofgeeks.com
I¹m a geek and I¹m OK!
--
From: Wolf [EMAIL PROTECTED
on
standard ports, so I have never had any issues on that front.
--
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
continuing the struggle against bad code
http://www.fortheloveofgeeks.com
I¹m a geek and I¹m OK!
--
From: Wolf [EMAIL PROTECTED]
Date: Mon, 25 Feb 2008 14:26:12 -0500
mysql_insert_id() immediately after the query that generates the value.
--
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
continuing the struggle against bad code
http://www.thumbnailresume.com
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
to understand what the php.ini file is,
what it does, and how to change it if necessary and you should have this
knowledge before you begin writing code that would be used by anyone but
yourself.
--
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
continuing the struggle against
I want to achieve is something
like that. Is it possible how can I do that ?
Regards,
Feris
--
Stephen Johnson
The Lone Coder
http://www.ouradoptionblog.com
*Join us on our adoption journey*
[EMAIL PROTECTED]
http://www.thelonecoder.com
*Continuing the struggle against bad code
term (taken from
http://www.php.net/manual/en/funcref.php) to look for a particular fn
that you don't know the name of let alone which area it belongs in.
OK then how about a STFW answer...
Google : php exexcute windows commands
You can even hit the I'm feeling lucky button. ;)
--
Stephen
True randomization is only really possible in nature, so I am not sure you
ever be completely happy with programming random numbers... But it may help
you get better results if you include srand() in your randomization code.
--
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
LOL..
Guess I need to keep up with the change log a little better...
--
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
continuing the struggle against bad code
http://www.thumbnailresume.com
--
From: Nathan Nobbe [EMAIL PROTECTED]
Date: Mon, 10 Dec 2007 14:40:36 -0500
Wow... You clearly put a lot of thought into randomization... I am
impressed..LOL
Personally, most of my web applications do not have to factor 13.7 billion
years of space drift in to the calculations, so php's rand function has been
great for me... ;)
--
Stephen Johnson c | eh
The Lone Coder
this useful.
I would suggest for your reading enjoyment :
http://php.net/array
http://us.php.net/manual/en/reserved.variables.php // specifically the
section on $_POST
--
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
continuing the struggle against bad code
http
. Everyone else hates
you. It is not personal, it's just a fact.
--
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
continuing the struggle against bad code
http://www.thumbnailresume.com
--
From: Brenden Wilson [EMAIL PROTECTED]
Date: Mon, 3 Dec 2007 11:19:17 -0800
To: php
, and answering lazy questions breeds lazy
programmers, which in the end hurts us all.
Part of this job is learning how to learn, and so many times people just
want you to write the code for them.
--
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
continuing the struggle
that can cut down on unnecessary noise is friend not foe..
--
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
continuing the struggle against bad code
http://www.thumbnailresume.com
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
I wrote about this a long time ago ... In a galaxy far far away...
http://www.thelonecoder.com/Blog/?p=7
Be good lemmings and do as you're told...
--
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
continuing the struggle against bad code
http://www.thumbnailresume.com
Who says you can't please them all... ;)
--
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
continuing the struggle against bad code
http://www.thumbnailresume.com
--
From: Jay Blanchard [EMAIL PROTECTED]
Date: Tue, 20 Nov 2007 14:25:21 -0600
To: Stephen Johnson [EMAIL
that has the name's and points
I want to know how to list the name's of the first table by the points
of the second table
--
Stephen Johnson
The Lone Coder
http://www.myonlinepros.com
*How can we help you today?*
[EMAIL PROTECTED]
http://www.thelonecoder.com
*Continuing the struggle against bad
would appreciate any good references.
--
Stephen Johnson
The Lone Coder
http://www.thumbnailresume.com
*Network with your Resume, not just your card.*
[EMAIL PROTECTED]
http://www.thelonecoder.com
*Continuing the struggle against bad code*
--
--
PHP General Mailing List (http://www.php.net
(mysql_error());
is what you should be using.
For now.
Later, you'll want a better error handling method than or die()
And sending this to a MySQL user group, rather then a PHP group, might get a
better response too...
Just for future error reference.. ;)
?php
/*
Stephen Johnson c | eh
The Lone
What an odd question
Personally PHP makes much more sense to me then the many variations of
bridge...
?php
/*
Stephen Johnson c | eh
The Lone Coder
http://www.ouradoptionblog.com
Join our journey of adoption
http://www.thelonecoder.com
[EMAIL PROTECTED]
continuing the struggle against
and see
which ones need to be updated.
Hope this helps
--
Stephen Johnson
The Lone Coder
http://www.ouradoptionblog.com
*Join us on our adoption journey*
[EMAIL PROTECTED]
http://www.thelonecoder.com
*Continuing the struggle against bad code*
--
--
PHP General Mailing List (http
http://us2.php.net/ob_start
Hope this helps
?php
/*
Stephen Johnson c | eh
The Lone Coder
http://www.ouradoptionblog.com
Join our journey of adoption
http://www.thelonecoder.com
[EMAIL PROTECTED]
continuing the struggle against bad code
*/
?
From: Todd Cary [EMAIL PROTECTED]
Date: Thu
What type of field are you using? In these cases I have always passed the
data in an array and passed the post into an array variable which I could
then increment.
--
Stephen Johnson
The Lone Coder
http://www.ouradoptionblog.com
*Join us on our adoption journey*
[EMAIL PROTECTED]
http
talking about?
--
Stephen Johnson
The Lone Coder
http://www.ouradoptionblog.com
*Join us on our adoption journey*
[EMAIL PROTECTED]
http://www.thelonecoder.com
*Continuing the struggle against bad code*
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
.php.net/features.file-upload, I can't access the file with web
browser. I get error message as 403 Forbidden or You are not authorized
to view this page.
However, there is no such problem when i using FTP to upload files.
Please help,
Thanks a lot.
Ran
--
Stephen Johnson
The Lone Coder
Try this :
$sql = SELECT nameOfPedigree FROM tbpedigrees WHERE nameOfPedigree like
'%;
The % is a wildcard and will give you the results you want.
?php
/*
Stephen Johnson c | eh
The Lone Coder
http://www.ouradoptionblog.com
Join our journey of adoption
http://www.thelonecoder.com
[EMAIL
. There is a good reason for why it is shut off and good php does not
need to have it turned on.
Hope that helps .
?php
/*
Stephen Johnson c | eh
The Lone Coder
http://www.ouradoptionblog.com
Join our journey of adoption
http://www.thelonecoder.com
[EMAIL PROTECTED]
continuing the struggle against
请停止发送电子邮件到这个列表, 或我将被迫使解开一千头骆驼蚤入您的腋窝。
?php
/*
Stephen Johnson c | eh
The Lone Coder
http://www.ouradoptionblog.com
Join our journey of adoption
http://www.thelonecoder.com
[EMAIL PROTECTED]
continuing the struggle against bad code
*/
?
From: KOKO电子传单 [EMAIL PROTECTED]
Date: Fri, 14 Oct
the file name
is different. But if I do the former way(call editStaff.html as a form
action), it doesn't work. It calls some files but looks horrible.
So the advice of the guy was wrong, or did I do something wrong?
Thanks,
--
Stephen Johnson
The Lone Coder
http://www.ouradoptionblog.com
*Join
On 9/12/05 12:39 PM, Peppy [EMAIL PROTECTED] wrote:
for ($i = 1; $i = 6; $i++) {
Is it possible to increment $i by 5?
for ($i = 1; $i = 6; $i+5) {
--
Stephen Johnson
The Lone Coder
http://www.ouradoptionblog.com
*Join us on our adoption journey*
[EMAIL PROTECTED]
http
You are correct -- forgive the typo (I forgot the = ).
That is what I get trying to reply to email while eating a burrito and
talking on the phone. LOL
?php
/*
Stephen Johnson c | eh
The Lone Coder
http://www.ouradoptionblog.com
Join our journey of adoption
http://www.thelonecoder.com
[EMAIL
, 10;
if anybody could direct me to sample docs/code that kind of describes/solves
what i've described, i'd appreciate it!!!
The folks on the MySQL list can help you with these questions better then
the folks here on the PHP list.
thanks
-bruce
[EMAIL PROTECTED]
--
Stephen Johnson
if ($_GET['foo'])...
if ($_POST['apple'])...
and just have a mix of both methods within the code...
thanks
-bruce
[EMAIL PROTECTED]
--
Stephen Johnson
The Lone Coder
http://www.ouradoptionblog.com
*Join us on our adoption journey*
[EMAIL PROTECTED]
http://www.thelonecoder.com
*Continuing
that?
the webserver that I will be placing this page on has php ver 4.4.0 on it.
Any help would be appreciated
Paul
--
Stephen Johnson
The Lone Coder
http://www.ouradoptionblog.com
*Join us on our adoption journey*
[EMAIL PROTECTED]
http://www.thelonecoder.com
*Continuing the struggle
Ravi -
http://www.php.net/mail
That page should get you on your way.
?php
/*
Stephen Johnson c | eh
The Lone Coder
http://www.ouradoptionblog.com
Join our journey of adoption
http://www.thelonecoder.com
[EMAIL PROTECTED]
continuing the struggle against bad code
*/
?
From: Ravi Gogna
', '$state', '$zip');
Bad SQL statement :
$sql = insert into table (name, address, city, state, zip) VALUES
('$name', '$address', '$city', '$state', '$zip', '$phone');
The addition of the phone variable would create an error since there is no
column to hold that data.
?php
/*
Stephen Johnson c
On 8/18/05 9:06 PM, Richard Lynch [EMAIL PROTECTED] wrote:
Maybe if everybody did this, MS would realize how broken their
cache-handling is and fix it... Nah. They'd just break it even worse.
Is someone feeling a bit cynical tonight? Nah. Not just tonight ;)
--
Stephen Johnson
for an e-mail?
--
Stephen Johnson
The Lone Coder
[EMAIL PROTECTED]
http://www.thelonecoder.com
*Continuing the struggle against bad code*
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Where do you populate $success ?
It looks too me that $success would always be empty no matter whether you
connected or not.
On 7/14/05 8:27 AM, Bruce Gilbert [EMAIL PROTECTED] wrote:
mysql_pconnect ($mysql_host, $mysql_user, $mysql_password);
if (!$success)
--
Stephen Johnson
seriously doubt there is much of a performance hit either way, but it
would be interesting to benchmark that.
?php
/*
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
[EMAIL PROTECTED]
562.924.4454 (office)
562.924.4075 (fax)
continuing the struggle against bad code
of overwriting another users files. I realize that
if you use a unique identifier on the file itself you prevent this, but
mistakes can be made, and I have always felt more comfortable sending the
user to his own directory where he can do as he likes
?php
/*
Stephen Johnson c | eh
The Lone Coder
http
a select field within the for loop, and the
options of the select should be letters.
--
MIGUEL GUIRAO AGUILERA
Logistica R8 - Telcel
Tel: (999) 960.7994
Cel: 9931-6
- Mensaje original -
De: Stephen Johnson [EMAIL PROTECTED]
Fecha: Miércoles, Mayo 25, 2005 9
Include a space in your str_replace statement.
For instance
$t = str_replace( $word , B $word /B, $text);
That should prevent the problem your having and ensure only individual words
are bolded.
?php
/*
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
[EMAIL PROTECTED
Nothing --
However - try adding a path to your cookie statement. It may not be the
problem - but it has corrected this issue for me in the past.
I.e :
setcookie('myCookie',blah,time()+3600, /);
?php
/*
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
[EMAIL PROTECTED
.
Thanks.
Tommy.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
*
Stephen Johnson
[EMAIL PROTECTED]
http://www.thelonecoder.com
--continuing the struggle against bad code--
*
--
PHP General Mailing List (http://www.php.net
Yes --
In your example - $result_id would be accessed on page2 as
$result_id = $_GET['result_id'];
Then through out your script on page 2 you could access $result_id.
Hope that helps.
--
- $result_id 2
$result_id = $_get['result_id ' ];
2 $result_id
?php
/*
Stephen Johnson c | eh
to register it to
get font support. I am willing to do that, BUT, their website says they are
no longer accepting support clients.
So anyone out there have any advice our a tutorial that I can look at for
some assistance ?
Thanks
?php
/*
Stephen Johnson c | eh
The Lone Coder
http
-
?php
/*
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
[EMAIL PROTECTED]
562.924.4454 (office)
562.924.4075 (fax)
continuing the struggle against bad code
*/
?
From: [EMAIL PROTECTED]
Date: Tue, 5 Apr 2005 09:40:55 +0800
To: php-general@lists.php.net
Subject
you have the url in a variable I would think you can do whatever you
want with it.
?php
/*
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
[EMAIL PROTECTED]
562.924.4454 (office)
562.924.4075 (fax)
continuing the struggle against bad code
*/
?
From: delos [EMAIL
You need to make sure that output_buffering is turned on in your php.ini
file on the dev server.
?php
/*
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
[EMAIL PROTECTED]
562.924.4454 (office)
562.924.4075 (fax)
continuing the struggle against bad code
*/
?
From
You need to setup your apache server to accept and parse .html files as PHP.
Add this line or modify it to look like this in your httpd.conf file.
AddType application/x-httpd-php .php .html .shtml
HTH
?php
/*
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
[EMAIL PROTECTED
://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
*
Stephen Johnson
[EMAIL PROTECTED]
http://www.thelonecoder.com
--continuing the struggle against bad code--
*
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Website Hosting Services -www.hostonlime.com.au
Winner 2004 Telstra North QLD Media Awards - Best Website - Online
Content Information
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
*
Stephen Johnson
[EMAIL PROTECTED]
http
*
Stephen Johnson
[EMAIL PROTECTED]
http://www.thelonecoder.com
--continuing the struggle against bad code--
*
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
:
a href=\http://localhost/knewsl/file.pdf\;Click here to view
newsletter/a - Which obviously doesn't work.
I would be most grateful if anyone could help.
Cheers,
Simon
*
Stephen Johnson
[EMAIL PROTECTED]
http://www.thelonecoder.com
--continuing the struggle against bad code--
*
--
PHP
]) {
$room_mail .= $rooms[$i];
}
Then in your mail section replace $rooms with $room_mail.
HTH
?php
/*
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
[EMAIL PROTECTED]
562.924.4454 (office)
562.924.4075 (fax)
continuing the struggle against bad code
*/
?
From: Ross
it was a good comment tag. That whole
file sharing systems was written in the w hours of the morning, so I
should probably go through and alter the code.
My bad.
?php
/*
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
[EMAIL PROTECTED]
562.924.4454 (office)
562.924.4075 (fax
?php
/*
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
[EMAIL PROTECTED]
562.924.4454 (office)
562.924.4075 (fax)
continuing the struggle against bad code
*/
?
From: zzapper [EMAIL PROTECTED]
Date: Mon, 07 Mar 2005 17:19:30 +
To: php-general@lists.php.net
Subject
enough to know. Depending on where you
got your windows ver of php, you should just be able to uncomment the
line in your php.ini so it can use odbc and make sure the extension path
is set correctly.
end Quote
--
?php
/*
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
[EMAIL
OK -- dumb question -- what is an OP?
?php
/*
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
[EMAIL PROTECTED]
562.924.4454 (office)
562.924.4075 (fax)
continuing the struggle against bad code
*/
?
From: John Nichel [EMAIL PROTECTED]
Date: Wed, 23 Feb 2005 14:13:20
for ($i = 1; $i = $sendnum; $i++)
{
$qty = $_POST['qty'.$i];
$total = $total + $qty;
echo $qty . 'br /';
}
echo Total $total;
?php
/*
Stephen Johnson c | eh
The Lone Coder
http://www.thelonecoder.com
[EMAIL PROTECTED]
562.924.4454 (office)
562.924.4075
to put
yourself in a position where are your needed by a company -- best way to do
that -- learn both.
Just my 2 cents.
?php
/*
Stephen Johnson c|eh
The Lone Coder
http://www.thelonecoder.com
[EMAIL PROTECTED]
562.924.4454 (office)
562.924.4075 (fax)
continuing the struggle against bad code
/*
Stephen Johnson c|eh
The Lone Coder
http://www.thelonecoder.com
[EMAIL PROTECTED]
562.924.4454 (office)
562.924.4075 (fax)
continuing the struggle against bad code
*/
?
From: Sebastian [EMAIL PROTECTED]
Date: Thu, 17 Feb 2005 19:24:50 -0500
To: php-general@lists.php.net
Subject: [PHP
77 matches
Mail list logo