|
Quotes |
" ... I want to tell you that your thyme product is functional and valuable beyond
words. I cannot imagine why any portal would be without it. It is the cornerstone of our new project ..."
" ... Thanks for such a complete project, its making my job much easier. ..."
" ... I have now deployed 4 different calendars and our users love them ... "
" ... Easy to install and use and a great look/design. ..."
" ... This has to be the easiest to use program I think I've had to deal with at all this year. ..."
|
|
| View previous topic :: View next topic |
| Author |
Message |
Mirlynn
Joined: 20 May 2006 Posts: 5
|
Posted: Fri May 19, 2006 9:37 pm Post subject: Integration into php based website |
|
|
Hello all. I have gone through the setup of my calendar and minical. I have copied the text thyme generates and saved it as a seperate php file in my includes directory.
I have then gone to my index page and used an include statement to incorporate the minical into a specific area of the page. (Basically, I have created a modular framework on the index page and am populating each section with a module via php includes.)
When I load the index page after including the minical.php file, that code runs fine and I see the minical where it is supposed to be. Unfortunately, all the include statements further down in the code start throwing up errors and won't load.
Specifically, subsequent includes can't connect to the DB and error out. I get the following error in my php log:
PHP Warning: Unknown(F:\web\zone7vb\dyn\index.php): failed to open stream: Permission denied in Unknown on line 0
If I comment out the include statement for minical.php, the page loads fine. I am totally clueless on what would be causing this error. Something in minical.php is apparently creating some sort of permissions error when trying to include other files.
I am not familiar with object oriented PHP so I am struggling a bit with understanding the thyme code. Would anything in the minical code affect the permissions of files in the root directory?
Any insight would be GREATLY appreciated.
Oh, I am running Apache 2 on windows with PHP 4.3.8 and MySQL 4.1 on a windows box.
Thanks in advance!
Mirlynn |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Fri May 19, 2006 11:28 pm Post subject: |
|
|
Hi Mirlynn,
Do you by chance know if PHP is running with safe_mode on? This would be set in php.ini. |
|
| Back to top |
|
 |
Mirlynn
Joined: 20 May 2006 Posts: 5
|
Posted: Mon May 22, 2006 1:52 am Post subject: Safe mode is not on |
|
|
I am not running PHP in safe mode. I tried to actually turn safe mode on to see if this would affect the execution of the code and, unfortunately, I still suffer the same error when I try loading the page.
I am totally lost on this one. Given that the minical runs fine if loaded by itself but causes errors when I include the minical code into another page, it then errors out and won't let any additional include statements connect to the DB.
Any further input would be GREATLY appreciated. The calendar is an awesome tool for which I have no problem spending the money on but, as yet, I can't actually use it until getting past this issue. It seems like it should be relatively simple but clearly, it is beyond me to know how to solve this.
If anyone needs to see the code or has any other questions, I would be more than willing to proivde whatever is needed to solve this issue..
Thanks in advance for any help.
Mirlynn |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Mon May 22, 2006 2:18 am Post subject: |
|
|
Hi Mirlynn,
Could you please post all of the errors you get? There may be some other clues in apache's logs. Also, apache's mod_security may cause problems if the include() statement contains '../'. Try using the full path instead of the relative path if that is that is the case. |
|
| Back to top |
|
 |
Mirlynn
Joined: 20 May 2006 Posts: 5
|
Posted: Tue Jun 06, 2006 1:07 am Post subject: Got it figured out |
|
|
Thanks for the followup. I ended up getting it figured out. It was my internal issue with the code.
Thanks again for the help!!!
Mirlynn |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|