[PHP] PHP 5.3.6RC1 Released for Testing
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. Johannes Schlüter PHP 5.3 Release Master -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] root of PHP found!
On Wed, 2011-02-16 at 19:04 -0500, Daniel Brown wrote: On Wed, Feb 16, 2011 at 18:15, Daevid Vincent dae...@daevid.com 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) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: root of PHP found!
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 dae...@daevid.com 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. :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DEV] PHP 5.3.6RC1 Released for Testing
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=308400view=markup smime.p7s Description: S/MIME cryptographic signature
[PHP] Error handling a max license issue
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
[PHP] Google Visualization Chart API
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
Re: [PHP] Google Visualization Chart API
On Thu, Feb 17, 2011 at 2:13 PM, Ashley M. Kirchner ash...@pcraft.com 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Google Visualization Chart API
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 ...
Re: [PHP] Google Visualization Chart API
On 17 February 2011 19:13, Ashley M. Kirchner ash...@pcraft.com 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=p3chs=400x200chdl=Work%7CEat%7CCommute%7CWatch%20TV%7CSleepchdlp=rchco=3399CC%2C80C65A%2CFF%2CFFCC33%2CBBCCED%2C3399CC%2C990066%2CFF9900chd=e%3A..LoLoLoot Google has an example too ... https://chart.googleapis.com/chart?cht=p3chd=t:60,40chs=250x100chl=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=p3chs=400x200chdl=Work%7CEat%7CCommute%7CWatch%20TV%7CSleepchdlp=rchco=3399CC%2C80C65A%2CFF%2CFFCC33%2CBBCCED%2C3399CC%2C990066%2CFF9900chd=e%3A..LoLoLoot'); or $imgBinary = file_get_contents('https://chart.googleapis.com/chart?cht=p3chd=t:60,40chs=250x100chl=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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Google Visualization Chart API
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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Google Visualization Chart API
On 17 February 2011 20:26, Ashley M. Kirchner ash...@pcraft.com 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
[PHP] 2gb file issues
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] 2gb file issues
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? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] 2gb file issues
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How is this possible???? (addslashes)
On Thu, 17 Feb 2011 07:50:45 +0700, Daniel Brown paras...@gmail.com 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? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Google Visualization Chart API
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 rquadl...@gmail.com wrote: On 17 February 2011 20:26, Ashley M. Kirchner ash...@pcraft.com 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: How is this possible???? (addslashes)
On Thu, 17 Feb 2011 06:56:33 +0700, Paul S wrote: Can anyone please tell me how the addslashes output (note = Everyone''s a card on the \earth) in the following example is possible. It is addslashes output but this result is consistent with the output from post when runtime is set: 1): a single quote is inserted before a single quote and nothing is added before or \. ... ?php $note = Everyone's a card on the \earth; echo br$notebr; $note = addslashes($note); echo brnote = $notebr; ? ... output: Everyone's a card on the \earth note = Everyone''s a card on the \earth http://se.php.net/manual/en/function.addslashes.php Having the PHP directive magic_quotes_sybase set to on will mean ' is instead escaped with another '. Both \e and \\e produces the same output. /Nisse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php