only one Posted April 25, 2007 Share Posted April 25, 2007 hi, ive created alot of javascript functions for my mmorpg.. (eg. fishing, fighting) where players select options rather then just get the results of what happend (more intresting this way) after the functions are finnished i insert the variables into a txt file, one problem im having is i want to insert it into my mysql database. im planing to include a file on every page that will gather the info and store it into the database. how do i gather the information??? Link to comment https://forums.phpfreaks.com/topic/48645-solved-gathering-from-txt-file/ Share on other sites More sharing options...
kalivos Posted April 25, 2007 Share Posted April 25, 2007 file_get_contents() returns the file contents as a string file() returns the file as an array. Hope it helps. -Kalivos Link to comment https://forums.phpfreaks.com/topic/48645-solved-gathering-from-txt-file/#findComment-238257 Share on other sites More sharing options...
only one Posted April 25, 2007 Author Share Posted April 25, 2007 hey thanks, got it working Link to comment https://forums.phpfreaks.com/topic/48645-solved-gathering-from-txt-file/#findComment-238359 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.