Programming :: Why Create.html Appears In /cgi-bin Directory

Mar 18, 2010

I have index.html page with tables rows and cells. Within table I have:

Quote:

<table width="100%">
<tr>
<td class="form-font" width="40%" align="left">
<iframe src="create.html" width="100%" height="200" frameborder="no" scrolling="no">

[Code].....

but in index.html appears the following screeshot.jpg. create.html and index.html are both in /var/www directory. Why create.html appears in /cgi-bin directory?

View 2 Replies


ADVERTISEMENT

General :: Using Lynx To Create Html Page With The File Structure Of A Local Directory

Oct 10, 2010

I'm working with a dual-boot laptop running Ubuntu 10.0/Windows 7 and a Debian 5 VPS while the OS's shouldn't have much impact on my question.

What I would like to do is create a html page that I can upload to my VPS which lists all of the files/folders on my local 2TB hard drive (Specifically media such as Movies, Music, TV Shows...). The media obviously will not reside on the server, but I would like to at least have a list which will allow me to select, for instance, a bands artist so that it redirects me to the albums in the directory below.

Ultimately, I'm looking for Open Directory Browsing without actually having the media on my server. I have been attempting to create something to this effect using lynx, however, I'm not sure if it can be done with this command or if it's even possible for that matter.

View 1 Replies View Related

Programming :: Script To Create Index.html File?

Sep 25, 2010

I need a script that can do this: A script that searches all directories and subdirectories for .html files When a .html file is found it creates a index.html file in that folder. It then edits the index.html file and inserts links to all of the .html files that are in that folder into the body. If no .html files are found, it searches for folders. It then creates a index.html file with links to all of the folders.

View 4 Replies View Related

Programming :: HTML / PHP Access To Files And Hanging Directory?

Oct 1, 2010

Code:
<html>
<head>
</head>
<body>

[Code]....

Alright this works fine to pull the directories/files in the /var/Store/2010/ directory.

But when you click on of the links it tries to http://'serveradress'/$filename

note that $filename in the url is the filename clicked on so the php script is working. but I need it to change to that dir so that you can see the folder/files there and work your way up/down/side wise thru the folder tree to where you need to go. Not try and pop it as a direct url which doesn't work.

View 3 Replies View Related

Programming :: Script To Create Simple HTML From Text File?

Oct 1, 2009

I am working on a script to convert a comma seperated text file into html code line by line. The text file is like so:

Code:

link url, image url, description and I want it to output this:

Code:

<td><a href=�link url�><img src="image url" alt=�description" /></a></td>

Here is what I have so far:

Code:

#!/bin/bash
var1='<td><a href=
var2='><img src="'
var3='" alt=�thumbnail image" /></a></td>'

[code].....

It puts the entire line into the html so its no good. I'll probably need to use awk (I think).

View 5 Replies View Related

Programming :: Client Side To Include HTML Within HTML?

Sep 12, 2009

what is the best way (i.e standard way that is supported on all browsers and probably as well followed by web crawlers).... to include an html file either locally or externally in another ? Of course , i've done the research and i also know that there are server side includes (php , asp ...you name it) at the moment , i'm using this:

Quote:

<script type="text/javascript" src="path to file/include-file.js"> </script>

however, i've been warned that this method may not show up in some browsers as some tend to ignore this tag and that crawlers like your favorite search engine wouldn't bother reading this. so , what is the best and safest way to do the job? and btw , the reason why i've ousted SSI's from the start is because of among other things:

1) the fact that the included file is static html and because the text is included pretty much everywhere

2) hoping to reduce load time as the code (if successfully recognized) would hopefully be treated like any other embedded external file (e.x like an image) , therefore it would be cached without the need to downloaded it over and over again for each new page on the site.

View 1 Replies View Related

Ubuntu :: Remove Files From Directory A If Their Name Appears In Directory B?

Jul 7, 2010

I have two questions:How do I remove files from Directory A if their name appears in Directory B?How do I move foo.jpg and bar.jpg from Directory C to Directory D if and only if foo.png and bar.png appear in Directory D?I suspect there's probably a bash one-liner for this, but...I can't come up with it.

View 5 Replies View Related

Programming :: Does't Create Directory But Return As Value '0'?

Feb 23, 2010

$val = mkdir $directory, 755
print $val;
does't create directory but return as value '0'

[code]....

View 2 Replies View Related

Programming :: Create A Script To Cd Into Previous Directory?

May 1, 2009

I want to make a script that will automatically change me into the directory I was in previously. I don't know if this could be added to my .bashrc or have it be a standalone script. Can I just alias last="/bin/pwd > /path/to/file"? But then I'd have to add it to the cd command somehow right?

View 4 Replies View Related

Programming :: Bash Script To Create Directory Sizes Around 4GB

Jul 22, 2010

I have a Directory of files over time the directory has become a pain to manage... Its now a few 100GBs each file has a partner .log file so id would want some logic in keeping these together..So I want a script to move the files into sub-directories with a limit or 4GB and then i'll burn each of the directories to DVD.

