tarun
-
Posts
321 -
Joined
-
Last visited
Never
Posts posted by tarun
-
-
Im looking to create an onsite messaging system for users to private message each other - BUT using flatfile or php files to store data as i have limited mysql resoures
i was wondering if anyone had any websites to visit/advice/codes as it would be GREATLY appreciated
thanks -
it is in english
REMEMBER IM ONLY 12 YRz OLD
it meanz
has anyone got any php code or a website to look at or any advice -
i want to make a internal(onsite) messaging system so users can pm each other
all user data is stored in a directory called "accounts" and the userz data is in a file like http://www.example.com/accounts/tarun.php
and the file looks sumthin like dis
[code]
<?php
$username='tarun';
$password='testpass';
$age='12';
$profile='';
?>
[/code]
and mayb PMs cud b stored as $pm1 $pm2 etc in the users data file
the users data iz accessed like dis
eg Edit Profile Page
[code]
<?php
include(accounts/$un.php);
echo'<form action="editprofile.php"><textarea>$profile</textarea><input type=submit value=Change Profile></form>';
?>
[/code]
any1 gt any bitz ov code or a website 2 lk@ or any advice 2 say
thnx ppl
appreicate hlp -
y not try str_replace
example
[code]
<?php
$BBCode = array(
# Bold
'[b]' => '<B>',
'[/b]' => '</B>',
# Italic
'[i]' => '<I>',
'[/i]' => '</I>',
# Underline
'[u]' => '<U>',
'[/u]' => '</U>',
# Image
'[img]' => '<IMG SRC="',
'[/img]' => '">',
# Link
'[url=' => '<A HREF="',
']' => '">',
'[/url]' => '</A>',
# smilies
':)' => '<img src="/images/smilie.gif" />',
':(' => '<img src="/images/sad.gif" />'
# note the missing comma after the last line above
);
?>
<?php
function Convert_BBCode( $t )
{
$search = array_keys( $GLOBALS['BBCodes'] );
$t = str_replace( $search, $GLOBALS['BBCode'], $t );
return $t;
}
?>
<?php
echo .Convert_BBCodes( $text ).;
?>
[/code] -
i was wondering how to make a php bbcode thing using reg_replace or str_replace or wateva
and mayb a swear wrd filter
thnx ppl -
thnx it works now
-
when i use this code
[code]<?php
if (strstr($file, '.jpg')){
echo ('<img src="$file">');
}
else {
echo ('Unknown File Type');
}
?>[/code]
it literrily outputs <img src="$file">
lk here to see : http://filehost.awardspace.com/test.php?file=http://www.phpfreaks.com/images/logo_main.jpg
what wrong wid it???? -
1st Page
<form name="text" action="send.php" method="post">
<input type="text" name="1">
</form>
2nd Page (PHP)
<form name="text" action="send.php" method="post">
<input type="text" name="1" value="<?php echo('$1') ?>">
</form> -
because b4 u click the button there is no menu and after u click the button ther is a menu displaying "Home, Shop, About, Contact, Join, Links" maby u cud try for the TD tag the valign middle eg <TD VALIGN="Middle">
-
I want to make an interactive game kinda like RuneScape (found at www.runscape.com) but in flash and i was wondering how 2 use php with it and use variables like $example in flash
thnx ppl
appreciate it -
thnx
-
how do ya get the domain when using the include thing without writng out the whole thing
example
include("$domain/footer.php");
or if u have any other way not using $domian plz hlp me
thnx ppl -
thnx m8
-
Hi Guys
I want to make a thing which when the variable $file is a gif filetype it echos <img src="$file"> and when it is a mp3 <embed src="$file">(or wateva the embeded tag is 4 mp3)
thnx ppl
i really appreciate it -
Hi Guys
I want to make a thing which when the variable $file is a gif filetype it echos <img src="$file"> and when it is a mp3 <embed src="$file">(or wateva the embeded tag is 4 mp3)
thnx ppl
i really appreciate it -
BUMP
PLZ HLP ME -
plz help
-
im a bit stuck with mime_content_type
i wanna make sumthing that instead of outputting image/gif or wateva it cums up wid <img src="example.gif">
this is wat i got so far but its wrong
<?php
if (mime_content_type('example.gif') == "image/gif"
echo ("<img src="example.gif">");{
}
?>
SUM HLP please
thnx ppl
Wich HTML code I need to enable
in HTML Help
Posted