GuppY Help Center, help online, documentation and tutorials

 
Search
 
Close
GuppY 5.02

telecharger.png

logo_nuxit_guppy.png
You are here :   Welcome » GuppY 4.6.22 -Fonction glob() qui pose problème chez certains hébergeurs
 
Preview  Print...  Print this page...
Preview  Print...  Print this section...
FAQ GuppY <= 4.6.xx

In this menu you will find all the FAQs on earlier versions of GuppY.

 ↑  
FAQ GuppY v 5.01.xx

Here you will find FAQs on Guppy version 5.01.xx.

 ↑  
FAQ system

These FAQs address issues related to hosting and the system in general.

Documentation

In this box you will find documentation and tutorials

 ↑  
Legal

Here you will find important information regarding regulations and copyright

 ↑  
rss This article is available in the standard RSS format for publication on your website :
https://ghc.freeguppy.org/data/en-articles.xml

Here's a way out of the trouble with function glob() with some hosters:

Edit the file inc/hpage.inc with an editor like notepad++ or at least windows notepad. Above all, do nor use word processors like Word or OpenOffice, and replace lines 238 à 258 included, which are :
 
Code : php
// CSS located in directory inc/csshead are automatically charged in part HEAD of the page
$allcss = glob(CHEMIN.'inc/csshead/*{.css,.css.php}', GLOB_BRACE);
if (FALSE !== $allcss) {
sort($allcss);
foreach ($allcss as $onecss) {
echo '
<link type="text/css" rel="stylesheet" href="'.$onecss.'" />';
}
unset($allcss, $onecss);
}
// javascript located in directory inc/jshead are automatically charged in part HEAD of the page
$alljs = glob(CHEMIN.'inc/jshead/*{.js,.js.php}', GLOB_BRACE);
if (FALSE !== $alljs) {
sort($alljs);
foreach ($alljs as $onejs) {
echo '
<script language="javascript" type="text/javascript" src="'.$onejs.'"></script>';
}
unset($alljs, $onejs);
}
 
by those lines:
 
Code : php
// CSS located in directory inc/csshead are automatically charged in part HEAD of the page
$dir = CHEMIN.'inc/csshead';
if (is_dir($dir)) {
$allcss = scandir($dir);
if (FALSE !== $allcss) {
sort($allcss);
foreach ($allcss as $onecss) {
$info = pathinfo($onecss);
if ($info['extension'] == 'css')
echo '
<link type="text/css" rel="stylesheet" href="'.$dir.'/'.$onecss.'" />';
}
unset($allcss, $onecss);
}
}
// javascript located in directory inc/jshead are automatically charged in part HEAD of the page
$dir = CHEMIN.'inc/jshead';
if (is_dir($dir)) {
$alljs = scandir($dir);
if (FALSE !== $alljs) {
sort($alljs);
foreach ($alljs as $onejs) {
$info = pathinfo($onejs);
if ($info['extension'] == 'js')
echo '
<script language="javascript" type="text/javascript" src="'.$dir.'/'.$onejs.'"></script>';
}
unset($alljs, $onejs);
}
}
 
  They are the only instances in GuppY 4.6.22 where the glob() function is used.

Those who have installed JeanMi's plugin jmForks, can refer to this article on his website if needed : http://www.jmmis.com/articles.php?lng=fr&pg=12479.
Please don't hesitate to post on his forum if in trouble with this plugin.The file inc/hpage.inc comes with his plugin.

ATTENTION, These instructions are only intended fot those who meet pronlemens with their hosters. Others can use 4.6.22 version as is.

Creation date : 2013.01.09 @ 13:39
Category : - Webhosting services issues
Page read 12420 times

You are here :   Welcome » GuppY 4.6.22 -Fonction glob() qui pose problème chez certains hébergeurs
 
Preview  Print...  Print this page...
Preview  Print...  Print this section...
Visits

 1682209 visitors

 101 visitors online

Webmaster - Infos
Help

aide_help.png
On each page in admin, if you click on this icon, you get the online help page.

Site registered in the CNIL under agrément 1040387.
You have a right of access, modification, rectification and deletion
of the data according to the Computer law and Freedom (article 34) of January 6th, 1978.

 

The FreeGuppY.org hosting is provided by Nuxit.com our partner