php-general Digest 18 Feb 2011 01:34:45 -0000 Issue 7187
Topics (messages 311404 through 311419):
Re: root of PHP found!
311404 by: Steve Staples
311405 by: Jonesy
Re: [PHP-DEV] PHP 5.3.6RC1 Released for Testing
311406 by: Alexey Zakhlestin
311407 by: Ferenc Kovacs
Error handling a max license issue
311408 by: Richard Sharp
Google Visualization Chart API
311409 by: Ashley M. Kirchner
311410 by: Bastien Koert
311411 by: Ashley M. Kirchner
311412 by: Richard Quadling
311413 by: Ashley M. Kirchner
311414 by: Richard Quadling
311419 by: viraj
> 2gb file issues
311415 by: Steve Staples
311416 by: Nicholas Kell
311417 by: Steve Staples
Re: How is this possible???? (addslashes)
311418 by: Paul S
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 Wed, 2011-02-16 at 19:04 -0500, Daniel Brown wrote:
> On Wed, Feb 16, 2011 at 18:15, Daevid Vincent <[email protected]> wrote:
> > Aha! I am working for the company that was the root of PHP!
> >
> > http://www.panasonic.net/history/founder/chapter3/story3-02.html
> >
> > ;-)
>
> I'm surprised you found that. Very few people know that PHP is
> actually just a cover-up for Pan-Asian culture influence operations
> conducted regularly by the CIA.
>
> Unfortunately, now that you do know, you know what we have to do to
> you....
>
> ;-P
>
> --
> </Daniel P. Brown>
> Network Infrastructure Manager
> Documentation, Webmaster Teams
> http://www.php.net/
>
Wow... I knew PHP4 was old, but since 1946? It's amazing people still
use PHP4, and it's 65 years old now.
(the image says PHP and then below it says 4, for those people who
didn't/haven't opened the link above)
--- End Message ---
--- Begin Message ---
On Thu, 17 Feb 2011 08:33:16 -0500, Steve Staples wrote:
> On Wed, 2011-02-16 at 19:04 -0500, Daniel Brown wrote:
>> On Wed, Feb 16, 2011 at 18:15, Daevid Vincent <[email protected]> wrote:
>> > Aha! I am working for the company that was the root of PHP!
>> >
>> > http://www.panasonic.net/history/founder/chapter3/story3-02.html
>> >
>> > ;-)
>>
>> I'm surprised you found that. Very few people know that PHP is
>> actually just a cover-up for Pan-Asian culture influence operations
>> conducted regularly by the CIA.
>>
>> Unfortunately, now that you do know, you know what we have to do to
>> you....
>>
>
> Wow... I knew PHP4 was old, but since 1946? It's amazing people still
> use PHP4, and it's 65 years old now.
I've been coding PHP since 1948.
Start on an ol' teletype. :-)
--- End Message ---
--- Begin Message ---
On 17.02.2011, at 16:17, Johannes Schlüter wrote:
> The first release candidates of 5.3.6 was just released for testing and
> can be downloaded here:
>
> http://downloads.php.net/johannes/php-5.3.6RC1.tar.bz2 (md5sum:
> f78d7b47ddbfca42ebdfcdef2adfe859)
>
> The windows binaries are available at: http://windows.php.net/qa/
>
> This is the first step in the release process of this versions and goal
> is having a 2nd RC two weeks from now. Majority of the changes are of
> the "bug fix" variety. To ensure that the release is solid, please test
> this RC against your code base and report any problems that you
> encounter.
Here's the changelog:
http://svn.php.net/viewvc/php/php-src/tags/php_5_3_6RC1/NEWS?revision=308400&view=markup
smime.p7s
Description: S/MIME cryptographic signature
--- End Message ---
--- Begin Message ---
2011/2/17 Alexey Zakhlestin <[email protected]>
>
> On 17.02.2011, at 16:17, Johannes Schlüter wrote:
>
> > The first release candidates of 5.3.6 was just released for testing and
> > can be downloaded here:
> >
> > http://downloads.php.net/johannes/php-5.3.6RC1.tar.bz2 (md5sum:
> > f78d7b47ddbfca42ebdfcdef2adfe859)
> >
> > The windows binaries are available at: http://windows.php.net/qa/
> >
> > This is the first step in the release process of this versions and goal
> > is having a 2nd RC two weeks from now. Majority of the changes are of
> > the "bug fix" variety. To ensure that the release is solid, please test
> > this RC against your code base and report any problems that you
> > encounter.
>
> Here's the changelog:
>
> http://svn.php.net/viewvc/php/php-src/tags/php_5_3_6RC1/NEWS?revision=308400&view=markup
>
> thanks.
"Restored firebird support (VC9 builds only). (Pierre) "
we will only make VC9 builds, don't we?
Tyrael
--- End Message ---
--- Begin Message ---
Hello everyone,
I am having the difficult time trying to figure out how to detract an
max user license when my script tries to connect to our Pervasive
database through an ODBC connector. I am looking for a way to ignore
the error if one arise and continue on with the code.
Here is what I have so far
if($conn = odbc_connect($aei_db, $user, $pass))
{
$sql_open_jobs = "select distinct jh.part, jh.date_due,
jd.job, jd.seq, jd.employee, jd.description, jd.Date_Sequence
from v_job_header jh, v_job_detail jd
where jd.job = jh.job and
jh.date_closed='1900-01-01' and jd.job not like '%IND%' and jd.suffix =
jh.suffix";
$rs_open_jobs = odbc_exec($conn, $sql_open_jobs);
echo $refresh_message;
}
else
{
if(!($conn = odbc_connect($aei_db, $user, $pass)))
{
$refresh_message = "This page has not been refreshed
since: " . date("h:i");
echo $refresh_message;
$have_license = false;
}
}
Thanks in advance
Richard Sharp
Database Administrator
PH: 316-942-8604 ext 108
Tenderness is what love looks like in private, Justice is what love
looks like in public - Cornel West
I am what I am because of who we all are - Ubuntu
--- End Message ---
--- Begin Message ---
I'm currently using Google Visualization API[1] to generate both
interactive and static charts for a client and they're viewing these
online[2]. However they now want to be able to download a PDF
containing the charts (static) in it. Does anyone know of a way where I
can take the same API and create a PDF document instead?
I've worked with fpdf[3] in the past to create PDFs on the fly so
that's no problem. The problem is figuring out how to get the charts in
such a way that I can shove them into the PDF.
[1] http://code.google.com/apis/visualization/
[2] Example: http://www.yeehaw.net/chart.html - feel free to view
source
[3] http://www.fpdf.org/
--- End Message ---
--- Begin Message ---
On Thu, Feb 17, 2011 at 2:13 PM, Ashley M. Kirchner <[email protected]> wrote:
>
> I'm currently using Google Visualization API[1] to generate both
> interactive and static charts for a client and they're viewing these
> online[2]. However they now want to be able to download a PDF containing
> the charts (static) in it. Does anyone know of a way where I can take the
> same API and create a PDF document instead?
>
> I've worked with fpdf[3] in the past to create PDFs on the fly so that's
> no problem. The problem is figuring out how to get the charts in such a way
> that I can shove them into the PDF.
>
> [1] http://code.google.com/apis/visualization/
> [2] Example: http://www.yeehaw.net/chart.html - feel free to view source
> [3] http://www.fpdf.org/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Convert the chart to an image and then insert that into the pdf
--
Bastien
Cat, the other other white meat
--- End Message ---
--- Begin Message ---
On 2/17/2011 12:26 PM, Ashley Sheridan wrote:
Googles API creates an image which you can save locally and insert
into a PDF that you create with something like fpdf. There are plenty
of functions in PHP which can be used for this, such as fread(), etc.
That's the thing, I know it does, but how do I capture that. It's
all done through their javascript code:
new
google.visualization.ImagePieChart(document.getElementById('visualization')).
draw(data, {is3D: true, height: 250});
}
When that runs, it looks for the element 'visualization' to put the
graph in:
<div id="visualization"></div>
So how do I go about capturing the image instead of it being
written to the doc.
PS, if anyone replies can they leave this line in. I've been trying to
contact Dan Brown because my email server seems to have been blocked
by php.net, so none of my replies to the list ever get through.
Dan Brown, calling Dan Brown ...
--- End Message ---
--- Begin Message ---
On 17 February 2011 19:13, Ashley M. Kirchner <[email protected]> wrote:
>
> I'm currently using Google Visualization API[1] to generate both
> interactive and static charts for a client and they're viewing these
> online[2]. However they now want to be able to download a PDF containing
> the charts (static) in it. Does anyone know of a way where I can take the
> same API and create a PDF document instead?
>
> I've worked with fpdf[3] in the past to create PDFs on the fly so that's
> no problem. The problem is figuring out how to get the charts in such a way
> that I can shove them into the PDF.
>
> [1] http://code.google.com/apis/visualization/
> [2] Example: http://www.yeehaw.net/chart.html - feel free to view source
> [3] http://www.fpdf.org/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
The image's url is
http://chart.apis.google.com/chart?cht=p3&chs=400x200&chdl=Work%7CEat%7CCommute%7CWatch%20TV%7CSleep&chdlp=r&chco=3399CC%2C80C65A%2CFF0000%2CFFCC33%2CBBCCED%2C3399CC%2C990066%2CFF9900&chd=e%3A..LoLoLoot
Google has an example too ...
https://chart.googleapis.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World
See the difference?
In your example, the chd value is e:..LoLoLoot
In their example, the chd value is t:60,40
So, e = encoded, t = text.
So ...
$imgBinary =
file_get_contents('http://chart.apis.google.com/chart?cht=p3&chs=400x200&chdl=Work%7CEat%7CCommute%7CWatch%20TV%7CSleep&chdlp=r&chco=3399CC%2C80C65A%2CFF0000%2CFFCC33%2CBBCCED%2C3399CC%2C990066%2CFF9900&chd=e%3A..LoLoLoot');
or
$imgBinary =
file_get_contents('https://chart.googleapis.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World');
I've been playing with Google Maps and they document the polyline
encoding algorithm fairly well. I'm sure they would have done the same
for the chd ... and here it is
http://code.google.com/apis/chart/docs/data_formats.html
So. Easy peasy.
--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
--- End Message ---
--- Begin Message ---
> So. Easy peasy.
Not exactly. Those examples are not from the Visualization API - it's
two different things. The API is written so that one does not have to generate
those parameters individually and then pass them through POST/GET to Google.
It's cleaner and faster to work with. The code for the Visualization API is
very different from the code the regular Chart API uses.
--- End Message ---
--- Begin Message ---
On 17 February 2011 20:26, Ashley M. Kirchner <[email protected]> wrote:
>> So. Easy peasy.
>
> Not exactly. Those examples are not from the Visualization API - it's
> two different things. The API is written so that one does not have to
> generate those parameters individually and then pass them through POST/GET to
> Google. It's cleaner and faster to work with. The code for the
> Visualization API is very different from the code the regular Chart API uses.
>
>
Yes it is. Ish.
The api generates the URL. Once the URL is generated and the image is
displayed you can grab it using JS and push it to the server to use.
Do you want to do all the work on server and not in the browser? Then
you have to learn the params. That way, you won't need a client to
grab the URL first.
It really isn't very difficult.
--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
--- End Message ---
--- Begin Message ---
hi,
the easiest way to convert a html (even with advance css styling) to
pdf is http://code.google.com/p/wkhtmltopdf/ i guess.
you may need, exec() function and bit of shell scripting.
~viraj
On Fri, Feb 18, 2011 at 2:02 AM, Richard Quadling <[email protected]> wrote:
> On 17 February 2011 20:26, Ashley M. Kirchner <[email protected]> wrote:
>>> So. Easy peasy.
>>
>> Not exactly. Those examples are not from the Visualization API -
>> it's two different things. The API is written so that one does not have to
>> generate those parameters individually and then pass them through POST/GET
>> to Google. It's cleaner and faster to work with. The code for the
>> Visualization API is very different from the code the regular Chart API uses.
>>
>>
>
> Yes it is. Ish.
>
> The api generates the URL. Once the URL is generated and the image is
> displayed you can grab it using JS and push it to the server to use.
>
> Do you want to do all the work on server and not in the browser? Then
> you have to learn the params. That way, you won't need a client to
> grab the URL first.
>
> It really isn't very difficult.
>
>
>
>
> --
> Richard Quadling
> Twitter : EE : Zend
> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Is there a workaround for 32bit systems wanting to use
fopen()
is_file()
filesize()
and i am sure there are others.. on files that are > 2gb?
My development box is win visat 64bit, and i dont have any issues, when
i ported it to my test live server, it is running 5.2.8 32bit, and it is
not reading the files :(
any assistance? besides upgrading to a 64bit php version.
Steve
--- End Message ---
--- Begin Message ---
On Feb 17, 2011, at 3:29 PM, Steve Staples wrote:
> Is there a workaround for 32bit systems wanting to use
> fopen()
> is_file()
> filesize()
>
> and i am sure there are others.. on files that are > 2gb?
>
> My development box is win visat 64bit, and i dont have any issues, when
> i ported it to my test live server, it is running 5.2.8 32bit, and it is
> not reading the files :(
>
> any assistance? besides upgrading to a 64bit php version.
>
What OS is on your live server?
--- End Message ---
--- Begin Message ---
On Thu, 2011-02-17 at 15:36 -0600, Nicholas Kell wrote:
> On Feb 17, 2011, at 3:29 PM, Steve Staples wrote:
>
> > Is there a workaround for 32bit systems wanting to use
> > fopen()
> > is_file()
> > filesize()
> >
> > and i am sure there are others.. on files that are > 2gb?
> >
> > My development box is win visat 64bit, and i dont have any issues, when
> > i ported it to my test live server, it is running 5.2.8 32bit, and it is
> > not reading the files :(
> >
> > any assistance? besides upgrading to a 64bit php version.
> >
>
> What OS is on your live server?
>
>
well... my testing live server is slackware 12.2 (i think? it's my
unraid server) i installed php from
http://mirrors.easynews.com/linux/slackware/slackware-12.2/slackware/n/php-5.2.8-i486-1.tgz
Normally, I use debian, but I am doing something else this time... long
story...
Steve
--- End Message ---
--- Begin Message ---
On Thu, 17 Feb 2011 07:50:45 +0700, Daniel Brown <[email protected]>
wrote:
No offense, but are you kidding me? The host disables phpinfo() for
security reasons, but keeps 4.4.4 running? Talk about running, Paul....
run
away from them. Fast.
AND they have a condition (this reported) that could cause (fail to
prevent) SQL injection!
"Legacy" configurations remain when ISPs don't want to force customers to
do the code changes that might be necessary to upgrade
It runs. I'd rather not do the changes necessary to go to PHP5 now. But I
cannot add an edit HTML via forms feature to the administration until this
is resolved. I want to get to the bottom of this. PLEASE!! ANYONE ???????
HOW COULD THIS POSSIBLY HAPPEN. They must have something messed up in the
PHP configuration. What is it?
--- End Message ---