Posts by Paulo Rodolfo • 336 points
11 posts
-
-1
votes3
answers318
viewsA: Pick site name by link
$ssite=('http://site.com'); $q=@file_get_contents($ssite); preg_match_all('#<title>([^<\/]{1,})<\/title>#i',$q,$match); $otitle=($match[1][0]); echo $otitle; // Mostra frase do title…
-
-2
votes2
answers242
viewsA: Get an html and store in variable
popup = $.get( "popup.html", function( data ) { return(data)}); Already takes the return on the variable
-
2
votes3
answers1950
viewsA: Error when compiling Angular 5 project "is Missing from the Typescript Compilation."
Have you tried changing the line @Input() venda: Venda = new Venda(); para @Input() venda = new Venda(); But it seems that logic is wrong. Because the @Input is a value that Component has to receive…
-
0
votes2
answers80
viewsA: I can’t see the error (PHP and HTML)
disabling the sql_mode. Do it like this: mysql > SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FUL_GROUP_BY',''));
-
0
votes2
answers49
viewsQ: Remove tags from a php varchar variable
I have a php varchar variable that has an html. There is a table, in this table in the 'td' there is a class "disappear", I wanted all the tags that possessed this class to be removed from the php…
phpasked Paulo Rodolfo 336 -
1
votes1
answer114
viewsA: Select result, and show only if all are equivalent
select bi. * from tickets as bi Where bi.Idticket not in ( select b.Idticket from tickets as b Result > 0 ) group by bi.Idticket You take out the idbbilhetes first, which has a result greater…
-
1
votes2
answers3625
viewsA: Take the class and name of an Input
alert($("[name=ab]").attr("class")) <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script> <input name="ab" type="text" class="all" value="1" />…
-
7
votes2
answers213
viewsQ: How to remove img tags from text?
I need to remove all img tags from javascript text. So the images don’t come. Note: The text is random. Like: Vestibulum varius lectus a ante euismod <img src="teste2.jpg"> cursus. Nam sed…
javascriptasked Paulo Rodolfo 336 -
0
votes2
answers37
viewsA: How to get several Custom Fields?
Use the function: $custom_fields = get_post_custom($post->ID); foreach ( $custom_fields as $key => $value ) { echo $key . " => " . $value . "<br />"; }…
wordpressanswered Paulo Rodolfo 336 -
2
votes1
answer49
viewsQ: Find img tags in text
I have a random text: $s = " eu sou campeao <img src='leo.jpg' /> teste lala "; and I need you to add the image path and stay that way: $s = " eu sou campeao <img src='img/leo.jpg' />…
phpasked Paulo Rodolfo 336 -
8
votes2
answers123
viewsQ: Find words between characters { }, and remove text in PHP?
$comoesta = "{A,O} {portador,portadora} é o mais {especializada,especializado} para o serviço ."; If it’s male: $comodeveficar = "O portador é o mais especializado para o serviço "; If it’s female:…