Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #14721
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: PHP script error |
| Date | 2014-12-16 22:32 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <m6qtgg$nul$1@dont-email.me> (permalink) |
| References | <c4b24e9b-3145-473d-80c5-647d523f5e71@googlegroups.com> <m6qt38$f64$1@news.albasani.net> |
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
==================
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
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
csiph-web