1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need help with php

Discussion in 'Web Design' started by onlinework, Apr 21, 2017.

Tags:
  1. onlinework

    onlinework Registered Member

    Joined:
    Sep 16, 2013
    Messages:
    69
    Likes Received:
    7
    Gender:
    Male
    Occupation:
    CPA
    Location:
    Earth
    Hi all. I am currently using Wordpress for all of my websites. Here is the problem. I need to track my visitors via php because when I track the visits via any of the plugins there is not shown any visitor because I am using redirect via .php file and they not count asdsad .com /some.php file even that is the first link visitors are clicking and after that they have been redirected to another url. Please post any full script cause I am really noob with php.

    Thank you a lot!
     
  2. clasick

    clasick Newbie

    Joined:
    Jan 30, 2016
    Messages:
    25
    Likes Received:
    7
    Occupation:
    Artist
    Location:
    Earth, Milkyway
    If this is your current understanding in PHP, then you should step back and learn this area a bit more. It always involve intensive troubleshooting and debugging thus saving your time to start a thread :)
     
  3. littlewebdragon

    littlewebdragon Jr. VIP Jr. VIP

    Joined:
    Dec 30, 2007
    Messages:
    1,667
    Likes Received:
    816
    Occupation:
    Occupation
    Location:
    Location
    If your visitors are landing to some.php file, just at that file before you redirect them (so that you can count it) add any counter code you can use any free codes from sites like histats or statcounter and that should work for you.
     
    • Thanks Thanks x 1
  4. onlinework

    onlinework Registered Member

    Joined:
    Sep 16, 2013
    Messages:
    69
    Likes Received:
    7
    Gender:
    Male
    Occupation:
    CPA
    Location:
    Earth
    Thanks for your answer. But when I am trying to add the histats javascript code in the php file I am always getting errors on line etc. I have tried to add it outside the php tags but it's not working. When it's added in the beginning I am getting error. When I add it in the end it's not tracking.
     
  5. littlewebdragon

    littlewebdragon Jr. VIP Jr. VIP

    Joined:
    Dec 30, 2007
    Messages:
    1,667
    Likes Received:
    816
    Occupation:
    Occupation
    Location:
    Location
    What type of error are you getting in what situation?
    Do you have any errors in your error_log file or they are shown on that file?
     
    • Thanks Thanks x 1
  6. onlinework

    onlinework Registered Member

    Joined:
    Sep 16, 2013
    Messages:
    69
    Likes Received:
    7
    Gender:
    Male
    Occupation:
    CPA
    Location:
    Earth
    I am getting errors when I am opening the domain com/php.file.
     
  7. onlinework

    onlinework Registered Member

    Joined:
    Sep 16, 2013
    Messages:
    69
    Likes Received:
    7
    Gender:
    Male
    Occupation:
    CPA
    Location:
    Earth
    Please check pm. Thank you :).