![]() |
can someone help me with this small piece of code?
I believe its perl.
Code:
if (file_exists($myfile)) { using PHP? |
Looks good to me.
|
Well.... are you saying will this work in my vbulletin templates?
because I added it in and it litterally printed the code on my screen, I don't know how come it does that. so I was assuming this is perl and not php, I'm trying to get the equivalent of this code in php. Okay I tried some more and discovered that... since I use a variable used through my style php include start I would have to somehow get that code to work with the $myfile variable or something can someone help me figure this out? I basically want to display a custom message if the php include file is not present in a vBulletin page. Heres my attempt in my phpinclude start: Code:
if ( file_exists("http://www.mysite.com/index.txt") ) Got it! Code:
$includefile="http://www.mysite.com/index.txt"; Works nicely :) |
All times are GMT. The time now is 10:46 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|