hello!
i've been trying to create a string that starts "href" but delimited by a new line:
eg:
$link = strstr($fine, 'href')
$string = substr($link, 0, strpos($link,$new_line));
i have tried defining $new_line as:
$new_line = '\n';
$new_line = "\n";
$new_line =...
in response to vacunita
"
To clarify, what exactly do you want to do? Pull out the strings between the <br> tags, and then put then all into a single string??? "
yes, dat is exactly what i want to do.
thanks!
in response to jpadie,
$pattern = '/<br>(.*?)</br>/i'; is giving the error...
hi!i have a "foreach" loop which i am using to go thur a html file, line by line
eg.
$content= file("html_file.html");
$lines = $content;
foreach ($lines as $line){
}
however, i would like to check each line for a string
for example "<br>" and the exit condition is when "/br>" is present...
i am new to PHP,
i am curious, is there a way to create a web spider in PHP for the purpose of a search engine. If there is: what are the concepts of its operation?
thanks in advance.
i am getting the error
Parse error: parse error, unexpected T_VARIABLE in c:\inetpub\wwwroot\today.php on line 1
does it have to do with the fact that
$html uses double quotes and <font colour "green"> has double quotes?
will this cause a conflict?
hello there
i would like to search a query generated page for a particular font colour/type for example:
the link:
http://www.google.tt/search?hl=en&q=green&btnG=Google+Search
what is the PHP function for extracting font of the colour green? or fonts: blue and underline.
The difficulty is...
Hi there.
I have the following cells whose values will be in drop-down list. Except for "cost". "cost" will automatically generate values which are dependent on the values of "subject" and "schedule".
Subject Schedule Cost
I will have hidden in the worksheet a reference chart, all...
Hello
i have a toshiba laptop 1800. I am able to get into the bios menu by pressing ESC and then F1 at the boot sequence.
Problem is that there isn't anything for me to adjust the DATE and TIME.
Please any advice would be very much appreciated.
thanks in advance.
hello their
i have a string and i want to check if it has only the following characters
MCDLXVI
if anythings else is present (including a space)an error message is displayed.
i've tried the following but it doesn't work
for( int n = roman.size()-1 ; n>= 1 ; n -- ){
if (roman[n]!= 'M' &&...
hello there, i am wondering if there is an easier way to do this.
basically i am creating a vector of type structure and structure has types integer and string.
bascially the structure will have the roman numeral and its associated decimal value eg.
int string
1 I
5 V
10...
hello there
i am trying to store a string <?xml version="1.0"?>
i've tried
string word;
word = "<?xml version="1.0"?>";
but this didn't work, i guess becuse of quotations conflicts.
are their any suggestions????
thanks in advance...
hi there
i am having a major problem,
which i hope you guys can help me with.
i have set up my SQL database and have assign username and passwd on my local machine
however when i trying to connect to it in my command prompt
eg when i type
mysqladmin -u root - p
and when i enter the password...
oh sorry bout that!!!
here you go
#include<iostream>
#include<vector>
#include<string>
#include <stdio.h>
#include <stdlib.h>
#include<algorithm>
#include<fstream>
#include<cmath>
#include<iterator>
#include<iomanip>
#include<sstream>
//#include<cmath.h>
using std::cin;
using std::cout...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.