View Full Version : Absolute Links?
visionary
11-28-2005, 01:36 PM
I recall seeing somewhere that relative links had to be used to display your calendar.
Is there anyway to display the calendar using absolute links?
My dilemna is that I'd like to use Easy Php Calendar on many of the sites I do, but I fear that many of my clients might have sites that are hosted on machines that don't support PHP.
ve9gra
11-28-2005, 02:19 PM
I think you may have misunderstood what was being talked about. When you issue the php command to "require" the calendar, what some users were doing was to give the URL to the calendar's installation. Doing so would freeze, if you will, the links, and then the navigation and other features would be borked. When using "require();" it is required to use a filesystem include, meaning that you give the location of the calendar's installation relative to the filesystem, and not to the webserver.
If you try to do an ASP include and include it from a different domain, navigation won't work for sure. Other features might also not work.
PHP (along with ionCube or Zend) is a requirement for the use of EPC.
Brian
11-28-2005, 02:27 PM
Because of the dynamic nature of the script and it's ability to integrate with existing web sites, relative paths ensure the best compatibility. You could force absolute paths by manually editing them in the calendar.php file.
My dilemna is that I'd like to use Easy Php Calendar on many of the sites I do, but I fear that many of my clients might have sites that are hosted on machines that don't support PHP.
The sever must support PHP to run the calendar.
Brian
11-28-2005, 02:28 PM
(Looks like I took too long to post ;) )
visionary
11-28-2005, 03:49 PM
<<< Because of the dynamic nature of the script and it's ability to integrate with existing web sites, relative paths ensure the best compatibility. You could force absolute paths by manually editing them in the calendar.php file. >>>
I've had some luck getting the basic calendar to display using an absolute link in the REQUIRE line, but it always seems to come up as the little calendar and not the "Text on Calendar" or other displays. Does this make sense?
<<<<<< My dilemna is that I'd like to use Easy Php Calendar on many of the sites I do, but I fear that many of my clients might have sites that are hosted on machines that don't support PHP. >>>>>>
<< The sever must support PHP to run the calendar. >>
So, even if the calendar and all the calendar files are on a PHP server, the "linking page" (the one that contains the REQUIRE line must) also be on a PHP server?
Brian
11-28-2005, 05:03 PM
I've had some luck getting the basic calendar to display using an absolute link in the REQUIRE line, but it always seems to come up as the little calendar and not the "Text on Calendar" or other displays. Does this make sense?
This is because the CSS that defines the layout (including size and colors) is not being loaded when access directly this way. You may need to add the CSS to the originating page.
So, even if the calendar and all the calendar files are on a PHP server, the "linking page" (the one that contains the REQUIRE line must) also be on a PHP server?
The require command is a PHP command. It may be possible using another programming language on another server or SSI, but usually, you would need PHP.
visionary
11-28-2005, 05:14 PM
This is because the CSS that defines the layout (including size and colors) is not being loaded when access directly this way. You may need to add the CSS to the originating page.
Ah, because the size and such is all written into the style sheet. Gotcha.
The require command is a PHP command. It may be possible using another programming language on another server or SSI, but usually, you would need PHP.
Would a server with basic PHP capabilities suffice? Or would it also have to have the full nine yards with the latest version of Zend installed and all? I mean, my server, for example, supported PHP files before, but I had to make more changes (Zend installation) to get it to work properly with the calendar.
Thanks for all your help and for the quick replies.
ve9gra
11-28-2005, 07:59 PM
If the server supports run-time loading (of something, Brian must have the right wording) you could use the ionCube version. Usually a plain install of PHP will work just fine, you just need to allow that loading for the ionCube version to work.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.