controller code is showing above H1 on static pages |
[eluser]cofmorris[/eluser]
Your M.O. is very in kind with mine. However, I would think that a site sponsored tutorial would be sans hiccup. Apparently not. I do want to fix/document the issue for posterity. GoDaddy did require a reconfiguration of ['uri_protocol'] from = "AUTO" to = "QUERY_STRING" just to get the app to this point... pages viewable. SEE: http://cammacindustries.com/ci/index.php.../view/home http://cammacindustries.com/ci/index.php...view/about Any insight, other than methodology, would be appreciated. Thanks, Chris
[eluser]Aken[/eluser]
Raw PHP output has nothing to do with the tutorial. It's something with your server set up or the way your PHP files are being saved. I'd suggest a more broad search about those problems and not something CI-specific.
[eluser]cofmorris[/eluser]
My server is running php 5.2. I can't upgrade because I have assets that depend on that version. I guess I'll create a php 5.3 environment on a different host to see if the TUTORIAL functions. I understand php output. I understand server configurations. Please elaborate about "a more broad search". Thanks, Chris
[eluser]Aken[/eluser]
2.1.3's minimum requirement is 5.1.6, 3.0's is 5.2.4, so you should be fine with that. (Also don't really know why your code requires 5.2 and does not support 5.3 -- that doesn't make much sense.) A more broad search meaning look around the web for instances of raw PHP code being displayed, perhaps specifically on GoDaddy. As I said, this usually is more because of your host environment or the way files are saved, not typically because of CI itself. For instance, if you simply copy/pasted the tutorial, try creating new files and writing them manually, because maybe there was a problem with the copy/paste. GoDaddy is a shit web host, I'd suggest moving away from them entirely, but that may not be an option for you.
[eluser]Katie1348[/eluser]
Hi, This might help somebody, when I create a PHP file in Visual Studio, it makes it a UTF8 format file, there are 2 (two) hidden characters a the beginning of the file. These need to be deleted to make PHP process the file correctly. This might not be what you are seeing, but it might help someone else. I use XVI Hex Editor to delete them off the front of the file. Regards, Kate
[eluser]CroNiX[/eluser]
@katie That's called the BOM (Byte Order Mark). See if there is an option to save UTF-8 files without BOM in VS. BOM is unnecessary and causes issues with PHP. |
Welcome Guest, Not a member yet? Register Sign In |