Jump to content
xisto Community

electron

Members
  • Content Count

    163
  • Joined

  • Last visited

Everything posted by electron

  1. Well you need SMTP for that. It uses the SMTP account of the Host/Server. If the Server Administrator has disabled this feature then the mail() function cant o anything and you will be getting php fatal errors. But Xisto has this enabled and also no limit of email to send. So you could send them with the mail tag. However there are certain limitations if you want to send a bulk mail to many users. By many i mean more than 50 in a circle. Hope this information helped.
  2. Well yes it is much more beautiful then the traditional Windows XP and older versions.But it is not just an XP with a new cover.It is better and way secured than XP.To the fact Steve Ballmer has challenged Hackers to find Vulnerabilities if they can.It looks like Microsoft is too confident on Vista with Securityu relations.So companies would be opting for it if it is that secured.The Beta Testing did get them to fix security holes.But hackers are always on the go. Sooner or just a liitle not so sooner they will find some holes to penetrate into.As Windows and security are two terms that makes me and many more laugh.
  3. Well you could use your own SMTP mail account to send mail.All big softwares do have this feature.I think so even drupal must be having this feature.Check it out in the Admin panel of Drupal.Or if you know coding then you could integrate it yourself.
  4. Hi, I have come accross some starnge problem in PHP.I wanted to detect the image resolution in of a URL specified by the user.This is possible via getimagesize() function of PHP that is independent of GD library.But this function generates a E_WARNING Error if the image is not there.What shall i do to stop this warning ??I dont want to show the Error in PHP style but my style of error reporting.Please help me.
  5. Well till where i know this is impossible.Also if the user has no javascript request them to switch it on.But why do you need PHP to do this work because it is Server side while Javascript is Client side.
  6. I used to be a fan of that guy and used to watch his shows over Discovery Channel and National Geographic channel.Never in my wildest dreams i thought that he would pass away in such a way.He wont only be missed as a great australian Avalon as a great Human Being who taught all of us how to love and respect animals even though they are dangerous.
  7. Well Windows Vista is finally nearing its completion of the beta testing stage. The latest build is 5600 RC1. Then there will be another Release Candidate RC2. Finally in 2007 it will be out for the public. I found some screenshots on the Latest 5600 RC1 Build: http://forums.xisto.com/no_longer_exists/ http://forums.xisto.com/no_longer_exists/ Hope you like them. Also i heard that the Ultimate Vista Version would be around $400. Thats a bit expensive but i will go for it.
  8. Hey is it possible to convert a ICO file to a PNG , JPG, BMP etc file format without using any icon software .I have Adobe CS2 .Can that be used ????Please help me.
  9. Thats quite a lot you covered up dude.The Browser snippet is especially the best.Also Why dont you consider to put this in the tutorials section.
  10. Well you could also give them class names. In this way you could have multiple styles if you want for different categories of links on the page. You could simultaneously define a global style by the above method. To define a class : .mya:link, .mya:visited, .mya:active {font-size:11px;font-family:verdana;color: #000000;text-decoration: underline;}.mya:hover {font-size:11px;font-family:verdana;color: #999999;text-decoration: none;} To use the class: <a href="" class="mya">Link</a> Hope that helps
  11. Here is a better one using functions: <?php/*** Simple function to replicate PHP 5 behaviour*/function microtime_float(){ list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec);}$time_start = microtime_float();// Sleep for a whileusleep(100);$time_end = microtime_float();$time = $time_end - $time_start;echo "Did nothing in $time seconds\n";?> This is quite self explanatory. Also in PHP 5 onwards there is a better option: <?php$time_start = microtime(true);// Sleep for a whileusleep(100);$time_end = microtime(true);$time = $time_end - $time_start;echo "Did nothing in $time seconds\n";?> Hope you guys like it.
  12. Well actually if u wnat to use sessions on your site it must be called before anything and after <?php .Then you may do whatever you want to do with headers.session_start() must be called first in any circumstance or the ERRORS.
  13. As this is a username query be careful of MySQL injections.People could hack it due to that.Use htmlentities() to save your script of being vulnerable.
  14. Why dont you check the error that is getting out. First of all you have not traped the result of the INSERT in a VAR. Also the query might not be even happening as there is no '@' sign if you are not using a VARIABLE to trap the result. I prefer to use the folloing method : //Make the QUERY$query = "INSERT INTO `user` ( `username`, `password`, `name`, `surname`) VALUES ('$username', '$pass', '$name', '$surname')";//echo $query;$result = mysql_query($query, $conn);if(!$result){ die('Could not INSERT in users. Error '.string mysql_error ($conn).''); } If it dies there is an error in the code.First try the query in PHPMyAdmin and then see it. But the $conn would be missing in your case as you did not save the Link to MySQL as a link idnetifier. So for connecting to the database use: /* Database Connection */$user="root";$password="";$database="efp";$dbprefix = '';$conn = mysql_connect("localhost", "$user", "$password");@mysql_select_db($database) or die( "Unable to select database");/* Ending - Database Connection */ By THE way i foiund the ERROR - WHERE ARE YOU SELECTING THE DATABASE IN YOUR SCRIPT. Also the query would go haywire if someone uses inverted commas in the form and could possibly INJECT your database and hack it. Use htmlentites() function in PHP to avoid this INJECTION. HOPE this helps.
  15. While making a table you need to give it its name. How would you query it otherwise ? Also the type means what type of data. Numeric or Alphanumeric. Numeric can store only numbers while Alphanumeric can store both but it can be used in calculations as it is regarded as a string. Also all Alphanumeric are having default value as NULL unless you give it some value as defualt. All numeric ones have 0 as default unless you give a default number. A good tutorial site: http://www.w3schools.com/sql/default.asp Hope it helps
  16. This is good if you have a small page. Well you would get a error if there were no results from the query due to either a wrong query or No results in the table. Therefore your mysql_fetch_array() would give you an error. Hence you must check the $reults first or the mysql_num_rows() to see if there are any results. Check it as follows: if(!$result || mysql_num_rows($result) < 1){ //Give the error (God knows what you want) return;} Also i prefer to use the for loop instead of while. So do what pleases you. One last comment is that you should always keep the processing file and the theme file seperate. It makes it easier to understand and creates an insulation between the two.
  17. I recommend the use of HTML Entities - htmlentities() THis is more advanced and uses the HTML Transational table-get_html_translation_table(). htmlentities() has three QUOTE STYLE contents.It means you can also convert ' & " to HTML code so PHP doesnt get confused. Find full information on it : http://in.php.net/htmlentities You can also reconvert it to HTML. So use this as it is better. Hope this helps.
  18. arrays can also be given keys using the array function. This is very useful and is better to understand . e.g. $var = array('one' => 1, 'two' =>2, 'three'=>3);print_r($var); This will print: Array([one] => 1,[two] =>2,[three]=>3) Also you can declare an array within an array: $var = array('one' => array(1, 2, 3), 'two' =>2, 'three'=>3);print_r($var); This will print: Array([one] => Array( [0]=>1, [1]=>2, [2]=>3 ),[two] =>2,[three]=>3) To print an array better use the following: echo '<pre>';print_r($var);echo '</pre>'; There are more functions to do much with arrays. Read the PHP Manual. Hope this helps
  19. I had mailed the Adsense team regarding CPM and they replied to me that Google might implement the CPM system and as such some people are being Beta Tested for the purpose.Who are they testing God Knows.I left Google as it wasnt giving much. 40000 impressions 400 clicks and only $13.I am still waiting if the CPM system does get into action. Then there would be nothing Like it.Presently i am using Kontera.It gives better than Google and is good.
  20. Hey thats a good one.If you could help me out on one thing in .htaccess .Do you know what does IgnoreIndex means.I read it somewhere and I think so it could be used for this as well.If you do let me know.Thanks and have a good day
  21. I Would recommend you to use a isset() function. This checks whether the Variable IS SET or it is not set. Also you could use the empty() function. In this function empty() will find return true if the value of the Variable is empty and false if it is not empty. The things that the empty() function considers empty could be found on the online manual of PHP.NET: http://in2.php.net/empty Hope this all helps you out. I am willing to help if you need some more.
  22. Well i am working on some program now and it would be ready soon for beta testing to the public.There are others who provide the same software BUT i want to be better than them and I can do it better than them if not in the first BETA Release.If you know PHP , MySQL or JavaScript you could be one of its developers later after it goes public.
  23. Thats simple. You could limit it with the number of files you want to display and then using the GET VAR get the page number accordingly and then show the results.
  24. No that is good now.But I think u could improve this greatly.For instance if the user typed inmany keywords you are not taking them seperately but as one whole string and trying to look for that as one string.You might consider by exploding the string and then search for the results.Best of luck
  25. Well if this search script is for your site than quite satisfactory.But it does lack quite a lot of security POST handling.Also you have named the search function "db_search()" but while using it you referred to it as "db_search_bible()"People will get confused.Another thing is that your result page wont work at all.As you have put in the '$html' variable a comment ' <!-content?? ' and while replacing it you are using '<!--content-->'.The replace wont take place dude(I am sorry if i am rude).One last thing this is a search script that would search within a small database.You cant call it as a SEARCH ENGINE.For the real tough part of a search engine is to get and INDEX the result of a link it has and then find new links again and then store them.That is a real SEARCH ENGINE dude.There you got to consider storing the whole of the WEB and you require PB's(Peda Bytes) of space.So alot has to be done on the script that you have written and then rightly call it a search engine.Sorry if i am being very rude.
×
×
  • 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.