Solved

Problem with reading page

Posted on 2004-09-16
5
205 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
  • 2
5 Comments
 
LVL 48

Accepted Solution

by:
hernst42 earned 200 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now