| 
	
 | 
 Posted by Vladimir Ghetau on 06/14/07 17:51 
On Jun 14, 3:49 pm, berksh...@gmail.com wrote: 
> We recently upgraded php from 4.3.9 to 4.4.7.  Everything is working 
> well, except the php scripts running as cronjobs.  It appears the 
> problem is that these scripts utilize the include() function and these 
> functions are utilizing relative paths.  They worked just fine with 
> the old version of php, but not with the new version. 
> 
> Anyone know what is causing this hiccup? 
> 
> TIA 
 
 
Try using the server relative path in this case, or check the PHP.ini 
and setup some paths in there. 
 
So, instead of 
 
<?php 
 
include ('whatever.php'); 
 
?> 
 
try 
 
 
<?php 
 
include('server/relative/path/to/the/whatever/file.php'); 
 
?> 
 
 
Cheers, 
 
Vladimir Ghetau
 
  
Navigation:
[Reply to this message] 
 |