Jump to content
xisto Community

electron

Members
  • Content Count

    163
  • Joined

  • Last visited

Everything posted by electron

  1. Hi, I needed to take the ,"The Rows Holding the Group-wise Maximum of a Certain Field" I can use subqueries but it is supported after 4.1 Xisto has only 4.0.27. So no subqueries. Also you may use a TEMPORARY TABLE.But it is insecure(I am still waiting for a reply in the topic I posted). Now i found a new way. MAX(CONCAT) Trick they say. But i cant understand it.Please explain. The link to the example and the QUERY : http://forums.xisto.com/no_longer_exists/ Please help me. It is going over my head. The ADMINS must be knowing about this.
  2. I got a solution using CREATE TEMPORARY TABLE to select MAX things out of a table in reference to a Category.Now i want to know that is this CREATE TEMPORARY TABLE available after MySQL 3.23 Server intensive.I checked it out on the MySQL Administrator software that monitors your MySQL Software and the Load was infact less.But do all the hosts support this.Xisto does but then too, do hosts keep this on or no.I need this for my script.
  3. Your GD version might not be supporting imagettftext functionTry the following function:imagestring ( resource image, int font size, int x, int y, string s, int col )This is supported by all versions of GD library.But in this function the text that will be written over the Image will be a little ugly as u cant give the type of Font u want.Hope this helps and have a good day.
  4. Hi, I got a new problem which has caused me to go mad but no solution. preg_match_all() - is the problem. I have something like this: [ol][li]Test1[/li][li]Test2[/li][li]Test3[/li][li]Test4[/li][li]Test5[/li][/ol]Some text.Some text.Some text.[ol][li]Test1[/li][ol][li]Test1[/li][li]Test2[/li][li]Test3[/li][li]Test4[/li][li]Test5[/li][/ol][li]Test2[/li][li]Test3[/li][li]Test4[/li][li]Test5[/li][/ol] My RegExp is the following: preg_match_all("/(\[ol\])(.*)(\[\/ol\])/iUx", $text, $matches, PREG_SET_ORDER); Now this function gets 2 matches from the given text :Match 1: [ol][li]Test1[/li][li]Test2[/li][li]Test3[/li][li]Test4[/li][li]Test5[/li][/ol] Match 2: [ol][li]Test1[/li][ol][li]Test1[/li][li]Test2[/li][li]Test3[/li][li]Test4[/li][li]Test5[/li][/ol] It takes the [/ol] of the nested element first. I wanted that the preg_match_all() function matches the second match including the nested OR it should give me three matches. If i use Greedy RegExp then it takes the whole thing as One Match including the text between the two seperated [OL]'s. Is my REGEXP wrong or something.I tried lookaheads also but nothing. Please help me with this. I need it . This thing is going in my mind and does not let me live with peace. Thanks and have a good day.
  5. But how could the database accounts get deleted.I cant even log in to PhpMyAdmin.I submitted a ticket at the URL u gave.
  6. Ya even i was going to back it up.My DB had grown fairly large.Will we get our Databases back.Someone please help us.
  7. Well to enhance the usability Why are u including different files every time.Rather just call a function you have written for every page.Wouldnt that be Easy ?
  8. Well that would be a little work.I think so u should request the Moderators to shift the topic to the PHP board.About the script I will have to recolloect how it was to be done for the downloads.You got to use the header function .I will write it but i need a day or so.
  9. But which post will you try to connect to.Also will the server allow you to do so.
  10. Thats pretty easy.Use the getElementById() function of Java Script.Then Change the text by using innerHTML function.If you want to call it by anchor call a function which does the above thing.
  11. Here is the script in PHP that uses the File System to count each vist. <?php}$TextFile = "counter.txt";$Count = trim(file_get_contents($TextFile));$FP = fopen($TextFile, "r");$Count=fgets($FP, 4096);fclose ($FP);settype($Count, "integer");$Count++;if ($FP = fopen ($TextFile, "w")){fwrite ($FP, $Count);fclose ($FP);}?> I dont suggest to use the Database though
  12. I had read that thing before.But it sends only one email not bulk.But i will modify it to loop through to send many emails.To test the script I dont know how much load will it cause.Got to read all those RFC'sIf you still have a better one let me know.
  13. Actually I am trying to make this script for my Software.I found something Good on pear.php.net .My software will be distributed and used.So its not for my personal use but to integrate in my software which would be having capabilities to send Newsletters to its members.
  14. I dont think it is posible using Java Script.You can do it with a server side Language like PHP(I know that).You could either use a DB(DataBase) or a FS(FileSystem).But not JS.
  15. Hey , I have a problem .I wanted a script to send emails using PHP to more than 5000 email addresses for my software.But if you use the regular mail() function it will cause tremendous overload o the servers.I tried searching on the net but no use and i found some pre-built ones which are either copyrited or using PHP 5 only.But I want to make my own function to send Bulk Mails.If someone could give me a start I would be thankful.So does any one know how to send bulkmail.Also I needed to give an option of using SMTP servers if PHP mail is not supported on the LOCALHOST.Please Help
  16. What type of code or function do youy want ?I can help you.By the way you can also use preg_replace() fucntion if you are not so sure of the TEXT MATTER but no the Format of it e.g. a Hyperlink.But if you know the text then its advisable to use str_replace() function.Also for inserting any kind of quote - single or double - use a backslash to write it in the file.I love PHP
  17. Dont you think the image is tooo large.Also do you have some more images that I could add to my Magic Sig Generator.Thanks in advance
  18. You can also find a way to modify a existing file to change some of its values.e.g. If you have a global file that controls all your site settings and would like to modify it via the Admin Center you can use str_repalce function to do so.It is very effective for users.Good luck
  19. What script are you making may i know.
  20. Here is a better File writing function : <?php$filename = 'test.txt';$somecontent = "Add this to the file\n";// Let's make sure the file exists and is writable first.if (is_writable($filename)) { // In our example we're opening $filename in append mode. // The file pointer is at the bottom of the file hence // that's where $somecontent will go when we fwrite() it. if (!$handle = fopen($filename, 'a')) { echo "Cannot open file ($filename)"; exit; } // Write $somecontent to our opened file. if (fwrite($handle, $somecontent) === FALSE) { echo "Cannot write to file ($filename)"; exit; } echo "Success, wrote ($somecontent) to file ($filename)"; fclose($handle);} else { echo "The file $filename is not writable";}?> Also you should use the \n thing to hit enter in a file. But i dont think so it is necessary to put it in "" double quotes rather than single quotes . Best of luck
  21. I think both are very goodThey both use the same template but different colour schemes.You could use both as alternative design.Also you could use a random script to choose between the two when anyone loads the page.
  22. Hey even my sig uses that.However I have added a little Twist to it.It can reveal your OS and also you "The User" can write 10 different Texts that would be randomly selected with the mt_rand function and displayed.If you have someway to Optimze my Sig let me know.
  23. Hey thanks for that great news I wanted that .I love to Play with this tool and others like Virtual CD ana all.Great Find.
  24. Ya you are right.I have resend the Laptop to those guys to give a new quotation.Lets see if the Bill is more than I can get a new 12" Laptop with the same configuration then I will not repair it.But this makes no sense.These guys just know how to loot the people.IF YOU ARE LISTENING TO THIS HP THEN REPLY TO ALL OF US.
  25. The problem with the LCD is that its Backlight is not working.We had phoned the Help Center and they said that a wire might be lose.But they refuse to repair it.Also now the Laptop is not working.It refuses to start.HP is getting on my nerves.Is this a product of a well reputated company then it is horrible.I think so it is on Self Destruction Mode.Also this laptop is $1750 when i purchased it.Are high end laptops supposed to be so bad.
×
×
  • 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.