I have a strange question!
Moderator: General Moderators
I have a strange question!
I have an application in php encoded with zend encoder.
The problem is that it has some stuff written at the bottom of the page that i need to get rid of.
I have been thinking of various solutions but havent been able to come up with a feasible one.
Is it possible to remove that?
The output in html is:
<div class="bold">
<a href="http://www.hat.com">Powered by hat </a>
</div>
Is there a way I can put some conditional statement in PHP which will get rid of this before it is output?
Or is there no way round this at all?
The problem is that it has some stuff written at the bottom of the page that i need to get rid of.
I have been thinking of various solutions but havent been able to come up with a feasible one.
Is it possible to remove that?
The output in html is:
<div class="bold">
<a href="http://www.hat.com">Powered by hat </a>
</div>
Is there a way I can put some conditional statement in PHP which will get rid of this before it is output?
Or is there no way round this at all?
-
Charles256
- DevNet Resident
- Posts: 1375
- Joined: Fri Sep 16, 2005 9:06 pm
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
- elecktricity
- Forum Contributor
- Posts: 128
- Joined: Sun Sep 25, 2005 8:57 pm
- Location: Trapped in my own little world.
- Contact:
although there are a few ways to not display the code keeping it there here are a few:
Code: Select all
<span style="display:none">
<div class="bold">
<a href="http://www.hat.com">Powered by hat </a>
</div>
</span>Code: Select all
<?PHP
$nodisplay = '1';
if($nodisplay == '5') {
echo '<div class="bold">';
echo '<a href="http://www.hat.com">Powered by hat </a>';
echo '</div>';
}
?>- elecktricity
- Forum Contributor
- Posts: 128
- Joined: Sun Sep 25, 2005 8:57 pm
- Location: Trapped in my own little world.
- Contact:
so your saying on the page it looks something like:
Powered by hat
and you dont want that there? still kinda lost at what you want if that above didnt help
Powered by hat
and you dont want that there? still kinda lost at what you want if that above didnt help
So the encoder throws that on the bottom of every page? That sucks. If that's the case, there's nothing you can code in your PHP page that'll get rid of it. However, you may be able to write something in javascript that runs every time the page loads, which removes that bit of code.
Another option (which is ugly), is to end your file with <div style = 'display:none;'>. That may set that added extra stuff to be not displayed. Of course then you've got the problem that you've got an unclosed div at the end of your page.
Another option (which is ugly), is to end your file with <div style = 'display:none;'>. That may set that added extra stuff to be not displayed. Of course then you've got the problem that you've got an unclosed div at the end of your page.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Agreed...Burrito wrote:Moved to Code
they probably don't want you to remove it by design. They want credit, as they should, for the work they put into developing the application.
you should check to the license agreement to see if you're even "allowed" to remove it...
I hate people who steal others hard work!!!
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
I might be late commentin on this conversation --
Anyways, to the original sender - just have a look in the dircetory structure of the script you should find something similar to template or skin. As these big scripts are based on pure template system.
Now open any page in some editor and go right to the bottom of the screen -- choose view design for easy navigation and click on php code there -- hopefully (crosses finger) you will find include statement -- Bingo!! open the page in the include statement and remove the text you want to remove.
does this make sense
rohabrar
Anyways, to the original sender - just have a look in the dircetory structure of the script you should find something similar to template or skin. As these big scripts are based on pure template system.
Now open any page in some editor and go right to the bottom of the screen -- choose view design for easy navigation and click on php code there -- hopefully (crosses finger) you will find include statement -- Bingo!! open the page in the include statement and remove the text you want to remove.
rohabrar
- n00b Saibot
- DevNet Resident
- Posts: 1452
- Joined: Fri Dec 24, 2004 2:59 am
- Location: Lucknow, UP, India
- Contact: