I have this: <div class="to_remove"> <div class="widget widget-list"> <div class="panel panel-default"> <div class="panel-heading bold">Menu</div> <div class="panel-body"> content </div> </div> </div> </div> I need preg_replace to edit like this: <div class="widget widget-list"> <div class="panel panel-default"> <div class="panel-heading bold">Menu</div> <div class="panel-body"> content </div> </div> </div> I need to remove <div class="to_remove"></div> but the content between tags must be stay.

Member Avatar
Member Avatar
+0 forum 3

The php/html file I am working on is laid out in this way. <?php // connect to DB $connection ?> html html html <?php foreach($connection-query($sql) as $row) do stuff ?> I'm getting the error 'Invalid argument supplied for foreach()' when I run this page. Can I not break out of the php and go into html and then come back to my php using the $connection variable created in the upper php code? Or once I break out with `?>` is that it, all variable can not be picked back up again futher down in the page? I can't think …

Member Avatar
Member Avatar
+0 forum 8

I have a website with the url to be entered in TextBox2 . I want to extract names, email ID and mobile numbers of people from the website. The url in TextBox2 contains the names and the email IDs, however the mobile numbers are present on another webpage (profile page) the url of which has to be extracted along with names and email IDs from the first page. I am extracting the text using tags and classes. On Button1 click : ListBox1 has names ListBox2 has emails ListBox4 has url for profile page On Button2 click : Supposed to go …

Member Avatar
Member Avatar
+0 forum 1

Hello. This is my code: from bs4 import BeautifulSoup import urllib2 url = urllib2.urlopen('http://www.website_address.com') soup = BeautifulSoup(url) images = soup.find_all('img') Now how can I get the "src" of img tags?

Member Avatar
Member Avatar
+0 forum 2

Hello. Is there any other way for not using the submit button? <?php $user_choice = $_POST['font_styles']; if ($user_choice == "font_style_1"){ $font = 'firstfont'; }elseif ($user_choice == "font_style_2"){ $font = 'secondfont'; }elseif ($user_choice == "font_style_3"){ $font = 'thiredfont'; }elseif ($user_choice == "font_style_4"){ $font = 'forthfont'; } ?> <html> <head> <style> h1 { font-family = $font; } </style> </head> <body> <form method='post'> <select name="font_styles"> <option value="font_style_1">font_style_1</option> <option value="font_style_2">font_style_2</option> <option value="font_style_3">font_style_3</option> <option value="font_style_4">font_style_4</option> </select> <input type="submit"> </form> <h1>username</h1> </body> </html> I want when a user opens the drop-down menu and chooses an option, the font of the <h1> tag changes and the user …

Member Avatar
Member Avatar
+0 forum 7

Hi. With using `file_get_contents()` I can get all html tags and text of a web page. But is there any way to get that web page's **css codes** too?

Member Avatar
Member Avatar
+0 forum 15

Hello. How can i get the html tags and texts of a web page in php?

Member Avatar
Member Avatar
+0 forum 8

Hi. In my CMS, when i type a content for a new post in the textarea, like this: one two three four five six and then click the submit button, it will save in the db table like the way i have typed, every word in a separate line. But when the script echo the post on the page, i see all words are in one line like this: one two three four five six Why? Do i have to type tags like <br> while typing the content on the text area?! But users must feel free to write their …

Member Avatar
Member Avatar
+1 forum 13

Hi everybody. I have a page with some post's title in it. I have put every title in an <a> tag. I want to click on each title and enter into an other page (single-post-page.php) to see the content of that post's title. The script of that page (single-post-page.php) should get that post's id when i click on the title's link to send it to the db and get that post's content to echo on the page. But my problem is that how i can send post's id to that (single-post-page.php) page by clicking on each title's link?

Member Avatar
Member Avatar
+0 forum 6

