26

(2 replies, posted in Programming)

Can anyone suggest good PHp or Delphi ebooks?

27

(12 replies, posted in Programming)

oh yes i forgot about that but javscript and html can so if I hex that do you think that it will work?

28

(12 replies, posted in Programming)

i donno i never tried it thats not a post i made... anyways im not talking about the email thing thats not what i want it was just a example of what i mean by how if hex coding my html/php/javascript.... will it make code more secure from being ripped? or is it even possible to hex code all of it

29

(12 replies, posted in Programming)

Connorhd wrote:

www.php.net top right corner has every function, examples discussion its amazing wink

Ya lol i found that right after i made the post.... I thought of idea to protect code but im not sure if it would work... heres what i was thinking could I convert everything to hex so when they click view source it would only be hex and they couldnt steal your code? i thought of this when i saw a post at php.net heres the post...

In an attempt to dodge spam bots I've seen people (including myself) hex encode their email addresses in "mailto" tags. This is the small chunk of code I wrote to automate the process: 

<?php 
function hex_encode ($email_address)    { 
       $encoded = bin2hex("$email_address"); 
       $encoded = chunk_split($encoded, 2, '%'); 
       $encoded = '%' . substr($encoded, 0, strlen($encoded) - 1); 
       return $encoded;    
} 
?> 

so for example: 
<a href="mailto:<?=hex_encode("pedram@redhive.com")?>">email me</a> 

would produce the following address: 
%70%65%64%72%61%6d%40%72%65%64%68%69%76%65%2e%63%6f%6d 

-pedram 

30

(12 replies, posted in Programming)

vnpenguin wrote:
newera70 wrote:

I am familiar with java and html so some things are simular so anyways im looking through index.php of punbb v1.1.5 and saw some code and i was wondering what they mean...

1. "\n"
2. "\n\t\t\t\t\t\t"

Hey, just for HTML output formatting. So you could remove them safely smile

I wasn't asking if it was safe to remove them I was just asking because im new to php and I am trying to make a website layout and a mod for my forum and i wanted to know what they did cuz there the only things i wasnt familiar with.... also is there anyone that knows a site with a list of php commands and a description of what they do? thank you Connorhd and Paul for taking the time to explain this....

31

(12 replies, posted in Programming)

I am familiar with java and html so some things are simular so anyways im looking through index.php of punbb v1.1.5 and saw some code and i was wondering what they mean...

1. "\n"
2. "\n\t\t\t\t\t\t"
3. pun_htmlspecialchars

i didnt install it but it seams like a good idea i was reading a post in your forum about it

33

(7 replies, posted in Programming)

Frank H wrote:

probably because it took you 7 minutes to edit it ... long enough for someone to start a reply ... wink

Not quite lol

34

(7 replies, posted in Programming)

How did u respond to that when i had already changed it saying i got the answer?

35

(7 replies, posted in Programming)

EDIT:nvm answered my own question

36

(7 replies, posted in Programming)

Im working on a punbb mod and im editing the Index.php since it would fit perfectly on what im making so anyways i came across some code and want to know if it is important.... like do i need to keep it....

// Show what the current user can and cannot do
if ($cur_user['status'] > PUN_USER)
    $perms = $lang_index['You'].' <b>'.$lang_index['can'].'</b> '.$lang_index['post replies'].'<br>'.$lang_index['You'].' <b>'.$lang_index['can'].'</b> '.$lang_index['post topics'].'<br>'.$lang_index['You'].' <b>'.$lang_index['can'].'</b> '.$lang_index['edit posts'].'<br>'.$lang_index['You'].' <b>'.$lang_index['can'].'</b> '.$lang_index['delete posts'].'<br>'.$lang_index['You'].' <b>'.$lang_index['can'].'</b> '.$lang_index['delete topics']."\n";
