Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #17646 > unrolled thread
| Started by | nospam@ms.com |
|---|---|
| First post | 2018-01-18 11:12 +0000 |
| Last post | 2018-03-06 01:49 -0800 |
| Articles | 20 on this page of 23 — 9 participants |
Back to article view | Back to comp.lang.php
incorrect PHP code nospam@ms.com - 2018-01-18 11:12 +0000
Re: incorrect PHP code Ifrit <ifrit@jahannam> - 2018-01-18 12:57 +0100
Re: incorrect PHP code nospam@ms.com - 2018-01-18 12:02 +0000
Re: incorrect PHP code Ifrit <ifrit@jahannam> - 2018-01-18 14:36 +0100
Re: incorrect PHP code Ifrit <ifrit@jahannam> - 2018-01-18 14:39 +0100
Re: incorrect PHP code Ifrit <ifrit@jahannam> - 2018-01-18 16:33 +0100
Re: incorrect PHP code nospam@ms.com - 2018-01-18 15:51 +0000
Re: incorrect PHP code "Christoph M. Becker" <cmbecker69@arcor.de> - 2018-01-18 15:26 +0100
Re: incorrect PHP code nospam@ms.com - 2018-01-18 15:57 +0000
Re: incorrect PHP code "Christoph M. Becker" <cmbecker69@arcor.de> - 2018-01-18 17:18 +0100
Re: incorrect PHP code nospam@ms.com - 2018-01-18 17:01 +0000
Re: incorrect PHP code "Christoph M. Becker" <cmbecker69@arcor.de> - 2018-01-18 18:18 +0100
Re: incorrect PHP code nospam@ms.com - 2018-01-18 17:30 +0000
Re: incorrect PHP code "Christoph M. Becker" <cmbecker69@arcor.de> - 2018-01-18 18:37 +0100
PHP forums (was: incorrect PHP code) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-01-18 19:27 +0100
Re: PHP forums (was: incorrect PHP code) Tim Streater <timstreater@greenbee.net> - 2018-01-18 22:09 +0000
Re: incorrect PHP code Jerry Stuckle <jstucklex@attglobal.net> - 2018-01-18 22:01 -0500
Re: incorrect PHP code Jerry Stuckle <jstucklex@attglobal.net> - 2018-01-18 22:06 -0500
Re: incorrect PHP code Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-01-18 19:08 +0100
Re: incorrect PHP code Arno Welzel <usenet@arnowelzel.de> - 2018-09-05 09:40 +0200
Re: incorrect PHP code inigojoseph89@gmail.com - 2018-01-22 23:07 -0800
Re: incorrect PHP code Jerry Stuckle <jstucklex@attglobal.net> - 2018-01-23 07:53 -0500
Re: incorrect PHP code careenjoseph36@gmail.com - 2018-03-06 01:49 -0800
Page 1 of 2 [1] 2 Next page →
| From | nospam@ms.com |
|---|---|
| Date | 2018-01-18 11:12 +0000 |
| Subject | incorrect PHP code |
| Message-ID | <e3016dthjg2scalgsutum253478r4t1dsh@4ax.com> |
The following PHP code does not work correctly; <div style="text-align:center"><img src="scripts/captcha/index.php?<?php echo session_name()?>=<?php echo session_id()?>" style="vertical-align:middle" /> <input type="text" name="keystring"><br /><span class="fontsm">(word verification)</span></div><br /> I believe there is a mismatch in the brackets for the IMG element. Please could someone tell me what needs to be changed to get it to work. Thank you.
[toc] | [next] | [standalone]
| From | Ifrit <ifrit@jahannam> |
|---|---|
| Date | 2018-01-18 12:57 +0100 |
| Message-ID | <5a608ba2$0$9952$e4fe514c@news.xs4all.nl> |
| In reply to | #17646 |
On 18-01-18 12:12, nospam@ms.com wrote: > The following PHP code does not work correctly; > > <div style="text-align:center"><img > src="scripts/captcha/index.php?<?php echo session_name()?>=<?php > echo session_id()?>" style="vertical-align:middle" /> <input > type="text" name="keystring"><br /><span class="fontsm">(word > verification)</span></div><br /> > > I believe there is a mismatch in the brackets for the IMG element. > > Please could someone tell me what needs to be changed to get it to > work. > > Thank you. It's probably the PHP code within double quotes. See: <https://documentation.concrete5.org/tutorials/strings-combine-one-or-more-variables-and-text-strings-insid> -- Ifrit
[toc] | [prev] | [next] | [standalone]
| From | nospam@ms.com |
|---|---|
| Date | 2018-01-18 12:02 +0000 |
| Message-ID | <l3316d5i0ug09npqrkog858bs27dr8m40d@4ax.com> |
| In reply to | #17647 |
On Thu, 18 Jan 2018 12:57:22 +0100, Ifrit <ifrit@jahannam> wrote: >On 18-01-18 12:12, nospam@ms.com wrote: >> The following PHP code does not work correctly; >> >> <div style="text-align:center"><img >> src="scripts/captcha/index.php?<?php echo session_name()?>=<?php >> echo session_id()?>" style="vertical-align:middle" /> <input >> type="text" name="keystring"><br /><span class="fontsm">(word >> verification)</span></div><br /> >> >> I believe there is a mismatch in the brackets for the IMG element. >> >> Please could someone tell me what needs to be changed to get it to >> work. >> >> Thank you. > >It's probably the PHP code within double quotes. See: > ><https://documentation.concrete5.org/tutorials/strings-combine-one-or-more-variables-and-text-strings-insid> Can you be specific? I can't see anything obviously wrong with the code. Thanks.
[toc] | [prev] | [next] | [standalone]
| From | Ifrit <ifrit@jahannam> |
|---|---|
| Date | 2018-01-18 14:36 +0100 |
| Message-ID | <5a60a2f0$0$9959$e4fe514c@news.xs4all.nl> |
| In reply to | #17648 |
On 18-01-18 13:02, nospam@ms.com wrote: > On Thu, 18 Jan 2018 12:57:22 +0100, Ifrit <ifrit@jahannam> wrote: > >> On 18-01-18 12:12, nospam@ms.com wrote: >>> The following PHP code does not work correctly; >>> >>> <div style="text-align:center"><img >>> src="scripts/captcha/index.php?<?php echo session_name()?>=<?php >>> echo session_id()?>" style="vertical-align:middle" /> <input >>> type="text" name="keystring"><br /><span class="fontsm">(word >>> verification)</span></div><br /> >>> >>> I believe there is a mismatch in the brackets for the IMG element. >>> >>> Please could someone tell me what needs to be changed to get it to >>> work. >>> >>> Thank you. >> >> It's probably the PHP code within double quotes. See: >> >> <https://documentation.concrete5.org/tutorials/strings-combine-one-or-more-variables-and-text-strings-insid> > > Can you be specific? I can't see anything obviously wrong with the > code. Thanks. Try: <img src=<?php echo "\"scripts/captcha/index.php?" . session_name() . "=" . session_id() . "\" ?> style="vertical-align:middle" /> -- Ifrit
[toc] | [prev] | [next] | [standalone]
| From | Ifrit <ifrit@jahannam> |
|---|---|
| Date | 2018-01-18 14:39 +0100 |
| Message-ID | <5a60a37b$0$9959$e4fe514c@news.xs4all.nl> |
| In reply to | #17649 |
On 18-01-18 14:36, Ifrit wrote: > On 18-01-18 13:02, nospam@ms.com wrote: >> On Thu, 18 Jan 2018 12:57:22 +0100, Ifrit <ifrit@jahannam> wrote: >> >>> On 18-01-18 12:12, nospam@ms.com wrote: >>>> The following PHP code does not work correctly; >>>> >>>> <div style="text-align:center"><img >>>> src="scripts/captcha/index.php?<?php echo session_name()?>=<?php >>>> echo session_id()?>" style="vertical-align:middle" /> <input >>>> type="text" name="keystring"><br /><span class="fontsm">(word >>>> verification)</span></div><br /> >>>> >>>> I believe there is a mismatch in the brackets for the IMG element. >>>> >>>> Please could someone tell me what needs to be changed to get it to >>>> work. >>>> >>>> Thank you. >>> >>> It's probably the PHP code within double quotes. See: >>> >>> <https://documentation.concrete5.org/tutorials/strings-combine-one-or-more-variables-and-text-strings-insid> >> >> Can you be specific? I can't see anything obviously wrong with the >> code. Thanks. > > Try: > > <img src=<?php echo "\"scripts/captcha/index.php?" . session_name() . > "=" . session_id() . "\" ?> style="vertical-align:middle" /> Sorry: <img src=<?php echo "\" . scripts/captcha/index.php?" . session_name() . "=" . session_id() . "\" ?> style="vertical-align:middle" /> -- Ifrit
[toc] | [prev] | [next] | [standalone]
| From | Ifrit <ifrit@jahannam> |
|---|---|
| Date | 2018-01-18 16:33 +0100 |
| Message-ID | <5a60be40$0$9969$e4fe514c@news.xs4all.nl> |
| In reply to | #17650 |
On 18-01-18 14:39, Ifrit wrote: > On 18-01-18 14:36, Ifrit wrote: >> On 18-01-18 13:02, nospam@ms.com wrote: >>> On Thu, 18 Jan 2018 12:57:22 +0100, Ifrit <ifrit@jahannam> wrote: >>> >>>> On 18-01-18 12:12, nospam@ms.com wrote: >>>>> The following PHP code does not work correctly; >>>>> >>>>> <div style="text-align:center"><img >>>>> src="scripts/captcha/index.php?<?php echo session_name()?>=<?php >>>>> echo session_id()?>" style="vertical-align:middle" /> <input >>>>> type="text" name="keystring"><br /><span class="fontsm">(word >>>>> verification)</span></div><br /> >>>>> >>>>> I believe there is a mismatch in the brackets for the IMG element. >>>>> >>>>> Please could someone tell me what needs to be changed to get it to >>>>> work. >>>>> >>>>> Thank you. >>>> >>>> It's probably the PHP code within double quotes. See: >>>> >>>> <https://documentation.concrete5.org/tutorials/strings-combine-one-or-more-variables-and-text-strings-insid> >>> >>> Can you be specific? I can't see anything obviously wrong with the >>> code. Thanks. >> >> Try: >> >> <img src=<?php echo "\"scripts/captcha/index.php?" . session_name() . >> "=" . session_id() . "\" ?> style="vertical-align:middle" /> > > Sorry: > <img src=<?php echo "\" . scripts/captcha/index.php?" . session_name() . > "=" . session_id() . "\" ?> style="vertical-align:middle" /> Sorry again, the first one was the right one after all. -- Ifrit
[toc] | [prev] | [next] | [standalone]
| From | nospam@ms.com |
|---|---|
| Date | 2018-01-18 15:51 +0000 |
| Message-ID | <nag16d9tjc0sgsip61r9nur4ganm3asm1h@4ax.com> |
| In reply to | #17652 |
On Thu, 18 Jan 2018 16:33:20 +0100, Ifrit <ifrit@jahannam> wrote: >On 18-01-18 14:39, Ifrit wrote: >> On 18-01-18 14:36, Ifrit wrote: >>> On 18-01-18 13:02, nospam@ms.com wrote: >>>> On Thu, 18 Jan 2018 12:57:22 +0100, Ifrit <ifrit@jahannam> wrote: >>>> >>>>> On 18-01-18 12:12, nospam@ms.com wrote: >>>>>> The following PHP code does not work correctly; >>>>>> >>>>>> <div style="text-align:center"><img >>>>>> src="scripts/captcha/index.php?<?php echo session_name()?>=<?php >>>>>> echo session_id()?>" style="vertical-align:middle" /> <input >>>>>> type="text" name="keystring"><br /><span class="fontsm">(word >>>>>> verification)</span></div><br /> >>>>>> >>>>>> I believe there is a mismatch in the brackets for the IMG element. >>>>>> >>>>>> Please could someone tell me what needs to be changed to get it to >>>>>> work. >>>>>> >>>>>> Thank you. >>>>> >>>>> It's probably the PHP code within double quotes. See: >>>>> >>>>> <https://documentation.concrete5.org/tutorials/strings-combine-one-or-more-variables-and-text-strings-insid> >>>> >>>> Can you be specific? I can't see anything obviously wrong with the >>>> code. Thanks. >>> >>> Try: >>> >>> <img src=<?php echo "\"scripts/captcha/index.php?" . session_name() . >>> "=" . session_id() . "\" ?> style="vertical-align:middle" /> >> >> Sorry: >> <img src=<?php echo "\" . scripts/captcha/index.php?" . session_name() . >> "=" . session_id() . "\" ?> style="vertical-align:middle" /> > >Sorry again, the first one was the right one after all. I tried; <div style="text-align:center"><img src=<?php echo "\"scripts/captcha/index.php?" . session_name() . "=" . session_id() . "\" ?> style="vertical-align:middle" /> <input type="text" name="keystring"><br /><span class="fontsm">(word verification)</span></div><br /> and it says; Parse error: syntax error, unexpected 'vertical' (T_STRING), expecting ',' or ';' in /home/ccompiler12/public_html/feedback.php on line 39 Advice? Thanks.
[toc] | [prev] | [next] | [standalone]
| From | "Christoph M. Becker" <cmbecker69@arcor.de> |
|---|---|
| Date | 2018-01-18 15:26 +0100 |
| Message-ID | <p3qarg$hfm$1@solani.org> |
| In reply to | #17646 |
On 18.01.2018 at 12:12, nospam@ms.com wrote: > The following PHP code does not work correctly; What do you expect the code to do, and what does it do? See also <http://www.catb.org/esr/faqs/smart-questions.html>. -- Christoph M. Becker
[toc] | [prev] | [next] | [standalone]
| From | nospam@ms.com |
|---|---|
| Date | 2018-01-18 15:57 +0000 |
| Message-ID | <glg16dtr9pkfg0hjtttepj7aiiqlg4engm@4ax.com> |
| In reply to | #17651 |
On Thu, 18 Jan 2018 15:26:58 +0100, "Christoph M. Becker" <cmbecker69@arcor.de> wrote: >On 18.01.2018 at 12:12, nospam@ms.com wrote: > >> The following PHP code does not work correctly; > >What do you expect the code to do, and what does it do? See also ><http://www.catb.org/esr/faqs/smart-questions.html>. It's for a CAPTCHA verification. It's hosted with GoDaddy. On the old server, it worked. It's been transferred to a new server, and it doesn't work. The PHP spits out the following HTML code; <img src="scripts/captcha/index.php?PHPSESSID=331f5041b67145685c5401104c602876" style="vertical-align:middle" /> So for some reason the IMG element fails to load the image.
[toc] | [prev] | [next] | [standalone]
| From | "Christoph M. Becker" <cmbecker69@arcor.de> |
|---|---|
| Date | 2018-01-18 17:18 +0100 |
| Message-ID | <p3qhdd$mb0$1@solani.org> |
| In reply to | #17654 |
On 18.01.2018 at 16:57, nospam@ms.com wrote: > On Thu, 18 Jan 2018 15:26:58 +0100, "Christoph M. Becker" > <cmbecker69@arcor.de> wrote: > >> On 18.01.2018 at 12:12, nospam@ms.com wrote: >> >>> The following PHP code does not work correctly; >> >> What do you expect the code to do, and what does it do? See also >> <http://www.catb.org/esr/faqs/smart-questions.html>. > > It's for a CAPTCHA verification. It's hosted with GoDaddy. On the old > server, it worked. It's been transferred to a new server, and it > doesn't work. > > The PHP spits out the following HTML code; > > <img > src="scripts/captcha/index.php?PHPSESSID=331f5041b67145685c5401104c602876" > style="vertical-align:middle" /> That's basically fine. > So for some reason the IMG element fails to load the image. I'd paste the URL of the image into the browser's address line, and check the response; particularly the status code, and in case of 200, I'd check the response body, if necessary with a hex viewer. By the way, php.general isn't a newsgroup, as far as I know. Did you mean the php-general@lists.php.net mailing list? -- Christoph M. Becker
[toc] | [prev] | [next] | [standalone]
| From | nospam@ms.com |
|---|---|
| Date | 2018-01-18 17:01 +0000 |
| Message-ID | <jak16dpmnfilemklnd1lmieevibvrflgsi@4ax.com> |
| In reply to | #17655 |
On Thu, 18 Jan 2018 17:18:56 +0100, "Christoph M. Becker"
<cmbecker69@arcor.de> wrote:
>> The PHP spits out the following HTML code;
>>
>> <img
>> src="scripts/captcha/index.php?PHPSESSID=331f5041b67145685c5401104c602876"
>> style="vertical-align:middle" />
>
>That's basically fine.
>
>> So for some reason the IMG element fails to load the image.
>
>I'd paste the URL of the image into the browser's address line, and
>check the response; particularly the status code, and in case of 200,
>I'd check the response body, if necessary with a hex viewer.
>
>By the way, php.general isn't a newsgroup, as far as I know. Did you
>mean the php-general@lists.php.net mailing list?
There is a USENET group php.general, but it has very few new posts.
Is there a PHP user forum somewhere, on the web?
When I type;
http://c-compiler.com/scripts/captcha/index.php?PHPSESSID=331f5041b67145685c5401104c602876
into MSIE, it says;
Fatal error: Uncaught Error: Call to undefined function
imagecreatefrompng() in
/home/ccompiler12/public_html/scripts/captcha/kcaptcha.php on line 49
( ! ) Error: Call to undefined function imagecreatefrompng() in
/home/ccompiler12/public_html/scripts/captcha/kcaptcha.php on line 49
Call Stack
# Time Memory Function Location
1 0.0000 354104 {main}( ) .../index.php:0
2 0.0002 355304 KCAPTCHA->KCAPTCHA( ) .../index.php:33
So it's not finding function imagecreatefrompng.
The help page for imagecreatefrompng is at;
http://php.net/manual/en/function.imagecreatefrompng.php
How do I get this function working? It seems to be the absence of this
particular function which is the issue.
[toc] | [prev] | [next] | [standalone]
| From | "Christoph M. Becker" <cmbecker69@arcor.de> |
|---|---|
| Date | 2018-01-18 18:18 +0100 |
| Message-ID | <p3qkta$ov3$1@solani.org> |
| In reply to | #17656 |
On 18.01.2018 at 18:01, nospam@ms.com wrote: > On Thu, 18 Jan 2018 17:18:56 +0100, "Christoph M. Becker" > <cmbecker69@arcor.de> wrote: > >> I'd paste the URL of the image into the browser's address line, and >> check the response; particularly the status code, and in case of 200, >> I'd check the response body, if necessary with a hex viewer. >> >> By the way, php.general isn't a newsgroup, as far as I know. Did you >> mean the php-general@lists.php.net mailing list? > > There is a USENET group php.general, but it has very few new posts. Ah, thanks. It is not the best idea, though, to cross-post on Usenet. :) > Is there a PHP user forum somewhere, on the web? There are plenty available. Use your favorite search engine. > So it's not finding function imagecreatefrompng. Ah, that's helpful! Most likely the GD extension is not available on the server. You can check that with phpinfo()[1]. If the extension is indeed missing, you may have to contact the server admins. [1] <http://www.php.net/manual/en/function.phpinfo.php> -- Christoph M. Becker
[toc] | [prev] | [next] | [standalone]
| From | nospam@ms.com |
|---|---|
| Date | 2018-01-18 17:30 +0000 |
| Message-ID | <87m16dhdqtj1jbs9o77bofbfha0ofs7lpa@4ax.com> |
| In reply to | #17657 |
On Thu, 18 Jan 2018 18:18:36 +0100, "Christoph M. Becker" <cmbecker69@arcor.de> wrote: >> Is there a PHP user forum somewhere, on the web? > >There are plenty available. Use your favorite search engine. Would you be able to recommend one or two good PHP web forums? >> So it's not finding function imagecreatefrompng. > >Ah, that's helpful! Most likely the GD extension is not available on >the server. You can check that with phpinfo()[1]. If the extension is >indeed missing, you may have to contact the server admins. > >[1] <http://www.php.net/manual/en/function.phpinfo.php> The GD extension is installed. Is imagecreatefrompng part of GD? If not, which extension are they part of? Thanks for your help.
[toc] | [prev] | [next] | [standalone]
| From | "Christoph M. Becker" <cmbecker69@arcor.de> |
|---|---|
| Date | 2018-01-18 18:37 +0100 |
| Message-ID | <p3qm13$pp8$1@solani.org> |
| In reply to | #17658 |
On 18.01.2018 at 18:30, nospam@ms.com wrote: > On Thu, 18 Jan 2018 18:18:36 +0100, "Christoph M. Becker" > <cmbecker69@arcor.de> wrote: > > Would you be able to recommend one or two good PHP web forums? If in doubt, use <https://stackoverflow.com/>. > The GD extension is installed. > > Is imagecreatefrompng part of GD? If not, which extension are they > part of? imagecreatefrompng() is part of GD; either PNG support is missing from GD (rather unlikely), or the function is disabled via disable_functions[1]. [1] <http://www.php.net/manual/en/ini.core.php#ini.disable-functions> -- Christoph M. Becker
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2018-01-18 19:27 +0100 |
| Subject | PHP forums (was: incorrect PHP code) |
| Message-ID | <1699613.hRlsLp7Y8j@PointedEars.de> |
| In reply to | #17659 |
Christoph M. Becker wrote: > On 18.01.2018 at 18:30, nospam@ms.com wrote: >> On Thu, 18 Jan 2018 18:18:36 +0100, "Christoph M. Becker" >> <cmbecker69@arcor.de> wrote: >> >> Would you be able to recommend one or two good PHP web forums? > > If in doubt, use <https://stackoverflow.com/>. JFTR: Stack Overflow is _not_ a Web forum, but a Q&A site. This is important because people tend to abuse Stack Overflow as if it were a Web forum, to their and other user’s disadvantage. At this time, I cannot recommend using any particular PHP Web forum. I started learning PHP about 15 years ago with help from of SELFHTML.DE’s PHP forum (has nothing to do with SELFHTML). It is still online, but apparently read-only since 2015-04-07; it used to be good when I was still a moderator there, so some postings there might still be useful. [de] <http://www.selfhtml.de/forum/forum_4_0.php> -- PointedEars Zend Certified PHP Engineer <http://www.zend.com/en/yellow-pages/ZEND024953> <https://github.com/PointedEars> | <http://PointedEars.de/wsvn> Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Tim Streater <timstreater@greenbee.net> |
|---|---|
| Date | 2018-01-18 22:09 +0000 |
| Subject | Re: PHP forums (was: incorrect PHP code) |
| Message-ID | <180120182209209194%timstreater@greenbee.net> |
| In reply to | #17661 |
In article <1699613.hRlsLp7Y8j@PointedEars.de>, Thomas 'PointedEars' Lahn <PointedEars@web.de> wrote: >to their and other user’s disadvantage. That should be: users' Otherwise I would be asking you to which user you refer. -- "What causes poverty?" Wrong question. Poverty is our primordial state. The real question is, "What causes wealth?" Hint: it ain't Socialism.
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2018-01-18 22:01 -0500 |
| Message-ID | <p3rn0d$hqc$1@jstuckle.eternal-september.org> |
| In reply to | #17658 |
On 1/18/2018 12:30 PM, nospam@ms.com wrote: > On Thu, 18 Jan 2018 18:18:36 +0100, "Christoph M. Becker" > <cmbecker69@arcor.de> wrote: > >>> Is there a PHP user forum somewhere, on the web? >> >> There are plenty available. Use your favorite search engine. > > Would you be able to recommend one or two good PHP web forums? > No good web forums, but this newsgroup is pretty good - despite a couple of trolls. Activity level isn't high but there are a few good people who are willing to help out. >>> So it's not finding function imagecreatefrompng. >> >> Ah, that's helpful! Most likely the GD extension is not available on >> the server. You can check that with phpinfo()[1]. If the extension is >> indeed missing, you may have to contact the server admins. >> >> [1] <http://www.php.net/manual/en/function.phpinfo.php> > > The GD extension is installed. > > Is imagecreatefrompng part of GD? If not, which extension are they > part of? > > Thanks for your help. > create a file: <?php phpinfo(); ?> Load it into your directory with a .php extension and load it in your browser. This will show you all of the PHP options. Look for GD support first. If that's there, then look for png support under GD. Also are you sure the png file you are referencing is a valid png? -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2018-01-18 22:06 -0500 |
| Message-ID | <p3rnbf$ikv$1@jstuckle.eternal-september.org> |
| In reply to | #17658 |
On 1/18/2018 12:30 PM, nospam@ms.com wrote: > On Thu, 18 Jan 2018 18:18:36 +0100, "Christoph M. Becker" > <cmbecker69@arcor.de> wrote: > >>> Is there a PHP user forum somewhere, on the web? >> >> There are plenty available. Use your favorite search engine. > > Would you be able to recommend one or two good PHP web forums? > >>> So it's not finding function imagecreatefrompng. >> >> Ah, that's helpful! Most likely the GD extension is not available on >> the server. You can check that with phpinfo()[1]. If the extension is >> indeed missing, you may have to contact the server admins. >> >> [1] <http://www.php.net/manual/en/function.phpinfo.php> > > The GD extension is installed. > > Is imagecreatefrompng part of GD? If not, which extension are they > part of? > > Thanks for your help. > Another question - what code do you have that's calling imagecreatefrompng? Why can't you use the png directly? -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2018-01-18 19:08 +0100 |
| Message-ID | <2121038.S4pPZQmjSh@PointedEars.de> |
| In reply to | #17656 |
nospam@ms.com wrote: ^^^^^^^^^^^^^ That is not only not an e-mail address, it is a faked address string for an *existing* second-level domain. That is a violation of Internet standards and blatant disregard for netiquette. <http://www.interhack.net/pubs/munging-harmful/> *PLONK* (pseudo-address added to killfile) > On Thu, 18 Jan 2018 17:18:56 +0100, "Christoph M. Becker" > <cmbecker69@arcor.de> wrote: >>By the way, php.general isn't a newsgroup, as far as I know. Did you >>mean the php-general@lists.php.net mailing list? > > There is a USENET group php.general, but it has very few new posts. Bad crosspostings aside, there *might* be a newsgroup php.general that is provided by the newsserver that *you* are using. It is _not_ a Usenet¹ newsgroup; there is no top-level hierarchy named “php” in Usenet. See also: <http://en.wikipedia.org/wiki/Usenet> _______ ¹ That is _not_ an abbreviation either. > Is there a PHP user forum somewhere, on the web? Yes. F’up2 poster -- PointedEars Zend Certified PHP Engineer <http://www.zend.com/en/yellow-pages/ZEND024953> <https://github.com/PointedEars> | <http://PointedEars.de/wsvn> Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2018-09-05 09:40 +0200 |
| Message-ID | <fv9fjpFca6oU5@mid.individual.net> |
| In reply to | #17654 |
nospam@ms.com: > On Thu, 18 Jan 2018 15:26:58 +0100, "Christoph M. Becker" > <cmbecker69@arcor.de> wrote: > >> On 18.01.2018 at 12:12, nospam@ms.com wrote: >> >>> The following PHP code does not work correctly; >> >> What do you expect the code to do, and what does it do? See also >> <http://www.catb.org/esr/faqs/smart-questions.html>. > > It's for a CAPTCHA verification. It's hosted with GoDaddy. On the old > server, it worked. It's been transferred to a new server, and it > doesn't work. > > The PHP spits out the following HTML code; > > <img > src="scripts/captcha/index.php?PHPSESSID=331f5041b67145685c5401104c602876" > style="vertical-align:middle" /> > > So for some reason the IMG element fails to load the image. Then you have to check, why the URL scripts/captcha/index.php?PHPSESSID=331f5041b67145685c5401104c602876 does not work. Maybe you forgot a slash at the beginning and it should be: /scripts/captcha/index.php?PHPSESSID=331f5041b67145685c5401104c602876 -- Arno Welzel https://arnowelzel.de https://de-rec-fahrrad.de http://fahrradzukunft.de
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | comp.lang.php
csiph-web