В роботі

Fix a simple PHP script

I wrote a script to open, edit and save a css file.

It only works if I put the css file in the same directory as the php script.

I need it to work when the css file is in a different directory to the css script.

For example:

The script is located in: /public_html/admin/[url removed, login to view]

The file I want to edit is located in: /public_html/includes/templates/responsive_classic/css/[url removed, login to view]

Please look at the script and see what is wrong.

The code I am using is:

<?php

if($_POST['Submit']){

$open = fopen('../includes/templates/responsive_classic/css/[url removed, login to view]',"w+");

$text = $_POST['update'];

fwrite($open, $text);

fclose($open);

echo "File updated.<br />";

echo "File:<br />";

$file = file('../includes/templates/responsive_classic/css/[url removed, login to view]');

foreach($file as $text) {

echo $text."<br />";

}

}else{

$file = file('../includes/templates/responsive_classic/css/[url removed, login to view]');

echo "<form action=\"".$PHP_SELF."\" method=\"post\">";

echo "<textarea Name=\"update\" cols=\"35\" rows=\"35\">";

foreach($file as $text) {

echo $text;

}

echo "</textarea>";

echo "<input name=\"Submit\" type=\"submit\" value=\"Update\" />\n

</form>";

}

?>

Навички: PHP, Архітектура ПЗ

Показати більше: script php simple wap, update script php simple, software write mq4, software write chip epson, useful software write book, software write web specs, software write edid, software write websites idea, software write book images, software write books, software write protection, free software write book, login script php simple, software write book, php simple login script, php simple script, php simple betting script, simple betting script php, software write technical manual

Про роботодавця:
( 7 відгуки(-ів) ) Billinudgel, Australia

ID проекту: #11801936

Доручено:

aryan151

Hello sir i can fix it i am having 7 years of experience....Hello sir i can fix it i am having 7 years of experience....

$10 AUD за 1 день
(165 відгуків(-и))
6.3

17 фрілансерів(-а) подали заявки на цю роботу; середня заявка - $23

rajeshsonisl

Hello! With 98% to 99% completion rate, 900+ successfully completed projects, and a 4.99 reputation (maximum possible, 5.0) (can be verified on my profile page https://www.freelancer.com/u/rajeshsonisl.html !!)... y Більше

$24 AUD за 1 день
(703 відгуків(-и))
8.1
waelfree

Hi, i can fix that let us start ...........................................................................

$15 AUD за 1 день
(170 відгуків(-и))
7.7
$25 AUD за 1 день
(46 відгуків(-и))
5.5
ChiragLathiya

Hi, My bid price may be higher than other freelancers, that's what I believe in quality work rather than completing incomplete work. Please initiate a message to me so that we can discuss about the project in det Більше

$20 AUD за 1 день
(56 відгуків(-и))
5.4
fahada305

hello sir, i have already done this type of work many times. i can suggest you some more to edit your css file directly in browser. thank you

$10 AUD за 0 дні(-в)
(30 відгуків(-и))
4.7
kunashe

Hi! I would be happy to correct the script so you can edit a CSS located in a different directory. Regards, Ku

$20 AUD за 0 дні(-в)
(18 відгуків(-и))
4.4
$10 AUD за 1 день
(52 відгуків(-и))
4.1
Chaalan

A proposal has not yet been provided

$25 AUD за 1 день
(25 відгуків(-и))
4.4
itezazmohsin

By profession am a software engineer and information security analyst. I have done several information security and development projects. I have recently updated my portfolio please have a look at it https://www.fr Більше

$30 AUD за 1 день
(14 відгуків(-и))
3.5
usmanrana07

Hi! I have viewed your script and I can provide my instant services for this task to be resolved. Contact me if you are looking for quality output in reasonable time and rate.'waiting for your response. Thanks

$45 AUD за 1 день
(2 відгуків(-и))
2.4
KrickyKiki

Hi, Contact me and i can check it out on my server and fix it for you quickly. Regards, Krsitijan Sekeres

$30 AUD за 1 день
(2 відгуків(-и))
1.4
sadaquat

I am a highly motivated with strong creative and conceptual skills, always prepared to accept challenging tasks and hence, I am here to further enhance my personal and professional growth. JAVA-SE (OOP,Collection,J Більше

$23 AUD за 1 день
(2 відгуків(-и))
0.9
$17 AUD за 1 день
(0 відгуків(-и))
0.0
dreaminfotechno

Hello, We have good experience of PHP,HTML,HTML5,CSS, Ajax,jquesry,JavaScript,Mysql, Graphic Design,Website Design,Bootstrap,wordpress,Codeigniter, open cart , E-commerce etc. We also have good experience in J2E Більше

$30 AUD за 1 день
(0 відгуків(-и))
0.0
mohit56

I have 3+ Years professional experience with in depth knowledge of php.I assure high quality and in time delivery.

$15 AUD за 1 день
(0 відгуків(-и))
0.0
Ansyg

A proposal has not yet been provided

$25 AUD за 1 день
(0 відгуків(-и))
0.0
$25 AUD за 1 день
(0 відгуків(-и))
0.0
ausprofreelancer

Hello, I can assist with your project and correcting the paths issue to your css file. If you would like to contact me with some further details, we can go from there. Thank you

$45 AUD за 1 день
(0 відгуків(-и))
0.0