Hello. I have a homework. I have asked to create a web crawler that be able to enter into a music website and then for the first step, collect the name of singers that their names starts with the letter "A". Now i need a little help for this step. How my crawler should understand wich words in that page are the singers names?! The crawler should find their names in a special tag, correct?! But what kind of tag?! Their names could be in any tag like <h4></h4> for example or in a single <p></p> tag or in a …

Member Avatar
Member Avatar
+0 forum 12

Hi. How i can ask my crawler to print only the text of all <li></li> tags in a url page? I want to save the text of all <li></li> tags in a text file (without` <li></li>` words.)

Member Avatar
Member Avatar
+0 forum 8

I know i just posted below, but i have another question. Is it dangerous to have the <head> tag be included using PHP include? Is it dangerous to have the <body> tag or <html> tag or doctype to be included using PHP?

Member Avatar
Member Avatar
+1 forum 8

what is abstract meta tag? why we use it on website.

Member Avatar
Member Avatar
-1 forum 1

Ladies and gentlemen, I've been studying SEO and writing articles consistently for well over a year now and there are a ton of topics that still perplex me. One of them in particular is the "focused" keyword element in combined with the title tag, the description tag, H1 and H2 tags, etc. But today I wanted to focus on the actual element of the title tag. For the sake of an example, I'll provide a brief about a recent article I covered. The article (and the title tag) was called: "A Sleeping Fan Sues MLB and ESPN". The focus keyword …

Member Avatar
Member Avatar
+0 forum 10

If I want to search for some tag, and I have not any so tagged post in front of me, how I open posts with that tag? I know that if I have one similarly tagged I can only click the tag.

Member Avatar
Member Avatar
+0 forum 3

Hi, i would love to put the tag <span></span> inside my link, this is my link : @Html.RouteLink(menu.MenuName, "MagazineRoute", new { controller = "Magazine", menuid = menu.MenuId, menuname = menu.MenuName }) and this is how it should be : <a href='#'><span>Link text</span></a> I have to put the span tag inside the @Html.RouteLink but i don't know how to do

Member Avatar
+0 forum 0

Hello Everyone! I'm a return user to this community. I just want to ask some help regarding of my problem in my site. the problem is that some of my php files can't display some of my content in our website. I'm a main programmer in our team and in the last months, our site run perfectly but it does not have strong security measures (but it does not matter here). The site should have this in index.php ![4a59e08014878b7c6d5938e5ae233b8e](/attachments/large/3/4a59e08014878b7c6d5938e5ae233b8e.JPG "4a59e08014878b7c6d5938e5ae233b8e") but it only does load it's half on our site ![c4863589389ec370d8dbcd06fb24ba22](/attachments/large/3/c4863589389ec370d8dbcd06fb24ba22.JPG "c4863589389ec370d8dbcd06fb24ba22") our site is [shinji3dmovie.com](shinji3dmovie.com) Things that I already …

Member Avatar
Member Avatar
+0 forum 6

anybody please help me to read id3 tag information name : myfile.mp3 artist : singer album name : private album bitrate : 320 kbps year : 2014 length : 5:15 size : 5MB downloads : 50 i need like this . please anybody tell me. send me any links if you know. please .........

Member Avatar
Member Avatar
+0 forum 8

