Results 1 to 11 of 11

Thread: Is publishing PHP different than html?
      
   

  1. #1
    gunnk2 is offline Sergeant
    Join Date
    Jan 2009
    Posts
    27

    Default Is publishing PHP different than html?

    I have no problems publishing html pages, but i need a php page and the links are broken. Is there a trick I am missing? Do I still save to the public_html folder? I have saved as a php under page properties. I have also saved the page. I am using .php when I type in the address. The error code I am getting is FILE DOES NOT EXIST.

    Help!

    This is the link I am trying for www.youronlinemarketer.com/dvdclub.php

    This one with the same information saved as an html works fine. www.youronlinemarketer.com/dvdmovie.html

    Thank you,
    gunnk2

  2. #2
    D'son's Avatar
    D'son is offline Major General
    Join Date
    Apr 2008
    Location
    Illinois
    Posts
    2,580

    Default Re: Is publishing PHP different than html?

    As far as how you create the pages and publish them the only difference is in the page properties/file types. If you create a page and add a form to it BV will automatically publish as a .php
    This of course is a simplistic explaination of the differences concentrating on your question about building, saving and publishing. Yes all your pages are published to your public_html folder.

    I am seeing an error for an unexpected variable on line 7 not sure what you have without seeing it but maybe someone else can shed more light on this.

  3. #3
    gunnk2 is offline Sergeant
    Join Date
    Jan 2009
    Posts
    27

    Default Re: Is publishing PHP different than html?

    I removed the tracking link which would be the unexpected variable on line 7 and that fixed the problem. So, the question now is how to I track without that link? Hmmmmm...

    Thanks for the help

  4. #4
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: Is publishing PHP different than html?

    You probably just forgot to end the php script with "?>"

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  5. #5
    gunnk2 is offline Sergeant
    Join Date
    Jan 2009
    Posts
    27

    Default Re: Is publishing PHP different than html?

    No, I ended with that. At first, I thought it might be that I used the wrong specific tracking id code for the CPA network I use, but when I went back and plugged that in and published the page again, it didn't work again. For now, I am going without the tracking code. Thanks anyway, it was a good suggestion.

  6. #6
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: Is publishing PHP different than html?

    Its a syntax error with the code itself. If you post the exact code you are using I will take a look

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  7. #7
    gunnk2 is offline Sergeant
    Join Date
    Jan 2009
    Posts
    27

    Default Re: Is publishing PHP different than html?

    These are the codes I have tried

    This one begins with the maxbounty subid code &s1=
    &s1=<?PHPecho$tracking;?>

    Subid=<?PHPecho$tracking;?>

    I attach it onto this link inside an iframe
    http://www.mb01.com/lnk.asp?o=1207&c=918273&a=33005&

    I really appreciate your help

    Kathy

  8. #8
    gunnk2 is offline Sergeant
    Join Date
    Jan 2009
    Posts
    27

    Default Re: Is publishing PHP different than html?

    minus the & sign up there.

    Here is the what the page looks like here in the us
    http://www.mb01.com/lnk.asp?o=1207&c=918273&a=33005&s1={keyword}

    This is how it shows up in Canada which where I am advertising. It is a Canada only ad.

    http://www.youronlinemarketer.com/dvdclub.php?tracking={keyword}

    Hope this all makes since.

  9. #9
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: Is publishing PHP different than html?

    If that is the exact code you are using the problem is that there needs to be a space after <?PHP, so it should be

    <?PHP echo $tracking;?>

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  10. #10
    gunnk2 is offline Sergeant
    Join Date
    Jan 2009
    Posts
    27

    Default Re: Is publishing PHP different than html?

    awesome! I will try that. so there needs to be a space before and after echo or is it more important that the space needs to be after the PHP?

    Thank you, so much!

    IT WORKED!

  11. #11
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: Is publishing PHP different than html?

    There has to be a space after <?php, the spacing between echo and $tracking is for readability and following programming conventions, but isn't required.

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49