NVM- finally got it working... the only problem I'm having is:
The file being called and displayed is displaying with extra space where the <br> tag is used. There's about 5 pixels of new space added where normally they'd be flush against eachother... what is going on?
Last edited by ilovetechno; 10-21-2009 at 09:04 PM..
php has to be installed on a server for it to work. if you are trying to run from your computer. google "wamp server" and download it. once installed, post here and will help on the next steps.
I'm working on a site hosted by ICDSOFT.. do i have to install anything on there? Its not the webhost I prefer/know best so I really don't know my way around it very well or know how to begin using PHP on it
When I change the page I'm trying to file-call to to .php, there are 3 error notes that say Warning: include() [function.include]: URL file-access is disabled in the server configuration in hmm.php on line 16
Warning: include(http://www.spmstudio.com/header.php) [function.include]: failed to open stream: no suitable wrapper could be found in hmm.php on line 16
Warning: include() [function.include]: Failed opening 'header.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in hmm.php on line 16
MEH Im going to rip my hair out! I've been googling and googling for DAYS and I for the life of me cannot find anything to explain to me how exactly I fix this. Or change the settings, because I do not see a single place on my hosting site filemanager or main page or anything to be able to configure php settings
OK so I made a php.ini file just adding the "allow_url_fopen = On" part to it and that finally made it work, but there are big spaces displayed whenever there is a <br> in that file, how do I stop that?
ilovetechno, if you are working on an account at ICDSoft, you can simply contact our support on these matters - either at our support site, or by email. Our support staff respond to all support tickets within several minutes and to all emails usually within 10-15 minutes. I am sure they can help you .
I see you got some of your issues straightened out.
About the php.ini file: If you entered only "allow_url_fopen = On", you might have other things not working. You can check the FAQ at suresupport.com on modifying php.ini files, or simply contact support for assistance.
As per the multiple spaces - in the code of your template.htm there are multiple <br>s (<br><br><br><br><br><br><br><br><br>). Is it possible that you are seeing these multiple <br>s? Again, you can count on our support to help you on the matter.
I see you got some of your issues straightened out.
About the php.ini file: If you entered only "allow_url_fopen = On", you might have other things not working. You can check the FAQ at suresupport.com on modifying php.ini files, or simply contact support for assistance.
As per the multiple spaces - in the code of your template.htm there are multiple <br>s (<br><br><br><br><br><br><br><br><br>). Is it possible that you are seeing these multiple <br>s? Again, you can count on our support to help you on the matter.
Best to all!
Zafir Slavov,
ICDSoft Team
When you say I might have other problems after using that allow code, do you mean other php problems or other general problems? Because currently the only thing I wanted to use the php for is the include function so that I can template the header.
No, the other break tags are just for spacing in the body content, not the header that I'm including.
Anyways, I had a feeling it was the Mozilla platform and I just looked at it on Internet Explorer and the extra spaces are not there, so I guess its just the little differences in how the different platforms read code differently.
Thanks for the help! If I have anymore questions I'll direct them to the support team
Finally figured it out... was using the wrong Doctype. Switched to transitional and now no extra spaces!! Now if only I could just figure out why I can't get divs to work...!
When you say I might have other problems after using that allow code, do you mean other php problems or other general problems? Because currently the only thing I wanted to use the php for is the include function so that I can template the header.
I am sorry for answering a bit late. When you create a php.ini file in a certain folder, the global php.ini file on the server is overridden. Thus, all PHP settings for this folder are reset to the values of a default PHP installation (besides the one you set in your php.ini file). The PHP settings on our servers differ from the default PHP installation - for example, some values such as max_execution_time and memory_limit are higher on our servers, than in the default PHP installation.
If you are using simple includes and you do not have any complex scripts - most probably there will be no difference for you.
Good to hear that you solved the extra spaces problem.