Help - Search - Members - Calendar
Full Version: Modifing Files
Zymic Webmaster Forums > Web Design & Development > Server Side Scripting > PHP
Cameron213
I have created a Guestbook solely based on php. I am not using mysql and instead have the guestbook write to a file within file manager and then retrieve and format it for viewing. Is it possible to do this? I dont have a server that i can host it on, but i am running XAMPP and so i can verify that it works. Doesn't seem to be working on here.

Is there a way to edit a file that is in file manager from within another file?


thanks
NaRzY
You need to post a more specific question and some source please. We cannot solve your issues based on guessing.

Jacob.
Cameron213
I have written a guestbook in php and when someone enter in data my code opens a file and inputs it.

my code is as follows.

CODE
$fp = @fopen($settings['logfile'],'rb') or problem($lang['e18']);
$links = @fread($fp,filesize($settings['logfile']));
fclose($fp);
$addline .= $links;
$fp = fopen($settings['logfile'],'wb') or problem($lang['e13']);
fputs($fp,$addline);
fclose($fp);



It opens a logfile which i have specified at settings.txt

The code works because I have used xampp which includes apache. I do not have access to a server and am wanting to do this through file manager. Upload my files to file manager and then open an existing file within the manager and edit it.


Is this possible?
swordz
This should be possible, yes. But using MySQL will be easier.

swordz
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.