I'm using a package called Image_Graph to produce some scatter plots on the fly in a website. The way this file works is, it accepts values as $_GET parameters and produces a png image. You call it with <img src="Image_Graph?title=foo&x0=1&y0=0....">
It works great, but I have so much data that the URL is too long and apache rejects the connection. I need to either modify it so it accepts $_POST data, or change it from a file to a function which will accept an array of data. I've messed around with the second option and can't get it to display an image, the process of "creating an image file" is modifying headers which have already been set by the HTML file.
Should I look into using cURL to change the file to use POST?
I ~could~ create a form with all the POST data embedded within it and ask the user to click a submit button to be taken to the image of the data, but this is definitely not ideal.
This is probably a long shot if you've never looked at the source code, but do you have any advice on the best strategy to do this?
Thanks,
Kevin
It works great, but I have so much data that the URL is too long and apache rejects the connection. I need to either modify it so it accepts $_POST data, or change it from a file to a function which will accept an array of data. I've messed around with the second option and can't get it to display an image, the process of "creating an image file" is modifying headers which have already been set by the HTML file.
Code:
Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\PezBase\barrel.php:37) in C:\Program Files\PHP\zip\PEAR\Image\Canvas\GD\PNG.php on line 105
�PNG IHDR����IDATx���{l������PZ.�_ei'�C'�P�Y c������Te�ad5�?��ln,q�1�?�Y��,�,�T���J�ʔ��Q�Į���gv-����ҽ^!�9�yη����s��l6�@?�� pZ�"�a*�����>����~&��/���x��W�_��˛��3gά��lhh�]�w��E�>|�w���#�<2s��آ���°�$ɺu�Z[[<���Ξ=�s�9r�Ho��㯽��3f��f�G��1c���_ߗksc�y�}�[׃{�OUUUEEEk+W�,..���ի;~�w�$���:o{�g���Ħ���?�6mڴiӦ$IF��t�����q������c~��篸��ƍw饗���˵'��|jkk���?v�خ;G�����g�ٹ�;��裏r�n�z�e� �'`����ʕ+YSPP0s��?S���'M��uϔ)S:��{�v0|�ᇕ��?�я�rp^^^MMMӦM�y����3f\x�}�2eJ_��&M5jT����g����2�S����sF�%K����~�駹
I ~could~ create a form with all the POST data embedded within it and ask the user to click a submit button to be taken to the image of the data, but this is definitely not ideal.
This is probably a long shot if you've never looked at the source code, but do you have any advice on the best strategy to do this?
Thanks,
Kevin