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


Groups > comp.lang.php > #14716 > unrolled thread

PHP script error

Started bysemeon.risom@gmail.com
First post2014-12-16 09:53 -0800
Last post2014-12-17 17:28 +0100
Articles 6 on this page of 26 — 7 participants

Back to article view | Back to comp.lang.php


Contents

  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 2 of 2 — ← Prev page 1 [2]


#14743

FromDoug Miller <doug_at_milmac_dot_com@example.com>
Date2014-12-17 22:19 +0000
Message-ID<XnsA406B03472430dougmilmaccom@213.239.209.88>
In reply to#14732
semeon.risom@gmail.com wrote in
news:949aeb65-ea37-4e1d-a723-cf87ca351f86@googlegroups.com: 

>> > 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 
>> > 
> Ah sorry. No there is no startup.php file in that directory.
> This file wasn't given to me. 
> 

And are you still wondering why you get an error message saying "No such file or directory" ?

[toc] | [prev] | [next] | [standalone]


#14718

From"Christoph M. Becker" <cmbecker69@arcor.de>
Date2014-12-16 20:25 +0100
Message-ID<m6q0vs$s50$1@solani.org>
In reply to#14716
semeon.risom@gmail.com wrote:

> Very new to PHP. I have a script (below) that I'm attempting to run
> on http://phpfiddle.org/.

Do you have any particular reason to run the script on phpfiddle.org?
Otherwise I suggest that you run it on a local machine.  Setting up the
necessary environment should be trivial; if you're on Linux your distro
likely has the necessary packages available; if you're on Windows there
is, for instance, XAMPP.  For other platforms respective solutions
should also be available.

-- 
Christoph M. Becker

[toc] | [prev] | [next] | [standalone]


#14719

FromTim Streater <timstreater@greenbee.net>
Date2014-12-16 20:58 +0000
Message-ID<161220142058364943%timstreater@greenbee.net>
In reply to#14718
In article <m6q0vs$s50$1@solani.org>, Christoph M. Becker
<cmbecker69@arcor.de> wrote:

> semeon.risom@gmail.com wrote:
> 
> > Very new to PHP. I have a script (below) that I'm attempting to run
> > on http://phpfiddle.org/.
> 
> Do you have any particular reason to run the script on phpfiddle.org?
> Otherwise I suggest that you run it on a local machine.  Setting up the
> necessary environment should be trivial; if you're on Linux your distro
> likely has the necessary packages available; if you're on Windows there
> is, for instance, XAMPP.  For other platforms respective solutions
> should also be available.

OS X comes with all the necessary software already installed.

-- 
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf

[toc] | [prev] | [next] | [standalone]


#14720

FromOlaf Schmitt <thesys@gmx.de>
Date2014-12-17 04:27 +0100
Message-ID<m6qt38$f64$1@news.albasani.net>
In reply to#14716
Am 16.12.2014 um 18:53 schrieb semeon.risom@gmail.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
>
>
>
> // This script shouldn't redirect to index.php...
> define('ENTRY_POINT', true);
> require_once(dirname(__FILE__) . '/startup.php');
>

__FILE__    ----->   the path AND the this filename
__DIR__     ----->   only the path

FILE:  \WWW-Start\test\index.php
DIR:   \WWW-Start\test

Olaf

[toc] | [prev] | [next] | [standalone]


#14721

FromJerry Stuckle <jstucklex@attglobal.net>
Date2014-12-16 22:32 -0500
Message-ID<m6qtgg$nul$1@dont-email.me>
In reply to#14720
On 12/16/2014 10:27 PM, Olaf Schmitt wrote:
> Am 16.12.2014 um 18:53 schrieb semeon.risom@gmail.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
>>
>>
>>
>> // This script shouldn't redirect to index.php...
>> define('ENTRY_POINT', true);
>> require_once(dirname(__FILE__) . '/startup.php');
>>
> 
> __FILE__    ----->   the path AND the this filename
> __DIR__     ----->   only the path
> 
> FILE:  \WWW-Start\test\index.php
> DIR:   \WWW-Start\test
> 
> Olaf
> 
> 

Either one works, although yours is shorter and clearer.  However, I
still prefer to reference everything to the root directory of the website.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#14724

FromOlaf Schmitt <thesys@gmx.de>
Date2014-12-17 17:28 +0100
Message-ID<m6sasj$guk$2@news.albasani.net>
In reply to#14721
Am 17.12.2014 um 04:32 schrieb Jerry Stuckle:
> On 12/16/2014 10:27 PM, Olaf Schmitt wrote:
>> Am 16.12.2014 um 18:53 schrieb semeon.risom@gmail.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
>>>
>>>
>>>
>>> // This script shouldn't redirect to index.php...
>>> define('ENTRY_POINT', true);
>>> require_once(dirname(__FILE__) . '/startup.php');
>>>
>>
>> __FILE__    ----->   the path AND the this filename
>> __DIR__     ----->   only the path
>>
>> FILE:  \WWW-Start\test\index.php
>> DIR:   \WWW-Start\test
>>
>> Olaf
>>
>>
>
> Either one works, although yours is shorter and clearer.  However, I
> still prefer to reference everything to the root directory of the website.
>

Yes, I have always a global.inc.php in every script.



Olaf


[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.lang.php


csiph-web