|
udch wrote: Now can you tell me please how to do this in php ?
I don't like demands, and I'm sure others don't like them either.
$a = 1.8;
$b = 2.23;
$c = $a * (1 + ($b / 100));
If at first you don't succeed, you're not Chuck Norris.
|
|
|
|
|
Thanks for your help brother.It is value on a variable like :-
$a="+1.80 - +2.23%";
I want to extract like
$a=+1.80;
$b=+2.23%;
can we do this in php ?
|
|
|
|
|
Oh, you want a substring. What you said was unclear.
http://uk3.php.net/substr[^]
If at first you don't succeed, you're not Chuck Norris.
|
|
|
|
|
Hi i am new on PERL, i am using WAMP server for PHP. Its working fine. But i dont know how to get start with PERL. Is their any kind of debugger available and framework?
Please let me know
Special thanks
Sohail
|
|
|
|
|
Perl has a debugger built in
Enable the debugger with
perl -d perlscript
or modify the perlscript and add -d on the first line
X @INC
X $ARGV
read a manual please for further hints
Thanks Guys/Girls
|
|
|
|
|
Hi experts,
I want to build a website on PERL on windows platform will you please help me out? Currently i am using WAMP server for PHP on windows and its working perfect. Please help me some same fo PERL?
asdf
|
|
|
|
|
try to download perl executable from its site and install it and look in google about how to modify the http.conf to make cgi runs the .pl and .cgi files
smhck
|
|
|
|
|
Hai friends,
I want to upload all format of video files into my folder after conveting them into FLV format using PHP.
i don't know how to convert.
so share your ideas.
thanks,
Vasanth.A
|
|
|
|
|
What was wrong with the answers given the last time you asked this question? [^]
If at first you don't succeed, you're not Chuck Norris.
|
|
|
|
|
haha I like your signature
|
|
|
|
|
|
- That's nice... Thanks for sharing.
- Try reading
- You want my help and you tell me what to do. Funny. Last time I shared, you disregarded. Bugger off!
|
|
|
|
|
stdClass Object ( [return] => Array ( [0] => test [1] => test23 ) )
Hi, how do i get the value of each array slots and print it nicely into a table form?
I did a print_r and get the above. Below is my code
$wsdl="http://localhost:8084/WebService/SMSWebService?wsdl";
$client=new soapclient('http://localhost:8084/WebService/SMSWebService?wsdl');
$response =$client->RetrieveSMS( array('username'=>'usa',
'password'=>'canada',
'keyword'=>'Temp'
));
print_r($response);
|
|
|
|
|
|
|
the regex:
<br />
# Region<br />
<tr><br />
\s*<td\s+class="grey11">Region:</td>\s*<br />
<td\s+class="b11\s+b">(?<Region>.+?(?=</td>))</td><br />
\s*<br />
</tr><br />
\s*<br />
<br />
</table><br />
\s*<br />
<br />
#Optional AD<br />
(<br />
<div\s+class="wid342\s+fl\s+padtop15"><br />
\s*<br />
<div\s+class="linkicon\s+listicon\s+lh16"><br />
\s*<br />
<a(?:[^>]*?)><br />
(?:.+?)</a>\s*</div>\s*</div><br />
){0,1}<br />
<br />
</div><br />
\s*<br />
<br />
(<br />
# Amenities<br />
<div\s+class="wid342\s+fl\s+mtop10(?:[^>]*?)><br />
\s*<br />
<div\s+class="pad10"><br />
(?:.+?)<br />
<ul\s+class="chkbox"><br />
(?<Amenities>.+?)<br />
</ul><br />
\s*<br />
</div><br />
){0,1}<br />
<br />
<br />
<br />
(?:.+?)<br />
<br />
#Extra<br />
(<br />
<div\s+class="b10\s+lh16\s+vpad10"><br />
\s*(?<Extra>.+?)\s*<br />
</div><br />
){0,1}<br />
the text:
<tr>
<td class="grey11">Drive</td>
<td class="b11">Front</td>
</tr>
<tr>
<td class="grey11">Transm</td>
<td class="b11 b">Mech</td>
</tr>
<tr>
<td class="grey11">Intr</td>
<td class="b11">Leather</td>
</tr>
<tr>
<td class="grey11">COND/td>
<td class="b11">USED</td>
</tr>
<tr>
<td class="grey11">Region/td>
<td class="b11 b">QQQQQQQQQQQQQ</td>
</tr>
</table>
</div>
<div class="wid342 fl mtop10" style="background:#F5F5F5">
<div class="pad10">
<h4 class="darkred">What's inside</h4>
<ul class="chkbox">
<li class="par">
<ul>
<li>ABS</li>
<li>Acs</li>
<li>HUD</li>
<li>Immo</li>
</li>
<li class="par">
<ul>
<li>Chairs</li>
<li>Alarm</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="wid342 fl oh">
<p class="vmargin10">
<h4>Extra info</h4>
<div class="b10 lh16 vpad10">
Good condition. Assembled in ---------
</div>
Why doesn't it return me "Good condition. Assembled in ---------" for "Extra" group? This group is
actually optional; that's why I marked it with {0,1}. And if I remove {0,1} the regex returns me it's expected value but only in this particular case.
What's wrong to my regex?
|
|
|
|
|
No idea what the answer to the question is, however....
Don't use a regex in an attempt to parse html/xml. Instead use a parser. Such parsers already exist and have an extensive history.
At best regex solutions can only work if all of the following are true
1. The source is machine generated
2. The source is limited to a single source (or perhaps two.)
3. There is no chance that any other source will ever be used.
If the above are not all true then the result will be one of the following
1. Over time one will end up with a full functioning parser (which would have been the case if one started with one in the first place.)
2. Over time one will end up with a hideous unmanagable mess of code that must be replaced - probably with a parser.
|
|
|
|
|
Can we use google charts in php for creating Stock Charts ? and what is imagecreate in php can I use this for create run time charts ?
|
|
|
|
|
|
|
funny I was just looking at that - it's a great resource. (Although, it looks like it only produced swf files (objects) not images - so I turned it down. I needed to be able to embed graphs into a pdf dynamically - which i can do with fpdf and images but not swfs.)
|
|
|
|
|
Thanks for your help but i don't want to create chart with the help of flash I don't like it at all and amCharts is better than others for creating run time charts like intraday stock charts etc. if there is any other program for creating charts then suggest me.
Thank You
|
|
|
|
|
Here is the example of google line chart you can add some more things in it as you required
http://chart.apis.google.com/chart?cht=lc&chs=200x125&chd=t:40,60,60,45,47,75,70,72
just past it in your browser for preview
now can i use this in php and if yes then can you give me two like example because i am beginner in php.
|
|
|
|
|
|