Jump to content

chrismarsden

Members
  • Posts

    40
  • Joined

  • Last visited

    Never

Everything posted by chrismarsden

  1. Hi Guys, im not sure if this is possible or not... i want to be able to paste information from stored information in one web browser to another browser with a different website... E.G i have a website where a user inputs information and i want to be able to export that in text format to another website where the page is set to take information. not sure if this makes sence but any ideas appriciated.
  2. any one know of a fully customiseable CRM script i can download??? need to be able to add and change pretty much everything to suit my needs but cant find something purley php and mysql based! cheers.
  3. Hi peeps, this script worked great... cheers for your help people!!! much appriciated.
  4. Hi, didnt know how to add this to the repository so can an admin move this please. this updated version will tell you still when you recieve a visitor but to identify who i have included so that it tracks the ip and tells you when its you!!! <?php // Script to email you when Google refers traffic to your site. $name=""; // add your name here $email_address=""; // add your email address here $keywords=""; $referrer=$_SERVER['HTTP_REFERER']; $known_ips = array( '01.01.01.01' => 'from the computer your are at now!', // etc. ); $ip = $_SERVER['REMOTE_ADDR']; if (array_key_exists($ip, $known_ips)) { $ip = $known_ips[$ip]; // you may want to use a different var name here now? } if( (stristr($referrer, "google")) && (stristr($referrer, "search")) ) { parse_str($referrer, $output); $keywords=$output['q']; $email_message="A visitor just arrived to the website after searching for '$keywords', Their IP address is '$ip'. ($referrer)"; mail ("$email_address","Google referred a visitor","$email_message"); } ?> hope it all works... give it a try and let me know.
  5. the only thing i can think of is setting variables for each page i.e: conquick.php would have a variable set to "quick guide to connections" i would do this for each page then have the script track what page was opened then out put the title which relates to that page, only problem is i have no idea how i would do this...
  6. Hi peeps, was wondering if anyone could help, i have decided I want to put page titles in to my website at the moment i have a static title which is the business name and slogan, what I want is business name - slogan - page title (E.G home) my title is set in a header.php file which is then included in all pages. any ideas?
  7. Ok just a bit of menu help, i want to basicly show a static active image on a link when you on a page but i have the menu in an include so obviously if i set that static to home the hover over that happens on the other pages will work but no matter what page im on it will show the main page as the page your on. <div class="menu"> <ul> <li class="active"><a href="index.php"><b>Home</a></li> <li><a href="">Services</a></li> <li><a href="about.php">About Us</a></li> <li><a href="">Portfolio</a></li> <li><a href="">Contact Us</a></li> </ul> </div> basicly if im on the about page i want the active to move aswell.... any ideas?
  8. send via email to your registered email address. any probs let me know.
  9. it does not output the line "from the office" in the email, just the IP as it always has done.
  10. just realised this does not work... im a noob... can you help me out lol
  11. so the code would look like: <?php $name="Chris"; // add your name here $email_address=""; $email_address2=""; $keywords=""; $referrer=$_SERVER['HTTP_REFERER']; $known_ips = array( 'IP here' => 'from the office', ); $ip = $_SERVER['REMOTE_ADDR']; if (in_array($ips, $known_ips)) { $ip = $known_ips[$ips]; } if( (stristr($referrer, "google")) && (stristr($referrer, "search")) ) { parse_str($referrer, $output); $keywords=$output['q']; $email_message="A visitor just arrived to the website after searching for '$keywords', Their IP address is '$ip'. ($referrer)"; mail ("$email_address","Google referred a visitor","$email_message"); mail ("$email_address2","Google referred a visitor","$email_message"); } ?>
  12. i know it will be an if statement but not sure how to write it... any ideas anyone?
  13. Hi, i had this problem the other week. couldnt for the life of me work it out.. i have a script which i can send to you if you like.
  14. Hi guys, can you help me... im using the below code and i have been trying to figure out how to make it so that if a known ip searchs for my site it gives an output of "from the office" instead of the IP... any ideas? <?php $name="Chris"; $email_address="email address here"; $email_address2="email address here"; $keywords="keywords here"; $referrer=$_SERVER['HTTP_REFERER']; $ip=$_SERVER['REMOTE_ADDR']; if( (stristr($referrer, "google")) && (stristr($referrer, "search")) ) { parse_str($referrer, $output); $keywords=$output['q']; $email_message="A visitor just arrived to the website after searching for '$keywords', Their IP address is '$ip'. ($referrer)"; mail ("$email_address","Google referred a visitor","$email_message"); mail ("$email_address2","Google referred a visitor","$email_message"); } ?>
  15. Ok, i have put the new code in to the site as your right its much easier to read... how ever as i said i am new to php and have no idea how to post it in to a database let alone retrieve it again... plus that would mean i would need a login script as well and then that just adds to my problems... i have no idea why i dont call the function to be honest, those parts i copied from a different forum (i must have done it badly, unless some very kind person wants to write the script for me (which i would absolutlely be indebted for...) im gonna have to keep looking for a script which i can understand better.
  16. yeah i think so... so long as the file comes through on the email im not bothered.
  17. i hope it will be set to sending me the attachment how ever this may be done you can call it what ever you want so long as it works lmao ... sorry im being thick but im new to php if you have not figured...
  18. what should i have set it to and will it work if i set it to whatever?
  19. just tested it on my localhost server as i wasnt sure but you are right... maybe the key would be keep your website structure simpler lol... other than that all i can say is i tried lmao... hope you find the answer your looking for.
  20. well this should work just as well i think, as long as they are located in the same html_public folder just specify the folder path from there: <?php include 'mic/ect/whatever.php'; ?> <?php include 'mic/ect2/whatever2.php'; ?> either that or i dont understand the question
×
×
  • 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.