611 Posted Topics
Re: And also try to read your variables like this.. my $d=param('foo') to check with post and my $d=uri_param('foo') with get. debugging stuff ;) | |
Re: [QUOTE]If you're interested in learning Perl for Web apps, the easiest way to do it is to install Wampserver or Apache and Activestate Perl on your machine - Wampserver is an all-in-one with Apache, Perl, PHP and MySQL packaged with it. There are some other servers out there but I … | |
Re: Apache have a very limited permission to execute programs to affect the system directly. Please post your code. :) | |
Re: Its possible but some bad guys will use your server for spamming spree. do you really need this?? :) | |
Re: Hello pallen, try this this works like a search engine script. [code] // concatenate all your variable like this. $foo=$bar.$name.$isnd.$momo; $query = "SELECT * FROM classics WHERE MATCH (author,title,year,isbn) AGAINST ('$foo' IN BOOLEAN MODE); [/code] Know that this will work just like how google search engines work. it will pull … | |
Re: ITS possible with php and perl too. you must have a session cookie check on your page and you do a header location. Let me now if you want more info and i will assist. | |
Re: Why this??? All this concatenations ??? from line 6-14. Writing code like this means you want a bug. you could do all that in a very simple like this. [CODE] $message =" New Contact Information $row[FIRST] $row[LAST] $row[AGE] $row[GENDER] $row[EMAIL] Cell $row[CELL] Home $row[HOME] $row[CITY] $row[LOCATION] $row[TIMEBLOCK] $row[PREFCTCT] $row[COMMENT] Fitness … | |
Re: Hi friend, Your job is done. be happy :) [CODE] <?php $html[0] = " 1 Full, Gen. 3 TMSWK2D 9 Poor write quality"; $html[1] = "2 Full, Gen. 1 TMSWK2C Read Only, Clean Tape"; $take =preg_split("/\ /", $html[0]); for($n=0;$n<count($take);$n++){ print($take[$n]); echo "<br/>"; } ?> Just cut and paste. Explore ;) … | |
Re: watch this simple steps. [code] $foo="Delete from foo where file_path='$fPath' and name='$name'"; $d= mysql_query($foo); if($d){ unlink("/path to file/$fPath"); } [/code] you get the idea? :) | |
Re: i Think its cool. Just @ the header @header. IE will try to mess-up without it on xp sp1. | |
Re: I remember i wrote you a working script few days ago. Multi upload php script. ;) | |
Re: Try this login page. Just scribble some thing just now but should word fine. [code] myCon();//database connection myDb(); //database selection // your work on post variables $uName=strip_tags(addslashes(trim($_POST['uName']))); $password=strip_tags(addslashes(trim($_POST['password']))); $remember=strip_tags(addslashes(trim($_POST['remember']))); $logIn=$_POST['logIn']; $password=sha1($password); if($_GET['logout']==1){ // logout part session_unset(); // and unset session echo " You just logout";// logout notice header("location:/index.php"); //and direct … | |
Re: you can also do this simple on php. this is very simple function. ha ha [CODE] <?php funtion foo(){ // first receive the post variable from the form $bar=$_POST['num'] ; $numberDetails= split ('+',$bar); // split and take details for ($c=0;$c<count($numberDetails);$c++){ // basic run through $hoo+=$numberDetails[$c]; } echo "The sum is … | |
Re: You are doing a lot of hand coding there. hoooop I dont remember the last time i did this. Very time consuming and slow. Try more iteration functions. Thats whay they were made for. It will cut your code from 500 lines to 200 or less i think. :) explore | |
Re: YOu can do this with perl... php is a bit limited when it come to system interactions. Explore :) | |
Re: Try and echo messages on your file to track the flow of your code. debuging is very important. You have 2 includes so no one can know what the 2 includes contains. Try echo bug checks ok?? very handy php error check Explore :) | |
![]() | |
Re: Howdy, mothergoose3 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 455120)' at line 5 INSERT INTO books_readingnow (brn_booksid, brn_started, brn_ended, brn_usernum) VALUES (65412340, 1284955200, , 455120) - fatal error (31.1) rerun you … | |
Re: you should also have a logout script to help user log out. once the user clicks on the link.... bam logout.php and unset the session there. security is the best form of programming. Explore :) | |
Re: And make things easier for your self in the future. learn how to insert php quick tags in html. Very handy :) | |
Re: Can you please point me to where you think there is problem. what line or share more idea??? Just cant read through all your code now but i will be online for the 2 hours. waiting for your reply :) | |
Re: declare $count=0; or $count; on line 25. :) | |
Re: Change the php ini conf. php_ini_set. learn that. :) literal max execution time= 20hours, max upload =5G But why not simple ftp function. why do you care about this java uploader. reading dynamically xml and mp3 should not be any hard. HTTP long upload gives your server out for exploitation. … | |
Re: Try this, nice and easy stuff ;) [CODE] $foo= split(",", $bar);// You got them in //then get them like this for($d=0:$d<count($foo);$d++){ echo $foo[$d]; // Print them out. } [/CODE] Explore :) | |
Re: Hi, Just stop the php flow and start a normal html with quick php inserts. like <tr><td><?=$row[foo]?></tr></td> very handy :) | |
Re: You are everywhere mmm. evstevemd...!! go baby go ubuntu..!! but fix this bug. [COLOR="Red"]dkimproxy[/COLOR]. It is killing ubuntu noob. We need to keep all the noobies. we need numbers for now not quality. | |
Re: upgrading Ubuntu 10.04 server to 10.04.1 server randomly touches mysql socket. There has been issues on this and proftp, and email clients. some random shows!! :) | |
Re: Try ubuntu. mine runs cool on ubuntu without any funny issues. you need stability and windows aahhhh.??? |
The End.