Jump to content

Dhira

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Dhira's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. What is the copy() function? ie what is the code I need to do that?
  2. Hi, Say I have a file in a folder; [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]www.domain.com/includes/file.txt[/quote] and I want to move it to [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]www.domain.com/file.txt (i.e.move it to public_html) [/quote] What code do I need to do this? (That will enable it replace a file of the same name if there is one) Thanks.
  3. Hi, Say I have a file in a folder; [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]www.domain.com/includes/file.txt[/quote] and I want to move it to [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]www.domain.com/file.txt (i.e.move it to public_html) [/quote] What code do I need to do this? (That will enable it replace a file of the same name if there is one) Thanks.
  4. I'm doing an include within an include as a starting point. I know its wrong - after all it gives an error, I pasted it to show what I am[i] trying[/i] to do. The reason is....the second include [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]<? include("/home/lifeins/public_html/root.php"); ?>[/quote] is for code that shows the url of the site (http://www.domain.com). By itself it shows the url of the domain correctly because 'root.php' has the correct php string for the url. Now, what I want to do is [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]<?php include ("http://www.domain.com/linktator/linktator.php)" ?>[/quote] however, since I [b]already[/b] have code that automatically references the url (in root.php) I would like to somehow reference root.php which is located in the 'public_html' folder. So what would be the correct way to reference the 'root.php' file without having to type in the actual url? (The reason is because there are many domains I need to do this for).
  5. I'm getting an error when I reference a url within an include - probably because the url itself is an include. [code]<?php include("<? include("/home/lifeins/public_html/root.php"); ?>/linktator/linktator.php> [/code] where root.php is code for the server url string. What is the proper code to reference this? (The error is "Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in...")
  6. Hi all, Wordpress is full of php code to refer to the blogs location. I need the code to refer to the url of the domain, even if wordpress is installed on a subdomain. For example if I want to place a link for hte home page, I would use this [code]<a href="" target="_blank">Home Page</a>[/code] for a site map I'd use: [code]<a href="/sitemap.html" target="_blank">Sitemap</a>[/code] That works fine if the worpress blog is installed in the root of a domain or in a subfolder. It does not work accurately if the blog is in a subdomain. If I use the above, the urls show up as: [code]<a href="" target="_blank">Home Page</a>[/code] which gives me "[b]http://www.subdomain.domain.com[/b]" instead of "[b]http://www.domain.com[/b]" and [code]<a href="/sitemap.html" target="_blank">Sitemap</a>[/code]gives me "[b]http://www.subdomain.domain.com/sitemap.html[/b]", instead of "[b]http://www.domain.com/sitemap.html[/b]" which I would like. I've tried [code]<a href='$ require($_SERVER["DOCUMENT_ROOT"]);/sitemap.html">Sitemap</a><br>[/code]and variations of it to no avail. Help appreciated.
  7. Thanks. Those didn't work the way I wanted, but it helped me figure out what I needed. I added a variable called: $PathFolder = $_SERVER["DOCUMENT_ROOT"]; and I entered $PathFolder in the line where I wanted it to appear, and that worked.
  8. Thanks, but that didnt work for what I'm susing it for - it might be because the file that has that code is inside another folder. Just a giess. Is there another option that would get the "/home/username/public_html/" path if the path is being requested from within another folder?
  9. Hi all, simple request. I need the php code string that gives me the path in a URL. Similar to $_SERVER[SERVER_NAME], (which gives me www.domain.com.) I would like the code that would give me "/home/username/public_html" path (which would show the actual username). I tried $_SERVER[PATH], - didnt work. would it have 'ROOT' in there somewhere?
×
×
  • 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.