PHP question
- Started
- Last post
- 26 Responses
- mikotondria30
....................(((*)
^tumbleweed
- i_was0
you cant ,it's an error path, they use document root ,this mean if the path is changed the path dont point anymore to the file,use relative paths and dont use document root for that fucking dioits!
- I'm afraid you forgot to capitalize the start of your sentence. And you were rude again. How hard is it not to be rude to Boobs ?mikotondria3
- i'm sorry , i'm just playing and being a dickheadi_was
- Fine. Hard to tell.
Extra points for that.mikotondria3
- i_was0
ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็ ก็็็็็็็็็็็็็็็็็็็็
- boobs0
So, is anyone able to give me any guidance on how to fix this path issue?
I imagine I'm supposed to change ['DOCUMENT_ROOT'] to something else. But I honestly have no idea what to try to change it to.
- mikotondria30
I would probably:
Go into the includes/mail.inc.php file and put, at the top,
echo $_SERVER['PHP_SELF'];
then just go straight to it, like domain.com/includes/mail.inc.php
and see 'where' it really thinks it is...
If the contact.php is in the root, then just have the require as
require(includes/mail... etc..
If it's simple, you shouldn't need anything like $_SERVER[...
just point the contact script to where the includes/mail.inc.php script is.
Hope that makes some sense..
- vaxorcist0
mikotondria3's right... you want to find out the filepath of your script, then you can start pointing things without errors like this.....
you can write a one-line script in the same folder, call it info.php and make it like:
<?php
phpinfo();
?>you'll see a HUGE amount of stuff.... it's probably a filepath in there, I'd check the $_SERVER['PHP_SELF'] var, and/or a few others like it after scrolling through all the stuff...
you can also find out with this info if your server is weirdly configured..... or running on Windows instead of Linux/Unix.... PHP on Windows can be quirky