Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

A CONS is an object which cares. -- Bernie Greenberg.


devel / comp.lang.php / Stop spamming (Was: JSON and PHP)

SubjectAuthor
* Re: JSON and PHPH H H H H H H H H H H H H H H H H H E
`- Stop spamming (Was: JSON and PHP)J.O. Aho

1
Re: JSON and PHP

<62afb95a-5d0e-4c7e-9c77-342b0f983a08n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=755&group=comp.lang.php#755

  copy link   Newsgroups: comp.lang.php
X-Received: by 2002:a05:620a:2b99:b0:6ff:aecc:3396 with SMTP id dz25-20020a05620a2b9900b006ffaecc3396mr2392279qkb.96.1672852216679;
Wed, 04 Jan 2023 09:10:16 -0800 (PST)
X-Received: by 2002:a81:83c5:0:b0:4ba:4c49:dc93 with SMTP id
t188-20020a8183c5000000b004ba4c49dc93mr193072ywf.339.1672852216449; Wed, 04
Jan 2023 09:10:16 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.php
Date: Wed, 4 Jan 2023 09:10:16 -0800 (PST)
In-Reply-To: <k13pjjF4sbjU4@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=82.131.38.241; posting-account=ODZcTwoAAAA1dkd0WUQjhwbvDyYEiWdh
NNTP-Posting-Host: 82.131.38.241
References: <tog2vc$tnl$21@gallifrey.nk.ca> <k12emkF4sbjU3@mid.individual.net>
<tohkk5$f64$1@gallifrey.nk.ca> <k13pjjF4sbjU4@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <62afb95a-5d0e-4c7e-9c77-342b0f983a08n@googlegroups.com>
Subject: Re: JSON and PHP
From: angel00000100000@icloud.com (H H H H H H H H H H H H H H H H H H E)
Injection-Date: Wed, 04 Jan 2023 17:10:16 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3485
 by: H H H H H H H H H H - Wed, 4 Jan 2023 17:10 UTC

Hey, can U help me ------> https://groups.google.com/g/magic/c/CRDqi-wyQJU

?

Please help...

On Wednesday, December 28, 2022 at 11:09:15 PM UTC+2, J.O. Aho wrote:
> On 28/12/2022 15.42, The Doctor wrote:
> > In article <k12emk...@mid.individual.net>,
> > J.O. Aho <us...@example.net> wrote:
> >> On 28/12/2022 01.34, The Doctor wrote:
> >>> Trying to implement a JSON array in PHP
> >>> Using
> >>
> >> <too much code so removed, use a code repository and link to it>
> >>
> >>> Just wonder how to supress repeats.
> >>
> >> Don't insert the same data multiple times into an array.
> >>
> >> Here is a short code demonstrating what you are doing
> >> --- example.php ---
> >> <?PHP
> >> for($i = 0; $i < 3; $i++) { // this replaces the foreach in the original
> >> code
> >> $MyObj[] = array("same each time", "this from round $i");
> >> var_dump($MyObj);
> >> }
> >> ?>
> >> --- eof ---
> >>
> >> You can see how the array grows each iteration of the loop.
> >>
> >
> > Just that we are converting from php to php/json.
> The issue ain't related to the conversion, it's you logic that is flawed.
> > Further, the foreach is due to a line that is coming is from
> > a previous session being passed on.
> But it's your foreach loop that makes you to have duplicates in your
> example in the same way as in the small example file. Take some time and
> think about what happens in each iteration, when you know what "$MyObj[]
> =" means, then you can make the proper changes in your own code.
>
> I would also think you could simplify the whole thing for example a lot
> of the data is static, just set that data once not each time in a
> foreach loop and also as Arno already pointed out, don't add a single
> value as an array, you just make things more complex than they need to be.
>
> Remember to not use input type="hidden" for information a user already
> have posted to you, those goes into the session, the only thing would be
> an identifier that is unique for this transaction. Prices you should
> never take from post values, only the amount of items, for if you start
> trust the posted values, I will be able to buy everything you have for 0
> bucks.
>
> --
> //Aho

Stop spamming (Was: JSON and PHP)

<k1lujhFb0mU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=756&group=comp.lang.php#756

  copy link   Newsgroups: comp.lang.php
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: user@example.net (J.O. Aho)
Newsgroups: comp.lang.php
Subject: Stop spamming (Was: JSON and PHP)
Date: Wed, 4 Jan 2023 19:24:49 +0100
Lines: 5
Message-ID: <k1lujhFb0mU1@mid.individual.net>
References: <tog2vc$tnl$21@gallifrey.nk.ca> <k12emkF4sbjU3@mid.individual.net>
<tohkk5$f64$1@gallifrey.nk.ca> <k13pjjF4sbjU4@mid.individual.net>
<62afb95a-5d0e-4c7e-9c77-342b0f983a08n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 59cXLmzB9Ib5WSYaCP5vdAFyLGJhSUtKTDnVJNjDKceqRNQ8Fl
Cancel-Lock: sha1:aCTNTHwa/gRprwuIdbp+0gGAkKM=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Content-Language: en-US-large
In-Reply-To: <62afb95a-5d0e-4c7e-9c77-342b0f983a08n@googlegroups.com>
 by: J.O. Aho - Wed, 4 Jan 2023 18:24 UTC

On 04/01/2023 18.10, H H H H H H H H H H H H H H H H H H E wrote:
> Hey, can U help me ------> https://groups.fakeusergroupagent..example.com/g/magic/c/CRDqi-wyQJU

Only if you stop spamming for 18 months first.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor