Mod_layout, Escaping PHP Without ?>

Feb 15, 2007

I've installed mod_layout and it works correctly except if I use > in my PHP scripts for it. For some reason it is escaping from PHP and printing everything after >. So that leaves me unable to use the greater than sign to evaluate expressions or problems.

Example:

Code:
<?php
$a = 2;
$b = 3;

if($b > $a){
echo 'Greater than';
}
?>
Everything after > would be printed to the screen instead of being parsed through PHP. I am lost as what to try, I've tried all the normal escape characters but I must be missing something.

View 1 Replies


ADVERTISEMENT

SSH Commands - Deleting Files And Escaping Characters

Jun 26, 2008

I have two quick questions.

Question 1
I had a script create a backup of every file on my site using the following format "filename.php.bac". I want to delete these files now and I tired to use "rm *.bac" but that only deleted the files in the current directory. How can I delete ALL those files in EVERY directory and sub-directory starting at the public_html directory?

Question 2
How can I escape semi-colon's (;) in a perl script? I'm trying to run a search+replace script to update some Analytics code and I have a ton of files to update but for some reason if there is a semi-colon in the find varable, it assumes that it has reached the end of the contents in that variable.

Here is the code. Take a look at the $find variable and you will see extra semi-colon's. How do I tell the script to not treat those semi-colons as the end of the variable? .........

View 5 Replies View Related

Mod_layout And GD2 Library

Mar 28, 2009

I using on my server mod_layout and GD2 library of course too. Today I detect problem with GD2 lib.

In the vhosts where are define mod_layout, GD library NOT RUNNING! When I try delete a mod_layout define variables, GD lib run wtihout any problems.

I try to find something about it on google, but I found nothing.

View 5 Replies View Related

Install Mod_layout

Apr 26, 2009

install mod_layout-5.1.

When I perform the make install.

I get Error 127.

View 4 Replies View Related

Installin Mod_Layout

Aug 21, 2007

I'm trying to install mod layout so i can fun ipanel. but i have no clue how todo this stuff.

Do you use DSO? If so just type make and as long as apxs is in your path all things
should go smoothly. If you are not using DSO you should be

If for some reason you need to compile apache try the following:

1. Copy the contents of mod_layout into a directory under
your treee so that you have:
src/modules/layout/

2. Now copy the file Makefile.STATIC to Makefile in the
layout directory.

3. Call the configure script as you normally would and add the switch:
--activate-module=src/modules/layout/liblayout.a

4. Make sure the build environment is clean by issuing the following
command:
> make clean

5. Build the new httpd binary with:
> make

6. Install the new httpd binary with:
> make install

7. Restart apache. Make sure you do a:
> apachectl stop
> apachectl start

See the README file for more on how to configure
mod_layout.

View 5 Replies View Related

How To Only Show Ad's On Certain Sites Using Mod_Layout

Jun 25, 2009

I have Mod_layout installed on one of my servers and I was just wondering is there a way I can have it ignore certain sites by adding some line of code with the domain or something linking to the account/website I wish for it to not apply the advertisements too?

I know IPanel has this feature, but I'm not wanting use a script if I can help it, but just a direct code that I can put inside the .php.ini file and state which sites I want it to ignore.

So I'm not a coder or anything, but since IPanel has someway of commuicating with Mod_layout to tell it to not place ads on sites you select in IPanel, there should be a manual way to override it some kinda way?

View 1 Replies View Related

Wrong Works Mod_layout

Jun 8, 2008

We Ask to forgive the bad English.

All orderly ed without mistake.
Apache/1.3.41

add In httpd.conf to virtual хосту for instance:
LayoutHeader "<H1>Test</H1>"

the text appears, but not there where it is necessary:

<H1>TEST</H1>
........
<head>
<title>title</title>
<meta http-equiv="Content-Type" content="text/html; charset==utf-8"/>
</head>
<body>
the text of the site.....

That is required?
It is Necessary чтоб was removed so:

..........
<head>
<title>title</title>
<meta http-equiv="Content-Type" content="text/html; charset==utf-8"/>
</head>
<body><H1>TEST</H1>........

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved