Solved

copy paste the entire file

Posted on 2011-09-24
6
280 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 110

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 23

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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
LVL 110

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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
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…

687 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