Jump to content


Photo

Creating a directory, and file


  • Please log in to reply
3 replies to this topic

#1 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 04 October 2006 - 05:56 PM

I am working on something, it will end up dynamically creating a file near the end of the process, I need to take that file template1.php or template2.php whichever file I am duplicating, and I need to put it inside a folder, inside another folder.

The folder that is holding my sub-domains is userpages which is one level deep
so it's www.domain.com/userpages
then in that directory, I am going to need to create a directory, where I can specific the name, and put the file I am duplicating within that directory, any direction would be appreciated.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 04 October 2006 - 05:57 PM

mkdir.

#3 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 04 October 2006 - 05:58 PM

look into mkdir (php.net/mkdir) for creating directories and copy (php.net/copy) or rename (php.net/rename) for duplicating files.

#4 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 04 October 2006 - 06:00 PM

ah ok, that will get me on the right track, thanks.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users