Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Problem with reading page

Posted on 2004-09-16
5
Medium Priority
?
227 Views
Last Modified: 2013-12-13
Hi I am having problems running a web page using phplib session management

The problem I have seems to be with the PHPLLB stuff in that when I run a web page all I get is text from part of the .php page - I can see that when I run the page it is not distinguishing between '>' to denote the start of a code block and various locations where '>' is used in the code i.e.
The index.php page
<?
require "prepend.php";
require "../../../pplib/ooforms.inc";

put_headers();

page_open (array("sess" => seems to be seen as a code block - what I actually see on the web page is the remaining code and HTML in the page.

I know everything on the PHP side works as I have other pages that don't use the PHPLLB

Is there something I have not done?

BTW PHP5 -Apache2

Thanks in advance

Paul
0
Comment
Question by:ewocks
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 48

Accepted Solution

by:
hernst42 earned 800 total points
ID: 12075189
Check your php.ini and check if short_open_tag = On

If its turned to off <? will not be recognized as PHP-code only <?php.
Anyway ist better to fix the code so always <?php is used.
0
 

Author Comment

by:ewocks
ID: 12083653
No that is OK - this problem has now gone away - I reinstalled PHP  and ran a page with phpino() and all was OK- However I cannot get any of the PHPLIB stuff to work - just get a blank page
I have extended the require to include the complete path of the prepend.php file I require but nothing!
0
 
LVL 48

Expert Comment

by:hernst42
ID: 12089223
For debuging purposes set the follwoing settings in your php.ini:
error_reporting  =  E_ALL
display_errors = On

So you will get the errors or PHP-warnigs to the screen and you can see whats happen.


0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question