Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #14716 > unrolled thread
| Started by | semeon.risom@gmail.com |
|---|---|
| First post | 2014-12-16 09:53 -0800 |
| Last post | 2014-12-17 17:28 +0100 |
| Articles | 20 on this page of 26 — 7 participants |
Back to article view | Back to comp.lang.php
PHP script error semeon.risom@gmail.com - 2014-12-16 09:53 -0800
Re: PHP script error Jerry Stuckle <jstucklex@attglobal.net> - 2014-12-16 14:17 -0500
Re: PHP script error semeon.risom@gmail.com - 2014-12-17 10:39 -0800
Re: PHP script error Tim Streater <timstreater@greenbee.net> - 2014-12-17 18:44 +0000
Re: PHP script error semeon.risom@gmail.com - 2014-12-17 11:02 -0800
Re: PHP script error semeon.risom@gmail.com - 2014-12-17 11:17 -0800
Re: PHP script error Tim Streater <timstreater@greenbee.net> - 2014-12-17 20:05 +0000
Re: PHP script error "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-12-17 22:19 +0100
Re: PHP script error semeon.risom@gmail.com - 2014-12-17 13:30 -0800
Re: PHP script error Jerry Stuckle <jstucklex@attglobal.net> - 2014-12-17 16:34 -0500
Re: PHP script error "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-12-18 00:00 +0100
Re: PHP script error Tim Streater <timstreater@greenbee.net> - 2014-12-17 22:03 +0000
Re: PHP script error Jerry Stuckle <jstucklex@attglobal.net> - 2014-12-17 17:20 -0500
Re: PHP script error Tim Streater <timstreater@greenbee.net> - 2014-12-17 22:40 +0000
OT: Quoting (was: PHP script error) "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-12-17 23:44 +0100
Re: OT: Quoting Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-12-18 00:21 +0100
[OT] Quoting (was: OT: Quoting) "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-12-18 01:30 +0100
Re: PHP script error Jerry Stuckle <jstucklex@attglobal.net> - 2014-12-17 15:05 -0500
Re: PHP script error semeon.risom@gmail.com - 2014-12-17 13:11 -0800
Re: PHP script error Jerry Stuckle <jstucklex@attglobal.net> - 2014-12-17 16:35 -0500
Re: PHP script error Doug Miller <doug_at_milmac_dot_com@example.com> - 2014-12-17 22:19 +0000
Re: PHP script error "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-12-16 20:25 +0100
Re: PHP script error Tim Streater <timstreater@greenbee.net> - 2014-12-16 20:58 +0000
Re: PHP script error Olaf Schmitt <thesys@gmx.de> - 2014-12-17 04:27 +0100
Re: PHP script error Jerry Stuckle <jstucklex@attglobal.net> - 2014-12-16 22:32 -0500
Re: PHP script error Olaf Schmitt <thesys@gmx.de> - 2014-12-17 17:28 +0100
Page 1 of 2 [1] 2 Next page →
| From | semeon.risom@gmail.com |
|---|---|
| Date | 2014-12-16 09:53 -0800 |
| Subject | PHP script error |
| Message-ID | <c4b24e9b-3145-473d-80c5-647d523f5e71@googlegroups.com> |
Hi -
Very new to PHP. I have a script (below) that I'm attempting to run on http://phpfiddle.org/. The purpose of using the script is to generate a series of png images that I'm hoping to use on another program. Unfortunately when I run it, I get the following error:
E_WARNING : type 2 -- require_once(main/startup.php) [function.require-once]: failed to open stream: No such file or directory -- at line 39
E_COMPILE_ERROR : type 64 -- require_once() [function.require]: Failed opening required 'main/startup.php' (include_path='.:/usr/local/lib/php53:main/inclibs') -- at line 39
Please let me know if you have any solutions. Thanks!
- Semeon
<?php
/**
* This file is just for displaying the stimulus image. It dynamically creates
* a PNG image based on the length & orientation parameters passed to it.
* This uses PHP's GD Library to dynamically create the image.
* http://www.php.net/manual/en/book.image.php
*/
// This script shouldn't redirect to index.php...
define('ENTRY_POINT', true);
require_once(dirname(__FILE__) . '/startup.php');
// Tell the browser this is going to be a PNG image instead of HTML or something else.
header("Content-type: image/png");
$width = Input::get('width', 400)->getValue();
$height = Input::get('height', 400)->getValue();;
$lineLength = Input::get('length', 78.58879089)->getValue();
$lineOrient = Input::get('orientation', 74.1545105)->getValue();
// Create the image canvas we'll work with. It has not been sent to the browser yet.
$stimulusImage = imagecreate($width, $height);
$centerX = $width / 2;
$centerY = $height / 2;
// PNGs need to have a color palette. This tells the PNG what colors will be rendered.
// I guess the first one becomes the background?
$bgColor = imagecolorallocatealpha($stimulusImage, 255, 255, 255, 127);
// Allocate the line color. Black & no transparency
$lineColor = imagecolorallocate($stimulusImage, 0, 0, 0);
// Calcualte the points of our line and draw it
// Why deg * pi / 600? The code converts from degrees to radians and attempts to approximately
// equate a unit change in length with a unit change in orientation. in other words we try to
// make it so that a 10 pixel chance in length is approximately perceptually similar to an x unit
// change in angle.
$lineTheta = $lineOrient * pi() / 600;
$lengthFactor = .5;
$pos1X = $centerX + ($lengthFactor * $lineLength * cos($lineTheta));
$pos1Y = $centerY + ($lengthFactor * $lineLength * sin($lineTheta));
$pos2X = $centerX - ($lengthFactor * $lineLength * cos($lineTheta));
$pos2Y = $centerY - ($lengthFactor * $lineLength * sin($lineTheta));
imageline($stimulusImage, $pos1X, $pos1Y, $pos2X, $pos2Y, $lineColor);
// Debug info
if (Input::get('debug')->getValue() == 'yes,please') {
imagestring(
$stimulusImage,
2, // Font. Different numbers represent different fonts of different sizes. ...Let's just use 2.
5, // Left position
$height - 15, // top position
'Length: ' . $lineLength . ', Orientation: ' . $lineOrient,
$lineColor
);
}
// Output the image to the browser
imagepng($stimulusImage);
// Destroy the image. Frees any memory associated with the image.
imagedestroy($stimulusImage);
?>
[toc] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2014-12-16 14:17 -0500 |
| Message-ID | <m6q0eu$km6$1@dont-email.me> |
| In reply to | #14716 |
On 12/16/2014 12:53 PM, semeon.risom@gmail.com wrote:
> Hi -
>
> Very new to PHP. I have a script (below) that I'm attempting to run on http://phpfiddle.org/. The purpose of using the script is to generate a series of png images that I'm hoping to use on another program. Unfortunately when I run it, I get the following error:
>
> E_WARNING : type 2 -- require_once(main/startup.php) [function.require-once]: failed to open stream: No such file or directory -- at line 39
> E_COMPILE_ERROR : type 64 -- require_once() [function.require]: Failed opening required 'main/startup.php' (include_path='.:/usr/local/lib/php53:main/inclibs') -- at line 39
>
>
> Please let me know if you have any solutions. Thanks!
>
> - Semeon
>
>
>
>
>
> <?php
>
> /**
> * This file is just for displaying the stimulus image. It dynamically creates
> * a PNG image based on the length & orientation parameters passed to it.
> * This uses PHP's GD Library to dynamically create the image.
> * http://www.php.net/manual/en/book.image.php
> */
>
> // This script shouldn't redirect to index.php...
> define('ENTRY_POINT', true);
> require_once(dirname(__FILE__) . '/startup.php');
>
> // Tell the browser this is going to be a PNG image instead of HTML or something else.
> header("Content-type: image/png");
>
> $width = Input::get('width', 400)->getValue();
> $height = Input::get('height', 400)->getValue();;
> $lineLength = Input::get('length', 78.58879089)->getValue();
> $lineOrient = Input::get('orientation', 74.1545105)->getValue();
>
> // Create the image canvas we'll work with. It has not been sent to the browser yet.
> $stimulusImage = imagecreate($width, $height);
> $centerX = $width / 2;
> $centerY = $height / 2;
>
> // PNGs need to have a color palette. This tells the PNG what colors will be rendered.
> // I guess the first one becomes the background?
> $bgColor = imagecolorallocatealpha($stimulusImage, 255, 255, 255, 127);
>
> // Allocate the line color. Black & no transparency
> $lineColor = imagecolorallocate($stimulusImage, 0, 0, 0);
>
> // Calcualte the points of our line and draw it
> // Why deg * pi / 600? The code converts from degrees to radians and attempts to approximately
> // equate a unit change in length with a unit change in orientation. in other words we try to
> // make it so that a 10 pixel chance in length is approximately perceptually similar to an x unit
> // change in angle.
> $lineTheta = $lineOrient * pi() / 600;
> $lengthFactor = .5;
> $pos1X = $centerX + ($lengthFactor * $lineLength * cos($lineTheta));
> $pos1Y = $centerY + ($lengthFactor * $lineLength * sin($lineTheta));
> $pos2X = $centerX - ($lengthFactor * $lineLength * cos($lineTheta));
> $pos2Y = $centerY - ($lengthFactor * $lineLength * sin($lineTheta));
> imageline($stimulusImage, $pos1X, $pos1Y, $pos2X, $pos2Y, $lineColor);
>
> // Debug info
> if (Input::get('debug')->getValue() == 'yes,please') {
> imagestring(
> $stimulusImage,
> 2, // Font. Different numbers represent different fonts of different sizes. ...Let's just use 2.
> 5, // Left position
> $height - 15, // top position
> 'Length: ' . $lineLength . ', Orientation: ' . $lineOrient,
> $lineColor
> );
> }
>
> // Output the image to the browser
> imagepng($stimulusImage);
>
> // Destroy the image. Frees any memory associated with the image.
> imagedestroy($stimulusImage);
>
>
> ?>
>
Just as the message said - the file in your require_once() (startup.php)
call is not found. Is it in the same directory as the script you're
calling it from? What is in __FILE__ at the time of the call?
The way you're doing it is also dependent on the directory your running
script is in. Once you get it working, if you move that script for some
reason, it will fail. A more portable way of doing it is to base
everything off the root directory of your web server, which can be found
in $_SERVER['DOCUMENT_ROOT'];
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================
[toc] | [prev] | [next] | [standalone]
| From | semeon.risom@gmail.com |
|---|---|
| Date | 2014-12-17 10:39 -0800 |
| Message-ID | <8768b48f-f809-4307-ba04-3a963fa19504@googlegroups.com> |
| In reply to | #14717 |
On Tuesday, 16 December 2014 13:17:15 UTC-6, Jerry Stuckle wrote:
> On 12/16/2014 12:53 PM, semeon.risom@gmail.com wrote:
> > Hi -
> >
> > Very new to PHP. I have a script (below) that I'm attempting to run on http://phpfiddle.org/. The purpose of using the script is to generate a series of png images that I'm hoping to use on another program. Unfortunately when I run it, I get the following error:
> >
> > E_WARNING : type 2 -- require_once(main/startup.php) [function.require-once]: failed to open stream: No such file or directory -- at line 39
> > E_COMPILE_ERROR : type 64 -- require_once() [function.require]: Failed opening required 'main/startup.php' (include_path='.:/usr/local/lib/php53:main/inclibs') -- at line 39
> >
> >
> > Please let me know if you have any solutions. Thanks!
> >
> > - Semeon
> >
> >
> >
> >
> >
> > <?php
> >
> > /**
> > * This file is just for displaying the stimulus image. It dynamically creates
> > * a PNG image based on the length & orientation parameters passed to it.
> > * This uses PHP's GD Library to dynamically create the image.
> > * http://www.php.net/manual/en/book.image.php
> > */
> >
> > // This script shouldn't redirect to index.php...
> > define('ENTRY_POINT', true);
> > require_once(dirname(__FILE__) . '/startup.php');
> >
> > // Tell the browser this is going to be a PNG image instead of HTML or something else.
> > header("Content-type: image/png");
> >
> > $width = Input::get('width', 400)->getValue();
> > $height = Input::get('height', 400)->getValue();;
> > $lineLength = Input::get('length', 78.58879089)->getValue();
> > $lineOrient = Input::get('orientation', 74.1545105)->getValue();
> >
> > // Create the image canvas we'll work with. It has not been sent to the browser yet.
> > $stimulusImage = imagecreate($width, $height);
> > $centerX = $width / 2;
> > $centerY = $height / 2;
> >
> > // PNGs need to have a color palette. This tells the PNG what colors will be rendered.
> > // I guess the first one becomes the background?
> > $bgColor = imagecolorallocatealpha($stimulusImage, 255, 255, 255, 127);
> >
> > // Allocate the line color. Black & no transparency
> > $lineColor = imagecolorallocate($stimulusImage, 0, 0, 0);
> >
> > // Calcualte the points of our line and draw it
> > // Why deg * pi / 600? The code converts from degrees to radians and attempts to approximately
> > // equate a unit change in length with a unit change in orientation. in other words we try to
> > // make it so that a 10 pixel chance in length is approximately perceptually similar to an x unit
> > // change in angle.
> > $lineTheta = $lineOrient * pi() / 600;
> > $lengthFactor = .5;
> > $pos1X = $centerX + ($lengthFactor * $lineLength * cos($lineTheta));
> > $pos1Y = $centerY + ($lengthFactor * $lineLength * sin($lineTheta));
> > $pos2X = $centerX - ($lengthFactor * $lineLength * cos($lineTheta));
> > $pos2Y = $centerY - ($lengthFactor * $lineLength * sin($lineTheta));
> > imageline($stimulusImage, $pos1X, $pos1Y, $pos2X, $pos2Y, $lineColor);
> >
> > // Debug info
> > if (Input::get('debug')->getValue() == 'yes,please') {
> > imagestring(
> > $stimulusImage,
> > 2, // Font. Different numbers represent different fonts of different sizes. ...Let's just use 2.
> > 5, // Left position
> > $height - 15, // top position
> > 'Length: ' . $lineLength . ', Orientation: ' . $lineOrient,
> > $lineColor
> > );
> > }
> >
> > // Output the image to the browser
> > imagepng($stimulusImage);
> >
> > // Destroy the image. Frees any memory associated with the image.
> > imagedestroy($stimulusImage);
> >
> >
> > ?>
> >
>
> Just as the message said - the file in your require_once() (startup.php)
> call is not found. Is it in the same directory as the script you're
> calling it from? What is in __FILE__ at the time of the call?
>
> The way you're doing it is also dependent on the directory your running
> script is in. Once you get it working, if you move that script for some
> reason, it will fail. A more portable way of doing it is to base
> everything off the root directory of your web server, which can be found
> in $_SERVER['DOCUMENT_ROOT'];
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> jstucklex@attglobal.net
> ==================
Just to clarify- Nothing is on the local machine except for the script above. The files I'm requesting are supposed to be coming PHP's GD Library: http://www.php.net/manual/en/book.image.php
[toc] | [prev] | [next] | [standalone]
| From | Tim Streater <timstreater@greenbee.net> |
|---|---|
| Date | 2014-12-17 18:44 +0000 |
| Message-ID | <171220141844457137%timstreater@greenbee.net> |
| In reply to | #14725 |
In article <8768b48f-f809-4307-ba04-3a963fa19504@googlegroups.com>, <semeon.risom@gmail.com> wrote: > Just to clarify- Nothing is on the local machine except for the script > above. The files I'm requesting are supposed to be coming PHP's GD > Library: http://www.php.net/manual/en/book.image.php And these form part of your local PHP environment do they? -- "... you must remember that if you're trying to propagate a creed of poverty, gentleness and tolerance, you need a very rich, powerful, authoritarian organisation to do it." - Vice-Pope Eric
[toc] | [prev] | [next] | [standalone]
| From | semeon.risom@gmail.com |
|---|---|
| Date | 2014-12-17 11:02 -0800 |
| Message-ID | <073c36b3-aa87-49c8-8fda-69b05cca0496@googlegroups.com> |
| In reply to | #14726 |
On Wednesday, 17 December 2014 12:44:52 UTC-6, Tim Streater wrote: > In article <8768b48f-f809-4307-ba04-3a963fa19504@googlegroups.com>, > <semeon.risom@gmail.com> wrote: > > > Just to clarify- Nothing is on the local machine except for the script > > above. The files I'm requesting are supposed to be coming PHP's GD > > Library: http://www.php.net/manual/en/book.image.php > > And these form part of your local PHP environment do they? > > -- > "... you must remember that if you're trying to propagate a creed of > poverty, gentleness and tolerance, you need a very rich, powerful, > authoritarian organisation to do it." - Vice-Pope Eric Unfortunately I'm not understanding the question. Again, I'm still very new on PHP. This is my first use of this programming language.
[toc] | [prev] | [next] | [standalone]
| From | semeon.risom@gmail.com |
|---|---|
| Date | 2014-12-17 11:17 -0800 |
| Message-ID | <41b96df0-434f-409a-bcd6-7d004c66fdf0@googlegroups.com> |
| In reply to | #14727 |
On Wednesday, 17 December 2014 13:02:06 UTC-6, semeon...@gmail.com wrote: > On Wednesday, 17 December 2014 12:44:52 UTC-6, Tim Streater wrote: > > In article <8768b48f-f809-4307-ba04-3a963fa19504@googlegroups.com>, > > <semeon.risom@gmail.com> wrote: > > > > > Just to clarify- Nothing is on the local machine except for the script > > > above. The files I'm requesting are supposed to be coming PHP's GD > > > Library: http://www.php.net/manual/en/book.image.php > > > > And these form part of your local PHP environment do they? > > > > -- > > "... you must remember that if you're trying to propagate a creed of > > poverty, gentleness and tolerance, you need a very rich, powerful, > > authoritarian organisation to do it." - Vice-Pope Eric > > Unfortunately I'm not understanding the question. > > Again, I'm still very new on PHP. This is my first use of this programming language. After using XAMPP I'm getting the following message when trying to open the stimulus_image.php Warning: require_once(C:\xampp\htdocs\amit/startup.php): failed to open stream: No such file or directory in C:\xampp\htdocs\amit\stimulus_image.php on line 12 Fatal error: require_once(): Failed opening required 'C:\xampp\htdocs\amit/startup.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\amit\stimulus_image.php on line 12
[toc] | [prev] | [next] | [standalone]
| From | Tim Streater <timstreater@greenbee.net> |
|---|---|
| Date | 2014-12-17 20:05 +0000 |
| Message-ID | <171220142005076467%timstreater@greenbee.net> |
| In reply to | #14728 |
In article <41b96df0-434f-409a-bcd6-7d004c66fdf0@googlegroups.com>,
<semeon.risom@gmail.com> wrote:
> On Wednesday, 17 December 2014 13:02:06 UTC-6, semeon...@gmail.com wrote:
> > On Wednesday, 17 December 2014 12:44:52 UTC-6, Tim Streater wrote:
> > > In article <8768b48f-f809-4307-ba04-3a963fa19504@googlegroups.com>,
> > > <semeon.risom@gmail.com> wrote:
> > >
> > > > Just to clarify- Nothing is on the local machine except for the script
> > > > above. The files I'm requesting are supposed to be coming PHP's GD
> > > > Library: http://www.php.net/manual/en/book.image.php
> > >
> > > And these form part of your local PHP environment do they?
> > Unfortunately I'm not understanding the question.
> >
> > Again, I'm still very new on PHP. This is my first use of this programming
> > language.
>
> After using XAMPP I'm getting the following message when trying to open the
> stimulus_image.php
> Warning: require_once(C:\xampp\htdocs\amit/startup.php): failed to open
> stream: No such file or directory in C:\xampp\htdocs\amit\stimulus_image.php
> on line 12
>
> Fatal error: require_once(): Failed opening required
> 'C:\xampp\htdocs\amit/startup.php' (include_path='.;C:\xampp\php\PEAR') in
> C:\xampp\htdocs\amit\stimulus_image.php on line 12
So where are startup.php and stimulus_image.php ??
Hmmm, I see you are using Windows. So you must have installed PHP. Does
that PHP package have the GD Library within it?
--
"I love the way that Microsoft follows standards.
In much the same manner as fish follow migrating caribou."
- Paul Tomblin, ASR
[toc] | [prev] | [next] | [standalone]
| From | "Christoph M. Becker" <cmbecker69@arcor.de> |
|---|---|
| Date | 2014-12-17 22:19 +0100 |
| Message-ID | <m6ss06$rk4$1@solani.org> |
| In reply to | #14729 |
Tim Streater wrote: > In article <41b96df0-434f-409a-bcd6-7d004c66fdf0@googlegroups.com>, > <semeon.risom@gmail.com> wrote: > >> C:\xampp\htdocs\amit\stimulus_image.php on line 12 > > So where are startup.php and stimulus_image.php ?? stimulus_image.php is in C:\xampp\htdocs\amit\, and startup.php is missing, apparently. > Hmmm, I see you are using Windows. So you must have installed PHP. Does > that PHP package have the GD Library within it? GD is delivered with XAMPP and is enabled by default. However, that is not the immediate problem, which is the missing startup.php. I don't know where this file is supposed to come from (maybe from a book or tutorial), but apparently it contains at least the definition of the class Input, which is used in stimulus_image.php. BTW: Tim, your newsreader creates rather unconventional nested quotes; usually there is only a single space after the last >, but your software puts spaces between the quotes. -- Christoph M. Becker
[toc] | [prev] | [next] | [standalone]
| From | semeon.risom@gmail.com |
|---|---|
| Date | 2014-12-17 13:30 -0800 |
| Message-ID | <0201ac12-cc58-4c51-8382-fe3c8cef9779@googlegroups.com> |
| In reply to | #14733 |
On Wednesday, 17 December 2014 15:19:06 UTC-6, Christoph M. Becker wrote: > Tim Streater wrote: > > > In article <41b96df0-434f-409a-bcd6-7d004c66fdf0@googlegroups.com>, > > <semeon.risom@gmail.com> wrote: > > > >> C:\xampp\htdocs\amit\stimulus_image.php on line 12 > > > > So where are startup.php and stimulus_image.php ?? > > stimulus_image.php is in C:\xampp\htdocs\amit\, and startup.php is > missing, apparently. > > > Hmmm, I see you are using Windows. So you must have installed PHP. Does > > that PHP package have the GD Library within it? > > GD is delivered with XAMPP and is enabled by default. However, that is > not the immediate problem, which is the missing startup.php. I don't > know where this file is supposed to come from (maybe from a book or > tutorial), but apparently it contains at least the definition of the > class Input, which is used in stimulus_image.php. > > BTW: Tim, your newsreader creates rather unconventional nested quotes; > usually there is only a single space after the last >, but your software > puts spaces between the quotes. > > -- > Christoph M. Becker Ok, that's making a bit more sense. Startup.php isn't some sort of default php file that's already part of the GD Library?
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2014-12-17 16:34 -0500 |
| Message-ID | <m6sst7$h6a$2@dont-email.me> |
| In reply to | #14736 |
On 12/17/2014 4:30 PM, semeon.risom@gmail.com wrote: > On Wednesday, 17 December 2014 15:19:06 UTC-6, Christoph M. Becker wrote: >> Tim Streater wrote: >> >>> In article <41b96df0-434f-409a-bcd6-7d004c66fdf0@googlegroups.com>, >>> <semeon.risom@gmail.com> wrote: >>> >>>> C:\xampp\htdocs\amit\stimulus_image.php on line 12 >>> >>> So where are startup.php and stimulus_image.php ?? >> >> stimulus_image.php is in C:\xampp\htdocs\amit\, and startup.php is >> missing, apparently. >> >>> Hmmm, I see you are using Windows. So you must have installed PHP. Does >>> that PHP package have the GD Library within it? >> >> GD is delivered with XAMPP and is enabled by default. However, that is >> not the immediate problem, which is the missing startup.php. I don't >> know where this file is supposed to come from (maybe from a book or >> tutorial), but apparently it contains at least the definition of the >> class Input, which is used in stimulus_image.php. >> >> BTW: Tim, your newsreader creates rather unconventional nested quotes; >> usually there is only a single space after the last >, but your software >> puts spaces between the quotes. >> >> -- >> Christoph M. Becker > > Ok, that's making a bit more sense. Startup.php isn't some sort of default php file that's already part of the GD Library? > No. You don't need to include or require any .php files if they are already part of the library. They're already defined in PHP. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | "Christoph M. Becker" <cmbecker69@arcor.de> |
|---|---|
| Date | 2014-12-18 00:00 +0100 |
| Message-ID | <m6t1tt$hcr$1@solani.org> |
| In reply to | #14736 |
semeon.risom@gmail.com wrote: > Ok, that's making a bit more sense. Startup.php isn't some sort of > default php file that's already part of the GD Library? No it is not. Either you can get the file, or you have to rewrite your script. As far as I can see, only the expressions Input::get(...)->getValue() would have to be replaced, what could easily be done with filter_input[1]. And of course, you would have to remove the require_once statement that tries to include startup.php. [1] <http://php.net/manual/en/function.filter-input.php> -- Christoph M. Becker
[toc] | [prev] | [next] | [standalone]
| From | Tim Streater <timstreater@greenbee.net> |
|---|---|
| Date | 2014-12-17 22:03 +0000 |
| Message-ID | <171220142203169041%timstreater@greenbee.net> |
| In reply to | #14733 |
In article <m6ss06$rk4$1@solani.org>, Christoph M. Becker <cmbecker69@arcor.de> wrote: >Tim Streater wrote: > >> In article <41b96df0-434f-409a-bcd6-7d004c66fdf0@googlegroups.com>, >> <semeon.risom@gmail.com> wrote: >> >>> C:\xampp\htdocs\amit\stimulus_image.php on line 12 >> >> So where are startup.php and stimulus_image.php ?? > >stimulus_image.php is in C:\xampp\htdocs\amit\, and startup.php is >missing, apparently. > >> Hmmm, I see you are using Windows. So you must have installed PHP. Does >> that PHP package have the GD Library within it? > >GD is delivered with XAMPP and is enabled by default. Good. That was where I was going, but if that's the case then that won't be a subsequent problem :-) >However, that is >not the immediate problem, which is the missing startup.php. I don't >know where this file is supposed to come from (maybe from a book or >tutorial), but apparently it contains at least the definition of the >class Input, which is used in stimulus_image.php. > >BTW: Tim, your newsreader creates rather unconventional nested quotes; >usually there is only a single space after the last >, but your software >puts spaces between the quotes. Mmmm. Yes, I've seen that. This is Thoth, which is perhaps not clever enough to add a space after the last quote. I've altered the default quoting, but as you see, it now looks like there are no spaces at all. -- "People don't buy Microsoft for quality, they buy it for compatibility with what Bob in accounting bought last year. Trace it back - they buy Microsoft because the IBM Selectric didn't suck much" - P Seebach, afc
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2014-12-17 17:20 -0500 |
| Message-ID | <m6svjb$ti2$1@dont-email.me> |
| In reply to | #14741 |
On 12/17/2014 5:03 PM, Tim Streater wrote: > In article <m6ss06$rk4$1@solani.org>, Christoph M. Becker > <cmbecker69@arcor.de> wrote: > >> Tim Streater wrote: >> >>> In article <41b96df0-434f-409a-bcd6-7d004c66fdf0@googlegroups.com>, >>> <semeon.risom@gmail.com> wrote: >>> >>>> C:\xampp\htdocs\amit\stimulus_image.php on line 12 >>> >>> So where are startup.php and stimulus_image.php ?? >> >> stimulus_image.php is in C:\xampp\htdocs\amit\, and startup.php is >> missing, apparently. >> >>> Hmmm, I see you are using Windows. So you must have installed PHP. Does >>> that PHP package have the GD Library within it? >> >> GD is delivered with XAMPP and is enabled by default. > > Good. That was where I was going, but if that's the case then that > won't be a subsequent problem :-) > >> However, that is >> not the immediate problem, which is the missing startup.php. I don't >> know where this file is supposed to come from (maybe from a book or >> tutorial), but apparently it contains at least the definition of the >> class Input, which is used in stimulus_image.php. >> >> BTW: Tim, your newsreader creates rather unconventional nested quotes; >> usually there is only a single space after the last >, but your software >> puts spaces between the quotes. > > Mmmm. Yes, I've seen that. This is Thoth, which is perhaps not clever > enough to add a space after the last quote. I've altered the default > quoting, but as you see, it now looks like there are no spaces at all. > Looks fine here, Tim. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | Tim Streater <timstreater@greenbee.net> |
|---|---|
| Date | 2014-12-17 22:40 +0000 |
| Message-ID | <171220142240484185%timstreater@greenbee.net> |
| In reply to | #14744 |
In article <m6svjb$ti2$1@dont-email.me>, Jerry Stuckle <jstucklex@attglobal.net> wrote: >On 12/17/2014 5:03 PM, Tim Streater wrote: >> In article <m6ss06$rk4$1@solani.org>, Christoph M. Becker >> <cmbecker69@arcor.de> wrote: >>> BTW: Tim, your newsreader creates rather unconventional nested quotes; >>> usually there is only a single space after the last >, but your software >>> puts spaces between the quotes. >> >> Mmmm. Yes, I've seen that. This is Thoth, which is perhaps not clever >> enough to add a space after the last quote. I've altered the default >> quoting, but as you see, it now looks like there are no spaces at all. > >Looks fine here, Tim. Good, I'll leave it like that then. -- "The idea that Bill Gates has appeared like a knight in shining armour to lead all customers out of a mire of technological chaos neatly ignores the fact that it was he who, by peddling second-rate technology, led them into it in the first place." - Douglas Adams
[toc] | [prev] | [next] | [standalone]
| From | "Christoph M. Becker" <cmbecker69@arcor.de> |
|---|---|
| Date | 2014-12-17 23:44 +0100 |
| Subject | OT: Quoting (was: PHP script error) |
| Message-ID | <m6t112$e0o$1@solani.org> |
| In reply to | #14741 |
Tim Streater wrote: > In article <m6ss06$rk4$1@solani.org>, Christoph M. Becker > <cmbecker69@arcor.de> wrote: > >> BTW: Tim, your newsreader creates rather unconventional nested quotes; >> usually there is only a single space after the last >, but your software >> puts spaces between the quotes. > > Mmmm. Yes, I've seen that. This is Thoth, which is perhaps not clever > enough to add a space after the last quote. I've altered the default > quoting, but as you see, it now looks like there are no spaces at all. Indeed. However, I've just looked up RFC 3676 and the section on Quoting[1] says that a trailing space and no trailing space are semantically identical, but intermediate spaces are not. So it seems that it's more correct now (and my Thunderbird shows the colored quote bars correctly). [1] <http://tools.ietf.org/html/rfc3676#section-4.5> -- Christoph M. Becker
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2014-12-18 00:21 +0100 |
| Subject | Re: OT: Quoting |
| Message-ID | <2320824.gmFN5yl2v5@PointedEars.de> |
| In reply to | #14747 |
Christoph M. Becker wrote:
> […] I've just looked up RFC 3676 and the section on Quoting[1] says that a
> trailing space and no trailing space are semantically identical, but
> intermediate spaces are not. So it seems that it's more correct now (and
> my Thunderbird shows the colored quote bars correctly).
>
> [1] <http://tools.ietf.org/html/rfc3676#section-4.5>
| 4.5. Quoting
|
| In Format=Flowed, the canonical quote indicator (or quote mark) is
^^^^^^^^^^^^^^^^
| one or more close angle bracket (">") characters. […]
By sheer coincidence, that applies to Tim’s posting. Elsewhere it is just
personal preference, however one can see the possibility for ambiguity of
content; interesting.
I recommend to use the “[OT]” *tag* instead, in order to avoid the same.
--
PointedEars
Zend Certified PHP Engineer
Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | "Christoph M. Becker" <cmbecker69@arcor.de> |
|---|---|
| Date | 2014-12-18 01:30 +0100 |
| Subject | [OT] Quoting (was: OT: Quoting) |
| Message-ID | <m6t772$437$1@solani.org> |
| In reply to | #14750 |
Thomas 'PointedEars' Lahn wrote:
> Christoph M. Becker wrote:
>
>> […] I've just looked up RFC 3676 and the section on Quoting[1] says that a
>> trailing space and no trailing space are semantically identical, but
>> intermediate spaces are not. So it seems that it's more correct now (and
>> my Thunderbird shows the colored quote bars correctly).
>>
>> [1] <http://tools.ietf.org/html/rfc3676#section-4.5>
>
> | 4.5. Quoting
> |
> | In Format=Flowed, the canonical quote indicator (or quote mark) is
> ^^^^^^^^^^^^^^^^
> | one or more close angle bracket (">") characters. […]
Shoot! I shouldn't have missed that. Thanks for pointing out my mistake.
> By sheer coincidence, that applies to Tim’s posting. Elsewhere it is just
> personal preference, however one can see the possibility for ambiguity of
> content; interesting.
And also I'm saddened that there is no general standard.
> I recommend to use the “[OT]” *tag* instead, in order to avoid the same.
ACK. Thanks.
--
Christoph M. Becker
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2014-12-17 15:05 -0500 |
| Message-ID | <m6snmb$o0s$1@dont-email.me> |
| In reply to | #14728 |
On 12/17/2014 2:17 PM, semeon.risom@gmail.com wrote: > On Wednesday, 17 December 2014 13:02:06 UTC-6, semeon...@gmail.com wrote: >> On Wednesday, 17 December 2014 12:44:52 UTC-6, Tim Streater wrote: >>> In article <8768b48f-f809-4307-ba04-3a963fa19504@googlegroups.com>, >>> <semeon.risom@gmail.com> wrote: >>> >>>> Just to clarify- Nothing is on the local machine except for the script >>>> above. The files I'm requesting are supposed to be coming PHP's GD >>>> Library: http://www.php.net/manual/en/book.image.php >>> >>> And these form part of your local PHP environment do they? >>> >>> -- >>> "... you must remember that if you're trying to propagate a creed of >>> poverty, gentleness and tolerance, you need a very rich, powerful, >>> authoritarian organisation to do it." - Vice-Pope Eric >> >> Unfortunately I'm not understanding the question. >> >> Again, I'm still very new on PHP. This is my first use of this programming language. > > After using XAMPP I'm getting the following message when trying to open the stimulus_image.php > > > Warning: require_once(C:\xampp\htdocs\amit/startup.php): failed to open stream: No such file or directory in C:\xampp\htdocs\amit\stimulus_image.php on line 12 > > Fatal error: require_once(): Failed opening required 'C:\xampp\htdocs\amit/startup.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\amit\stimulus_image.php on line 12 > Once again I ask - does the file c:/xampp/htdocs/amit/startup.php exist? You're including it, but the message indicates it is not present - at least in the directory you requested it from. require_once includes another file in the existing one. If the file cannot be included, you get the error you see. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
| From | semeon.risom@gmail.com |
|---|---|
| Date | 2014-12-17 13:11 -0800 |
| Message-ID | <949aeb65-ea37-4e1d-a723-cf87ca351f86@googlegroups.com> |
| In reply to | #14730 |
On Wednesday, 17 December 2014 14:05:56 UTC-6, Jerry Stuckle wrote: > On 12/17/2014 2:17 PM, semeon.risom@gmail.com wrote: > > On Wednesday, 17 December 2014 13:02:06 UTC-6, semeon...@gmail.com wrote: > >> On Wednesday, 17 December 2014 12:44:52 UTC-6, Tim Streater wrote: > >>> In article <8768b48f-f809-4307-ba04-3a963fa19504@googlegroups.com>, > >>> <semeon.risom@gmail.com> wrote: > >>> > >>>> Just to clarify- Nothing is on the local machine except for the script > >>>> above. The files I'm requesting are supposed to be coming PHP's GD > >>>> Library: http://www.php.net/manual/en/book.image.php > >>> > >>> And these form part of your local PHP environment do they? > >>> > >>> -- > >>> "... you must remember that if you're trying to propagate a creed of > >>> poverty, gentleness and tolerance, you need a very rich, powerful, > >>> authoritarian organisation to do it." - Vice-Pope Eric > >> > >> Unfortunately I'm not understanding the question. > >> > >> Again, I'm still very new on PHP. This is my first use of this programming language. > > > > After using XAMPP I'm getting the following message when trying to open the stimulus_image.php > > > > > > Warning: require_once(C:\xampp\htdocs\amit/startup.php): failed to open stream: No such file or directory in C:\xampp\htdocs\amit\stimulus_image.php on line 12 > > > > Fatal error: require_once(): Failed opening required 'C:\xampp\htdocs\amit/startup.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\amit\stimulus_image.php on line 12 > > > > Once again I ask - does the file c:/xampp/htdocs/amit/startup.php > exist? You're including it, but the message indicates it is not present > - at least in the directory you requested it from. > > require_once includes another file in the existing one. If the file > cannot be included, you get the error you see. > > -- > ================== > Remove the "x" from my email address > Jerry Stuckle > jstucklex@attglobal.net > ================== Ah sorry. No there is no startup.php file in that directory. This file wasn't given to me.
[toc] | [prev] | [next] | [standalone]
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Date | 2014-12-17 16:35 -0500 |
| Message-ID | <m6ssuq$h6a$3@dont-email.me> |
| In reply to | #14732 |
On 12/17/2014 4:11 PM, semeon.risom@gmail.com wrote: > On Wednesday, 17 December 2014 14:05:56 UTC-6, Jerry Stuckle wrote: >> On 12/17/2014 2:17 PM, semeon.risom@gmail.com wrote: >>> On Wednesday, 17 December 2014 13:02:06 UTC-6, semeon...@gmail.com wrote: >>>> On Wednesday, 17 December 2014 12:44:52 UTC-6, Tim Streater wrote: >>>>> In article <8768b48f-f809-4307-ba04-3a963fa19504@googlegroups.com>, >>>>> <semeon.risom@gmail.com> wrote: >>>>> >>>>>> Just to clarify- Nothing is on the local machine except for the script >>>>>> above. The files I'm requesting are supposed to be coming PHP's GD >>>>>> Library: http://www.php.net/manual/en/book.image.php >>>>> >>>>> And these form part of your local PHP environment do they? >>>>> >>>>> -- >>>>> "... you must remember that if you're trying to propagate a creed of >>>>> poverty, gentleness and tolerance, you need a very rich, powerful, >>>>> authoritarian organisation to do it." - Vice-Pope Eric >>>> >>>> Unfortunately I'm not understanding the question. >>>> >>>> Again, I'm still very new on PHP. This is my first use of this programming language. >>> >>> After using XAMPP I'm getting the following message when trying to open the stimulus_image.php >>> >>> >>> Warning: require_once(C:\xampp\htdocs\amit/startup.php): failed to open stream: No such file or directory in C:\xampp\htdocs\amit\stimulus_image.php on line 12 >>> >>> Fatal error: require_once(): Failed opening required 'C:\xampp\htdocs\amit/startup.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\amit\stimulus_image.php on line 12 >>> >> >> Once again I ask - does the file c:/xampp/htdocs/amit/startup.php >> exist? You're including it, but the message indicates it is not present >> - at least in the directory you requested it from. >> >> require_once includes another file in the existing one. If the file >> cannot be included, you get the error you see. >> >> -- >> ================== >> Remove the "x" from my email address >> Jerry Stuckle >> jstucklex@attglobal.net >> ================== > > Ah sorry. No there is no startup.php file in that directory. This file wasn't given to me. > Which is why it doesn't work. You need to get that file from whomever gave you the script. And once you get that, you might find other things which are missing, also. -- ================== Remove the "x" from my email address Jerry Stuckle jstucklex@attglobal.net ==================
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | comp.lang.php
csiph-web