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"); ?>
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.
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.
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.
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.
http://home.westman.wave.ca/~edwardsr/monitor.php I just get a blank page.....thanks again for taking a look
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.
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:
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
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:
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):
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.
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
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.