View 14 Replies View Related

Programming :: Comprehending Umask And Mkdir In C++ - Create A Directory With Permissions 755

Apr 27, 2011

I'm having a bit of trouble understanding umask and mkdir in C++. In my program, I want to create a directory with the permissions 755.

If I do:-

Code:

The permissions come out all messed up.

But if I do:-

Code:

The permissions are set as expected.

I am having trouble understanding why umask(0); is needed, and what is the 'proper' way to use it so I can make my directory. From what I can understand from the man pages and everything, I need to set the umask in my program to allow it permission to make a directory with those permissions? And I don't get why umask(0); fixes it anyway!

View 1 Replies View Related

Ubuntu :: Run A Program Automatically When A File Appears In A Directory?

Jan 16, 2010

Does anyone know how I can make a program run automatically when a file appears in a particular directory? I have two computers, one to program the firmware on a microcontroller (command line only), and the other is my desktop machine running Ubuntu. I have an NFS share between the two. What I want is to be able to drop a new firmware load into the shared directory from the desktop, and have the other computer notice it and program the microcontroller with it. Right now I have to open an SSH session to the other computer, run the program manually, and then delete the file. I would like to automate all of that.

View 5 Replies View Related

OpenSUSE :: Edit/create HTML Document And Run?

Feb 21, 2011

How can I edit/create HTML document and run them in linux?

View 7 Replies View Related

General :: Generate Html Based On Directory Structure?

Jul 22, 2010

does any one knows a linux based program/script that can generate html files based on directory structure?

View 1 Replies View Related

Fedora Servers :: /var/www/html - Not Allowing To Do Any Changes/create The Files Or Folders

Aug 8, 2011

I m able to do the changes in the home directory of the users' but when it comes to the /var/www/html folder, it's not allowing to do any changes/create the files or folders

I m able to view the files and it's contents

Global Settings:

View 4 Replies View Related

Ubuntu :: AjaXplorer Install - Cannot Find HTML Root Directory

May 19, 2011

Installing ajaxplorer on ubuntu 10.0.4. I am new to linux. Cannot find the html root directory where installation files to be put. How to create a symbolic link from it's home (root where ajaxplorer files unzipped) to a place where the web front-end is visible and available to the HTTP server.

View 1 Replies View Related

General :: Wget Command - Download Only Html From The Url And Save It In A Directory

Jul 6, 2011

What is the Wget command to perform the following:

download only html from the url and save it in a directory

other file extentions like.doc,.xls etc should be excluded automatically

View 4 Replies View Related

Ubuntu :: Setup Mod_perl With Scripts And Html Files In The Same Directory?

Apr 27, 2011

I have mod_cgi working perfectly. However, it turns out there are features of mod_perl that I'm trying to use. I have followed all the documentation I can find on using Ubuntu's mod_perl install with Apache2. There seems to be some type of problems with the mod_perl's documentation, as it doesn't work as it's defined. However, I found a modification to make it work, but only is designated directories. If I tried to use in a directory with my other HTML files the regular HTML files will fail.

