Search found 34 matches

by nick_k
Sat Mar 29, 2003 8:36 am
Forum: PHP coding => General
Topic: File authentication
Replies: 2
Views: 1184

File authentication

Hi, I'm a script that authenticates users against a file. Whe you register a user, the script adds the "username:password\n" to the file (note. password is md5 encrpted). This is an extract from the password file: john:527bd5b5d689e2c32ae974c6229ff785 nick:e10adc3949ba59abbe56e057f20f883e For some r...
by nick_k
Mon Mar 17, 2003 6:14 am
Forum: PHP coding => General
Topic: file based authentication
Replies: 2
Views: 896

Thanks Skeletor! I apreciate you replying
by nick_k
Sat Mar 15, 2003 10:16 am
Forum: PHP coding => General
Topic: file based authentication
Replies: 2
Views: 896

file based authentication

hi, i found this code in a book, heres part of it: if(!$fh = fopen($password_file, "r")) { die("<P>Could Not Open Password File"); } $match = 0; $password = md5($password); while(!feof($fh)) { $line = fgets($fh, 4...
by nick_k
Wed Mar 12, 2003 6:18 am
Forum: PHP coding => Images
Topic: imagecopyresampled and imagecopyresized
Replies: 6
Views: 3181

thanks for your help Xerpher, but i found a much simpler way to make preview of images (and a pretty obvious way actually), i just did this <img src = whatever.jpg height = 120 width = 120>
by nick_k
Sun Mar 09, 2003 1:07 pm
Forum: PHP coding => Images
Topic: imagecopyresampled and imagecopyresized
Replies: 6
Views: 3181

this is my own personal server, so how would i enable GD then?
by nick_k
Sun Mar 09, 2003 7:16 am
Forum: PHP coding => Images
Topic: imagecopyresampled and imagecopyresized
Replies: 6
Views: 3181

imagecopyresampled and imagecopyresized

i have a script that needs imagecopyresampled, but when i use it, i get and error that sais that its a call it an undefined function. Next, i tried imagecopyresized, but it sais the same thing. I have PHP Version 4.3.1, and Apache/1.3.27. Any ideas?
by nick_k
Sun Mar 09, 2003 6:00 am
Forum: PHP coding => General
Topic: Uploading of files
Replies: 4
Views: 1534

<bump>
by nick_k
Sat Mar 08, 2003 12:30 pm
Forum: PHP coding => General
Topic: Newbie- Server Check
Replies: 1
Views: 1061

<html> <head> <title></title> </head> <body> <?php $server = "hostlive.co.uk"; $port = 80; $fp = fsockopen ($server, $port); if(!$fp) { $msg = "your message here"; mail("your email here", "subject here", $msg); } //end if ?> ...
by nick_k
Sat Mar 08, 2003 7:23 am
Forum: PHP coding => General
Topic: Uploading of files
Replies: 4
Views: 1534

Thanks azteck! If you could send it to: ojade3@hotmail.com ,i would be very happy
by nick_k
Sat Mar 08, 2003 4:19 am
Forum: PHP coding => General
Topic: Uploading of files
Replies: 4
Views: 1534

Uploading of files

Im having problems with a script that uploads files. What i need is a form that accepts a file, then when the form is submitted, the script takes the file, renames it, and copies it to a specific location. If anyone could make a script like this, or could help me in any way, it would be greatly appr...
by nick_k
Tue Feb 25, 2003 4:56 am
Forum: PHP coding => General
Topic: problems with simple script
Replies: 13
Views: 3838

ok heres my whole code, its really starting to piss me off now <?php session_start(); ?> <html> <head> <title>File upload</title> </head> <body> <?php if($_SESSION['passwd'] != $_SESSION['r_pass']) { print("<b>Incorrect password</b>"); } //end if else ...
by nick_k
Tue Feb 25, 2003 4:22 am
Forum: PHP coding => General
Topic: problems with simple script
Replies: 13
Views: 3838

hmm if i do that i get this error:
"Parse error: parse error, unexpected $end in c:\program files\apache group\apache\htdocs\naquiken website\upload.php on line 29"
by nick_k
Tue Feb 25, 2003 3:58 am
Forum: PHP coding => General
Topic: problems with simple script
Replies: 13
Views: 3838

uhmmm that doesnt really help me....
by nick_k
Tue Feb 25, 2003 3:21 am
Forum: PHP coding => General
Topic: problems with simple script
Replies: 13
Views: 3838

hey, thanks for replying, but i dont really know what the ['name'] part is?
by nick_k
Tue Feb 25, 2003 2:25 am
Forum: PHP coding => General
Topic: problems with simple script
Replies: 13
Views: 3838

problems with simple script

hi, i have this script, its not finished yet, but even this small piece doesnt work: <?php session_start(); ?> <html> <head> <title>File upload</title> </head> <body> <?php if($_SESSION['passwd'] != $_SESSION['r_pass']) { print("<b>Incorrect password</b>"); ...
by nick_k
Mon Feb 24, 2003 8:00 am
Forum: PHP coding => General
Topic: session problems
Replies: 1
Views: 978

session problems

I have this script that uses sessions, and for some reasno it doesnt work. If I session_start(); session_register("passwd"); session_register("r_pass"); when i click on login, the script does nothing, as if global variables were off, but if i remove those 3 lines, the script works perfectly (and i n...
by nick_k
Sun Feb 23, 2003 12:44 am
Forum: PHP coding => Images
Topic: Preview images..
Replies: 3
Views: 2149

Thanks Pejone!
Sorry about posting this in the wrong forum
by nick_k
Sat Feb 22, 2003 12:27 pm
Forum: PHP coding => Images
Topic: Preview images..
Replies: 3
Views: 2149

Preview images..

Hi, Im making a script for a friend who makes and sells website templates. What the script is supposed to do it this: the admin logs in, then if he wants to add a new template, he enters some info (like for example: price, name, id, etc.), and he uploads a pic. This is the easy part, i am going to m...
by nick_k
Fri Jan 03, 2003 5:03 am
Forum: PHP coding => General
Topic: Smilies in my guestbook
Replies: 2
Views: 1296

<bump>
by nick_k
Thu Jan 02, 2003 4:40 am
Forum: PHP coding => General
Topic: Smilies in my guestbook
Replies: 2
Views: 1296

Smilies in my guestbook

ok, what I want to do in my guestbook, is use smilies, so for example the visitor could type: and a smilie image would apear in its place. What I do, is save all the input ina file called notes.dat, and then just: include("notes.dat");
Thanks, Nick
by nick_k
Thu Jan 02, 2003 4:38 am
Forum: JavaScript
Topic: Smilies in guestbook
Replies: 3
Views: 4191

ok, somehow i posted in the wrong forum, i was meant to post in the PHP general forum, but it ended up here. I think im gonna delete this and post it in php general.
by nick_k
Thu Jan 02, 2003 3:36 am
Forum: JavaScript
Topic: Smilies in guestbook
Replies: 3
Views: 4191

Smilies in guestbook

ok, what I want to do in my guestbook, is use smilies, so for example the visitor could type: :) and a smilie image would apear in its place. What I do, is save all the input ina file called notes.dat, and then just: include("notes.dat");
Thanks, Nick
by nick_k
Mon Dec 30, 2002 9:47 am
Forum: PHP coding => Mail
Topic: mail(); function
Replies: 1
Views: 1513

mail(); function

ok so i made my first script with the mail(); function, now i got paid hosting that provides a mail server. i wanted to ask, where exactly do i say the addres of my mail server etc. like for example my mail server is: mail.virtros.com . so is there like a config file where i write this all out?
by nick_k
Sun Dec 29, 2002 3:04 pm
Forum: PHP coding => Mail
Topic: If succesful
Replies: 2
Views: 1791

thanks for the code!
by nick_k
Sun Dec 29, 2002 12:25 pm
Forum: PHP coding => Mail
Topic: If succesful
Replies: 2
Views: 1791

If succesful

This is probably something really basic, but here goes anyway. How do I check to see if the mail(); function was succesful, for example, I was to: print("Message succesfully sent!");, if it was succesful.