Jump to content
xisto Community

miCRoSCoPiC^eaRthLinG

Members
  • Content Count

    2,482
  • Joined

  • Last visited

Everything posted by miCRoSCoPiC^eaRthLinG

  1. Did you say the rules are strict here ??? Errrm.. Ahhemmm... You should consider joining Xisto - where the rules are far more relaxed and posting easier than ever <EVIL GRIN>
  2. Off topic - but my first ever computer had a 3.5" HDD (in the days of huge bulky ones - way back in 1991's) with a WHOPPING CAPACITY OF 20 MEGABYTES Those days that used to be one of biggest hard drives around the block
  3. Cool cool The debate's getting HOT :huh:I'd still argue for PHP - ASP.NET is restrictive in many different ways. If you weigh the advantages and disadvantages of both - PHP would come out a clear winner by a big margin. Moreover - as I said earlier, ASP(.NET) limits you to using ONLY Windows Platform and IIS Webserver. I don't think one has to mention - how buggy and unstable are both - so whatever advantages you might get in volume page handling, is all lost because of it's inherent instability. So there.. Lets have some more fors and againsts - and keep on your best behaviours.. no abusing from any quarters please
  4. Welcome to asta dude and have a great stay.
  5. Where are you trying to do it ? You dont seem to be a hosted member here. Whether you can backup from the cPanel or not - entirely depends on the configuration/permissions set by your current host. But anyway, you can always fall back on phpMyAdmin to do the backup job for you.
  6. Not really - whatever you can do with ASP, can be easily done with PHP - so nothing's stopping you from coming up with a site that's fully PHP based and yet capable of e-Commerce. Biggest difference is, ASP will run only of IIS - which I find a pathetic webserver and limits you to code only on windows. On the other hand, php will run on both windows and *nix and in fully compatible with Apache. So there.
  7. Try this: CREATE TABLE tablename ( `id` VARCHAR ( max_number_of_chars ) NOT NULL, `title` VARCHAR ( max_number_of_chars ) NOT NULL, `content` TEXT NOT NULL, PRIMARY KEY (`id`) ); That should get the proper table up for you. Don't forget to change the max_number_of_chars to whatever maximum characters you want for each field.
  8. Take a look at this post - http://forums.xisto.com/topic/31203-ajax-shoutbox-for-ipb-beta-2-release/ We've desgined a shoutbox that is still in beta stage and currently only supports IPB - but it should be relatively easy to implement it in PHPBB too. We'll announce an installer soon that'll allow you to install this in several well-known forum softwares as well as plain html/php webpages.
  9. I think you got me wrong - the script WONT JUST WORK with IPB - it can be embedded into ANYTHING - any forum or even plain HTML pages. What I meant was as of now, we've coded the script to read nicknames from the IPB Database ONLY. But soon we'll pack in an installer with it - that'll allow you to install it in any well-known forum or just normal HTML/PHP pages - except that in such a case you've to manually key in your nickname everytime you shout. You should give the test version a try at our developers' community.
  10. What exactly do you mean by web-services ? If it is XML-RPC, and SOAP or the WDDX (Web Distributed Data Exchange) - the precursor of SOAP - then PHP supports ALL of them presently. Also alongwith PHP use can use the PEAR and cURL libraries to achieve immense flexibility and perform any given web-service.
  11. The problem is most definitely here. In PHP, whenever that parse error, unexpected T_VARIABLE kind of message - be sure that it's a problem with either quotes - single or double - not ending/ending prematurely or a similar case with paranthesis (, { or [. Look at your code carefully: $sql = "INSERT INTO `".$tableprefix."regpage` (`id`, `title`, `content`) VALUES ('"$_POST['id']"', '"$_POST['title']"', '"$_POST['content']"');"; Notice that your second " (double quotes) start from "regpage ..... '" - upto right before $_POST. See how it terminates the string right there leving $_POST attached like a tail to the string before that - but the intrepreter is unable to parse $_POST, as to it, it appears as, "........"$_POST - which doesn't make any sense. The confusion between ' (single) and " (double) quotes is always a BIG issue for any newcomer and even I've faced the same situation as you're facing today. That's why when it comes to quote symbols I learnt to be extra careful and split out my string as clearly as possible - even if it takes more typing to do. Here's what your string should look like: $sql = "INSERT INTO `" . $tableprefix . "regpage` ( `id`, 'title`, `content` ) VALUES ( '" . $_POST['id'] . "', '" . $_POST ['title'] . "', '" . $_POST ['content'] . "' );"; See how I've extracted the variables that were to be evaluated and put into the string - and plugged them in separately. Since PHP parses any variable-name that begins with a $ and enclosed within double quotes, an alternative approach would be: $sql = "INSERT INTO `$tableprefix`.`regpage` ( `id`, `title`, `content` ) VALUES ( '$_POST ['id']', '$_POST['title']', '$_POST['content']' )";Hope this helps. Regards, m^e P.S. Keep in mind that if your string begins with a " (double) quote - it HAS to end with a double too - and so for the single. Always match up your quotes and see which is getting messed up of ending the string prematurely.
  12. Hi guys, [tab][/tab]Here's one of our preview releases of the projects going on under Antilost - an AJAX based ULTRA-LIGHT (only 20KB) Shoutbox, that works extremely fast and without refreshing your whole page. Can be easily integrated into IPB - although full integration module not ready yet. A demonstration can be found at: http://www.hugedomains.com/domain_profile.cfm?d=antilost&e=com Keep in mind that this is a develpomental release and is not completed yet. As we finish more and more of the coding part, the subsequent releases will be readily made availabel for download. So make sure you keep checking for updates regularly. To be informed about latest developments, you should signup with us at Antilost. We'll start sending out monthly e-Zines consisting of recent project updates and new project news. You can get the files for the Beta 2 Release at: http://www.hugedomains.com/domain_profile.cfm?d=antilost&e=comindex.phw=findpost&p=34 The code has been released under GNU/LGPL and bY downloading and using it, you agree to abide by the terms and conditions set forth in this license. Regards, miCRoSCoPiC^eaRthLinG
  13. Issue resolved I believe. Topic closed.
  14. Hi guys, [tab][/tab]Here's one of our preview releases of the projects going on under Antilost - an AJAX based ULTRA-LIGHT (only 20KB) Shoutbox, that works extremely fast and without refreshing your whole page. Can be easily integrated into IPB - although full integration module not ready yet. You can get the files for the Beta 2 Release at: http://forums.xisto.com/no_longer_exists/ The code has been released under GNU/LGPL and bY downloading and using it, you agree to abide by the terms and conditions set forth in this license. Regards, miCRoSCoPiC^eaRthLinG
  15. Welcome to Xisto angputter and have a pleasant stay with us here. You're right, we have a great community here that makes you feel at home rightaway. So just dive in and start posting. Only thing you got to be careful about is we have a ZERO TOLERANCE POLICY to SPAM.
  16. Hi Angie First of all - welcome to Xisto. I'm sure you'll have a great time here. We've a thriving community here that is built upon helping each other out in all sorts of technical difficulties. But it's not just limited to that. You'd probably find a forum to discuss any topic you want - under the sun and the moon. So don't hesitate - just dive in and pick a topic of your choice and start discussing. Be assured that none of your views will be ridiculed or looked upon with contempt - that much can be guaranteed about the terrific community we have here :)Regards,m^e
  17. Thread closed. Two other earlier threads discussing the exact same topic: http://forums.xisto.com/topic/87106-topic/?findpost=1064326406 http://forums.xisto.com/topic/83984-topic/?findpost=1064304022
  18. Awesome Glad that helped.. Any problems about VB/C# feel free to ask. Also the build error u got might have risen out of the fact you did &Sum / TotalNumbers. See VB is a language that doesn't need you to explicitly declare the variables before you start using them. So even if you used Dim to define Add on the top and then used Sum instead, in the code - no errors will be detected. However, I've noticed in VS.NET editor, sometimes, when you type a "&" symbol and a variable name together - it doesn't autoformat correctly and separate them out... Your &Sum / TotalNums should get formatted instantly to & Sum / TotalNums.. but that doesn't always happen. If the & sticks to the variable name, it will surely produce build errors.
  19. That explains - this extension isn't supposed to be used with any version below Firefox 1.5 - that is clearly stated in my first post in this thread. The fact is that the way extensions were packaged has changed a lot starting from Firefox 1.5 - and even this extension is no exception. The mismatch in packaging as well as the new concept of chrome registry - all together makes extensions designed for this version not compatible with the older ones. I don't know how you managed to install it in the first place - coz it should have given you an warning about version mismatch and aborted the installation. Anyway, if you upgrade to the new firefox, it surely will work for you
  20. It's fairly easy - am pasting the working code below. This employes the Console.ReadLine and Console.WriteLine methods to get input and print output respectively. However, ReadLine accepts a string only and I'm using CType to type cast it to an Integer. If you enter an Alphabetic character or a Punctuation mark in the input, this will cause the code to crash. If you want the input checking to be implemented at every step, that can be done too So let me know.. Module ConsoleCalc Sub Main() 'Variables Dim Num, TotalNums, Sum As Integer 'Print out info and prompt Console.WriteLine("Enter a series of numbers below, one in each line.") Console.WriteLine("When you want to end, enter -1") 'Init Vars TotalNums = 0 Sum = 0 'Loop till -1 is entered Do 'Accept a number Num = CType(Console.ReadLine, Integer) 'Check if number is not -1, then add to sum and increment turn 'If you don't introduce this second check, even the -1 will be counted as a number 'is the series and added to it - also the total numbers entered will be wrong 'and throw the average off If Num <> -1 Then 'Add to sum Sum += Num 'Increment Turn TotalNums += 1 End If Loop While Num <> -1 'Print the results Console.WriteLine("Total numbers entered: " & TotalNums) Console.WriteLine("Sum of all numbers: " & Sum) Console.WriteLine("Average: " & Sum / TotalNums) End SubEnd Module I wrote it off in 5 mins and tried it out - fully funtional. If you have any problems running it let me know immediately by return post.
  21. Hi guys,[tab][/tab]Quite sometime back (2-3years) I'd come across this software, which would sit in your system tray - and everytime a visitor comes by your site, you can monitor him and his activity on your site realtime. Everytime a new visitor came by, it would ring a bell and alert you - not only that, if doubled up as a live chat system too... I long forgot the name of that software nor can I locate any such free ones through search.Do you guys know of any such free software ?? What I'm interested is NOT LIVE HELP - but something that monitors ur sites visitors from your desktop - no browsers needed...If anyone's come across or used such a software please post back the link with some review if possible.Thanks,m^e
  22. Hey how come - are you receiving any sort of error messages ?? What version of FF are u using ? Is it one of the nightly builds ? Cant you give me sort more details please .. will help me figure out the bugs.
  23. Here goes - (who's on the piano.. drums please .. hurry up guys.. there he comes ) Haaaaaapy Biirrrrrrthday Tooo Yoooooooooouuuuuuuuuu....... ............Haaaaaapy Biirrrrrrthday Tooo Yoooooooooooooooooooooooooooouuuuuuuuuu....... **** Phewww ****Soo.. how did you like my song ?All the best man - have the most funfilled birthday and a terrific year ahead. God bless you :)Best Regards,m^e
  24. OK this brings us to the topic of Chrome Registry - which was there previously too - but not as advanced as it is now. I need to chalk up a tutorial soon enough. Here's how it works: Look OUTSIDE the chrome folder - in the root folder where you unzipped the extension. You'll find a file named: chrome.manifest. Starting from FF1.5 and above this file keeps track of all the folders that you're using to split out the contents of the extension. FF 1.5 onwards, this file is a must-be-present part of your extension. If you open up the chrome.manifest file, you'll find three-four lines in there: content creditsreporter chrome/chromeFiles/content/skin creditsreporter classic chrome/chromeFiles/skin/locale creditsreporter en-US chrome/chromeFiles/locale/en-US/overlay chrome://browser/content/browser.xul chrome://creditsreporter/content/credits.xul The first and last lines are again - MUST BE PRESENT in all extensions. The first line as you can see has three columns. It defines an entity called "content" (1st column) - which is a part of the "creditsreporter" (2nd column) extension - and the core files of this extension can be effectively located at "chrome/chromeFiles/content/" (3rd column).This line has to be present, and if you wish NOT to follow the standardised folder structure of extensions, you can place your core files elsewhere and change the content folder here - to make FF read it from your customized folder. For example I can write this line as: content creditsreporter abcd/efgh/zyx Now NOTE, that in effect what is getting defined is a pointer called content, under creditsreporter.. So we can refer to the contents of the above directory as: chrome://creditsreporter/content/ . ( chrome://2nd column/1st column ) Advantage of this method is - if you change ur folder structure later on you don't need to go back and change it all over in your extension - it entirely eliminates the need to hardcoding the file paths.. Whenever you need to change the dir structure, you simply come to chrome.manifest and change it here - the change is reflected all over your extension.. Similarly - note how I defined a pointer to the graphics folder, using the word skin - which again is nested under creditsreporter.. The 3rd column here simply specifies a name for the skin - you're free to name it whatever or in some cases can have multiple skins with different names. Once again, this points to the folder chrome/chromeFiles/skin/ So in effect, chrome://creditsreporter/skin/ will point to this folder. As I've defined only ONE skin, this is the default one chosen. Next we come to locale - which allows you to setup locale specific strings - so a user is free to switch the extension interface to the language of his choice.. Same STRUCTURE.. first locale, next creditsreporter, next the locale name string (en-US) that uniquely identifies the locale and fourth the folder where you'll find the locale files.. Putting it together - the files for en-US can be found at: chrome://creditsreporter/locale/en-US/ which is turn will point to the folder mentioned in the chrome registry... All these lines are very similar with just minor variations.. Confused ?? Let me know, i'll try to clear it up a little more.
×
×
  • 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.