Need Help... Please..

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Nik
Forum Contributor
Posts: 138
Joined: Wed Jan 29, 2003 6:02 pm
Location: Thessaloniki, Greece

Post by Nik »

Thanks very much man! I appreciate that!!

p.s. By the way what is your job?
evilcoder
Forum Contributor
Posts: 345
Joined: Tue Dec 17, 2002 5:37 am
Location: Sydney, Australia

Post by evilcoder »

i work as a part time web designer, but i never have to work, i occasionally get work to do and some programming every now and ten, but mainly they pay me to surf the net and play solitaire. :) Dunno why?! but hey, i'm not complaining.
Nik
Forum Contributor
Posts: 138
Joined: Wed Jan 29, 2003 6:02 pm
Location: Thessaloniki, Greece

Post by Nik »

lol !!! Well, actually they hire me today as a part time web designer but i only can do pages like this one: http://www.nikolas.tk I dont know any flash or photosop staff! do i have too? i only like php + mysql! :)
evilcoder
Forum Contributor
Posts: 345
Joined: Tue Dec 17, 2002 5:37 am
Location: Sydney, Australia

Post by evilcoder »

i got hired because i have good ideas regarding program development. I come up with concepts for programs, like authentication gateways and things like that. I pretty much say, here this is a good function to put in, and i'll create a class or a function and they'll say yep yep yep, good good., then let me surf the net for a few more hours.

But i'm currently developmenting my own programming tutorial site. http://www.dnxnet.com

its coming along slowly because i'm making it an OO development. Should be read in a few weeks.
Nik
Forum Contributor
Posts: 138
Joined: Wed Jan 29, 2003 6:02 pm
Location: Thessaloniki, Greece

Post by Nik »

thats cool man!! u lead the team! keep up the good workind idead amd feel free to share with us too!! ;)
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

I'd say that photoshop and freehand - or the equivalent - are essential for web design. You don't want to clutter up a site with unecessary graphics but you DO need a few high-quality ones here and there.

I'll always do some mock-ups in freehand first before laying out the pages in dreamweaver. Then I use the dreamweaver html files as templates for php scripts.

Fireworks or something else you can create animated gifs with is worth getting. Again, you don't want to go overboard but you can do nice SMALL animated gifs which enhance the site, like this: :lol:
evilcoder
Forum Contributor
Posts: 345
Joined: Tue Dec 17, 2002 5:37 am
Location: Sydney, Australia

Post by evilcoder »

I really dislike dreamweaver, i either code with a program called WinSyntax when i'm coding on Windows, or LinuxPad when on mandrake. I dont like the code that dreamweaver spits out, not neat enough for my liking.

But yes, GFX Program knowledge is essential in webdesign, i'm currently trying to get my head around LightWave 7, which is a 3D rendering program.
Nik
Forum Contributor
Posts: 138
Joined: Wed Jan 29, 2003 6:02 pm
Location: Thessaloniki, Greece

Post by Nik »

Well, i dont want to erite html with handcode because its very annoying so i think i must use dreamweaver os something else that u will tell me!

And also i wanna ask what is site mapping and how can i do that?
evilcoder
Forum Contributor
Posts: 345
Joined: Tue Dec 17, 2002 5:37 am
Location: Sydney, Australia

Post by evilcoder »

Site mapping is compiling all the links from your website and displaying them on one page. (Although there are less forms of site mapping and they just place the links at the bottom of their page).

I dont know of any scripts that do it for you, i'd hand write it, but that would get a bit annoying, thats why i don't do them :) Waste of time in my opinion
Nik
Forum Contributor
Posts: 138
Joined: Wed Jan 29, 2003 6:02 pm
Location: Thessaloniki, Greece

Post by Nik »

Evilcoder pls man! help me ou a bit with this i want this js code to be inserted to my index.php so that i can display the texet char by char! can u pls tell me what changes i have to make with this code?

<html>
<head>
<script type="text/javascript">
var textToShow = "Simira ta makaronia einai korona! Thelete na fate kai seis ligo?";
var pos = 0;
var tm;

function init()
{
tm = setInterval("type()", 50);
}

function type()
{
if (textToShow.length != pos)
{
d = document.getElementById("divText");
d.appendChild(document.createTextNode(textToShow.charAt(pos++)));
}
else
clearInterval(tm);
}
</script>
</head>
<body onload="javascript:init();">
<div id="divText" style="border: 5px solid yellow; width: 200px; height: 100px;">
</div>
</body>
</html>

