Problem related to view of resource within webpage.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
aapkamanoj
Forum Newbie
Posts: 1
Joined: Mon Apr 19, 2010 1:08 am

Problem related to view of resource within webpage.

Post by aapkamanoj »

Hi All,

In one of my project I am storing the content of specific URL's in database. Later it is to be displayed within my project web page.
Whenever I am displaying it in my web page using "echo" ( as a requirement to show browser view of that resource stored in database), style ( css ) of child page is overriding my current web-page.

Please help me and suggest better approach to handle this task.

Thanks in advance.

Manoj
Mumbai, India
cpetercarter
Forum Contributor
Posts: 474
Joined: Sat Jul 25, 2009 2:00 am

Re: Problem related to view of resource within webpage.

Post by cpetercarter »

Is there in-line css in the child page ie are there html tags with "style="...." attributes? If so, they will always override the css of the parent. You will need a regex to remove the style elements from the html of the child page before displaying it.
Post Reply