Solved

Problem with reading page

Posted on 2004-09-16
5
208 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
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

828 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