Problem using strpos to evaulate if data exists on fie

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
akimm
Forum Contributor
Posts: 460
Joined: Thu Apr 27, 2006 10:50 am
Location: Ypsilanti Michigan, formally Clipsburgh

Post by akimm »

nope, when I log in via my FTP 'filezilla', it just has a '...' plus all my files. When i click on '...' and attempt to go back, as I believe Mordred was refferring, it just freshes the HTDOCS, or so I assume its called, its only name is / as in root.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

eh... you can still do it I'm sure. echo out getcwd() and tell me the path... use this:

Code: Select all

<?php echo getcwd(); ?>
User avatar
akimm
Forum Contributor
Posts: 460
Joined: Thu Apr 27, 2006 10:50 am
Location: Ypsilanti Michigan, formally Clipsburgh

Post by akimm »

However, if this is as you said, please do tell me how to do this.

Thanks Ninja.

Code: Select all

/nfs/cust/8/25/05/650528/web
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

try creating a directory in this directory "/nfs/cust/8/25/05/650528" (it's above the root, as the root is "web"). If you can do that, you're half-way there.
User avatar
akimm
Forum Contributor
Posts: 460
Joined: Thu Apr 27, 2006 10:50 am
Location: Ypsilanti Michigan, formally Clipsburgh

Post by akimm »

OK that directory is made.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

ok now store iplog/ip.txt in that directory you just created... you can access it via nfs/cust/8/25/05/650528/directory_name

(of course you will replace "directory_name" with whatever you named the directory
User avatar
akimm
Forum Contributor
Posts: 460
Joined: Thu Apr 27, 2006 10:50 am
Location: Ypsilanti Michigan, formally Clipsburgh

Post by akimm »

sweet. thanks for the aid.
Post Reply