The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Fopen Alternative
My fopen is currently disabled.
Would there be an alternative to it? here's the script snippet Quote:
|
#2
|
|||
|
|||
Hmm...how is it disabled, do you get that "check write permissions" message or some other message?
I don't know of an alternative (although that doesn't mean there isn't one). There's file_put_contents(), but the docs say that's equivalent to using fopen(). |
#3
|
||||
|
||||
Yes I do
Quote:
and when I look in my php info It's turned off locally and master. (the host had asked me and I had agreed) i did read there is an alternative (such as curl) but I can't seem to understand how to change it? i've tries : file_put_contents() and it doesn't work either... |
#4
|
|||
|
|||
Well I know you can disable certain protocols to be used with fopen(), like the ability to access file via http. But I don't know that there's any way to completely disable file access, and that error message kind of looks like a directory permission problem.
The error message says fopen(/feed.xml), if it's really trying to create a file at the server root then you probably *don't* have write permission. |
#5
|
||||
|
||||
Well I ran out of idea....
It is trying to open /feed.xml which is in /gallery I did chmod it it 777 666 to see neither works, gives me the same error. I tried hard coding the link...http.... and such nothing's working and the original author |
#6
|
|||
|
|||
If the file name is "/feed.xml" that won't be in the gallery subdirectory. Is there a config file or settings or something? Maybe it's missing the path to the gallery directory.
|
#7
|
||||
|
||||
No configs however it shows this
Quote:
and what i'm trying to run is http://www.dancehallareaz.com/gallery/rss.php some place in the scripts i see news/ I've tried that Tried root ./ any other suggestion? |
#8
|
|||
|
|||
That does look like the problem is with the gallery path. I don't know where that's supposed to be set, you may have to go back and look at the mod instructions and/or code to figure it out.
BTW, there are two kinds of "path" - the one that you use to access files via your web server, and the one that the OS uses. Usually the web server "root" (/) is a subdirectory of the OS file system. So if a php program wants to open a file on the server you probably need the OS path and not the one that starts with www.dancehallareaz.com (if your gallery directory is under the vb forum directory you might be able to use "./gallery" as the gallery path). |
Благодарность от: | ||
MissKalunji |
#9
|
||||
|
||||
Bingo!
He didn't mention there was an edit to do in rss.php I search in each file and found there was an empty one : Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|