Skip to content

Tag: html

Output PHP Code in HTML, literally

My question is very simple. All I want to do is write actual PHP code in HTML, without executing it. For example, I want to write I DO NOT want to execute this PHP. I want to literally write the PHP code on the html document, by somehow escaping the <?php tags (I don’t want to remove them). Unfortuna…

dompdf HTML to PDF – can’t set margin of page

version: 0.6.0 beta 3 I tryed in every manner to make dompdf set the margin of the page. I have a long page with a lot of text, divided in chapters… my css is something like: when the php is but what I get is a page with NO margins!!! only the padding of the #wrapper are applied… and they

Image in text line is slightly offset

I’m trying to make a clickable button by treating a hyperlink with CSS and adding a little icon next to it. Everything but one detail works great; namely the icons which are slightly offset from the text on the button. It looks as follows: As you may see, the white icons (12x12px) on the buttons are sli…

upload image to my server directory and use the url

I am stuck and really don’t have any idea how can i do this. I want to upload an image to my server root directory. And then i want to use the url of that image. Like I want to use this url in a html page. Which will have no link with my website. anyone clicks that html file

How to change the colors of xdebug output?

The red and yellow standard colors of xdebug can hurt your eyes after a few hours. http://www.designified.com/blog/article/76/restyling-xdebug-output describes how to replace the style with javascript requiring jquery. I was looking for a more straight forward way and finally found one. Answer The solution is…

Line endings in a form textarea

Morning, When you post a form which has a textarea, what line endings are used? rn, n or like local files does it depend on the OS? I am tryring to find an RFC or W3C spec or something, or is it different based on OS/browser? Got a link? eg Would it be or and is it a standard or