Jump to content

Big problem with my script


JayJabber

Recommended Posts

Well this problem has occurred a lot.

 

I try to put ". $_GET['site'] ." or ". $_POST['site'] ." in my script and i get a server errror when trying t access my page ( error connecting the page basically)

 

 

Here is the part of the script which that is occuring to:

if($_GET['step'] == 2)

{

echo 'Just adding INCLUDE files';

                                        exec('xcopy /X/ / ". $_GET['site'] ." / /e/i', $a, $a1);  <---- This line

echo '<form action="install.php?step=3&guid='. $my_guid .'" method="post">';

echo '<input type="submit" value="Continue">';

echo '</form>';

}

 

When i try using the $_GET function or $_POST functions in alot of stuff it just shows an server error(error connecting the page on my browser)

 

Someone please help!

Link to comment
https://forums.phpfreaks.com/topic/237969-big-problem-with-my-script/
Share on other sites

Ah. Well in that case, you will need something slightly more advanced.

 

Try looking in the user comments on the copy page. I'm sure you can find a snippet that will help you.

 

Cannot find anything,

Is there a way to copy files in a certain folder and you can repeat using that code? If you know what i mean if so then plz post it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.