else if (!$cookie['is_guest'])
{
    $perms = $lang_index['You'].' <b>'. (($pun_config['p_users_post'] == '1') ? $lang_index['can'] : $lang_index['cannot']) .'</b> '.$lang_index['post replies'].'<br>';
    $perms .= "\n\t\t\t\t\t\t".$lang_index['You'].' <b>'. (($pun_config['p_users_post_topic'] == '1') ? $lang_index['can'] : $lang_index['cannot']) .'</b> '.$lang_index['post topics'].'<br>';
    $perms .= "\n\t\t\t\t\t\t".$lang_index['You'].' <b>'. (($pun_config['p_users_edit_post'] == '1') ? $lang_index['can'] : $lang_index['cannot']) .'</b> '.$lang_index['edit posts'].'<br>';
    $perms .= "\n\t\t\t\t\t\t".$lang_index['You'].' <b>'. (($pun_config['p_users_del_post'] == '1') ? $lang_index['can'] : $lang_index['cannot']) .'</b> '.$lang_index['delete posts'].'<br>';
    $perms .= "\n\t\t\t\t\t\t".$lang_index['You'].' <b>'. (($pun_config['p_users_del_topic'] == '1') ? $lang_index['can'] : $lang_index['cannot']) .'</b> '.$lang_index['delete topics'].'<br>'."\n";
}
else
{
    $perms = $lang_index['You'].' <b>'. (($pun_config['p_guests_post'] == '1') ? $lang_index['can'] : posts'].'<br>'.$lang_index['You'].' <b>'.$lang_index['cannot'].'</b> '.$lang_index['delete pos$lang_index['cannot']) .'</b> '.$lang_index['post replies'].'<br>';
    $perms .= "\n\t\t\t\t\t\t".$lang_index['You'].' <b>'. (($pun_config['p_guests_post_topic'] == '1') ? $lang_index['can'] : $lang_index['cannot']) .'</b> '.$lang_index['post topics'].'<br>';
    $perms .= "\n\t\t\t\t\t\t".$lang_index['You'].' <b>'.$lang_index['cannot'].'</b> '.$lang_index['edit ts'].'<br>'.$lang_index['You'].' <b>'.$lang_index['cannot'].'</b> '.$lang_index['delete topics']."\n";
}

37

(99 replies, posted in Programming)

has anyone tried editpad pro?

you could always password protect the page

39

(99 replies, posted in Programming)

I donno if this community supports wares but i have a d/l link for Dreamweaver Mx 2004 and some other useful webmaster programs

40

(8 replies, posted in Programming)

damn zaher your sites still down....have u contacted you host?

Benny wrote:

Hi,
I start learn PHP from a book and i am ok.. i asking about book's on the internet or site , it's will be ok.
and somthing also:
from where you Know to Programming in PHP?
Sites
Book's?
Rickard you?

If i were you I would stick with focusing on one language for now till you get master at it and then go onto a different language...

42

(8 replies, posted in Programming)

oh that happend 2 me twice last week it was down for a day and about 4 months ago it was down 2 weeks

43

(8 replies, posted in Programming)

zaher what happend to your site? why is it down?

44

(6 replies, posted in Programming)

I was just experimenting with PHP... so anyways what i was trying to do is make a PHP loader like it echo's 1% on the screen then i wanted to find a way to erase the 1% then it echo's in 2% and it keeps doing it up to a hundred but anyways it didnt work but if anyone wants the code i have here it is

<html>
<body>
<table align="center" width="200" border="1" bordercolor="#55110E" cellspacing="0" cellpadding="0" valign="bottom">
<tr><td bgcolor="#9D2012"><font face="verdana" size="2">
<center>
<?php 
$i=0;
$p="%";
while($i<=100)
{
echo $i . "" . $p;
$i++;
}
?>
</center>
</font></td></tr></table>
</body>
</html> 

45

(6 replies, posted in Programming)

ok i have this code i was trying to work on

<?php 
$i=0;
$p="%";
while($i<=100)
{
echo $i . "" . $p;
$i++;
}
?>

is there a way i can get it to clear the # like right before $i++ so it looks like its counting up so as soon as 1 changes is 2?

46

(21 replies, posted in PunBB 1.2 show off)

Gary13579 wrote:

i hate email verifaction!!!!!

edit: this looks like invision :x

It is invision now the main site was punbb but it kept messing up his sql most likely cause way to many mods... so he now  the sites his ip and all he has is invision

47

(21 replies, posted in PunBB 1.2 show off)

notloogedinAce-inc wrote:

i know reins dud i play runescape and yes i know reines is the creator of st im r4nd0m from rei-net and i have made Acebot (not many no about had autofighter and some other stuff) i know who reines is and i play rs ...

I had Acebot i hated it.....

48

(6 replies, posted in PunBB 1.2 discussion)

Theres no mod for this?

49

(6 replies, posted in PunBB 1.2 discussion)

Is there a way to set a sticky for selected forums?

Example: the same sticky for like 3 forums without having to post it 3 times

50

(21 replies, posted in PunBB 1.2 show off)

Ace-inc if you didnt know reines is the maker of st so of course he has it....... i also play runescape and im currently working on my Ocr