Jul 6, 2008

The Downloads On My Site - php

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

free web hosting

The Downloads On My Site - php

BOAW
Ok i have a site with these downloads, when you click on them they do not open up to a new window. Instead it uses the same window and goes to the link that it was linked to go to. All of my downloads are made from being linked to some other site. Now my site is php, so i was wondering how i can make all links open up a new window to their download page without having to type out target="_blank" for all of them. Which would take awhile for me. I was wondering if there is a way to do that with the php download module where i can insert the target="_blank" in there so it would automatically put that in with every file link that i create?

Reply

Hadi
I don't think there is another way even though I never used php. But why don't want to type each time target="_blank"? You could use ctrl+c to copy and ctrl+v to paste!

Reply

BOAW
i know but its still time consuming becuase id have to constantly click on pages to get to each download to edit and put that code in. i have around 35 downloads right now and doing that would be a pain in the neck. too much clicking and goin onto pages to get to each one. so if anyone cant find a solution for me, i guess thats what ima have to do...

Reply

rldowling03
Well for mass editing I use TSW Webcoder and it can edit a specific text in any amounts of web pages including PHP from 2 to 100 pages it can add that code you want to add so that is the only way i can think of doing that now

Reply

fffanatics
Yeah using the tatget="_blank" is the only way i know of doing it and i use php. Just open up the file/files in a good text editor (like emacs) and just do a query replace and add the target tag to them.

Reply

ahsan
well it is a great site its graphics are classic
tell me on which software u made it?

Reply

Tetraca
Okay do this:
For each of the links, copy and paste a nonesense word(not anything like a single letter or a word in the code). Go into your editor, and in the edit menu, click find & replace. Type in your nonsense word in the find box, the target="_blank" in the other. If you don't want to deal with this consider using MySQL.

Reply

odomike
QUOTE(rldowling03 @ Jun 16 2006, 02:25 PM) *

Well for mass editing I use TSW Webcoder and it can edit a specific text in any amounts of web pages including PHP from 2 to 100 pages it can add that code you want to add so that is the only way i can think of doing that now



You got a point there rldowling03. why dont you use the TWS webcoder. Simply type in the code you want to be editted and it will locate that very code everywhere in the web page and fix in the correct one for it.

That sould help solve your problem.

Reply

FirefoxRocks
Try this method:

1. Open Notepad/Wordpad or another TEXT editor (not word processing software). Open up your HTML page in the text editor.
2. Go to Edit. Click on Find and Replace. Or Find and then Replace. There are different menus/buttons but they all work in the same way.
3. Type in <a href=" in the Find box.
4. Type in <a target="_blank" href=" in the Replace box.
5. Click on Replace All or something similar to that.
6. Ensure you have XHTML 1.0 Transitional or HTML 4.01 Transitional as the !DOCTYPE because target="_blank" is not compatible with Strict DOCTYPE's or XHTML 1.1.

Also, consider using AceHTML 6 Freeware, it works great.

