Jump to content

lifeasalounge

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

lifeasalounge's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Can you give me an example of this? Or point me towards a tutorial? I've been trying to use glob() but have had not luck. Cheers.
  2. Hi all, I have a local Intranet setup and i want to be able to access directories and files using php. At the moment i can't figure out how to do it. I have read a lot of articles and have only gathered that i have to change the log on account of the apache windows service. Does anyone know how i would go about doing this? Any tutorials that might be useful? Thanks.
  3. Hi all, I have a number of list boxes on a page which uses META Refresh to update the page every minute or so. The list is populated with 7 values. The query grabs a value from the DB and php checks which of the seven values this value from the DB matches, then goes ahead and sets this option as selected. When the DB values are updated and the page refreshes, the list boxes keep the old values although the page is refreshed. The only way to update the values i have found is to click the address barand hit enter on the address again. Is there a way to automaticall update the list menus when the meta refresh is triggered? Thanks.
  4. Hi All, When installing php, mysql i made sure these extensions where applied according to the instructions i was following. Can anyone give me an explanation of what they are and what they do? Thanks.
  5. I am using this code: Code: if ($result_b) { $userdir = 'userpages\\'.$username; $imagedir = 'userpages\\'.$username.'\images'; if (file_exists($userdir)) { echo 'this directory already exists.'; } else { $makedir = mkdir($userdir, 777); $makedirimages = mkdir($imagedir, 777); copy('defaultfiles\defaultindex.php', $userdir.'\index.php'); if ($makedir) { echo 'dir created'; } else { echo 'error creating dir'; } $idfile = "userpages\\".$username."\userid.txt"; $idfile = fopen($idfile, 'a'); fwrite($idfile, '&userid='.$userid.'&username='.$username.'&'); fclose($idfile); }     } It works perfectly on my computer. When i uploaded it to my website here on 100webspace, instead of creating a folder inside a folder it create a folder called 'rossmurphy/images' and instead of copying a file inside a folder it chages the file name to 'userpages/rossmurphy/userid.txt' when this should be the directory to the file. Does anyone know how i can fix this? Has anyone had a similar problem?
  6. I am creating a website for travel journals. A user signs up and they get their own mini website that contains a journal, photo album and map. I am having a problem. When a user signs up, the pages of their website are copied from a default folder to their own folder. The problem is, i am not sure how i can embed thei user id into the pages on the fly so that when someone opens their website, the page retrieves journal entries and photo albums that are linked to their user id. Does anyone know how i can go about this? Just to make it clear, i am trying to create pages or copy pages on the fly, but they need to contain a user id but i am not sure how to get the user id embedded into the page if each page is just copied from a default. Thanks.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.