Search found 38 matches

by Mini-Me
Sat Mar 12, 2005 6:54 pm
Forum: PHP - Code
Topic: preg_replace() isn't working like I think it should ^^;
Replies: 5
Views: 989

THAT's weird. I've tried this over and over again with different stuff and always get the html. Just double-checked it again too. I can't see anything else in my code that would affect it... These are the only other lines that have to do with it: $content = file_get_contents('wiki/' . $_REQUEST['pg'...
by Mini-Me
Sat Mar 12, 2005 5:35 pm
Forum: PHP - Code
Topic: preg_replace() isn't working like I think it should ^^;
Replies: 5
Views: 989

preg_replace() isn't working like I think it should ^^;

:x this is weird. I'm writing (well, actually have written) a wiki. I'm basically using bbcode to format the stuff. Trouble is, I can't see why the list part isn't working... Here's the text file: <ul> <li>test</li> </ul> <br />&a...
by Mini-Me
Thu Mar 03, 2005 11:08 am
Forum: PHP - Code
Topic: htmlMimeMail -> ends up as junk mail
Replies: 4
Views: 1202

gmail source: X-Gmail-Received: e996081c163cef00a19071651db162d1a8d0ea8c Delivered-To: removed@gmail.com Received: by 10.38.74.4 with SMTP id w4cs9428rna; Thu, 3 Mar 2005 09:04:51 -0800 (PST) Received: by 10.54.69.20 with SMTP id r20mr34845wra; Thu, 03 Mar 2005 09:04:46 -0800 (PST) Return-Path: <apa...
by Mini-Me
Wed Mar 02, 2005 9:50 pm
Forum: PHP - Code
Topic: htmlMimeMail -> ends up as junk mail
Replies: 4
Views: 1202

well, no one ever figured that problem out. :/ Let's see... Here's the source output: X-Message-Status: n X-SID-PRA: yours truly <yours_truly@somewhere.net> X-SID-Result: TempError X-Message-Info: 6sSXyD95QpXC5+5paPKZ00n89eMLbRdqG87BAScYC4s= Received: from localhost.localdomain (&#1111;69.29.143...
by Mini-Me
Wed Mar 02, 2005 9:09 pm
Forum: PHP - Code
Topic: htmlMimeMail -> ends up as junk mail
Replies: 4
Views: 1202

htmlMimeMail -> ends up as junk mail

I was just using the plain mail() function because I don't really have need for anything complicated, but it kept ending up as junk mail. I read that a lot of times it will be read as junk if it doesn't have a message-id. So now I'm using htmlMimeMail. But it still ends up as junk mail! :( Am I just...
by Mini-Me
Tue Dec 07, 2004 10:42 pm
Forum: PHP - Code
Topic: List files in folder?
Replies: 11
Views: 1753

>.> oh. Well, I guess that means I'm doing something wrong. ^^; I probably just put the path in wrong... ^^;
Here's what I have:

Code: Select all

if (!preg_match("/C:\/BeZkript_me\/webfiles\/files/", getcwd()))
{
    @chdir('C:\\BeZkript_me\\webfiles\\files');
    $_SESSION['cwd'] = getcwd();
}
by Mini-Me
Mon Dec 06, 2004 10:11 pm
Forum: PHP - Code
Topic: List files in folder?
Replies: 11
Views: 1753

alrighty! thanks. Now how can I make it work for that folder AND all subfolders? btw, got it to change the windows address to linux style w/ the main dir as home ^_^ : $location = str_replace('C:\\BeZkript_me\\webfiles', '', $_SESSION['cwd']); $location = str_replace('\\files', '/', $location); echo...
by Mini-Me
Mon Dec 06, 2004 9:38 am
Forum: PHP - Code
Topic: List files in folder?
Replies: 11
Views: 1753

well, I've played around with it, but for some reason it keeps wanting to load something or whatever sometimes.... like it kinda freezes. What did I do wrong in the parts I changed?: if (isset($_GET['action'])) { switch($_GET['action']) { case 'cd': if (substr_count($_GET['path'], "..") ==...
by Mini-Me
Mon Dec 06, 2004 8:49 am
Forum: PHP - Code
Topic: List files in folder?
Replies: 11
Views: 1753

aHAH, THAT's what I want! ^_^ Thanks.

hmm... but is there a way to have it do a web version of that? In other words, I just opened up my entire comp to the net. ^^; I'd rather limit it to the one webfolder and display at the top / for the home dir, rather than C:/blahblah/files/blah
by Mini-Me
Sun Dec 05, 2004 11:07 pm
Forum: PHP - Code
Topic: List files in folder?
Replies: 11
Views: 1753

List files in folder?

Ok, I just got a fileserver started with mIRC... on top of THAT, I just added php support. I am quite happy with myself. ^_^ So anyway, how can I echo all the files in a folder? (with them set inside anchors). Also, I'd like to add an icon next to certain types. (piece of paper next to txt files, et...
by Mini-Me
Fri Nov 12, 2004 3:58 pm
Forum: PHP - Code
Topic: validate. if bad, refresh (how?)
Replies: 11
Views: 2608

alright, I have one last problem. when I use htmlspecialchars() or whatever, it converts the quotes and backslashes into esacpe sequences, which, when printed, still look like escape sequences. Hit preview a couple of times, and this: the cat said "hello." turns into this: the cat said \\\...
by Mini-Me
Fri Nov 12, 2004 3:27 pm
Forum: PHP - Code
Topic: validate. if bad, refresh (how?)
Replies: 11
Views: 2608

doh. something in my mind didn't put together I could simply declare variables. bah. thanks.
by Mini-Me
Fri Nov 12, 2004 12:18 pm
Forum: PHP - Code
Topic: validate. if bad, refresh (how?)
Replies: 11
Views: 2608

eh.. yeah, I don't want to echo $page. I want to decide what to display in the page itself (not the title) based on both $page value, $submit value, and whether or not the text validated. In other words, something like this: <div class="maintitle" align="left"><img src="nav_...
by Mini-Me
Thu Nov 11, 2004 6:44 pm
Forum: PHP - Code
Topic: validate. if bad, refresh (how?)
Replies: 11
Views: 2608

alright, I've got it working like I want with this (not finished): <?php $page = (isset($_REQUEST['page'])) ? $_REQUEST['page'] : ""; $quote = (isset($_REQUEST['quote'])) ? $_REQUEST['quote'] : ""; $submit = (isset($_REQUEST['submit'])) ? $_REQUEST['submit'] : ""; ?> <!...
by Mini-Me
Wed Nov 10, 2004 4:42 pm
Forum: PHP - Code
Topic: validate. if bad, refresh (how?)
Replies: 11
Views: 2608

"so your basically trying to emulate this board right?"
well, basically. But a simpler version. Just a quotes database.
I'll start with the outline and build it up. See if that works like I want.