saldais Posted January 18, 2006 Report Share Posted January 18, 2006 vai ir kāda iespēja, kas man ar php palīdzību (respektīvi no browsera) ļautu izsaukt shell skriptu uz servera, kas tālāk dara savas lietas.. Link to comment Share on other sites More sharing options...
Delfins Posted January 18, 2006 Report Share Posted January 18, 2006 rtfm Link to comment Share on other sites More sharing options...
[Ya] Posted January 18, 2006 Report Share Posted January 18, 2006 exec(); Link to comment Share on other sites More sharing options...
saldais Posted January 18, 2006 Author Report Share Posted January 18, 2006 respektīvi, ja man bash scripts atrodas /home/user/ tad php būs: if(<poga nospiesta>){ exec("/home/user/my_script.php"); } Link to comment Share on other sites More sharing options...
[Ya] Posted January 18, 2006 Report Share Posted January 18, 2006 jā, bet atceries, ka tikai tad ja nebūs ieslēgta SAFE_MODE, vai arī nebūs atslēgta exec iespēja Link to comment Share on other sites More sharing options...
Recommended Posts