Solved

Problem with reading page

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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

This article discusses how to implement server side field validation and display customized error messages to the client.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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 …

617 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