GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Tech ImageMagick & form $post (https://gfy.com/showthread.php?t=1352288)

Publisher Bucks 02-15-2022 11:06 PM

ImageMagick & form $post
 
Does anyone with knowledge of Imagemagick know if i *have* to use sessions in order to post form data to a .php file to generate the image based on pre-defined settings?

I've Googled and not finding anyting definitive other than there being some 'bugs' in the latest version of ImageMagick.

I'm just using a standard HTML form with the $post for the data being input, feeding it into the imagemagick.php file (which works if I edit it manually) but nothing is actually 'happening' as far as the data getting posted to the file.

Im just trying to use a form to edit text, just as I would a regular .php page outputting form input in the browser when you hit the submit button :Oh crap

k0nr4d 02-15-2022 11:36 PM

It doesn't sound like you would need to use sessions in that scenario, unless your whole form required you to be logged in to use it.

Publisher Bucks 02-16-2022 01:06 AM

Quote:

Originally Posted by k0nr4d (Post 22965621)
It doesn't sound like you would need to use sessions in that scenario, unless your whole form required you to be logged in to use it.

That was what I was thinking, yet for some reason it does not appear to be parsing the data entered into the variable fileds in the imagemagick.php page :/

I'm going to play with it a little more and see what I can find error wise but im about 99% certain this is error free and its related directly to my ImageMagickinstallation on the server :/

Would being behind .htaccess count as being required to be logged in? Even if the form and ImageMagick.php page is in the same directory that is protected?

k0nr4d 02-16-2022 01:41 AM

Quote:

Originally Posted by Publisher Bucks (Post 22965637)
That was what I was thinking, yet for some reason it does not appear to be parsing the data entered into the variable fileds in the imagemagick.php page :/

I'm going to play with it a little more and see what I can find error wise but im about 99% certain this is error free and its related directly to my ImageMagickinstallation on the server :/

Would being behind .htaccess count as being required to be logged in? Even if the form and ImageMagick.php page is in the same directory that is protected?

print_r() the $_POST and $_FILES arrays to make sure that the data is actually arriving at the server.

If you are talking about htpasswd, that's doesn't count as a login system in the context of php sessions. That's separate.

Publisher Bucks 02-16-2022 01:10 PM

Quote:

Originally Posted by k0nr4d (Post 22965641)
print_r() the $_POST and $_FILES arrays to make sure that the data is actually arriving at the server.

If you are talking about htpasswd, that's doesn't count as a login system in the context of php sessions. That's separate.

Thank you.

Before I start screwing around with things and mess them up even more, can I confirm that you mean I should put print_r() like this at the top of the page where the arrays are and not somewhere else?

Quote:

<?php

$Color = print_r($_POST)["Color"];
$Title = print_r($_POST)["Title"];
$TitleSize = print_r($_POST)["TitleSize"];

?>

k0nr4d 02-16-2022 01:42 PM

print_r($_POST);

Publisher Bucks 02-16-2022 02:19 PM

Quote:

Originally Posted by k0nr4d (Post 22965847)
print_r($_POST);

Oh at the very top, gotcha.


All times are GMT -7. The time now is 08:52 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123