[R] Write value to PHP webpage

Wu Gong wg2f at mtmail.mtsu.edu
Wed Jul 14 20:41:12 CEST 2010


I suggest trying to write the data into .php file directly.

outfile <-paste(filepath,"distance",".php",sep="") 
data <- "<html><body>Distance=num</body></html>"
num <- 1000
data <- sub("num", num,data)
write(data,file=outfile)



-----
A R learner.
-- 
View this message in context: http://r.789695.n4.nabble.com/Write-value-to-PHP-webpage-tp2288169p2289206.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list