my index.php is this:

<?php
error_reporting(E_ALL); $xronos=date("l dS of F h:i:s A"); $host=gethostbyaddr($_SERVER['REMOTE_ADDR']); $i=0;

if (@mysql_connect('localhost', 'nik', 'macgyver'));
else @mysql_connect('localhost', 'root');
mysql_select_db('db_nik');

if ($host=="komodino.itc.auth.gr") echo "ÂñÝ êáëþò ôïí ×ñÞóôï! ×áßñïìáé ðïõ óå âëÝðù ðÜëé! Óáí ôï óðßôé óïõ!<p>";

$file_data = file("data.txt");
$file_diary = file("diary.txt");
?>

<body bgproperties='fixed' background='pics/anemos.bmp'>
<form action="show.php" method="post">
<center><font size='5' color='LightGreen'>- Ðñïò íÝïí åñùôÞóáíôá ðåñß ðñïóåõ÷Þò -</font></center><br>

<center><table border='1' cellspacing='1' width='90%' id='AutoNumber1' bordercolor='Yellow' style='border-style: solid; border-width: 5' background='pics/brick.jpg'>
<tr>
<td align=center bordercolor='#ffcc00'> <font face='Com' size='4' color='LightBlue'><? while ($i < count($file_data)) echo $file_data[$i++]; ?></font></td>
</tr>
</table>

<p>
<center><font size='4' color='Cyan'>* Áí èÝëåéò íá êÜíåéò êáé óõ ìéá äùñåÜ ðñïò óõíáíèñþðïõò ðïõ Ý÷ïõí ôçí áíÜãêç óïõ, ôþñá ìðïñåßò ìÝóù ôçò óåëßäáò áõôÞò *</font>
<center><font size='4' color='Cyan'>* Ôá ÷ñÞìáôá ðïõ èá óõãêåíôñùèïýí óôïí ëïãáñéáóìü èá äéáôåèïýí ãéá öéëáíèñùðéêïýò óêïðïýò *</font>
<center><font size='4' color='Cyan'>* Alpha Bank: 704-00-2310016553 *</font>
<p>

<center><table border='1' cellspacing='1' width='90%' id='AutoNumber1' bordercolor='Yellow' style='border-style: solid; border-width: 5' background='pics/blue.jpg'>
<tr>
<td align=center bordercolor='#ffcc00'> <font face='Com' size='5' color='Lightgreen'>Ðþò óå ëÝíå?</font></td>
<td align=center bordercolor='#ffcc00'> <input type="text" name="onoma"></td>
</tr>
<tr>
<td align=center bordercolor='#ffcc00'> <font face='Com' size='5' color='Lightgreen'>Ðïéü åßíáé ôï ó÷üëéï óïõ åðß ôïõ èÝìáôïò?</font></td>
<td align=center bordercolor='#ffcc00'> <textarea name="sxolio" rows=4 cols=25 wrap="on"></textarea></td>
</tr>
<tr>
<td align=center bordercolor='#ffcc00'> <font face='Com' size='5' color='Lightgreen'>Ðïéü åßíáé ôï e-mail óïõ?</font></td>
<td align=center bordercolor='#ffcc00'> <input type="text" name="email"></td>
</tr>
<tr>
<td align=center bordercolor='#ffcc00'> <input type="submit" name="show" value="ÅìöÜíéóç"></td>
<td align=center bordercolor='#ffcc00'> <input type="submit" name="send" value="ÁðïóôïëÞ"></td>
</tr>
</table>
</form>

<br><center><font size='4' color='White'><? echo $file_diary[rand(0, count($file_diary)-1)]; ?></font></center><br><br>
<center><font size='4' color='Orange'><? echo $xronos; ?></font></center>
<center><font size='4' color='Pink'><? echo $host; ?></font></center>

<?
mysql_query("UPDATE visitor SET counter=counter+1");
$sql = mysql_query("SELECT counter FROM visitor");
$counter = mysql_fetch_array($sql);

echo "<center><font size='5' color='Yellow'>$counter[0]</font>";
echo "<center><a href='progs.php'><img src='pics/email.gif'></a>";

mail ("nik0s@mycosmos.gr", "Åðßóêåøç áðü $host! Óýíïëï: $counter[0]", "", "From: spy@web.gr");
?>

Thanks man! really thanks!
Post Reply