-
PHP Include Ver 7> Not Executing.
I know, so strange, it makes no sense. I also replaced all my files on the testing server also. Thanks for your input Jack, much appreciated.
-
-
PHP Include Ver 7> Not Executing.
Reinstalled Mamp a few times over and finally it's started working properly. Really strange problem this one. Thank you for your help Jack, much appreciated.
-
-
-
PHP Include Ver 7> Not Executing.
Thanks Jack, yeah it seems like the file path variable is not being produced right in Mamp. However I've 2 instances which indicate a deeper problem: I have instances where include is being used on the webpage & the other instances are including the file correctly (baba.php); Wouldn't think this would affect the testing server as the file is on the testing server with the correct relevant paths. So it should work on the testing server; <?php include ('/blocks/navbar.php'); ?> /* Fails */ <?php include 'blocks/baba.php';?> /* Works */ <?php include('/blocks/head.php');?> /* Fails */ I started messing around with Mamps php.ini file for the appropriate PHP version, then i thought it easier to install Mamp again. So I reinstalled Mamp, which seems to be a newer version & it's running PHP ver 7.2.10. Still throwing the exact same errors. [06-Feb-2019 14:50:04 UTC] PHP Warning: include(/blocks/navbar.php): failed to open stream: No such file or directory in D:\Sites\estimating.services\SiteFiles\test.php on line 13 [06-Feb-2019 14:50:04 UTC] PHP Warning: include(): Failed opening '/blocks/navbar.php' for inclusion (include_path='.;C:\php\pear') in D:\Sites\estimating.services\SiteFiles\test.php on line 13 [06-Feb-2019 14:50:04 UTC] PHP Warning: include(/blocks/head.php): failed to open stream: No such file or directory in D:\Sites\estimating.services\SiteFiles\test.php on line 32 [06-Feb-2019 14:50:04 UTC] PHP Warning: include(): Failed opening '/blocks/head.php' for inclusion (include_path='.;C:\php\pear') in D:\Sites\estimating.services\SiteFiles\test.php on line 32 So it seems fine including a file which just echoes out a paragraph, but when it's echoing a more complex block of code it doesn't manage to complete the include statement. For the fun of it I just tried removing the complex echo statement & instead of echoing the content I tried just entering the meta tags as you suggested earlier (Obviously I did this when you suggested also) but still no luck. What really has me lost is why it isn't working on the Testing Server. I'm at the point now where I don't really care about Mamp, I'll just test by hitting refresh on the browser on the testing server. But surely this should be working on the testing server 😭.
-
PHP Include Ver 7> Not Executing.
Hi Jack, Thanks for your help, much appreciated. Sorry for my late response. Yes I read the php manual on include for a long while now & struggling to see where parentheses, single ' & double "s are used. I thought it might be like with vba passing values but the manual doesn't seem to cover it more obviously. It seems double apostrophes when more functionality of the php is needed but I'm deviating; apologies. Yeah I've tried pretty much all the types of ways to include, no luck with ver 7 & on the testing server (well it works on the earlier Mamp ver but not on 7 & not on the server). It should be working on the testing server. Looking at my Mamp phperror.log I corrected the previous error mentioned. I also noticed the below: [05-Feb-2019 17:23:11 UTC] PHP Warning: include(/blocks/navbar.php): failed to open stream: No such file or directory in D:\Sites\estimating.services\SiteFiles\test.php on line 13 [05-Feb-2019 17:23:11 UTC] PHP Warning: include(): Failed opening '/blocks/navbar.php' for inclusion (include_path='.;C:\php\pear') in D:\Sites\estimating.services\SiteFiles\test.php on line 13 [05-Feb-2019 17:23:11 UTC] PHP Warning: include(/blocks/head.php): failed to open stream: No such file or directory in D:\Sites\estimating.services\SiteFiles\test.php on line 32 [05-Feb-2019 17:23:11 UTC] PHP Warning: include(): Failed opening '/blocks/head.php' for inclusion (include_path='.;C:\php\pear') in D:\Sites\estimating.services\SiteFiles\test.php on line 32 Seems that the actual command include isn't working properly in Mamp. But I don't think this would stop the testing server? I'm having a dig round trying to fix it. Thanks again for your input.
-
PHP Include Ver 7> Not Executing.
Thanks Jack, yeah I'm not concerned with that error, I've done a fair bit of googling on it & I'm pretty confident it's not to do with that. I've got the same error on the testing server (a generic mainstream server) & Mamp, so at least consistency with the include not working on either environment is showing consistency. I have checked my permissions on the server to the relevant files & I have 644, which I think seems right, played around with them to 755 & it's had no difference.
-
-
-
PHP Include Ver 7> Not Executing.
Thanks Jack, somethings definitely up here. Yes I'm able to include a file containing meta tags only when using Mamp ver 5.6.24, however not on ver 7.0.9 & it will not work on the testing server ver 5.5.32. Looking at the Mamp error logs I see: [05-Feb-2019 13:00:47 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\MAMP\bin\php\php7.0.9\ext\php_mysql.dll' - The specified module could not be found. in Unknown on line 0 but this is a mysql library & I don't think the include function lives in that library. I don't think I need to worry too much about this as I think this is just the default launch of Mamp trying to access all libraries & may be an error in Mamp itself as the file it should be using in this occasion is mysqli.dll; which is present. Also we're saying the same problem in the newer Mamp ver & testing server showing the same problem. Regarding echoing text into webpages, I should be able to echo out large chunks of content without having to echo out inside of each html element, this would be quite tedious & remove the benefit of php I think. Thank you for your input.
-
PHP Include Ver 7> Not Executing.
Thanks Jack, that makes me feel better. I wasn't aware echoing was an option so thanks for that. Unfortunately removing the echo via single quotes produces syntax errors (even with using esc characters) with the "s & <!--Slider--> part of code (at first glance). The file paths are correct, been entering them for a 1 & 1/2 days so I'm pretty sure I entered them correctly at least once in that time 🤣. My testing server is using PHP 5.5.32; nothing I do will get it to work on the server so far. When I switch Mamp to ver 5.6.24 it will work, but revering to 7.0.9 it will not work in Mamp. I'd rather it be working on the server 😄.
-
Precise Estimating Ltd started following PHP Include Ver 7> Not Executing.
-
PHP Include Ver 7> Not Executing.
Hi guys, having hassle getting a PHP include to work when containing double quotes. I was testing locally on Mamp (ver 5) but noticed what was working on Mamp was not working on my server; something seems quite different with PHP ver 7>. I changed the Mamp PHP ver to the most recent available (7.0.9) & immediately the include stopped working. I've tried quite a few different combinations now, all sorts of esc characters, enclosing the call in '/ " etc... I just can't seem to get it to work. I'm able to echo out the code with the result as desired at the web browser when wrapping the echo statement in single quotes & the content having double quotes, but when using an include it doesn't work? Any ideas what I'm doing wrong? THE CALL FROM THE BROWSER: <?php include '/blocks/head.php';?> head.php <?php echo ' <meta charset="utf-8"> <!--Slider--> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script src="/js/slider/responsiveslides.js"></script> <!--CSS--> <link rel="stylesheet" type="text/css" href="/css/main.css"> <!--SEO--> <meta name="google-site-verification" content="ZXcHD9Q3tEXYvuwvh_w2tRapMzVMsevPs7bKNaLEmmI" /> '; ?>
-
UI design feedback
Very impressive, nice work!
-
Domain Squatting
With the release of new Top Level Domains (TLDs) is cyber-squatting still an issue or has that ship sailed as there are now simply so many variations of domain names it's now too expensive to cover all your firms?
-
Private info exposed on Whois, what to do?
Am I the only one who wants my information on WHOIS? My reason being if you have an attractive domain offers will come to you directly; rather than a domain registrar reducing your profit margin.
-
-
Placing Html @ Bottom Loading In Different Order
Hi Fisicx, thank you for post, yes there are many things to fix however at this moment as the website is having changes left, right and center and I'm making it up as go - at this moment in time I'm concerned with what I posted about as this is fresh in my memory and it's natural to work in a sequence as I'm going to run into plenty more problems as I go. 'And don't worry about Google indexing things in a particular way. It doesn't work like that. Google will compare the content with the page title, H1, inbound link anchor text, trust marks and citations and from there determine for which keywords the page should rank for.' - I've read many articles that contradict this, so things must've changed recently. Yes I've read many articles on strucutring headings, links with keywords so thanks for that. You were right, I had a stray closing div where I was experimenting with microdata earlier but microdata makes it more difficult when identifying divs with the web developer tools as I'm sure you know. I've removed that div and at least the completely seperate classes are working but the :nth childs are still not working properly. I really thought that would've fixed it as it's working fine in the first example so I would not think the problem would lie in it's css as that's exactly the same in both examples. Thanks again.
-
Precise Estimating Ltd reacted to a post in a topic:
Placing Html @ Bottom Loading In Different Order
-
Placing Html @ Bottom Loading In Different Order
Hi Guys, I'm experiencing differences to how the page is loading when this content is placed at the bottom of the page. http://rcestimating.co.uk/index.php I have this content placed at the top. <h5 class="zoomout">Fast</h5> <h5 class="zoomout">Accurate</h5> <h5 class="zoomout">Reliable</h5> <h5 class="nofade">RC ESTIMATING LTD</h5> http://rcestimating.co.uk/index2.php here I have this content placed at the bottom; which is ideally what I want as this text is quite irrelevant and I don't want it ranking high in seo. The problem is that when this content is placed at the bottom it does not load in the correct order and my css formatting as below does not work. This seems quite strange! h5.zoomout { width: 100%; font-size: 4em; text-align: center; top: 45%; padding: 0; margin: 0; position: absolute; display: inline-block; opacity: 0; animation: zoomout 0.60s; -webkit-animation: zoomout 0.60s; -moz-animation: zoomout 0.60s; -ms-animation: zoomout 0.60s; -o-animation: zoomout 0.60s; } h5.zoomout:nth-child(2) { animation-delay: 0.60s; -webkit-animation-delay: 0.60s; -moz-animation-delay: 0.60s; -ms-animation-delay: 0.60s; -o-animation-delay: 0.60s; } h5.zoomout:nth-child(3) { animation-delay: 1.20s; -webkit-animation-delay: 1.20s; -moz-animation-delay: 1.20s; -ms-animation-delay: 1.20s; -o-animation-delay: 1.20s; } h5.nofade { width: 100%; font-size: 1.75em; text-align: center; top: 45%; position: absolute; opacity: 0; border-bottom: 5px solid Lime; animation: fade-addbottomborder 2.40s linear 1.80s forwards; -webkit-animation: fade-addbottomborder 2.40s linear 1.80s forwards; -moz-animation: fade-addbottomborder 2.40s linear 1.80s forwards; -ms-animation: fade-addbottomborder 2.40s linear 1.80s forwards; -o-animation: fade-addbottomborder 2.40s linear 1.80s forwards; }
-
-
No-Pro but trying
Hi Pete, Nice work, take my comments with a pinch of salt as I'm a novice - I think it would look great if you had the flame/ background as a movie. It would look so cool with him spinning the glasswork with the flame. Just a 5 second clip looping would look awesome in my humble opinion. Though it's just occurred to me that may not be possible on wordpress.
-
Excluding Animation Elements Loading Via JS?
Precise Estimating Ltd replied to Precise Estimating Ltd's topic in SEO (Search Engine Optimisation) & Search EnginesThanks so much Nillervision, I wish I could repay your kindness.