I have a link in my web page: <div class="site-logo"> <h1 class="site-title"> <a href="http://10.0.0.201/wp/" title="Document &amp; Draft" rel="home">Document &amp; Draft</a> </h1> <h2 class="site-description">For power CAD users</h2> </div> The "site-logo" class is as follows: .site-logo{ display: block; text-align: left; color: #9FA32E; font-family: "Trebuchet MS",Arial,Helvetica,Sans-Serif; font-size: 42px; text-decoration: none; } I'm expecting the text in the link to be 42px high, coloured #9FA32E and without the underline that normally denotes a link. The text is indeed 42 pixels high, but it's coloured the deep purple of a visited link and it has an underline beneath it. Firebug doesn't tell me where the …

Member Avatar
Member Avatar
+0 forum 5

how to show data on different sections on click a link without anchor tag in html without using js,css or php

Member Avatar
Member Avatar
-1 forum 2

Hello everyone, I may not be no SEO expert (yet), but during my studies of SEO, I was wondering about tag cloud generators. The reason I question these tag cloud generators is one, are they reliable in any sense and if they are, what is the one you would recommend? The reason I'm asking this is for the input of tags in our Wordpress blog and/or future articles we write.

Member Avatar
Member Avatar
+0 forum 1

Hi I am studying html5 and have a hard time understanding exactly how those tags function.Maybe I am used to the old div tags and cannot figure out what is going on. For example I look at a page made with html5 and css3.In the page there are 3 article section one on top of the other, 2 on the side and 3 more on the bottom.Looking at the source code all the tags are articles, no class or id to identify them and no positioning whatsoever(I cannot see any anyway).How do they do it? Thank you for your help.

Member Avatar
Member Avatar
+0 forum 2

Hello good day. I am hoping to discover some free/trial software that will allow we to identify a printed/drawn symbol/sticker on images in a folder. I have taken a picture of a few pages from my notebook(handwritten). On these pages I have put stickers. Is there a software that allows me to have a reference picture which can be used to search and locate other images in my folders with that reference picture in them? I'm aware of Evernote's Moleskin smartbook and its page camera. Are there any others however for the desktop computer please? Thank you so much for …

Member Avatar
Member Avatar
+0 forum 2

<%@ page contentType="text/html; charset=UTF-8" %> <%@ taglib prefix="s" uri="/struts-tags" %> <html> <head> <title>Hello World</title> </head> <body> Hello World, <s:property value="name"/> </body> </html> I tried this code from an online tutorial. However eclipse says 'Can not find the tag library descriptor for "/struts-tags"' in line 2. Do I need to set CLASSPATH even if using Eclipse. I have not set CLASSPATH for struts. P.S. I'm using Struts 2.

Member Avatar
Member Avatar
+0 forum 1

Dear All, How many tags we can use on single Page? Also please how we can analytize to which tag for content? Regards, David Kroj

Member Avatar
Member Avatar
+0 forum 5

The line appears as a red line in google chrome for the below tag: <hr width="1052" style="border: 1px solid #990000" color="#990000" size="1"> However when I view in IE it appears as a box with white filling but red border line. Did I miss something? Your help is kindly appreciated. Thank You.

Member Avatar
Member Avatar
+0 forum 2

sir i want to get data between to tag... example:(showing in my view source) <img class='stat_icon' src='/images/green.png'> **data to be extracted**</a> or like <input type=hidden name=timestamp value='**data to be extracted**'> for the first example i wrote like: Imports System.Text.RegularExpressions Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim requestt As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("my desired link") Dim responsee As System.Net.HttpWebResponse = requestt.GetResponse() Dim sr As System.IO.StreamReader = New System.IO.StreamReader(responsee.GetResponseStream()) Dim sourcecodee As String = sr.ReadToEnd() Dim pattern1 As String = "<img class='stat_icon' src='/images/red.png'> " & _ "(.*)</a>" Dim m As Match = Regex.Match(sourcecodee, pattern1) If m.Success Then …

Member Avatar
Member Avatar
+0 forum 4

how to postion tags fix like <p>,<div>. that could not move when i add some contents at same web page.

Member Avatar
Member Avatar
+0 forum 2

I recently undertook a development job where i needed to create a music player. We decided that the music should be managed from soundcloud.com (let them deal with the storage band width). There was one problem. to make it work in ALL modern browsers there needed to be be at least and MP3 version and an ogg version of each song. Of course soundcloud only provides an mp3 stream. So you wouldn't get any sound in Firefox. after some trial and error with this. I eventually realised that if I uploaded the songs as ogg files and set it so …

Member Avatar
Member Avatar
+1 forum 2

Guys.. Is there any app(iOs/And) to find the specific location of a user ? Or is there a way I can find a specific location ? Please let me know.

Member Avatar
Member Avatar
+0 forum 5

The End.