1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PHP page will not load

Discussion in 'PHP' started by Royston, Aug 6, 2009.

  1. #1
    I am trying to enter this on a page on my website. awhen I upload to my site this page will not load. Any help please.

    <?
    include($_SERVER['DOCUMENT_ROOT'] . "/netChimes_send.php");
    sendChime("XXXXXXXX");
    ?>
     

    Attached Files:

    Royston, Aug 6, 2009 IP
  2. Sky AK47

    Sky AK47 Member

    Messages:
    298
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    45
    #2
    It has nothing to do with this page, if you could provide a link to the script or show us the script will be highly appreciated as we can not see anything.
     
    Sky AK47, Aug 6, 2009 IP
  3. Leron

    Leron Active Member

    Messages:
    38
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    53
    #3
    in your "netChimes_send.php" file you need to do some editing.
    Change the following:
    from:
    
    include($_SERVER['DOCUMENT_ROOT'] . "/netChimes_settings.php");
    
    PHP:
    To:
    
    //include($_SERVER['DOCUMENT_ROOT'] . "/netChimes_settings.php");
    
    PHP:
    It seems that include file will cause a 404 Not found error. Check out the contents.
    Hope this helps. :D
     
    Leron, Aug 6, 2009 IP
  4. Leron

    Leron Active Member

    Messages:
    38
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    53
    #4
    Actually just edit your netChimes_passwords.php and netChimes_connections.php file that may be a better option. The 404 comes from those two file exclusively, which are linked from the netChimes_settings.php -> netChimes_send.php files.
     
    Leron, Aug 6, 2009 IP
  5. Royston

    Royston Guest

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thenk you fror your help but page still does not load
     
    Royston, Aug 6, 2009 IP
  6. Leron

    Leron Active Member

    Messages:
    38
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    53
    #6
    Any errors? Or is it just blank?

    What page are you trying to load?

    Post the code here so we can take a look at it.
     
    Leron, Aug 6, 2009 IP
  7. Royston

    Royston Guest

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    http://home.westman.wave.ca/~edwardsr/monitor.php


    I just get a blank page.....thanks again for taking a look
     
    Royston, Aug 6, 2009 IP
  8. Royston

    Royston Guest

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    the code View attachment code.txt
     
    Royston, Aug 6, 2009 IP
  9. Leron

    Leron Active Member

    Messages:
    38
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    53
    #9
    add this to the very to of your code in monitor.php:
    
    error_reporting(E_ALL);
    
    PHP:
    Then let me know if any errors show up.
     
    Leron, Aug 6, 2009 IP
  10. Leron

    Leron Active Member

    Messages:
    38
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    53
    #10
    Didn't see that you posted the file:
    Its not reaching your path, which is "~edwardsr".

    Within monitop.php. Change this:
    
    include($_SERVER['DOCUMENT_ROOT'] . "/netChimes_send.php");
    sendChime("monitor");
    
    PHP:
    To this:
    
    $abpath=$_SERVER['DOCUMENT_ROOT'].strtr($_SERVER['PHP_SELF'],array(basename($_SERVER['PHP_SELF'])=>""));
    	include_once $abpath . "netChimes_send.php";
    
    PHP:
     
    Leron, Aug 6, 2009 IP
  11. Royston

    Royston Guest

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    all I see then is a blank page with error_reporting(E_ALL);
    at the top
     
    Royston, Aug 6, 2009 IP
  12. Royston

    Royston Guest

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Ok now my page does open but this should show a connected
    icon on my system tray but it does not.Please see the code you sent above I have added the ID I need,is this in the correct place
     
    Royston, Aug 6, 2009 IP
  13. Leron

    Leron Active Member

    Messages:
    38
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    53
    #13
    Sorry about that. It should be like this:
    
    $abpath=$_SERVER['DOCUMENT_ROOT'].strtr($_SERVER['PHP_SELF'],array(basename($_SERVER['PHP_SELF'])=>""));
    include_once $abpath . "netChimes_send.php";
    sendChime("monitor");
    
    PHP:
     
    Leron, Aug 8, 2009 IP
  14. Royston

    Royston Guest

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Thanks again for taking a look but now page does not load at all
     
    Royston, Aug 8, 2009 IP
  15. Royston

    Royston Guest

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Now when I look in "view page source" the page is blank .So its not loading
     
    Royston, Aug 8, 2009 IP
  16. HivelocityDD

    HivelocityDD Peon

    Messages:
    179
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #16
    As a test you can do this.

    Using your control panel or shell find out the absolute real path of your file "netChimes_send.php"

    It should be some thing like "/home/yourname/public_html/file_path/"

    And try this

    
    
    $abpath= "/home/yourname/public_html/file_path/";
    require_once $abpath . "netChimes_send.php";
    sendChime("monitor");
    
    
    Code (markup):
     
    HivelocityDD, Aug 8, 2009 IP
  17. Royston

    Royston Guest

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Thank you Hivelosity DD but still the page does not load
     
    Royston, Aug 9, 2009 IP
  18. abmathur

    abmathur Member

    Messages:
    211
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    30
    #18
    Ok try in order.

    #1:
    Open all your files one by one and change <? to <?php.

    #2: (If the above works forget this one)
    Download file from this posts attachment and see if they help.
     

    Attached Files:

    • nC.zip
      File size:
      1.8 KB
      Views:
      58
    abmathur, Aug 9, 2009 IP
  19. Royston

    Royston Guest

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Changed all files to <?php this did not change the page still does not load

    The page to load has this php
    <?php
    include($_SERVER['DOCUMENT_ROOT'] . "/netChimes_send.php");
    sendChime("XXXXXXXX");
    ?>
    Does this look ok to you?. I did upload all the files from the zip file. Thank you so much for trying
     
    Royston, Aug 9, 2009 IP
  20. abmathur

    abmathur Member

    Messages:
    211
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    30
    #20
    Oh well first make sure you are getting to the function before checking other things so download the attached file and try to load the page and see if says anything.
     

    Attached Files:

    abmathur, Aug 9, 2009 IP