General :: Link Files In Different Folder In Html?
Jun 3, 2010I try to link two page from different folder and directory1. I want to link [URL]
View 9 RepliesI try to link two page from different folder and directory1. I want to link [URL]
View 9 Repliesi have put a zip folder at /var/www/html/ am trying to download it on a client machine it gives me this error
You don't have permission to access /db_airarabia_crp.zip on this server. i changes the permission on the file to 666 but still its the same
I need to make a link that goes absolutely nowhere, since it has an onclick event that uses javascript to show/hide content. It needs to look like a standard link and the mouse needs to change to the finger cursor like a standard link.
The following all don't work:
Code:
<a href="#" onclick="show_element('jetshop')">Read more...</a>
- moves to the top of the page.
<a href="" onclick="show_element('jetshop')">Read more...</a>
[code]....
I had a set of link titles and wanted to get HTML tags for them. Actually I wanted to get from
[code]...
It's PHP based (running on linux of course . I'm sure same thing is possible by some awk/sed magic, but i wanted somehting more visual.
I have two folders such as
nonserved/
folder1/
folder2/
And a served folder via Apache
media/
js/
css/
img/
In the end, I want to include/append contents of /nonserved to /media so that [URL] will be as such:
/media
/js
/css
/img
/folder1
/folder2
I am running Ubuntu Server, I am up for either apache config or symbolic link based answer :) Plus nonserved folder is rather dynamic thus manual symbolic linking to each folder is impossible.
I have an external hard drive mounted at /media/exthdd/ On that hard drive I have folders: Music, Pictures, Videos, etc. Can I make symbolic links to /media/exthdd/Music/ to say the root directory /_ ? the directory /_ is empty I just want a quick method of typing to get me there much like [cd ~] gets me to my home/username folder. I have my music organized by Artist/Year-Album/Track.Title.mp3 I want to be able to "cd /_" then "ls" and see all Artist folders.
View 9 Replies View RelatedI created a local user acount and tested FTP. This allows me to post files to this directory using filezilla. I then created a webftpaccount and set the home directory to /var/www/html. Here are the permission to this directory using ls -l drwxrwsr-x 6 webftpaccount webftpaccount 4096 Nov 23 10:32 htmlhere are the permission on the sub directories
drwxrwsr-x 2 webftpaccount ftp 4096 Nov 14 07:37 myfinanceguard
drwxrwsr-x 2 webftpaccount root 4096 Nov 14 07:37 mylawguard
drwxrwsr-x 2 webftpaccount root 4096 Nov 14 07:36 xpiinc
I can log into the webftpaccount using filezilla client and it lists all the directories.It will not allow me to write a file into the html directory or any of the sub directories.Can someone help me set appropriate permissions on these directories so that I can get this working? I need to get FTP working so I set up dreamwaever FTP tlich and maintain sites.
Got site hosted, up and running now trying to work out the website particulars.
Right here it goes, not sure if it is at all possible but any input would be much appreciated.
Here's the deal. Developing an easy straight forward online store integrated with EBSWorldpay . Not looking for any fancy stuff. What i would like to do is put a flash url link that would direct a user to a html file that contains a hidden form and it would submit it on load redirecting a user straight to EBSwordpay checkout. Simple HTML Redirect with submited form.
Check the link here it has the source code of the form that is required.: [url]
Trying to use Example 0.1 ( So instead of having a separate page with a "BUY" for the form to be submitted, I would like to get the form posted straight away which would in turn load the payment site. Would create a seperate html file for each item and have redirects on the main website linking to those onLoad submit forms.
I'm a frequent user of grep. I know that I can recursively search a directory using the -r flag:
Code:
// will recursively search all files
grep -r 'some string' *
However, if I want to limit my search to PHP files, the -r flag is suddenly useless:
Code:
// for some reason, this only searches the PHP files in the current dir
grep -r 'some string' *.php
Any good way to recursively search a directory and its subdirs for a string but ONLY look at PHP or HTML files (and possibly TXT files too) ? I'm really hoping for a nice, short command that doesn't involve using an exclude file and which isn't really painful to type. I do this kind of search very frequently and have resorted to either searching EVERY file which is really slow (TAR and ZIP files really slow it down) OR typing repeated commands to search *.php, */*.php, etc.
In Linux bash shell, for a given directory, how can I list:The create date for that directory The number of files in that directory The number of subdirectories in that directory.
View 3 Replies View RelatedHow would i go about copying all .jpg or .JPG files from a folder and all its subfolders to my /usr/name/pictures folder? I'm guessing I'd have to use some sort of .[jJ][pP][gG] to get all the pictures from other examples i've seen, but really not sure how to use that in a recursive cp.
View 14 Replies View RelatedI have a website that has a massive list of royalty free stock photos and I want to download all of them. I have bought a membership for [URL] so I am able to download as much as I want from them for the next month.
Instead of going page by page and manually downloading each set of stock photos manually, I would like to automate this process. Here's my idea:
1. Download the website with the links to hotfile [URL]
2. Use grep to retrieve all the links to [URL]
3. Feed the links I recieve from grep into wget and download the works of them.
The problem I'm getting is when I use grep, It retrieves the entire line of html code where "hotfile.com" is shown. So here is an example of one link I receive in the output:
Quote:
./1776-santa-claus-vector-set.html:<div align="center"><a href="http://hotfile.com/dl/18418176/181a55b/Santa_Claus_Vector_Set.rar.html" target="_blank">HotFile</a></div>
Is there a way to just have the link shown in the output?
PS: I have everything else working, I just need an automated process of getting all the links.
I'm using mrtg to generate html files. With mrtg , i use indexmaker . Inside html files , i have found some html tag like "<SMALL>some text</SMALL>".
There is the manner to delete text inside two tags ? With bash script?
I cant print html files using linux mandriva (Foomatic)
View 5 Replies View Relatedi need to copy files from a folder called output files to another folder called running but im not able to do it i always get a stat error
View 14 Replies View RelatedI've an network architecture where for the user to reach the machine that it want, it has to pass through a frontend machine.
Code:
User ---> Frontend ----> Machine1
The connections between all hosts uses ssh. If I want to reach the Machine1, I've to authenticate to the Frontend and authenticate again to the Machine1. The Machine1 and the Frontend doesn't have X installed - only console mode.
The Machine1 has the file in my HOME directory called: hello.html that contains flash embedded. I would like to view the hello.html in my browser located at the User machine.
Is there a way to access remotely to the html file, without have to copy the file to my local machine?
i tried stat and S_ISLNK(st.st_mode) but it always evaluates to false :/ is there anyway i can tell if a folder is a link to another folder?
View 6 Replies View RelatedI got a folder that I transfer stuff to all the time. the folder is in chmod 775 but when i upload folders and files, they are given chmod 700, but i want it chmod 775 everytime i upload something. so far i have logged in to my linux computer and did a chmod -R 775 to the folder every time i uploaded something to it. is there a function somewhere to make it 775 everytime i upload or can i have something run a script, so i don't have to go in and write it everytime i upload something?
View 2 Replies View Relatedtell me how to link two different files in linux
View 3 Replies View RelatedI suspect that this has come up numerous times, but I am new to Linux and I am setting up a new in-house server using Ubuntu 9.04 and Apache, etc. I can see the welcoming "It Works!" message when I log in via Firefox. I can see "index.html" when I FTP the server with the site name and password at /var/www. I can also see the -rw-r-r-- attributes, but I can't edit the HTML file or replace it. When I try to rename the "index.html" file.
I get the following message: "Request denied. Verify that the file or folder exists and that you have the necessary permissions on the server to perform the requested operation."
I haven't been able to determine where to enter the password or what changes I need to make to be able to work with the /var/www directory via FTP.
i am newbie to fedora and php,fedora test page is displaying when i give the ip address now i want to add a .php file in /var/www/html folder but it says permission denied when i want to save .php file in this folder
View 2 Replies View RelatedI'm setting up my fedora 10 server. I am currently working on samba. I have added users and created their home directories with their own html directories. I have changed their html directories to 777. However, it appears to be read-only since I cannot create files or folders within it. Can anyone please give me some ideas as to what may be causing this? Probably some extra configurations I may have overlooked? Any help would be kindly appreciated. I also created a general wshare (writable share) directory for all users within home directory but I am encountering the same problem and cannot write to it.
View 8 Replies View RelatedIt's a few days now that I notice everytime I save a page in Firefox, only the .html file is saves, and firefox does not make a folder associated with the page in which it saves the images, etc..Could this be because I installed TOR and the TORBUTTON for firefox?I have, however disabled the TORBUTTON addon from Firefox, and restarted the browserbut the problem persists.
View 2 Replies View RelatedI have a local network that has three LANs and each LAN has several machines. I created a folder named myweb that contains html files under /var/www/html/. Let's say the folder is on A machine. From B machine, which is in different LANs, I want to access myweb folder using a web browser. I can ping both machines nut I can't access the folder. I tried [URL] where sxa.org is the hostname and the http server (Apache) name.
View 4 Replies View RelatedI have many files and folders in my source folder. I want to copy some files and folders from that source folder to destination folder. What should be require to given with the "cp" command?
View 1 Replies View RelatedI wanted to queue up all audio files in particular folder which also has .txt files.I tried$find /data/songs -iname '[^txt]' -exec totem --enqueue '{}' ';'Thinking that this will exclude txt like expression in 'grep'.It did not work
View 2 Replies View RelatedI am having a time at trying to get a simple FTP setup to my Var/www/html folder for my canned Joomla website. I can log in anon with no write permissions, but it will not log in using any users I have setup on the server. I've googled a bunch, but nothing to correct my 530 authentication failure when I try to log in as one of my user accounts for the server.
View 2 Replies View RelatedI'm sorry if this question has already been answered, here or in Google, but 5' of search didn't give me any satisfactory answer. I haver 2 users, usr1 and usr2. I have access for both users. I want to link a folder from usr1 into the home directory of usr2. That is, if usr1 has the following folder
/home/usr1/Music
I want usr2 to link to this folder in this manner
/home/usr2/Music/usr1
I want usr2 to have read and execute permissions over all files and folders under that link, but probably I don't want him to have write permissions.
I use ln -s to create a symbolic folder in /home/ to direct a folder in the media.
But it appeared the link is broken. It also said "This link cannot be used, because its target "./media/StudyResearch/" doesn't exist."
I recently upgraded from FC12 to FC14 due to errors using yum and rpm. I keep running into mirror sites with RPM files that don't install. These site have what appear to be valid RPM files, but if I use wget to retrieve the file and run "file" on it, it turns out to be an HTML file. I understand the fact that if a file is corrupted, it won't install, but I can open these "RPM" files using Mozilla after changing the extension from RPM to HTML. When I open the new HTML file, I'm prompted by the browser to open or save the RPM file. If I save the RPM file pointed to by the HTML file, I can download and install it using rpm -ivvh unless a dependency check fails. how does anyone install using yum if the package is an HTML file with an RPM extension. Here is a link as an example:
[URL]
If I use wget on this file and then run "file" on it, here is the output:
file openoffice.org-calc-core-3.3.0-20.2.fc14.i686.rpm
openoffice.org-calc-core-3.3.0-20.2.fc14.i686.rpm: HTML document text
If I change the extension of this file to HTML and open it with my browser, I am prompted to download the RPM file which turns out to be a true RPM v3.0 file. Is anyone else having this problem or can anyone point me in the right direction to download the correct RPM file. I am running behind a proxy server and have installed cntlm, configured wgetrc, yum.conf and .curlrc to use the proxy server. I am able to download and install most of the simpler applications where the dependencies are either installed or non required.