|
I want to call function ch() after every 15 second until web page is open. How can i do this ? I tried it but not succeed it.
|
|
|
|
|
udch wrote: for($i=0;;$i++)
you need to fix this line ie:
for($i=0;$i<10;$i++)
|
|
|
|
|
Thanks for your help brother.Is this code is ok because i am getting this error massage
"parse error (unexpected token `id') -- (id . ch)"
<?php
for($i=0;$i<1000;$i++)
{
$us=500425
ch($us);
sleep(15);
$us=500547;
ch($us);
}
function ch($us)
{
echo $us;
}
?>
|
|
|
|
|
|
|
read a web live data(news headlines)feed to a port on my comp. i've been messing with just about everything related with little to no results. This is basicly working on. The download (wget) a client (knews) a server ( news.readfreenews.net). Too many dead ends to describe. So i did manage to get something from downloading first but that shouldn;t have worked, just a bunch of nothing going to my display. The thing i'm looking for is like those text to speech programs. Some will check your mail, the one i got tells the headlines from a separate website, updated of course. Things are getting really messed up. So that's it, one line of code, like: bash bash2 | tr a-z A-Z | nc localhost 6667. bash2 would be what i'm missing. I'm new at this so for someone like you, a piece of cake right? So a direct text feed to the port that's it. thx
|
|
|
|
|
An warning i am getting when i am opening a text file from my own website in Linux hosting
Warning: file(http://iy.com/tata/y.txt) [<a href='function.file'>function.file</a>]: failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required
in <b>/home/iy/public_html/do.php</b>;
can any one tell me how to solve it ?
|
|
|
|
|
Means a password is required to open files in that directory - or it could possible mean you havent set the right permissions on the file.
If you do not have a "password protect directories" option on your hosting control panel look up ".htaccess" and ".htpasswd" files.
Alternatively put it in a directory without pw protection.
|
|
|
|
|
Thanks for your help brother directory is password protected can your tell me first line of do write user name and password in php for opening file.
|
|
|
|
|
|
|
Thanks for all your help brother.You are really a nice hearted human.
|
|
|
|
|
can anybody please tell me which book is the best for beginers to learn python.
|
|
|
|
|
Greetings:
If you're an experienced programmer, Mark Pilgrim's Dive Into Python is an excellent introduction to the language. The printed edition is from APress, and can be easily found on-line and through book retailers. However, since the book was written and released under the GNU Free Documentation License, the book in its entirety is available in a variety of electronic formats, including PDF and HTML at http://diveintopython.org/[^].
If you have very little practical programming experience in other languages, Alan Gaud's Learn to Program Using Python: A Tutorial for Hobbyists, Self-Starters, and All Who Want to Learn the Art of Computer Programming from Addison-Wesley may be a good place to start. The author's web site, along with some of the material covered in his book, is available on-line at http://www.freenetpages.co.uk/hp/alan.gauld/[^].
I hope this was of help...
|
|
|
|
|
'IronPython in Action' gives a good introduction to Python as well as using it with .NET.
|
|
|
|
|
Hi,
I am doing a project in which I have to calculate the distance between two points. One point is fixed. Maximum Height of a building is to be calculated on the base of this distance ( a builder can built a building below this height). These points are defined by their longitude and latitude. Differnt height formulas are applied for differnt areas. Using PHP I can calculate the height of buildings that are in circles but the problem starts when the building is in funnel area. How can i define that funnel area in my script? Is there any other solution? What should i do? What is logic behind it? SOS PLZ.
Note: i do not have the co ordinates of funnel.
{
In fact this all area is around an Air Port. Something like this...
[URL=http://img4.imageshack.us/i/abcgvj.jpg/][IMG]http://img4.imageshack.us/img4/3769/abcgvj.jpg[/IMG][/URL] [URL=http://g.imageshack.us/img4/abcgvj.jpg/1/][IMG]http://img4.imageshack.us/img4/abcgvj.jpg/1/w534.png[/IMG][/URL]
}
|
|
|
|
|
Below replace i write in java script but now I need to write it in php .....
// for replace \n by commas because I will be getting multiple records
var tmp = responseText.replace(new RegExp( "\\n", "g" ), ",");
//Replace any double quotes
var tmp1 = tmp.replace(new RegExp( "\"", "g" ),"");
and
scodeSplit = responseText.split("colspan=\"2\"&gt;");
scode = scodeSplit[1].split(" - EQ");
stockSymbol = scode[0].replace(/^\s+|\s+$/g, '');
How to write replace in php ?
|
|
|
|
|
Here[^]. The first link is what you are looking for. There are even examples if you scroll down the page.
If at first you don't succeed, you're not Chuck Norris.
|
|
|
|
|
|
"+1.80 - +2.23%"
I want this like
$a=+1.80;
$b=+2.23%;
Now can you tell me please how to do this in php ?
|
|
|
|
|
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
|
|
|
|