|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
php include
im having some trouble with a php include script. I have a page which redirects and i want it to open in the main section, however i get errors and i cannot get the other page to display...sort of like opening from a menu then having a link and when u click on the link to have it open in that place instead of in a new browser...
php include script PHP Code:
any suggestions on how i can make any link open in the main part i want? thx |
|
#2
|
|||
|
|||
|
What is the error message?
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
|
#3
|
|||
|
|||
|
the error is something similar to this ...the file i want included is from a different directory.... i just wanted to basically login and then go to the page i specify
Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/bruski.trixgaming.com/httpdocs/index.php on line 81 Warning: Failed opening 'Registration.php' for inclusion (include_path='.:/usr/share/pear') in /home/httpd/vhosts/bruski.trixgaming.com/httpdocs/index.php on line 81 |
|
#4
|
|||
|
|||
|
Are your included files in the same directory as the script?
What you can do is in your php.ini comment out: open_basedir or if your scripts will always be in the same directory as the includes set it to . |
|
#5
|
|||
|
|||
|
the script is in another directory...anyway to get around this...or a better way to do the include, basically the problem comes from the login... i press login and i want the member page to open in the main section...
|
|
#6
|
|||
|
|||
|
1. In your php.ini comment out: open_basedir
2. In your php.ini add the path to the include files to your include_path |
|
#7
|
|||
|
|||
|
i have no control over the php.ini option anyway to bypass it
|
|
#8
|
|||
|
|||
|
Set the options in your php.ini using the php_value settings.
For reference: http://us3.php.net/configuration.changes |
|
#9
|
|||
|
|||
|
thx ill give it a try
|
|
#10
|
|||
|
|||
|
so something like this?
php_value include_path ".:/home/httpd/vhosts/bruski.trixgaming.com/httpdocs/" |
|
#11
|
|||
|
|||
|
how about this
PHP Code:
or PHP Code:
|
|
#12
|
|||
|
|||
|
You had it pretty much correct the first time.
I am not sure, but I don't think you can set open_basedir at runtime using ini_set. You will have to use php_value |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > php include |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|