Jump to content
xisto Community

farsiscript

Members
  • Content Count

    360
  • Joined

  • Last visited

Everything posted by farsiscript

  1. Hi all Iam tired because my code is not working true , i write this code for make one membership script plz help me and debug this code thanks Database.sql : CREATE TABLE news (id tinyint(4) NOT NULL auto_increment,username text NOT NULL,password text NOT NULL,email text NOT NULL,PRIMARY KEY (id)) TYPE=MyISAM; config.php : <?php mysql_connect("localhost","root","") or die(mysql_error()); mysql_select_db("member") or die(mysql_error());?> make.php : <?phpif (!isset($_POST['submit'])) {?><form method="POST" action=""><p><input type="text" name="user" size="20" value="username"><br><input type="text" name="pass" size="20" value="password"><br><input type="text" name="email" size="20" value="email"></p><input type="submit" value="submit" name="submit"></form><?php} else {$user = $_POST['user'];$pass = $_POST['pass'];$email = $_POST['email'];include "config.php";$result = MYSQL_QUERY("SELECT * from news WHERE username='$user'");$worked = mysql_fetch_array($result);if($worked){echo "un , roor";}else{mysql_query("INSERT INTO news (username,password,email ) VALUES ('$user','$pass','$email')");echo "Your name and password have been submitted into our database";}}?> login.htm : <form method="POST" action="getin.php"><p><input type="text" name="user" size="20" value="username"><br><input type="text" name="pass" size="20" value="password"></p><input type="submit" value="submit" name="submit"></form> * this file has error : getin.php : <html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><?phpinclude "config.php";$username = $_POST['user'];$password = $_POST['pass'];$result = MYSQL_QUERY("SELECT * from news WHERE username='$username'and password='$password'")or die ("Name and password not found or not matched");$worked = mysql_fetch_array($result);$username = $worked[username];$password = $worked[password];$email = $worked[email];if($worked)echo "Welcome $user! Your e-mail address is $email";setcookie( "user", "$user", time()+3600, "/", "", 0 );?></head><body></body></html> My problem is setcookie , when i login with username and password it show me this message : Welcome admin! Your e-mail address is email Warning: Cannot modify header information - headers already sent by (output started at c:\wamp\www\membership\getin.php:4) in c:\wamp\www\membership\getin.php on line 21 i know i can make cookie with setcookie(); i want make one page for example test.php and if my members has login can view my test.php page sorry my english is not very good plz help me , i saw this link : http://ir.php.net/manual/en/function.setcookie.php but i can't debug this code thanks all
  2. oh , read this topic , you must learn parketdomain and addondomain first : http://forums.xisto.com/topic/35333-parked-domain-or-addon-domain/
  3. hi all plz post here visualbasic source websites like this : http://www.a1vbcode.com/ http://www.planet-source-code.com/ http://www.freeprogrammingresources.com/vbsource.html http://programmersheaven.com/ http://www.vbcode.com/ http://vbcity.com/ http://www.devdos.com/vb/Visual_Basic.shtml some times we must read some soruce to find some way to programming This kind of site help us to find some way to do projects
  4. how can i analyze picture format i want make one soruce to analyze picture formatand if picture is in jpg format then accept image elsesend message to visitor (not good file format ) some think like this :)end ifi think i do that whith javascript in form tagthanks dear gaea , you and other firends here are nice programmer and good friendif you find some kind of script plz post heredear .hack//GU plz paste htmlentites () here with one samplethanks , i tray to search htmlentites () in http://php.net/ thanks all
  5. You need to upgrade or buy hosting form Xisto . some problems :1 - big image2 - Big files like mp3,zip,PSD or ....3 - bad design ( design by photoshop and all the page is image )4 - big quality image* for design you must convert image to low quality , for this user adobe photoshop , for change image quality
  6. IPB version 2 and higher is not freebut IPB version 1 is free ( all version ) and you can find it in cpanelfantasticoPHPBB is free forum (board) script and you can install all version and all pach . You can find PHPBB in https://www.phpbb.com/ or http://www.phpbb.net/ or http://www.phpbb.org/ or you can install phpbb with one click in Cpanel @ fantastico. both are there forums are very nice but ipb has more options and more config for admins .i think phpbb board has limited
  7. I had travel for 4 day , today i return at home and check my site , i see my credits is-4 , oh my god , i need more posting , if i want send 20 post pear 1 day ? i am spammer ?its my question . i want sending 5 or 10 post at 1 day but i have dismay !if i can send more post plz tell me , thanks all ,
  8. Hi Dear gaea and other friends thanks about your help i find this script and i thing i posting here to help u : for storing image in sql without upload on hositng i think storing image in sql is better uploading : at first make form.htm : " with this file you can post image <form action="sql.php" enctype="multipart/form-data" method="post"> <input type="file" name="image" /><br /> <input type="submit" name="upload" value="Upload" /></form> at 2 make sql.php : <?// check wether the user pressed the upload buttonif(isset($_POST['upload'])){// below two lines connect to mysql and the mysql database// change it according to your informationmysql_connect("localhost", "root", "");mysql_select_db("img");// below line opens the file chosen in the form for reading only$file = fopen($_FILES['image']['tmp_name'], "r");// then we read the file and add slashes to prevent errors when submitting to mysql$image = addslashes(fread($file, filesize($_FILES['image']['tmp_name'])));// inserts the null value as id, and our defined var $image to their corresponding cols.// we use die(mysql_error()) as a error report if something screws upmysql_query("insert into images values('null', '$image')") or die(mysql_error());// if all goes well, echo the below line.echo "image uploaded successfully";}?>at 3 make view.php : " this file show images form sql <?// changes our url id to the var $id$id = $_GET['id'];// connects to the database//change info accordinglymysql_connect("localhost", "root", "");mysql_select_db("img");// selects the binary data blob according to the id specified// by our url$result = mysql_query("select image from images where id = '$id'");// tells php that contents of this page will be an imageheader("(anti-spam-content-type:) image/jpeg");// echoes our mysql query (echoes out the blob data)echo mysql_result($result, 0);?>How To show images : you can user this code : <img src="view.php?id=1" alt="" /> for example if i browse view.php?id=2 then i can view 2 image in sql with this script you can make secure (right click,save) image gallery or dont upload images upload in host is not good , but storing data in database is very fast and secure but my script has one problem i want make filter to members can not upload zip file or php file or an other file . i think with javascript i can do that but plz help me thanks all
  9. My Answer is YEs Too , because I install mambo CMS and mambo need ZendBut i hate zend , for local i use Wamp5 and it has not zend where can i download zend for windows xp ?thanks
  10. You can make That with SQL database and files url You can make one page with search query with "a" or "b" or "c" or ....."z"when your users click at "a" your php code must go and file A files in database and sort it for your user .or You can make these files with statics search guerya.php , b.php , c.php , d.php , e.php ,When Your user click at "A" You must link at a.php
  11. Hi mr gaea do You have an Idea for this project ?I have 2 choose :1 - Tell Users To Take Picture form Web and Upload2 - Make one PHP robot how you think about this project ?This project is web template sale Script , plz help me and guide me thanks ,
  12. No no , I want make one form , and then peoples come and post there url when people send url by this form i want make one code to give url of website and gete picture form site look's like this at first i post my url in page 2 - the page give one picture form my site and save in host 3 - show the thats picture form my host i want make this script to help gave pic form url i want make this script for buy and sale templates so , users login at site then post there url ( for exam : http://ww38.yoursite.com/index.htm) then my script must give one picture form index.htm and save in my host at mysite/picure/httpyoursite.comindex.htm.jpg thanks if you know some think about this project tell me please ,
  13. Hi all i want make one form whit php , when users submit there urls , then my site give one picture form url and save on my host !how can do that ?thanks
  14. plz help me1- How can i count how many raws is one table ?2 - i want update one raw , how can user update Query Command3 - How can make one Tabel or Delete one tabel with raws thanks
  15. I Sending My Script -- > Famp3 -- > http://forums.xisto.com/no_longer_exists/ in hotscript and when id looking for visits form hotscript i think hotscript have ver large visitors i think hotscripts is better then fatscript or scripts.com or other site
  16. oh thanks dear Martin Larsson , yes i write php code can you tell which site is better ( which site has more visitors ) ?
  17. If You want to update your site you can do this by Frontpage Extensions in your cpanel by this opetion you can open microsoft frontpage program and type your html then save , frontpage automatic delete your html file on your host then upload new file ....but if you want to make one php site go at Fantastico and install one PHP-Nuke , by this opetion you can make one php portal in easy case , if you know php lan you can search in hotscript and find one script and download / upload / and install at your host
  18. Oh i hate e107 anyway , i write music portal You can Download it form here : http://forums.xisto.com/no_longer_exists/ plz vote to my script at hotscript :: http://www.hotscripts.com/category/scripts/php/scripts-programs/multimedia/audio-players-and-gallery/ Thanks . if you had problem with this script plz send mail to me oh , thanks to dear admin to give a hosting and i can write php script thanks all
  19. Hi all , yesterday I saw new skin of yahoo mailboxyahoo build this skin like Outlook express i saw this skin in my friends Mailbox He Said Yahoo Send me an invite mail To change my mailbox skinHow , i want to know how can get new skin for my mailboxThanks all
  20. I user winrarbecause winrar support all compress formats , winrar is fast , winrar is easy to use , you can change type compress by winrar , i think compress with winrar is better , but i dont know how can find new version of winrar .plz post here winrar real site thanks
  21. Hi all I write script and i want to know which Script site for release Script is best Some sites :: http://www.hotscripts.com/ http://www.scripts.com/ http://forums.xisto.com/no_longer_exists/ http://www.popscript.com/ If You know more Url plz post here . thanks all
  22. You can use HotLink Protection for your style and css files i use HotLink Protection for my images in my site you can find HotLink Protection in cpanel HotLink Protection is in Cpanel , at first login in cpanel and click at Leech Protect , then type your style or css or image url . thants all look at note of HotLink Protection ::
  23. Hi all , thanks about your post but please help to make one list of any kind of good scripts i find this links for php : http://www.hotscripts.com/ http://www.scripts.com/ http://www.proxy2.de/scripts.php http://www.oxyscripts.com/ http://www.phparena.net/ http://www.popscript.com/ http://forums.xisto.com/no_longer_exists/ http://forums.xisto.com/no_longer_exists/ http://php.resourceindex.com/ http://forums.xisto.com/no_longer_exists/
  24. hi all i write this code to write in mysql form this form but its not work plz help me to fix erre : <?php $username = "user1"; //sina Jan Inja Username $password = "pass1"; //Sina Jan Inja Password $randomword = "ArashHosseinian"; if (isset($_COOKIE['MyLoginPage'])) { if ($_COOKIE['MyLoginPage'] == md5($password.$randomword)) { ?> <?php $db_host = "localhost"; $db_user = "root"; $db_pwd = ""; $db_name = "music"; mysql_connect($db_host, $db_user, $db_pwd); mysql_select_db($db_name); ?> <html> <head> <title>Admin Panel</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> </head> <body> <?php if (!isset($_POST['submit'])) { ?> <div align="center"> <table cellpadding="0" cellspacing="0" width="659" id="table1" height="415"> <!-- MSTableType="layout" --> <tr> <td height="415" width="659" valign="top"> <form name="sql" method="POST" action=""> <!--webbot bot="SaveResults" U-File="../_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" --> <div align="right"> <table cellpadding="0" cellspacing="0" width="656" height="337" id="table2"> <!-- MSTableType="layout" --> <tr> <td valign="middle" align="right"> <input type="text" onkeypress='return farsikey(this,event)' onkeydown='changelang(this);' name="text1" size="20" dir="rtl" style="font-family: Tahoma; font-size: 8pt; color: #FF6600; border: 1px dotted #FFFFFF; background-color: #000000"></td> <td valign="middle" align="right"> <p align="right" dir="rtl"> <span lang="fa"> <font face="Tahoma" style="font-size: 8pt" color="#8ECA23"> نام آهنگ شماره 1</font></span></td> <td valign="top"> <p align="right"> <input type="text" onkeypress='return farsikey(this,event)' onkeydown='changelang(this);' name="album" size="20" dir="rtl" style="font-family: Tahoma; font-size: 8pt; color: #FF6600; border: 1px dotted #FFFFFF; background-color: #151515"></td> <td valign="middle" height="21"> <p align="right" dir="rtl"> <font face="Tahoma" style="font-size: 8pt" color="#FFFFFF"> <span lang="fa">نام آلبوم</span></font></td> </tr> <tr> <td valign="middle" align="right"> <input type="text" name="link1" size="20" dir="ltr" style="font-family: Tahoma; font-size: 8pt; color: #FF6600; border: 1px dotted #FFFFFF; background-color: #000000"></td> <td valign="middle" align="right"> <p align="right" dir="rtl"> <font face="Tahoma" style="font-size: 8pt" color="#FFFFFF"> <span lang="fa">آدرس آهنگ شماره 1 (با </span>http<span lang="fa">)</span></font></td> <td valign="top"> <p align="right"> <input type="text" onkeypress='return farsikey(this,event)' onkeydown='changelang(this);' name="artist" size="20" dir="rtl" style="font-family: Tahoma; font-size: 8pt; color: #FF6600; border: 1px dotted #FFFFFF; background-color: #000000"></td> <td valign="middle" height="21"> <p align="right" dir="rtl"> <span lang="fa"> <font face="Tahoma" style="font-size: 8pt" color="#FFFFFF"> نام خواننده (فارسی)</font></span></td> </tr> <tr> <td valign="middle" align="right"> <input type="text" onkeypress='return farsikey(this,event)' onkeydown='changelang(this);' name="text2" size="20" dir="rtl" style="font-family: Tahoma; font-size: 8pt; color: #FF6600; border: 1px dotted #FFFFFF; background-color: #000000"></td> <td valign="middle" align="right"> <p align="right" dir="rtl"> <span lang="fa"> <font face="Tahoma" style="font-size: 8pt" color="#8ECA23"> نام آهنگ شماره 2</font></span></td> <td valign="top"> <p align="right"> <input type="text" name="date" size="20" dir="ltr" style="font-family: Tahoma; font-size: 8pt; color: #FF6600; border: 1px dotted #FFFFFF; background-color: #000000"></td> <td valign="middle" height="21"> <p align="right" dir="rtl"> <span lang="fa"> <font face="Tahoma" style="font-size: 8pt" color="#FFFFFF"> تاریخ ارسال به بازار</font></span></td> </tr> <tr> <td valign="middle" align="right"> <input type="text" name="link2" size="20" dir="ltr" style="font-family: Tahoma; font-size: 8pt; color: #FF6600; border: 1px dotted #FFFFFF; background-color: #000000"></td> <td valign="middle" align="right"> <p align="right" dir="rtl"> <font face="Tahoma" style="font-size: 8pt" color="#FFFFFF"> <span lang="fa">آدرس آهنگ شماره 2 (با </span>http<span lang="fa">)</span></font></td> <td valign="top"> <p align="right"> <input type="text" name="img" size="20" dir="ltr" style="font-family: Tahoma; font-size: 8pt; color: #FF6600; border: 1px dotted #FFFFFF; background-color: #000000"></td> <td valign="middle" height="21"> <p align="right" dir="rtl"> <font face="Tahoma" style="font-size: 8pt" color="#FFFFFF"> <span lang="fa">آدرس عکس آلبوم (همراه </span>http<span lang="fa">)</span></font></td> </tr> <tr> <td valign="middle" align="right"> <input type="text" onkeypress='return farsikey(this,event)' onkeydown='changelang(this);' name="text3" size="20" dir="rtl" style="font-family: Tahoma; font-size: 8pt; color: #FF6600; border: 1px dotted #FFFFFF; background-color: #000000"></td> <td valign="middle" align="right"> <p align="right" dir="rtl"> <span lang="fa"> <font face="Tahoma" style="font-size: 8pt" color="#8ECA23"> نام آهنگ شماره 3</font></span></td> <td valign="top"> <p align="right"> <select size="1" name="coun" dir="rtl" style="font-family: Tahoma; font-size: 8pt; color: #FF6600; border: 1px solid #FFFFFF; background-color: #000000"> <option value="ir">ایران </option> <option value="tu">ترک </option> <option value="ar">عربی </option> <option value="ot">خارجی </option> </select></td> <td valign="middle" height="21"> <p align="right" dir="rtl"> <span lang="fa"> <font face="Tahoma" style="font-size: 8pt" color="#FFFFFF"> کشور</font></span></td> </tr> <tr> <td valign="middle" align="right"> <input type="text" name="link3" size="20" style="font-family: Tahoma; font-size: 8pt; color: #FF6600; border: 1px dotted #FFFFFF; background-color: #000000"></td> <td valign="middle" align="right"> <p align="right" dir="rtl"> <font face="Tahoma" style="font-size: 8pt" color="#FFFFFF"> <span lang="fa">آدرس آهنگ شماره 3 (با </span>http<span lang="fa">)</span></font></td> <td valign="top"> <p align="right"> <select size="1" name="artistabc" dir="rtl" style="font-family: Tahoma; font-size: 8pt; color: #FF6600; border: 1px dotted #FFFFFF; background-color: #000000"> <option>A</option> <option>B</option> <option>C</option> <option>D</option> <option>E</option> <option>F</option> <option>G</option> <option>H</option> <option>I</option> <option>J</option> <option>K</option> <option>L</option> <option>M</option> <option>N</option> <option>O</option> <option>P</option> <option>Q</option> <option>R</option> <option>S</option> <option>T</option> <option>U</option> <option>V</option> <option>W</option> <option>X</option> <option>Y</option> <option>Z</option> </select></td> <td valign="top" height="21"> <p align="right" dir="rtl"> <span lang="fa"> <font face="Tahoma" style="font-size: 8pt" color="#FFFFFF"> نام اول خواننده (انگلیسی)</font></span></td> </tr> <tr> <td valign="middle" align="right"> <input type="text" onkeypress='return farsikey(this,event)' onkeydown='changelang(this);' name="text4" size="20" dir="rtl" style="font-family: Tahoma; font-size: 8pt; color: #FF6600; border: 1px dotted #FFFFFF; background-color: #000000"></td> <td valign="middle" align="right"> <p align="right" dir="rtl"> <span lang="fa"> <font face="Tahoma" style="font-size: 8pt" color="#8ECA23"> نام آهنگ شماره 4</font></span></td> <td valign="top"> <p align="right"> <select size="1" name="cat" dir="rtl" style="font-family: Tahoma; font-size: 8pt; color: #FF6600; border-style: dotted; border-width: 1px; background-color: #000000"> <option value="5">بی کلام </option> <option value="9">سنتی </option> <option value="10">راک </option> <option value="6">پاپ </option>
  25. You Can Use outlook with Gmailconfig Go and make one account in outlook usernmae : your google usernamepassword : your google passwordSmtp : mail.gmail.compop : mail.gmail.comthen go totools -> account - > mail tab - > your account - > advanced tab - >use 465 port for smtp and user 995 for popthen check on the ssl
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.