Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #14799
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Ben Bacarisse <ben.usenet@bsb.me.uk> |
| Newsgroups | comp.lang.php |
| Subject | Re: Running same code multiple times, while only changing two parameters |
| Date | Sun, 04 Jan 2015 20:58:02 +0000 |
| Organization | A noiseless patient Spider |
| Lines | 42 |
| Message-ID | <874ms6z2jp.fsf@bsb.me.uk> (permalink) |
| References | <7a2f6bc8-1f1d-4e65-98ea-f9d4f80e8c0b@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain |
| Injection-Info | mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="29312"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19PSdslS1wHwafom0tqSYtOTidHsUGS198=" |
| Cancel-Lock | sha1:MwGtT+QcIuU8u/LMfdCKf/lsPvQ= sha1:7oRG9gS82RdFq/lBRPioslf7GzU= |
| X-BSB-Auth | 1.d97b2ce53497fcec6efc.20150104205802GMT.874ms6z2jp.fsf@bsb.me.uk |
| Xref | csiph.com comp.lang.php:14799 |
Show key headers only | View raw
semeon.risom@gmail.com writes: > Beginner at PHP. I'm attempting to run the piece of code (attached > below) that will generate an image. What I'm attempting to do is run > the same piece of code 600 times to create 600 images. The only change > is two parameters labeled "orientation" and "frequency", You mean "orient" and "freq" I think. > which I have > a list of values I'm hoping to feed into the code. > > As it is, the code gives the option of including each value into their > respective parameters at once, but unfortunately creates an image for > all possible pairs of values (600^2, I think). Only if you have 600 different "orient" values and 600 different "freq" values, and you ask the code to run them all at once. You'd get 600 images if you had, for example, 24 orientations and 25 frequencies. > I also get the following message if I exceed a 30 second loading time: > > "Fatal error: Maximum execution time of 30 seconds exceeded in > /home/cogscinl/public_html/files/software/gabor/libgabor.php on line > 69 This is a common limit for PHP (it's the default limit in fact). You might be able to change it, but that usually requires you to have some sort of administrator rights. > Any advice on a way to work this code to create the 600 images? I'm not sure what the problem is. For what different parameter values do you want to generate images? (At a guess, I think you really want all 600*600 images but because of this time limit you want to generate them 600 at a time, but guessing is a flawed method of giving advice.) <snip> -- Ben.
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Running same code multiple times, while only changing two parameters semeon.risom@gmail.com - 2015-01-04 08:47 -0800
Re: Running same code multiple times, while only changing two parameters "J.O. Aho" <user@example.net> - 2015-01-04 19:13 +0100
Re: Running same code multiple times, while only changing two parameters semeon.risom@gmail.com - 2015-01-04 13:18 -0800
Re: Running same code multiple times, while only changing two parameters Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-01-04 20:58 +0000
Re: Running same code multiple times, while only changing two parameters semeon.risom@gmail.com - 2015-01-04 13:15 -0800
Re: Running same code multiple times, while only changing two parameters "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-01-04 23:21 +0100
Re: Running same code multiple times, while only changing two parameters Richard Damon <Richard@Damon-Family.org> - 2015-01-04 16:21 -0500
Re: Running same code multiple times, while only changing two parameters Denis McMahon <denismfmcmahon@gmail.com> - 2015-01-04 22:22 +0000
Re: Running same code multiple times, while only changing two parameters Denis McMahon <denismfmcmahon@gmail.com> - 2015-01-04 23:10 +0000
Re: Running same code multiple times, while only changing two parameters Denis McMahon <denismfmcmahon@gmail.com> - 2015-01-04 23:14 +0000
Re: Running same code multiple times, while only changing two parameters semeon.risom@gmail.com - 2015-01-05 12:47 -0800
Re: Running same code multiple times, while only changing two parameters semeon.risom@gmail.com - 2015-01-05 12:50 -0800
Re: Running same code multiple times, while only changing two parameters Denis McMahon <denismfmcmahon@gmail.com> - 2015-01-06 00:42 +0000
Re: Running same code multiple times, while only changing two parameters Denis McMahon <denismfmcmahon@gmail.com> - 2015-01-06 18:59 +0000
Re: Running same code multiple times, while only changing two parameters Denis McMahon <denismfmcmahon@gmail.com> - 2015-01-06 00:28 +0000
csiph-web