PDA

View Full Version : This is VERY weird, I CAN'T include global.php!!!


Sean
01-21-2002, 03:23 PM
Does anyone know why this gay Plesk server won't let me load global.php? I renamed it and uploaded, didn't work. I created a new file, and put in a variable, names yo.php, included on the same page from the same places, worked FINE!! What tha heck is going on with this global file? When ever I load the page is blank. After including it, no other PHP is parsed. What could be causing this problem? It worked before, but then my CP didn't work (gave me this adminlog() error). I found out it was because the global.php file was from an earlier vB. Uploaded the new global (from 2.2.1) adn then I couldn't include global.php anymore..... :( What could be going on...... :confused:

here's the source of my test file:


<?
echo "Is this working?";
require ('/usr/local/psa/home/vhosts/forums.electron-designs.com/httpdocs/admin/global2.php');
echo "This code WILL NOT parse...";
echo $codeversionnumber;
?>


This page is here: http://g-designs.electron-designs.com/test5.php

If I changed the above to:


<?
echo "Is this working?";
require ('/usr/local/psa/home/vhosts/forums.electron-designs.com/httpdocs/admin/yo.php');
echo "This code WILL NOT parse...";
echo $var; //this is in yo.php
?>


It would work just fine!!

Dark_Wizard
01-21-2002, 04:04 PM
Strange maybe but I have some suggestions you may want to try. First off this appears to be a sub domain "forums.electron-designs.com" can you try to change it to this "electron-designs.com/forums" and see if this makes a difference or just try ./global.php. If not is their an .htaccess file in your root? Check to see if one exists and it is hidden so you will have to add the -la to your ftp s/w or if you telnet/SSH in the just do a ls -al at the root directory. If any of this doesn't help then time to talk to your hosting provider.

Sean
01-26-2002, 02:22 AM
Ok, get this. it's soo funny. When I try to include global.php, to test.php like this: <? require ('global.php'); ?> IT DOESN'T WORK!! Hell, it's even in the same dang directory. i changed the permissions to 755, nothing! WTF IS GOING ON?!? :( :cry:

Sean
01-26-2002, 02:27 AM
AHHH, I was loading teh wrong global file!! ahhh!! LOL