Re: [PHP] Required files not being parsed properly...

2008-10-07 Thread Jim Lucas
Eric Butera wrote:
 On Mon, Oct 6, 2008 at 7:28 PM, Stephen Johnson
 [EMAIL PROTECTED] wrote:
 OK .. I am upgrading to PHP5 on a clients box, and  after doing so I have
 run into the problem that files that get brought in by a require statement,
 or include, end up just getting dumped to the browser as text..

 For instance :

 require(/home/tnr/incs/tnr_db.php);
 $db = new mysql();

 Produces what you see here :

 http://www.thumbnailresume.com/index.html?allow=1

 Any one have any thoughts on what is going on?

 --
 Stephen Johnson c | eh
 The Lone Coder

 office:  562.366.4433
 fax: 562.278.0133

 http://www.thelonecoder.com
 continuing the struggle against bad code

 http://www.fortheloveofgeeks.com
 I¹m a geek and I¹m OK!
 --




 
 
 
 $user_id = $_COOKIE['user_id'];
   
 $logFile = /home/tnr/query_logs/tnr..$user_id..query.log;
 
 uh oh...

Did you scare the OP or something?  The page isn't available any longer... :)

-- 
Jim Lucas

   Some men are born to greatness, some achieve greatness,
   and some have greatness thrust upon them.

Twelfth Night, Act II, Scene V
by William Shakespeare


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Required files not being parsed properly...

2008-10-07 Thread Eric Butera
On Tue, Oct 7, 2008 at 10:32 AM, Jim Lucas [EMAIL PROTECTED] wrote:
 Eric Butera wrote:
 On Mon, Oct 6, 2008 at 7:28 PM, Stephen Johnson
 [EMAIL PROTECTED] wrote:
 OK .. I am upgrading to PHP5 on a clients box, and  after doing so I have
 run into the problem that files that get brought in by a require statement,
 or include, end up just getting dumped to the browser as text..

 For instance :

 require(/home/tnr/incs/tnr_db.php);
 $db = new mysql();

 Produces what you see here :

 http://www.thumbnailresume.com/index.html?allow=1

 Any one have any thoughts on what is going on?

 --
 Stephen Johnson c | eh
 The Lone Coder

 office:  562.366.4433
 fax: 562.278.0133

 http://www.thelonecoder.com
 continuing the struggle against bad code

 http://www.fortheloveofgeeks.com
 I¹m a geek and I¹m OK!
 --







 $user_id = $_COOKIE['user_id'];

 $logFile = /home/tnr/query_logs/tnr..$user_id..query.log;

 uh oh...

 Did you scare the OP or something?  The page isn't available any longer... :)

 --
 Jim Lucas

   Some men are born to greatness, some achieve greatness,
   and some have greatness thrust upon them.

 Twelfth Night, Act II, Scene V
by William Shakespeare



I hope not, but I also hope it's fixed.  After sending that I kicked
myself since it should have been off-list.  ;)


Re: [PHP] Required files not being parsed properly...

2008-10-07 Thread Stephen Johnson
Hey hey hey ... LOL  This is all VERY old code...I admit that...

The site needed to be closed since it was completely broken.

I figured out the reason .. The new php.ini file had the use short tags
turned off... So I turned that on and it works now.




On 10/7/08 7:32 AM, Jim Lucas [EMAIL PROTECTED] wrote:

 Eric Butera wrote:
 On Mon, Oct 6, 2008 at 7:28 PM, Stephen Johnson
 [EMAIL PROTECTED] wrote:
 OK .. I am upgrading to PHP5 on a clients box, and  after doing so I have
 run into the problem that files that get brought in by a require statement,
 or include, end up just getting dumped to the browser as text..
 
 For instance :
 
 require(/home/tnr/incs/tnr_db.php);
 $db = new mysql();
 
 Produces what you see here :
 
 http://www.thumbnailresume.com/index.html?allow=1
 
 Any one have any thoughts on what is going on?
 
 --
 Stephen Johnson c | eh
 The Lone Coder
 
 office:  562.366.4433
 fax: 562.278.0133
 
 http://www.thelonecoder.com
 continuing the struggle against bad code
 
 http://www.fortheloveofgeeks.com
 I¹m a geek and I¹m OK!
 --
 
 
 
 
 
 
 
 $user_id = $_COOKIE['user_id'];
 
 $logFile = /home/tnr/query_logs/tnr..$user_id..query.log;
 
 uh oh...
 
 Did you scare the OP or something?  The page isn't available any longer... :)

-- 
Stephen Johnson
The Lone Coder

http://www.ouradoptionblog.com
*Join us on our adoption journey*

[EMAIL PROTECTED]
http://www.thelonecoder.com

*Continuing the struggle against bad code*
--



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Required files not being parsed properly...

2008-10-06 Thread Jim Lucas
Stephen Johnson wrote:
 OK .. I am upgrading to PHP5 on a clients box, and  after doing so I have
 run into the problem that files that get brought in by a require statement,
 or include, end up just getting dumped to the browser as text..
 
 For instance : 
 
 require(/home/tnr/incs/tnr_db.php);
 $db = new mysql();
 
 Produces what you see here :
 
 http://www.thumbnailresume.com/index.html?allow=1
 
 Any one have any thoughts on what is going on?
 
 --
 Stephen Johnson c | eh
 The Lone Coder
 
 office:  562.366.4433
 fax: 562.278.0133
 
 http://www.thelonecoder.com
 continuing the struggle against bad code
 
 http://www.fortheloveofgeeks.com
 I¹m a geek and I¹m OK!
 --
 
 
 
 

Well, if you look at the source for the page, you will notice that you have a
? at the top of the file.  The default for PHP5 is to disable the
short_open_tag  it is set to off by default.  PHP4 was set to On

Change that restart apache.  You should be good to go.

-- 
Jim Lucas

   Some men are born to greatness, some achieve greatness,
   and some have greatness thrust upon them.

Twelfth Night, Act II, Scene V
by William Shakespeare


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Required files not being parsed properly...

2008-10-06 Thread Eric Butera
On Mon, Oct 6, 2008 at 7:28 PM, Stephen Johnson
[EMAIL PROTECTED] wrote:
 OK .. I am upgrading to PHP5 on a clients box, and  after doing so I have
 run into the problem that files that get brought in by a require statement,
 or include, end up just getting dumped to the browser as text..

 For instance :

 require(/home/tnr/incs/tnr_db.php);
 $db = new mysql();

 Produces what you see here :

 http://www.thumbnailresume.com/index.html?allow=1

 Any one have any thoughts on what is going on?

 --
 Stephen Johnson c | eh
 The Lone Coder

 office:  562.366.4433
 fax: 562.278.0133

 http://www.thelonecoder.com
 continuing the struggle against bad code

 http://www.fortheloveofgeeks.com
 I¹m a geek and I¹m OK!
 --







$user_id = $_COOKIE['user_id'];

$logFile = /home/tnr/query_logs/tnr..$user_id..query.log;

uh oh...