The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
Help with Insert PHP file hack
I'm using this hack: Insert HTML or (pre-processed!) PHP file above specific forum. Installed it in 3.0.7, and it worked fine in 3.5.4. Then I moved to a new server, which apparently is configured differently.
Don't know if this is germain to the problem I'm asking about, but just in case... When going into an affected forum, I got these errors on the new server:Now the problem I'm asking about: Most of the import files are straight html display and they work fine. But for one forum I input a php file that displays a calculated future date as part of the displayed text. When I run the php file by going to it directly in the browser, it displays properly, but when it is imported via file_get_contents() the php is not interpreted at the server, but is passed thru to the downloaded html code. What the browser then does with it varies with the browser used (MSIE really messed up the page, Firefox just ignored the php). Here's the imported page code: PHP Code:
Apache v1.3.33 (cgi) PHP 4.4.2 [Adding to this saga in case it helps somebody else] My host (DreamHost) has the PHP option allow_url_fopen disabled, thus preventing accessing the file via http (above). One of their suggested workarounds is as I tried above, accessing the file via get_file_contents directly, rather than via http. Where the RESULTS from the imported page are desired, they suggest using their installed cURL library in place of get_file_contents(). The following code is now working for me: PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|