Help with a php line menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    Shayden85's Avatar Active Member
    Reputation
    64
    Join Date
    Mar 2008
    Posts
    204
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help with a php line

    I have this:

    PHP Code:
    if ( file_exists($checkfilename) ) return str_replace$site_dirtrailingslashit$checkfilename ); 
    It gives me the wrong adress.

    Lets say it gives me a adress that looks like this:

    /home/user/public_html/

    but i want(need) it to look like this

    /home/user/domains/website.com/public_html/

    How can i do this ?

    Help with a php line
  2. #2
    OinkPigs8's Avatar Member
    Reputation
    1
    Join Date
    Feb 2012
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    if ( file_exists$checkfilename ) ) return str_replace$site_dirtrailingslashit$site_uri ), $checkfilename ); 

  3. #3
    Shayden85's Avatar Active Member
    Reputation
    64
    Join Date
    Mar 2008
    Posts
    204
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Didnt work.

    Thats how the code looked like first but it still doesnt show the right adress because in the /home/user/public_html/, then public_html are a link that goes to /home/user/domains/website.com/public_html/

    Ok, so i fixed it in a retarded way.

    I made link that goes from the wrong folder to the right folder. >.<
    Last edited by Shayden85; 03-08-2012 at 05:08 AM.

Similar Threads

  1. Anyone able to help with a PHP script by chance?
    By DoxramosPS in forum Programming
    Replies: 18
    Last Post: 02-25-2013, 05:52 PM
  2. Need help with a PHP Script
    By Fireking300 in forum Programming
    Replies: 2
    Last Post: 06-13-2009, 02:27 PM
  3. HELP with Index.PHP
    By [uF] in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 06-23-2008, 10:38 PM
  4. [PHP-SITE] Little Help With A Code...
    By viKKmaN in forum WoW EMU Guides & Tutorials
    Replies: 0
    Last Post: 03-16-2008, 07:12 AM
  5. Help with PHP
    By mkultra. in forum Community Chat
    Replies: 4
    Last Post: 12-31-2007, 08:48 AM
All times are GMT -5. The time now is 06:03 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search