Jump to content

floridaflatlander

Members
  • Content Count

    671
  • Joined

  • Last visited

  • Days Won

    1

floridaflatlander last won the day on July 21 2013

floridaflatlander had the most liked content!

Community Reputation

16 Neutral

About floridaflatlander

  • Rank
    Prolific Member

Profile Information

  • Gender
    Male
  • Location
    Florida
  1. Yep, and maybe it was my fault googling but I find couldn't anything as simple as that answer.If I would have looked at the two places I used this function instead of just one this post would have never happened.
  2. Thank God you guys don't know me, you'd drive to my house and beat the .. out of me. I used the function mentioned above in two places, one for mobile and one for other. In the function used for mobile I used an array value, function($site_info['home']) as the input instead of the array causing the string offset. Sorry for the oversight and thank you for your input. Once again, sorry.
  3. also this h4 code is in a function join_us_non_mem ($site_info) {} so index.php includes config.php at top then it uses the function above is echo info. the <h4>
  4. 1. It lets me know if something is wrong by email 2. my_error_handler() is always on, it prints info locally and emails errors when online from error_log($message, 1, $webmaster_email); // Send email. As a note I went here https://stackoverflow.com/questions/15361392/how-do-i-correct-this-illegal-string-offset and used var_dump($site_info) like they instructed and got this. for local but all that changes online is the string aka paths array(20) {["home"]=> string(31) "http://localhost/ab-01.0102" ["https_home"]=> string(31) "http://localhost/ab-01.0102" ["debug"]=> bool(t
  5. 1. Yes the block of code in the first section is inside php tags it is in the config.inc.php file 2. The second block is in the /index.php which includes config.inc.php 3. config.inc.php is included at the beginning of /index.php. directly. 4. Sorry, I'm trying Also as a note, my error_log shows NO errors. I'm getting error notifications by email from this function in the config.inc.php file which is included at the top of every page function my_error_handler($e_number, $e_message, $e_file, $e_line, $e_vars) { global $debug, $webmaster_email; $user_ip = strip_tags($_SERVER[
  6. // In config file if($local) { /* if it's local */ $site_info['home'] = 'http://localhost/subfolder'; $site_info['https_home'] = 'http://localhost/subfolder'; $site_info['debug'] = TRUE; // its true on local $site_info['ip_admin'] = '**.**.**'; $site_info['https_home'] = 'http://localhost/'; } else { /* when online array values are */ $site_info['home'] = 'http://mywebsite'; // used only on index page and left column menu $site_info['https_home'] = 'https://www.mywebsite.com'; /* used everywhere else */ $site_info['debug'] = FALSE; // don't debug inline $site_info['ip_admin'] = '**.**.**'; $si
  7. The actual path is on the actual php <h4 class="text-center"><?php echo '<a href="'.$site_info['https_home'].'/ab-member/index.php?action=register">Join us!</a>'; ?></h4> also talking about the things taken out that Guru referred to as a vague reproduction were stuff like if($local) { $site_info['local'] = TRUE; // or true $site_info['home'] = 'http://localhose/subfolder'; $site_info['debug'] = TRUE; // its true on local $site_info['ip_admin'] = '**.**.**'; } else { $site_info['local'] = FALSE; // or true $site_info['home'] = 'http://mywebsite'; $s
  8. The h4 is the line the the error reports I took some things out for brevity ie $site_info['local'] = FALSE; // or true $site_info['home'] = 'http://mywebsite.com'; $site_info['debug'] = FALSE; // its true on local $site_info['ip_admin'] = '**.**.**'; $site_info['css_path'] = http://www.mywebsite.com and yes the if statement is in the html and I am using /subfolder/index.php?action=.... . Not /?action=register Also I use this for my css path if on the /index page it uses $site_info['css_path'] = http://www.mywebsite.com and it doesn't use https path or if in /subfolder/member f
  9. I keep getting Illegal string offset 'https_home' and I don't know why. I've googled but really can't understand what I'm doing wrong, to me this is so straight forward it should work. I have my local set up with ini_set('display_errors', 1) & error_reporting(E_ALL) but but nothing is displayed on local Online the error is entered in my log but the link works like a charm on the pages where it is echoed Local php 5.6.30 Online php 5.5 where the issues seem to be if ($local) ) { $site_info['https_home'] = 'http://localhost/'; } else { $site_info['https_home'] = 'https://www.mywebsit
  10. I changed the zone records on a website on the hosting service I use so I can use office 365 with my website's email. And it works like a charm when I send myself emails from regular accounts, ie. comcast and yahoo. However whether using phpmailer or php's mailto on my site, the emails just disappear when I send them from the domain that I set Office 365 up on. So emails from my-website.com wont go to my email account at me@my-website.com or members@my-website.com. They'll go to an email address like outlook.com but not my office accounts. I can't believe I'm the first with this issue
  11. NEVER MIND, I FOUND OUT WHAT THE Issue is, sigh I have two different headers for mobile and desktop. Sorry, I've been looking at this for hours. Using chrome mostly but some firefox too I can't get my css to refresh on my android phone, on my desk and laptop it works perfectly There's supposed a white header at the top with an orange bottom border. but the old blue keeps showing up like the old css. I've tried adding a version # to the css ie: href="style.css?version=1" as described at http://stackoverflow.com/questions/2263096/css-file-is-not-refreshing-in-my-browser Also I put the
  12. I've looked and couldn't find a place to donate to this site. Is there a place or link to use for donations to phpfreaks? I thought there was at one time. Thanks
  13. Thank God and phpfreaks, I too missed the site. It was sad when I came here a few weeks and found the site down. It's one of those things that I, and maybe we, take for granted, until it's gone. Thanks again for being back
×
×
  • 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.