FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » fopen Problem
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: fopen Problem [message #175277 is a reply to message #175264] Wed, 31 August 2011 10:49 Go to previous messageGo to previous message
A is currently offline  A
Messages: 17
Registered: June 2011
Karma:
Junior Member
> $_SERVER['DOCUMENT_ROOT'] . '/logbooks/CAA001/blahblah.txt'.
>
> dirname(__FILE__) is a very bad way to to it - it is dependent on the
> location of the script opening the file and will break if you move the
> script to a different directory.

if I understood the question correctly the file is *NOT* on his own server
because he allow_url_fopen configuration setting.
dirname(__FILE__) is very useful. I tend to keep all my scripts in a
relative file/folder structure so I WANT to move them and keep the paths
properly in place.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Strategic Marketing Summit 2011 (September 24th,Chennai)
Next Topic: does paypal standard method supports for recurring payment.
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 14:57:07 GMT 2024

Total time taken to generate the page: 0.05017 seconds