On Jun 20, 2013 7:20 PM, "Tedd Sperling" wrote:
>
> On Jun 20, 2013, at 7:12 PM, Stuart Dallas wrote:
> > Whatever the reason for this, I'd recommend you always specify a path
relative to the current script.
> >
> > In PHP 5.3+:
> >
> > $fcontents = file(__DIR__.'/docs/admin-email.txt');
> >
> >
On Jun 20, 2013, at 7:12 PM, Stuart Dallas wrote:
> Whatever the reason for this, I'd recommend you always specify a path
> relative to the current script.
>
> In PHP 5.3+:
>
> $fcontents = file(__DIR__.'/docs/admin-email.txt');
>
> Prior to 5.3:
>
> $fcontents = file(dirname(__FILE__).'/docs
On 20 Jun 2013, at 18:39, Tedd Sperling wrote:
> Hi gang:
>
> I have a very strange problem.
>
> I can use this statement in one folder:
>
> $fcontents = file('docs/admin-email.txt');
>
> But in a different folder with an exact path having 'docs/admin-email.txt', I
> get:
>
> Warning:
Never used it but searching turned up
http://php.net/manual/en/function.chdir.php
Marc
On 20 June 2013 12:57, Tedd Sperling wrote:
> On Jun 20, 2013, at 1:44 PM, Bastien wrote:
>>
>> It sounds like a current working directory issue. Try running a getcwd() in
>> both places to see how they are
Daniel:
I placed it at root and it reports:
/home/content/64//html/sdi
That's the same path that had problems.
tedd
_
tedd.sperl...@gmail.com
http://sperling.com
On Jun 20, 2013, at 2:22 PM, Daniel Brown wrote:
> On Thu, Jun 20, 2013 at 2:14 PM, Tedd Sperling
> wro
On Thu, Jun 20, 2013 at 2:14 PM, Tedd Sperling wrote:
> Bastien:
>
> You were right on - by changing the directory to what I needed, everything
> works.
>
> My follow-up question is "Why?"
>
> I have *never* had to specifically tell any script to chdir() -- why with
> that one?
Sounds like
Bastien Koert
On 2013-06-20, at 2:14 PM, Tedd Sperling wrote:
> Bastien:
>
> You were right on - by changing the directory to what I needed, everything
> works.
>
> My follow-up question is "Why?"
>
> I have *never* had to specifically tell any script to chdir() -- why with
> that one?
>
Bastien Koert
On 2013-06-20, at 1:57 PM, Tedd Sperling wrote:
> On Jun 20, 2013, at 1:44 PM, Bastien wrote:
>>
>> It sounds like a current working directory issue. Try running a getcwd() in
>> both places to see how they are set
>>
>> Bastien
>
> I think you have something, here's the rep
Bastien:
You were right on - by changing the directory to what I needed, everything
works.
My follow-up question is "Why?"
I have *never* had to specifically tell any script to chdir() -- why with that
one?
Cheers and Thanks!
tedd
_
tedd.sperl...@gmail.com
http://sperli
On Jun 20, 2013, at 1:44 PM, Bastien wrote:
>
> It sounds like a current working directory issue. Try running a getcwd() in
> both places to see how they are set
>
> Bastien
I think you have something, here's the reports:
Works:
/home/content/64//html/sdi/tedd/php-mail
Does NOT work:
Matijin:
My mistake in posting -- I have tried it several different ways including
absolute.
Nothing works.
Cheers,
tedd
---
On Jun 20, 2013, at 1:43 PM, Matijn Woudt wrote:
>
>
>
> On Thu, Jun 20, 2013 at 7:39 PM, Tedd Sperling wrote:
> Hi gang:
>
> I have a very strange problem.
>
>
On 2013-06-20, at 1:39 PM, Tedd Sperling wrote:
> Hi gang:
>
> I have a very strange problem.
>
> I can use this statement in one folder:
>
>$fcontents = file('docs/admin-email.txt');
>
> But in a different folder with an exact path having 'docs/admin-email.txt', I
> get:
>
> Warning:
On Thu, Jun 20, 2013 at 7:39 PM, Tedd Sperling wrote:
> Hi gang:
>
> I have a very strange problem.
>
> I can use this statement in one folder:
>
> $fcontents = file('docs/admin-email.txt');
>
> But in a different folder with an exact path having
> 'docs/admin-email.txt', I get:
>
> Warni
Hi gang:
I have a very strange problem.
I can use this statement in one folder:
$fcontents = file('docs/admin-email.txt');
But in a different folder with an exact path having 'docs/admin-email.txt', I
get:
Warning: file(/docs/admin-email.txt) [function.file]: failed to open stream: No
Hi, i have a strange problem. In my site i have to counters for file
downloads. One is general, other is weekly. On the main page i
display a list sorted according to weekly hits. The problem is there:
i give this prompt mysql_query("SELECT * FROM table ORDER BY
weekly_hits DESC LIMIT 15") to displ
15 matches
Mail list logo