Posts by Fred Dutra • 176 points
7 posts
-
1
votes2
answers211
viewsA: How to use a global variable for a link
You could use the HTTP_HOSTor the SERVER_NAME, I believe they will pass the variable the way you want it. If you have any questions, PHP Manual has a function-only page $_SERVER, take a look here.…
-
2
votes2
answers2812
viewsA: Problem generating PHP/HTML for PDF
As Hannibal said, let’s go in pieces. Your Code Your code got the wrong approach to the problem. Well you try to call HTML and then render yours DOMPDF. You should put all your HTML content inside…
-
0
votes3
answers615
viewsA: Save file name with empty spaces html/php
Use the str_replace of PHP. str_replace ( mixed $search , mixed $replace , mixed $subject [, int &$count ] ) First you’ll do the following: str_replace("ficheiro_xls%2F", "", $variavel); That…
-
3
votes3
answers688
viewsA: Floating div is not working right
I believe there is a possibility to do this without adding Plugins. HTML <div class="conteudo">Conteúdo da div</div> <div class="conteudo">Conteúdo da div</div> <div…
-
3
votes2
answers44
viewsA: Table formats?
That’s what you’re looking for? http://jsfiddle.net/MeeW2/ HTML will look like this: <div> <h1><span>Div title</span></h1> </div> And the CSS, like this: div{…
htmlanswered Fred Dutra 176 -
3
votes1
answer34
viewsA: Capture file size and extension and inform via HTML
Come on... You’ll be able to do both using PHP... File extension PHP: public string SplFileInfo::getExtension ( void ) Example: $info = new SplFileInfo('foo.txt');…
-
1
votes2
answers378
viewsA: How does PHP treat temporary expression regarding memory?
PHP, as our friend @Heat said, considers itself Object Oriented, that is, it will create a logical instance the first time it sees the variable. If this variable is called as echo, print, print_f,…