Using these steps (but using apt-get's install rather than compiling the tar ball). I did as follows:

[URL]

placed this in the httpd.conf file (which was basically the same as "a2enmod perl".

httpd.conf line:

Code:
LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so
Alias /perl/ /home/web/perl/
<Directory /home/web/perl>
SetHandler perl-script

[Code]....

View 7 Replies View Related

General :: Create A HTML Page To Hide The Running Process Of Software?

Jul 7, 2010

1. I need help to create a interface to run software.2. The software is running at the back

View 4 Replies View Related

General :: Use Mkdir Command To Create 'local' Directory In /usr - There Are Error - Cannot Make Directory

Jun 16, 2010

I am a student studying computer science course.

Well, I am facing problem when doing lab questions.

I must use DLXLinux bundled in Bochs (bochs.sourceforge.net).

I am required to use the /usr/local directory.

In /usr directory, there is no directory named 'local' but there is one thing called 'local@'. So, when I try to use mkdir command to create 'local' directory in /usr , there are error "cannot make directory.....".

Look at my screenshot at [url].

View 9 Replies View Related

Software :: Error - Mkdir: Cannot Create Directory `/dev/cgroup/cpu/user/5900': No Such File Or Directory

Jun 21, 2011

I get the following error whenever I launch bash:

Code:
mkdir: cannot create directory `/dev/cgroup/cpu/user/5900': No such file or directory
bash: /dev/cgroup/cpu/user/5900/tasks: No such file or directory
bash: /dev/cgroup/cpu/user/5900/notify_on_release: No such file or directory
It seems like it's probably from this part of .bashrc:

[Code]...

What does this code do, why, and what's causing it to go wrong?

View 7 Replies View Related

Fedora Servers :: F11 & Apache Permissions - Reading Files Out Of The Html Directory

Jun 12, 2009

With F11 installed Apache is having permissions issues reading files out of the html directory. Only wants to work with permissions set to read for other. [Thu Jun 11 23:25:28 2009] [error] [client 127.0.0.1] (13)Permission denied: file permissions deny server access: /var/www/html/index.html Tracked down the permissions issue. Is there a good reason not to change the group to apache and remove world read?

View 1 Replies View Related

Ubuntu :: WGET - Download HTML Page In One Directory And Other Elements In A Subdirectory?

Mar 12, 2010

i'm using wget with this parameters:

wget -E -H -k -K -p -nH -nd -Pfolder http:\www.mysite.com

using this parameters the main html page and all the images will download in the same folder. Instead i would like to have the html page in a folder and all the images,css ecc in a subdirectory for example i want to have:

c:foldermain.html
c:foldersubfolderimage.jpg
c:foldersubfolderimage2.jpg
c:foldersubfoldercss.css

It's the same that mozilla firefox do when i save a html page on local machine ("save page as" on file menu) Which parameters do i have to use?

View 1 Replies View Related

General :: Remove Index.html File Alone In Every Directory Via Bash Script

Jul 7, 2011

I want to remove the index.html file alone in the every directory via bash script, for example i have 5 directories in the path /var/www/vhost

anish
kumar
linux
question
friend

each directories have index.html file now i want to replace the index.html file alone from the other directory /var/tmp/vhosbak

anish
kumar
linux
question
friend

How we can do this using script?

View 5 Replies View Related

General :: Create A Directory Named Like His Parent Directory

May 26, 2011

I need to create a directory named just like his parent.

Example:

I tried this but because there is "Space Characters" in the name of Parent directory, my script fails.

View 8 Replies View Related

Ubuntu :: When Turn On The Computer, The GRUB Menu Appears, Press Enter, Then A Little Flashing Underscore Appears On The Screen?

Dec 21, 2010

I recently removed Winblows Vista from my laptop and replaced it with Kubuntu 10.10 (I left the recovery partition on there, just in case). When I turn on the computer, the GRUB menu appears, I press enter, then a little flashing underscore appears on the screen in the top left hand corner. After a few seconds, the Kubuntu logo appears and I can log in.But yesterday I replace Kubuntu with Ubuntu 10.10. The Boot process is the same, but the little flashing underscore in the top left hand corner flashes for about 10 seconds longer then Kubuntu 10.10 did, and then a few paragraphs of text appears for a few seconds, then I am logged in automatically.Is this "unusual" boot process anything to worry about, or am I just being a noob.

View 1 Replies View Related

Programming :: Grep Until Certain Character Or Pattern Appears

Jun 25, 2010

I have the following command that greps "/etc/cron.allow" and displays the following 9 lines of $file grep -A 9 "/etc/cron.allow" $file On the other hand I would like to grep a file for a certain text display the next couple of lines and stop when i hit a specified word or blank or pattern.Basically I would like my grep to end when the shell hits a blank, certain key word or pattern specified in command.

View 7 Replies View Related

Programming :: Intersperse The PHP With HTML?

Sep 21, 2010

In my site, I have a "Make A Friend" link, which will lead to a page where the user has to input their username and password, to identify who they are. The link is like so: "makeafriendlogin.php?person=26", to identify the person who is going to *making* the friend. When the Submit button on the login page is clicked, the "person" argument has to be transmitted to the script that handles it (makefriend.php). This is how I'm going to lay out the "makeafriendlogin.php" script:

<form method="post" action="makefriend.php">
<input name="username" type="text>
<input name="password" type="password">
<?php

[code]....

My probem is with the "<input name="author" type="hidden" value="$author">" line - unless I put it within <?php and ?> tags, the "$person" won't be parsed, but at the same time, it's HTML, not PHP.... so I can't figure out what to do. Should I put it in a "print" statement?

View 1 Replies View Related

Programming :: How To Use Html Version Of Patches

Dec 4, 2010

I am currently following the instructions from the Linux From Scratch book and have made it to the downloading of the patches.There are links to all of the needed patches but when you click them, instead of downloading a file like I expected, it takes you to an html page displaying (I'm guessing) some sort of programming or scripting language. Link to the page with the all the patch download links. From there instead of downloading the file it displays its contents.

- www
- (period)linuxfromscratch
- (period)org
- /lfs/view/stable/chapter03/patches
- (period)html

(had to break it up because the forum won't allow me to post links yet ) My question is: What do I need to do with this text? Do I copy and paste it into a text file? Are there certain extensions that I need to append to the text files?

View 3 Replies View Related

Programming :: Done To Convert Html Pages To Pdf ?

Jan 1, 2011

Im new to linux Iam pursuing bachelors in computer science engineering.... my final year project is to develop a "html to pdf converter using linux"... i have some basic knowledge of commands used in unix

1) Where can i get the basic idea about the existing converters... their pros and cons...
.... programming...

2) Any kind of material or source where i can get basic idea of programming used for converting html pages that are linked into a single pdf..

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved