Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1077873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:38:28+00:00 2026-05-16T21:38:28+00:00

I need some help with php. So my external php file(track2.php) is in /wp-content/plugins/buzzr_tracking.

  • 0

I need some help with php.

So my external php file(track2.php) is in /wp-content/plugins/buzzr_tracking.

now inside this track2.php i want to access a text file located inside the folder /wp-content/trackclicks

But before i access it i want to check its presence using “file_exists”.

so any ideas what directory structure i should apply while using the function file_exists?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T21:38:28+00:00Added an answer on May 16, 2026 at 9:38 pm

    Just do this:

    file_get_contents("../../trackclicks/my_file.txt")
    

    That should get you the contents of the file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to access some variables of an external php file in most of
Need some help with inclusion of outside variables. I have this file lang.class.php class
Need some help to solve this. I have a gridview and inside the gridview
I need some help with priviligies in centos I have a file in home/admin/public_html/generate.php
I need some help with re-working the logic on this php code. What I'd
I need some help with php regex, I want to split email address johndoe@example.com
I need some help with PHP arrays. I run a form, that sends this
I need some help to put a simple php tag in this code $return.=<form
I need some help on a REGEX in php (Symfony). I want to match
Need some php help in figuring out how use this array I created, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.