Jump to content

ajetrumpet

Members
  • Posts

    195
  • Joined

  • Last visited

Everything posted by ajetrumpet

  1. guys, I have looked on google for this and apparently noone is doing it. I have 4 checkboxes and I want to send mail indicating which boxes were checked. the only code I've found is PHP that captures the *status* of the boxes, such as "on" or "off". I want to capture the names of the actual checkbox elements. Here is the code I'm currently testing (which just prints out "on" or "off" to indicate which boxes are checked): if(isset($_POST['checkboxes'])) { foreach($_POST['checkboxes'] as $selected){ echo $selected . "</br>"; } } else { echo "No Desired Contact Time Specified."; } if I check all 4 boxes for instance, I get this: on on on on any way to get the names? thanks!
  2. additionally kicken, I think I might have a corrupted file. My query for my report is: $sql = mysqli_query($conn, "SELECT ip , page , CASE WHEN referrer = '' THEN 'N/A' ELSE referrer END as referrer , DATE_FORMAT(date, '%m/%d/%y') as date , TIME_FORMAT(logged, '%T') as time FROM tblTraffic ORDER BY date DESC, time DESC"); and my PHP echo code is: <body> <table border='1'> <tr> <th>VISITOR IP ADDRESS, ISP NAME</th> <th>VISITOR DOMAIN ADDRESS<th> <th>PAGE VISITED</th> <th>DATE</th> <th>TIME</th> </tr> <?php // printing table rows while($row = mysqli_fetch_row($sql)) { echo '<tr>'; foreach ($row as $key => $col) { echo "<td>$col</td>"; } echo '</tr>'; } ?> </table> </body> I attached an image of what I'm seeing as an output. There is an extra column without a header and the data is still being outputted although i'm not querying 6 columns. can you see something wrong with this?
  3. kicken, I ran a test with all of these included: <?php echo "ip - " . $_SERVER['REMOTE_ADDR']; echo "<br>"; echo "gethostbyaddr - " . gethostbyaddr($_SERVER['REMOTE_ADDR']); echo "<br>"; echo "uname - " . php_uname(); echo "<br>"; echo "gethostname() - " . gethostname(); echo "<br>"; echo "HTTP_HOST - " . $_SERVER['HTTP_HOST']; echo "<br>"; echo "SERVER_NAME - " . $_SERVER['SERVER_NAME']; ?> this is really good info and I think I'll use it. one question though: HTTP_HOST and SERVER_NAME return the same result. is there any scenario where they would *not* return the same?
  4. hey guys, in the attached image, i'm logged into another forum I'm part of and I'm looking at the page called "who's online". I have a php traffic report page that, when accessed, echoes out database data that has been stored by way of another php script that captures geoLocation data (ip address of ISP, referrer page, date/time of visit) using PHP global variables. my question is - how does this forum script know the identity of the google spiders? in my traffic report, i am only capturing the ip address of the ISP as the identifying information. from what I understand, it's not possible to capture the actual location of the visitor, only the ISP's location. if I look up the ip address on an ip lookup website, i can see that it is a google spider, but can this be done through PHP scripting?
  5. I DID have a composer.json file, but there was no PHAR file in there. and I'm not technically giving up. This was just a test on a wordpress subdomain because I was interviewing to volunteer at a non-profit and they were running the civiCRM on wordpress. I had never heard of civiCRM so I wanted to experiment with it before I talked to them. They were confused as well, as they didn't get any errors about searching for a bootstrap.php file when they installed theirs. I'm still convinced that GoDaddy is at fault. Man that company sucks! Even the company I interviewed with said they are leaving GoDaddy in the coming months because their technology is not reliable. A great example of GoDaddy's incompetence is this article: https://www.godaddy.com/help/connecting-to-mysql-using-php-216 It was telling customers to use mysql_connect() for years and according to you guys the mysql() functions have been deprecated in PHP for years. Now that article is showing mysqli() functions, but they probably fixed in the last week because I told them to when I was on the phone with them!
  6. hey you guys I'm giving up on this. I'm gonna go with another CRM. don't worry about posting anymore here.
  7. well i googled the hell the out of this my friend and I found composer.exe for windows, but during installation it wants me to select a php.exe to use but i don't have such a thing. perhaps i'm a little too inexperienced to be doing this but this seems to be a little too much trouble to go through for a plugin installation that should be relatively easy.
  8. I browsed thru that article req, but my question was not addressed: https://getcomposer.org/doc/03-cli.md#dump-autoload-dumpautoload-
  9. i will take a look. in the mean time, i noticed in phpinfo() that: allow_url_fopen On On allow_url_include Off Off is this relevant to this situation?
  10. i would not know how to do this. as a serparate file in the 'composer' directory? run this code? composer dump-autoload
  11. i did my best to go thru this checklist. #5 on the list mentions a few things. one is the setting of "open_basedir" in phpinfo(). this has a setting of "no value". i set all directories leading up to "autoload_real.php" to "read, write and execute" permissions, as well as the file itself to the same permissions. but alas, the error persists. based on my original post, which file do you think the error "failed to open stream" is referring to? is it trying to open "bootstrap.php" or "autoload_real.php"?
  12. I am trying to install a wordpress plugin called CiviCRM. I am using the GoDaddy wordpress dashboard to do this. I am getting this error (which is just the first error in a list of several that are appearing): Warning: require(/home/NAME/public_html/wordpress.SITE.com/wp-content/plugins/civicrm/civicrm/vendor/composer/../symfony/polyfill-ctype/bootstrap.php): failed to open stream: No such file or directory in /home/NAME/public_html/wordpress.SITE.com/wp-content/plugins/civicrm/civicrm/vendor/composer/autoload_real.php on line 70 I am looking at the code in file "autoload_real.php" and line 70 reads: require $file; nowhere else in this file is $file defined. the directory "/home/NAME/public_html/wordpress.SITE.com/wp-content/plugins/civicrm/civicrm/vendor/composer/" DOES exist, but the rest of the line "../symfony/polyfill-ctype/bootstrap.php" does not. there are also 3 other errors in eclipse that are indicated and all of those errors are "syntax error: unexpected 'Autoload()'. The 3 different lines of code that throw this error are: 1) self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 2) call_user_func(\Composer\Autoload\ComposerStaticInitdb2000479593e65ef23454e56d74a73f::getInitializer($loader)); 3) $includeFiles = Composer\Autoload\ComposerStaticInitdb2000479593e65ef23454e56d74a73f::$files; I'm not really sure what the issue is, as I'm not experienced enough. Any help from the experts here? GoDaddy claims the problem is with the plugin file's coding.
  13. Berand, I have more records now. It seems to be recording the correct time now. Here are a few new records: 35.167.229.1 /index.php N/A 10/19/19 10:51:48 207.46.13.17 /index.php N/A 10/19/19 09:28:47 166.181.87.1 /index.php N/A 10/19/19 07:53:25 34.222.218.2 /index.php N/A 10/19/19 06:01:51
  14. i'll get back to you guys here when some more traffic comes through. then i will know if this worked.
  15. ok i'll wait until another bot crawls the site and see if this new column does the trick. i'll keep you updated.
  16. now you're not being cooperative dude. why make fun of my lack of expertise? i thought you donated your time to help people who were less knowledgeable than yourself..
  17. ? what about the topic of the thread here? is there a solution?
  18. nope! they are being stored and displayed as: hh:mm:ss. 24 hour format.
  19. the data type in the DB field is DATE. I'm using time() nested inside the TIME_FORMAT() function in the SQL statement that adds the records to the database, as I showed in my original post. And that is Berand's code not mine.
  20. totally unrelated to this thread, but pretty funny stuff. I had to share: https://drive.google.com/open?id=1T1CyyWkCcYOzr-pTuiZXP2nI98ZwwFOe any church goers here?
  21. i asked it that way cuz the last time i looked at the report, there were 10 records in there with timestamps that were anywhere from 5-8 hours ahead of the local time i was actually looking at the report.
×
×
  • 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.