karthikeyan_coder
Members-
Posts
201 -
Joined
-
Last visited
Never
Everything posted by karthikeyan_coder
-
[code] $sql_user_check = "SELECT id, access, username FROM users WHERE username='$user' AND password = '".md5($pass)."'";[/code] Try to echo this variable $sql_user_check ... and check it with your database manually... Thank you, Karthi Keyan.
-
yes you can... [code]$username = "user"; //current usrename ; $part1 = split($username,3); // Splitting first three chars for the username... Out put is an array ; $random_number = rand(2,78); // getting one random no between 2 to 78 ; $string = $part1[0] . $random_number; //making one new string... $newmd = md5($string); // MD5 encry of new string. $newpass = split($newmd,12); // spliting result with 12 chars $password = $newpass[0]; // use this $password to mail your user...[/code] Let me know how it is.... Thank you, Karthi keyan
-
[quote]<?php $ftp_server = 'servername'; $ftp_user_name = 'username; $ftp_user_pass = 'password'; $conn_id = ftp_connect($ftp_server) or die("Couldn't connect to server"); $ftp_login = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass) or die("Cannot login to the ftp server"); if($ftp_login){ echo "logged in!<br />"; ftp_mkdir($conn_id, "testdir"); } else { echo "not logged in<br />"; } ftp_close($conn_id); ?>[/quote] there is one parse error... $ftp_user_name = 'username; replace this line with $ftp_user_name = 'username'; Thank you, Karthikeyan
-
i've uploaded some ebooks for beginners... actually i learnt php from those books and tutorials.... go to http://cloneasite.com/forum/ and click on "PHP" forums.... and follow the thread "PHP Tutorials" Thank you, Karthi Keyan
-
[quote author=corbin link=topic=99227.msg390727#msg390727 date=1151874855] AOL has millions of users with dynamic IP addresses... what if someone has 555.555.55.1 and a different person has 555.555.55.2? [/quote] LOL ... so what will be a better solution?
-
[quote author=xyn link=topic=99227.msg390717#msg390717 date=1151873958] Yeah that's what i was thinking about, and the Dynamic ip was the one thing that made me think of cookies.. and again as you say about the cookie/session. I'll have ago on the ip filter. [/quote] okay... i have one more idea about ip filtering... thats... once a user is having a dynamic ip then we can sense their ip range... like 34.43.232.3 34.43.54.76 34.43.xxx.xxx 34.43.xxx.xxx so last blocks will be changed while they got new ip address... so we can check the first two blocks with some time intervels... once you cared about dynamic ip people then try to apply this idea... Thank you, Karthi keyan.
-
ok np... refer php.net for syntax... once you have Zend studio then it will show you syntax errors during the time of coding Thank you, Karthi Keyan.
-
[quote author=xyn link=topic=99227.msg390704#msg390704 date=1151872652] Hi guys, I know Cookies are easier to work with when it comes to time, But I was wondering How to set a cookie for 24 hours... it's so if a member rated another member it would only allow one rating Per 24 hours... [/quote] you cannt do this rating system with cookies or sessions... coz users will remove cookies and sessions, then they will rate.... so do it with ip filtering tech... like... 1. After getting one rate... store $_SERVER['remote_addr']; /* getting user's ip address */ in a database table, with the current date... how can you filter users? 1. once a user entering in rating system... get his remote addr 2. check for its entry in table for today 3. if {yes} >> Sorry you cannt rate more than once per day 4. if {no} >> allow him to rate... and store his ip in table Dis advantage... 1. Once a user is having dynamic ip address... then this tech wont give 100% proof. Thank you, Karthi Keyan.
-
A real hard challenge please help cheers.
karthikeyan_coder replied to redarrow's topic in PHP Coding Help
ahh...[quote]I need to know how can i lock a url to a script like zend.[/quote] not cleard... lock url means? can you explain more than single line ? :) Thank you, Karthi Keyan. -
yeah... simply ip filtering... session filtering , cookies checking... time deay... 1. 1 post per day in each ip address. //store poster ip address in guestbook entries table and check it 2. set one intervel for each posts... based on ip address.... have fun... Thank you, KarthiKeyan
-
Try to use session variables in all of your pages.. $news $page $mul2 $mul store those values in a session variable.. and use it... try to apply this idea....
-
[quote author=Jennifer Good link=topic=99225.msg390685#msg390685 date=1151870133] we want to set the width of a dov tag to a php variable.Is this correct? $divwid=930; <div style="background : #ffffff; color : #ffffff; padding : 4px; width :"<?php echo $divwid ?>"px; height : 650px; overflow : auto; "> [/quote] replace the phptag... [code]<?php echo $divwid ?>[/code] with [code]<?php echo "$divwid"; ?>[/code] Thank you, Karthi Keyan
-
[quote]$row_count=mysql_num_rows(query) ;[/quote] replace the above line with [quote] $row_count=mysql_num_rows($query) ;[/quote] Thank you, Karthi Keyan.
-
yes samething what drumm said... example.php?animal=cat example.php?animal=dog $sec = $_POST['animal']; if($sec == "cat") { //cat section } else if($sec == "dog") { //dog section } else { //Default page with just links }
-
Adding boolean search to existing search script
karthikeyan_coder replied to john-formby's topic in PHP Coding Help
hello, http://www.joedolson.com/Search-Engine-in-PHP-MySQL.php this will help you. -
Got many stories ill like to output on a page
karthikeyan_coder replied to shyamsakha's topic in PHP Coding Help
[quote]This might get you started in the right direction... http://www.nstoia.com/toh/technical/teasers/index.php Lite...[/quote] Yeah its smart. 8) -
how to send emails from localhost with mail()
karthikeyan_coder replied to karthikeyan_coder's topic in PHP Coding Help
[quote author=redarrow link=topic=99143.msg390439#msg390439 date=1151836696] what port is your router set to? what mail server useing? router must redirect smtp to mail server ip. smtp=router ip to the mail server. smtp_port= router smtp port for the mail server. send_mail_from=mail server for admin like admin@whatevr.com. [/quote] let me collect those informations... -
delay an execution of single line...
karthikeyan_coder replied to karthikeyan_coder's topic in PHP Coding Help
[quote author=mrwhale link=topic=99172.msg390436#msg390436 date=1151835948] [code]<?php for( $loop=1; $loop <= 100; $loop++ ) { mail(); sleep( 1 ); // delays for 1 seconf ;) } ?>[/code] have fun :) [/quote] Thanks working fine :) -
how to send emails from localhost with mail()
karthikeyan_coder replied to karthikeyan_coder's topic in PHP Coding Help
[quote author=hackerkts link=topic=99143.msg390431#msg390431 date=1151835428] I saw the warning.. The problem is with the mail server that's why I suggest you to make sure you had it working. :D Hmm.. Try changing SMTP = 192.168.110.30 To SMTP = localhost Btw.. Which mail server you using ? P.S : hacker is just a nick lolz ;D [/quote] [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. sendmail_from = info@info.com still having problem..... -
i need to delay a single line's execution. let us say... 2: for($loop=1;$loop<=100;$loop++) 3: { 4: mail(); 5: } i need to delay execution of mail(); as 1sec.... this script must finish 100 emails after 100secs.... 1 sec delay for each mails. how its possible??
-
how to send emails from localhost with mail()
karthikeyan_coder replied to karthikeyan_coder's topic in PHP Coding Help
[quote author=wildteen88 link=topic=99143.msg390429#msg390429 date=1151834976] Does the SMTP server require authentication in order to send emails. if it does mail doesnt support this. [/quote] it isn't asking for any authentications... :( So my ISP must support SMTP... am i right? -
how to send emails from localhost with mail()
karthikeyan_coder replied to karthikeyan_coder's topic in PHP Coding Help
[quote author=hackerkts link=topic=99143.msg390290#msg390290 date=1151800132] You have to make sure you had a working mail server (SMTP). [/quote] LOL i know its a SMTP mailserver prob... its not working.... i asked how to solve this.... i hope you never read this [quote]Warning: mail() [function.mail]: Failed to connect to mailserver at "192.168.110.30" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\wamp\www\mailsender.php on line 55[/quote] [quote]Hackers must have a skill to solve probs... LOL[/quote] Any one know? how to slove? Please help me... -
i've tried to send emails from localhost. but its showing some error like... [quote]Warning: mail() [function.mail]: Failed to connect to mailserver at "192.168.110.30" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\wamp\www\mailsender.php on line 55[/quote] actually in my php.ini file contains... [mail function] ; For Win32 only. SMTP = 192.168.110.30 smtp_port = 25 ; For Win32 only. sendmail_from = info@info.com whats the problem??? im running apache under windowzxp box... Thank you, Karthi Keyan.
-
check out the php.net date manual... they are telling more info about timestamp handling... http://php.net/manual/function.date.php
-
"SELECT * from `table_name` WHERE (`price` > '1000') AND (`price` < '25000') im not sure about the brackets... so try this one also (`price` > '1000' AND `price` < '25000') lol... trial and error method. 8)