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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.