611 Posted Topics
Re: You want simple one. Check this out. [CODE] my @S=("hello","ben","foo",,"","bar","rose","world","foo",'loo'); foreach (@S) { print(s/\",'*//,$_); print "\t"; } ## OUT PUT hello ben foo bar rose world loo [/CODE] | |
Re: Can you post your code at least.??? What have you done so far.? Need more info ok ;) | |
Re: At least why cant people look around before they post something? And please post your code. Show that you are doing something yourself. We are not workers but helpers. ;) | |
Re: hmmmm i am not a windows guy but you can google around. ;) | |
Re: Perl module installation is very simple. [CODE]perl Makefile.PL make make test make install # You may need to be root make clean # or make realclean[/CODE] navigate to the folder you saved the downloaded tar. just extract it. using your CMD line. change to SU mode. Run the above snippet … | |
Re: You can do that but i will advice you to store your paths in DB. As folder grows, sorting becomes a very big issue. 1. You must have a very logical naming for your images. eg. the big image named big2233.png and the small one sm2233.png. ID. 2.In this case … | |
Re: Its coding, very little character counts. $result = "mysql_query($query)"; no need for the " " sign. ;) | |
Re: I dont get him either.??? Can someone be very specific here with what they want.?? | |
Re: k_manimuthu, Yep i like your snippet. That should provide the dates. ;) | |
Re: Can you at least post any code ??? What have you done so far ?? ;) | |
Re: Hi, check your code here. 6,7,8,9 for($c=0;$c<8;$c++){ if(isset($_FILES['uploaded_file['.$c.']'])) { You have indicated for loop with 8 iterations. On your upload form its less than that. Not a good sign. why cant you do it simple like [CODE] for($i=0;$i<count($_FILES);$i++)// U can use $_FILES super global array to catch all files. Thus … | |
Re: post your code .i need to look through :) | |
Re: Hi Nail, You are using a check that works only on digits/numbers. Try and use this. [CODE] if ($auth ne "Admin"){ print "foo"; } [/CODE] This should work ok? Have fun ;) | |
| |
Re: And dont forget to regenerate session id in the future. There are bad guys out there. Also unset_session after successful exit of account. | |
Re: [B][COLOR="Red"]"The lenovo technician told that this laptop does not support dual boot. "[/COLOR][/B] Some rusty technician out there. :) | |
Re: I will do you a clean php perl chat application. what about that. Explore :) let me know if you want it. ;) | |
Re: Look just silent the array or variable with @ sign. You must have just had apache update lately i think. USE @ to suppress the warning. its not error. Dont touch your working code ok? Explore :) | |
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.