php help

by 3 replies
4
Everything that I read says that a php redirect is very easy. So what am I doing wrong.

I am using Windows 7 with open office to save my files on but when I upload the file using filezilla it shows that everything went well and says that it is all working, but again and again the file will not show up.

I have cleared my cache over and over, and tried so many things my mind is fuzzy...

It this that hard? Or is it the programs I am using? Or am I not saving the php file in the right form?

Can anyone help.....
#programming #php #php redirect
  • Try a little free program called notepad ++ (google it, it's a free download)

    Redo the file and save it as a .php extension.

    Upload using your ftp program and it should sort the problem out for you.

    Take a look at your domain name registrar........ they may have a redirect script you can use.

    Take a look at your hosting, cpanel, they may have a redirect script you can use too.

    If you google "Jump.php" you'll find a good free script that works, but there are no stats available as to how many links, clicks etc you get.

    For a fee, there are lots of good programs out there that will track your clicks, cloak your links etc. One I would recommend is affiliate link bomber , you can track your links, cloak them and lots more, simply, easily and quickly.

    Hope that helps.
  • Banned
    [DELETED]

  • Don't use open office like Janet suggested. you can use notepad++ or textpad. also make sure that you dont have any html tags before the actual redirect, otherwise you will get a headers already sent error.


    PHP Code:
    <html>
    <?php



       header
    'Location: yoururlhere' ) ;

    ?>
    This one will work!
    PHP Code:
    <?php



       header
    'Location: yoururlhere' ) ;

    ?>
  • Yes, you cannot output anything to the browser prior to using the header() function to re-direct.

Next Topics on Trending Feed

  • 4

    Everything that I read says that a php redirect is very easy. So what am I doing wrong. I am using Windows 7 with open office to save my files on but when I upload the file using filezilla it shows that everything went well and says that it is all working, but again and again the file will not show up.