Solved

copy paste the entire file

Posted on 2011-09-24
6
255 Views
Last Modified: 2012-06-21
i have index.php file that includes styles.css, scripts.js and many other files

is there anyway to copy paste all the information
without copy pasting individually all the files or changing my urls to absolute urls

just so I can post a question on experts exchange
0
Comment
Question by:rgb192
6 Comments
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 36593866
I do not think so.  These are separate files and the interaction between the files is controlled by a collection of browser requests and server responses. Maybe the best thing is to isolate a test case that demonstrates your issue.  You can have JS, CSS, PHP, and HTML all in one file.
0
 
LVL 7

Expert Comment

by:kshna
ID: 36595280
attach all the files rather than copy/paste
0
 
LVL 22

Expert Comment

by:yo_bee
ID: 36595311
I am confused at what you are asking.
So you have a single index.php file in a folder that contains the style.css and scripts.js all wrapped into this file?
Or do you have a folder structure that needs to be copied as is to another location retaining .\folder structure?

xcopy source dest /E /Y
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 108

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 36595325
Here is an example of a way to post the question.  Obviously it is a simplified example, but it shows how to create an isolated test case that includes all the moving parts in a single file.
http://www.laprbass.com/RAY_temp_rgb192.php
<?php // RAY_temp_rgb192.php
error_reporting(E_ALL);

// SET A VARIABLE
$x = time();

// END OF THE PHP SCRIPT
?>
<!DOCTYPE HTML>
<html>
<head>

<title>rgb192</title>

<script type="text/JavaScript">
function popcorn()
{
    alert("<?php echo $x; ?>");
}
</script>

<style type="text/css">
body
{
    background-color:green;
}
</style>

</head>

<body onLoad="popcorn();">
Hello World
</body>

</html>

Open in new window

0
 
LVL 27

Expert Comment

by:Lukasz Chmielewski
ID: 36595560
Maybe you can just zip the files and post it ?
0
 

Author Closing Comment

by:rgb192
ID: 36897909
best answer for showing all the parts of a file
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now