473,395 Members | 1,783 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

remote file edit

xEM
i want to edit my index.php by www

i print file in 'textarea':

<textarea cols="95%" rows="20" name="text">
<?php
readfile("../index.php");
?>
</textarea>

how can i save contents after editing it (editing in this textarea)?
--
pozdr.
xEM~
Jul 17 '05 #1
4 3099
xEM <xe**@boxmail.biz> wrote:
i want to edit my index.php by www

i print file in 'textarea':

<textarea cols="95%" rows="20" name="text">
<?php
readfile("../index.php");
?>
</textarea>

how can i save contents after editing it (editing in this textarea)?


Submit the form and read about some filesystem functions like:

http://uk.php.net/manual/en/function.fopen.php
http://uk.php.net/manual/en/function.fwrite.php
http://uk.php.net/manual/en/function.fclose.php

Make sure "www" can actually modify index.php.

HTH;
JOn
Jul 17 '05 #2
xEM
Jon Kraft <jo*@jonux.co.uk> wrote in news:bmopl3$pj9dp$2@ID-
175424.news.uni-berlin.de:
Submit the form and read about some filesystem functions like:


that's works, but i have problem:

after submitting and writting contents of textarea to a output file,
some special characters like ", ', \ are prefixed (in output file) by \,
which are unwanted.

how can i neutralize it?

--
pozdr.
xEM~
Jul 17 '05 #3
sk
xEM wrote:
Jon Kraft <jo*@jonux.co.uk> wrote
Submit the form and read about some filesystem functions like:


that's works, but i have problem:

after submitting and writting contents of textarea to a output file,
some special characters like ", ', \ are prefixed (in output file) by \,
which are unwanted.

how can i neutralize it?


See the stripslashes() string function.


Jul 17 '05 #4
xEM wrote:

Jon Kraft <jo*@jonux.co.uk> wrote in news:bmopl3$pj9dp$2@ID-
175424.news.uni-berlin.de:
Submit the form and read about some filesystem functions like:


that's works, but i have problem:

after submitting and writting contents of textarea to a output file,
some special characters like ", ', \ are prefixed (in output file) by \,
which are unwanted.

how can i neutralize it?


$var = stripslashes($var);

Shawn
--
Shawn Wilson
sh***@glassgiant.com
http://www.glassgiant.com
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: steve | last post by:
Hi, I finally figured out the best way to synch local and remote script folders, containing many php script files. What I used to do before was try to ftp all the changed files, etc. which was...
5
by: william | last post by:
Hi, I have an ASP page needs to access a remote MS Access2000 database, I got error "The Microsoft Jet database engine cannot open the file 'F:\Collect.mdb'. It is already opened exclusively by...
3
by: muralidharan | last post by:
Hi guys, I tried creating an application and it worked fine in the localhost. I uploaded the same into the web in a remote folder. The select or edit query in the application works fine. Whenever...
9
by: Heather | last post by:
I have created a database application consisting of a front end and backend file. Data entry and administration of the application are done at a central location. The next requirement is to be able...
5
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit...
0
by: NuBBeR | last post by:
I am currently trying to convert my application that uses mysql connection to a remote server to xml. Using ado i can just directly connect and edit those tables. Converting to xml, I run into the...
0
by: Karl Lang | last post by:
Hi I'm trying to edit pages from inside Visual Studio 2002 on a remote server Windows 2000 using FrontPage extensions. Its been working fine for quite a few weeks but since a problem with the...
1
by: Ken Allen | last post by:
I have encountered a problem with remote debugging under VS 2005 and ..Net 2.0 -- it seems that the framework installation does not include the "Microsoft .Net Framework 2.0 Configuration" tool! ...
4
by: Tom | last post by:
I have a script which allows a user to upload a file. The script does some filename editing, mimetype checking, etc., and it's then supposed to send the file to a remote server, without any...
4
by: chris | last post by:
Hi guys I have a Frontend and Backend DB that works well on my LAN. I use a INI file Path, to access a mapped network connection back to the Backend Data file. Path=F:\Server\Data.mdb I...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.