Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #14812

Re: Running same code multiple times, while only changing two parameters

From Denis McMahon <denismfmcmahon@gmail.com>
Newsgroups comp.lang.php
Subject Re: Running same code multiple times, while only changing two parameters
Date 2015-01-06 00:42 +0000
Organization A noiseless patient Spider
Message-ID <m8fb1t$ppm$2@dont-email.me> (permalink)
References (1 earlier) <m8cefl$35d$1@dont-email.me> <m8ch9f$35d$2@dont-email.me> <m8chgs$35d$3@dont-email.me> <4616b72a-9c1f-48d0-92f7-30a6c3e77352@googlegroups.com> <fc602659-a8e6-4863-b701-94ec4f63cfc6@googlegroups.com>

Show all headers | View raw


On Mon, 05 Jan 2015 12:50:26 -0800, semeon.risom wrote:

> Unfortunately, I'm getting the error below after replacing the original
> gabor.php file with the syntax you provided.
> 
> Parse error: syntax error, unexpected 'require' (T_REQUIRE) in
> C:\xampp\htdocs\amit\gabor-patch-generator\src\gabor.php on line 6

Yes, this is an issue caused by line wrapping in usenet.

I would have hoped that you would have sufficient php skill to realise 
that in the file, the url for the gabor library ends with the filename, 
and in the next line, the require statement is on it's own.

ie:

The code that wrapped like this:

------------------------------------------------------
<?php

// libgabor.php can be found at //
https://github.com/smathot/gabor-patch-generator/blob/master/src/
libgabor.php require("libgabor.php");
------------------------------------------------------

should be in the file like this:

------------------------------------------------------
<?php

// libgabor.php can be found at
// https://github.com/smathot/ ... /src/libgabor.php
require("libgabor.php");
------------------------------------------------------

(which I hope has now wrapped correctly)

As an alternative, replace it with:

------------------------------------------------------
<?php

/******
   libgabor.php can be found at 
   https://github.com/smathot/gabor-patch-generator/blob/master/src/
libgabor.php
******/
require("libgabor.php");
------------------------------------------------------

If you still don't understand what bit is the comment text and what bit 
is the statement, perhaps you need to find a very basic introduction to 
php tutorial.

The one at 

http://devzone.zend.com/6/php-101-php-for-the-absolute-beginner/

should be reasonable, you may wish to ignore web specific html etc bits.

Please DO NOT under any circumstances follow w3schools tutorials, they 
are frequently inaccurate and flawed.

-- 
Denis McMahon, denismfmcmahon@gmail.com

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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