Let me know if this was helpful.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : downloads, site, php

  1. Can We Host Games With Webhosting This Site Provides?
    Uhm yea I was wondering (1)
  2. No Site Access
    (1)
    It was working the day before yesterday and then it started giving me error messages about not being
    able to access the site. I can't access cpanel either. Neither page ever loads. I don't
    have this problem with any other internet pages, just my site stuff on Trap17. My site's at
    www.jzambrano.trap17.com btw. This is one of the few times I'll need it up for sure so I'd
    appreciate if the issue can get fixed in the near future. ....
  3. Can't Access My Site An Cpanel
    already did some sugested things (4)
    I still can't get to my website and cpanel, Tings I did: requested xisto to unblock my ip
    cleaned my cache/cookies Did this with both IE and FF When I am @ my dads house he can acces my
    website. So I guess it is still an ip problem. I did read some posts but couldn't find a
    solution. Thx in advance,....
  4. Can't Access My Site....weird Issue
    (5)
    Okay, so last night everything worked fine. I loaded up cpanel, fixed issues with the site after the
    database move, etc. Today I'm unable to load up the site. It just keeps giving me ping
    timeouts. With what I'm being told by others it is only me having this issue with my site, and
    yet there have been 0 changes to my pc between it working and not. I have tried multiple times
    during the day with no luck. Along with this, if I load my website using a proxy service then I do
    not have any issues. The only time it will not allow me to access it is if I am "using" my....
  5. Pink Ipodnano Site
    (2)
    http://pink-ipod-nano.blogspot.com/ Everything about Pink iPod nano, Pink iPod Accessories,
    etc. including pink iPhone too....
  6. Great Weather Site
    Cool weather Site (6)
    I found this weather site a few days ago and wow. Has some very clear chase cams.
    Serverstudios.com ....
  7. Testing Site
    (1)
    Hi I have just set up an account. I haven't pointed my domain to the servers yet (my deal with
    the current host does not run out till next month). What I am wondering is if it is possible to
    upload and test a site without the domain pointing at it? I have tried putting up a index page but
    all I get is the placeholder. I just want to know that the site will work ok THEN point the domain.
    Thanks Martin....
  8. How To Make An Ultimate Game List.
    If you're making a site on video games or such. (0)
    Hello. I am BuBBaG. You can call me Bubba for short. I'm going to show you how to make an
    Ultimate Game List. First off, we need to make a database, we are going to call this database
    `my_db`, leave out the `'s. Inside that database we will need to create a table
    called `ugl'(Ultimate Game List, duh). To make the table, simply enter this in the Syntax.
    CODE CREATE TABLE ugl ( System char(50), Game char(50), ) In the
    above code, it is stating we are creating a table called ugl, with two columns, System, and Gam....
  9. Please Review My Blog Site Www.amirsblog.uni.cc
    (0)
    I have been working hard on it and getting it right and finding the right template. I decided what
    type of blog I wanted and I like the idea and am sticking to it I got my custom header and all too
    /tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> If you guys
    can tell me what else I can do with it, it'll be really great www.amirsblog.uni.cc....
  10. Need A Name For A Hosting Site
    (2)
    Ok so i'm thinking about setting up a paid and free hosting site with computing host resaller
    plan. but i'm having no luck coming up with a name for the site, evey thing i have tryed it
    taken arleady. so i was wonder if i could get some help with picking a name? so dose any body have
    any ideas? I dont wont it to be one of those super long domain names. Thanks....
  11. Building A Forum Under Another Web Site?
    (7)
    Hello, Im going to set up a simple website to use with my buddies. A main page where I can update
    from time to time and a forum are all I need. I know WYSIWYG builders, ftp uploaders and forum
    moderating. Im thinking of using phpBB since it's free and seems simple and reliable, right?
    My question is can I build the forum on my local computer then upload to hosting service? The
    readme.txt recomends to install online in host machine. And this is what I need to do, right?
    -build an index.html with WYSIWYG, upload it to main folder of host. -create a folder in the....
  12. Hobby Site/business
    (6)
    Could you guys please review my website. I feel like it is suitable for what it is. I have a side
    computer repair business, but am not investing a lot of money in it. I think the useability is good.
    I am new to the web design world. I am just happy to have made this site and I am just happy to get
    the php email form working. Any suggestions are welcome. http://www.ckcomputerstally.trap17.com ....
  13. Review My Site
    Review my site please (16)
    Hello. I am new here to trap17.com and would really like some input on my site. Echo Of Thunder
    Made using Dream Weaver and note pad. Planning on a better forum and chat page as time goes by.
    This is just a little hobby that I have. "weather" and I hope that you all here at trap17 will take
    a look see, and tell me what you all think. ....
  14. Books?!
    Web-Site? (7)
    I am the active student of Amrican University of Dubai (AUD). Basically, I' tired of buying new
    books in the UNI's book store whcih will last only for 3 months. Anybody knows where I may get
    them online like in PDF format.....
  15. Where Is There A Good Site To Learn Web Html?
    (18)
    im a noob when it comes to web html to design web sites, can some one tell me where to find a good
    website that has good tutorials on how to use web html?....
  16. Php Word Filter
    Have you accidently sworn on your site? Or do you want to keep visitor (7)
    This is pretty simple but very useful if you don't want people to swear. We will be using
    str_replace for this. CODE <?php str_replace ("curseword,
    "replacemet"); ?> Thats pretty simple, just fill in the curse word and the
    replacement, and then repeat... heres what it would look like full size: CODE <?php
    str_replace("swear", "replacement"); str_replace("swear",
    "replacement"); str_replace("swear", "replacement");
    str_replace("swear", "....
  17. Forget Adsense. Try Widgetbucks.com
    earn more money with your site (42)
    Hello . A new company that blow all the Google Adsense program is here , idk if its operating
    from long time , i dont think soo but its realy realy good. Forget of 0.01 $ from Google
    Adsense , Widget pays you from 0.45 pay per click no less depending what widget you choose ,
    3$ at 1000 immpresions . I put Laptops widgets and i get 0.45 $ no less . Its more
    then good in one day ived made 30 dollars from 1 site and i have more then one Register now and
    you get 25 $ BONUS : Please signup over the link below . Thanks http://www.wid....
  18. Check This Totally Css Site Out
    (5)
    Check out this and give me ur opinion www.eskiotongroup.com....
  19. Real Paying Site
    Easy and quick (7)
    That site really pays and I have recieved my first payment of 10 dollars. This is really easy not
    much of a big minimum payout and if you want you too can make money by just going here and signing
    up http://adbux.org If you want please do add me as a referrer as zak92 Thank you.....
  20. Getting Flash Images On A Site
    (1)
    well, i don' t have a site yet, but about 6 months ago i made a template, with flash buttons and
    all, with sound and everything i was so proud so i tryed to put em on there with a special code u
    needet or something ,so i did, but i got blank images,, i even tryed uploading it on the site it
    didn't work, so i asked around they said u can' t install them on a cpanel, u need ftp, so i
    downloadet the program needet and i got stuck there, so basicly how do u do that,and could some1
    help me out how to get it working on a cpanel....
  21. Drupal Related
    Auction site (1)
    Hi, I've been trying to look for ways to run an auction site thats easy to set up and I saw
    drupal... Is there a way to run an auction site using drupal?? If anyone of you know how to do it
    plzz help me! I've tried to look through google but not getting any help! I want to make
    an auction site which will be able to take few types of product posted by the users and let other
    users log in to bid for the price! Is there a way to do so?? And if anyone of you know an
    easier way to go about doing it please help me! even if its not drupal but something ....
  22. The Next Best Generation Download Manager!
    Only for rapidshare/megaupload downloads (43)
    Yes guys, the following information is about a excellent freeware download manager that only works
    with download links from sites like: FileFactory.com SaveFile.com MyTempDir.com rapidshare.de
    TurboUpload.com YouSendIt megaupload.com And much more free uploads servers download links support
    ... . This great download manager is very simple but yet, very powerfull. First, you download need
    to install anything on your hard drive, you just have to extract the zip file to a directory of your
    choise on your hard drive and click the file named : "USDownloader.exe" (It has ....
  23. Best Download Site
    (42)
    hi there im lookin for a downloads directory to download freeware, shareware software products, a
    bit like www.download.com i do like using download.com but evrytime i serach something using
    download.com my computer crashes and send a error report to microsoft, which pis*es me off. so any
    other sites would help........
  24. Give Me Website Ideas..
    Website Ideas : Something original. Ideas for making a site (29)
    Website Ideas I'm deciding to take down my site, it's getting kind of old and
    boring, but I don't want to just stop with having a site. I need some ideas for something that
    provides a service of some sort to people. There are millions of blogs, I really don't want to
    post about my life on a daily basis anyway. All ideas will be welcomed, I can't seem to think
    of anything at all, so Im asking you. What could my new website be about?....
  25. Inbox Dollars
    Best Money making Site-I Got Paid (28)
    Inbox Dollars is a great site that i found when i was browsing around the net. This Site Offers you
    3 different reward chioces and they are: - 10000 Banner Imprressions- $10 - Gold Membership
    -$17 - Check- $30 I have already gotten the 10000 banner impressoins from them. The ways
    you can earn money are: -$5 when you join the site... -$0.01-0.10 for every paid email
    -$4 for every survey site you join -Up to $50 for for every offer -Unlimited cash for
    games -Umlimited cash for shoppings The offers are very easy to fill out and you ge....
  26. The Funniest Websites On The Net
    Suggest The Funniest Site On The Net (11)
    I Am Going To Start Of This Topic By Suggesting miniclip.com (Games Site) ....
  27. Site Layout For My Friend
    (9)
    There's something wrong with this layout and I don't quite know what else to add to make it
    look more together. Is anyone willing to add stuff to this layout? I'm kinda going in circles
    with this one. You can go crazy and add your own designs just as long as it would look clean.
    /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> This is for those with
    spare time only. I'm not trying to pass my dilemma to anyone. /smile.gif' border='0'
    style='vertical-align:middle' alt='smile.gif' /> ....
  28. Gmail Forum
    Unofficial site. (15)
    Well, I was playing with google search engine when I stumbled onto this:
    http://www.gmailforums.com/index.php ? It is an unofficial site set up to support gmail and was
    said to be the first forum dedicated to Google's Gmail Service. What do you think about it?....
  29. Php Quiz Script
    Make quizzes for your site. (20)
    Hello all, A little bit back I decided to make a quiz scriptjust out of no where lol. However it
    doesnt do anything special but I am going to make an email mod for it so that it will email results
    to your email address. So here is the basis of it. INSTRUCTIONS: Open a new page in your text
    editor and paste in the following code. CODE <?php $qid = "Quiz ID-00"; ?>
    <html> <head> <title><? echo "Gamers Pub $qid";
    ?></title> </head> <body> <p><h3><? echo "....
  30. Google Submite Site
    How to get top ranking (11)
    hi all, do you know how to make our website be placed on the top ranking on searching engine like
    google, yahoo.. etc. i know just some ways like META NAME=keywords" CONTENT="somthings..". but that
    is the old way which is not used anymore. as i know currently most of the searching engines using
    the crawler system, so how can they put keyword in our website?....

    1. Looking for downloads, site, php

Searching Video's for downloads, site, php
advertisement



The Downloads On My Site - php



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE