Closed Thread
Results 1 to 10 of 10

Thread: Php is not running.

  1. #1
    pe_es171 is offline x10Hosting Member pe_es171 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    23

    Php is not running.

    i have come to discover that php is not running on the hosting platform your site awarded me.hw do i go to enable it?pls,help is needed!

  2. #2
    vishal's Avatar
    vishal is offline -::-X10 Guru-::- vishal has a brilliant futurevishal has a brilliant future
    Join Date
    Nov 2009
    Location
    INDIA
    Posts
    5,254

    Re: Php is not running.

    Your site is working perfectly.Also there is no problem with php.
    Regards ~ Vishal
    Giving Reputation (at bottom of my post ) is the best way to encourage the person who helped you on forums.

  3. #3
    pe_es171 is offline x10Hosting Member pe_es171 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    23

    Re: Php is not running.

    in the index.htm,there r some php codes within.bt they r not loading.(syntax like ds- <?php ?> and <? ?>

  4. #4
    stpvoice's Avatar
    stpvoice is offline Community Support Rep stpvoice has a brilliant futurestpvoice has a brilliant futurestpvoice has a brilliant future
    Join Date
    Dec 2008
    Location
    United Kingdom
    Posts
    5,939

    Re: Php is not running.

    Hello,

    You need to troubleshoot your own scripts. php is definitely working, or we'd have a lot more complaints than just yours.

    Thanks.


  5. #5
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,995

    Re: Php is not running.

    I see the problem actually.

    Quote Originally Posted by pe_es171 View Post
    in the index.htm

    index.htm - this is not a php file. This is an htm file. PHP must have a .php file extension, such as index.php.

    This is not actually an error, it's just got the wrong name.
    Last edited by Livewire; 05-31-2011 at 10:22 AM.


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  6. #6
    pe_es171 is offline x10Hosting Member pe_es171 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    23

    Re: Php is not running.

    inside d html file,there r php files within.bt d server is nt executing them.i'll try 2 do sm editing 2mrw.

  7. #7
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,995

    Re: Php is not running.

    I don't think you followed what I said, so I'll try re-explaining it with an example direct from your code.

    In index.htm, line 358:
    Code:
    <? include 'http://www.23cv.com/fbaddress.php' ?>
    Here is the problem. index.htm is not being ran through the PHP processor, because the server thinks it's an htm file. The server doesn't pre-scan the file to see if it has php code in it. It goes SOLELY off of the file extension, which in this case is telling it "I'm not php, so I don't need to be ran through the php processor." As such, that line prints directly to the users browser instead of being executed as php.


    Rename index.htm to index.php, and it will go through the PHP processor and start executing the php code in it. I actually did this for you for testing purposes, but it broke your webpage something awful because of your url-based include statements (see below), so I renamed it back. URL based file inclusion isn't necessary in this case anyways.
    Last edited by Livewire; 06-02-2011 at 07:10 PM.


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  8. #8
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,995

    Re: Php is not running.

    I forgot to mention as well, you'll run into a MAJOR problem with your code. "URL file access" is currently disabled, so any time you do "include http://www.23cv.com/ANYTHING", the code will fail when executed as php. You don't have to put the url however, just do "include fbaddress.php" for instance, or "include this/is/a/subfolder/filename.php".


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

  9. #9
    pe_es171 is offline x10Hosting Member pe_es171 is an unknown quantity at this point
    Join Date
    May 2011
    Posts
    23

    Re: Php is not running.

    thanks very much!I can now understand you.So,i would need to change the extension to .php

  10. #10
    Livewire's Avatar
    Livewire is offline Abuse Compliance Officer Livewire is a glorious beacon of lightLivewire is a glorious beacon of light
    Join Date
    Jun 2005
    Location
    Behind a keyboard.
    Posts
    8,995

    Re: Php is not running.

    Yes, along with fixing some of the broken php code inside that file.

    The good news is once the extension is changed to .php, it will start displaying the errors on-screen so you know what needs fixing.


    TOS breakers will be suspended regardless of race, creed, national origin, hair color, or favorite food. Thanks for your understanding!

Closed Thread

Similar Threads

  1. Running XML as PHP
    By djalam in forum Programming Help
    Replies: 0
    Last Post: 10-17-2010, 02:37 AM
  2. Running python cgi...
    By itsech0 in forum Free Hosting
    Replies: 1
    Last Post: 12-09-2007, 05:56 AM
  3. Running an asp site
    By dnefpooz in forum Free Hosting
    Replies: 7
    Last Post: 12-07-2007, 01:41 PM
  4. Running a bot
    By nol888 in forum Free Hosting
    Replies: 3
    Last Post: 10-09-2007, 10:34 AM
  5. Running EXE
    By swirly in forum Free Hosting
    Replies: 3
    Last Post: 07-23-2006, 10:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers