Jump to content
xisto Community

vujsa

Members
  • Content Count

    1,008
  • Joined

  • Last visited

Everything posted by vujsa

  1. Well, if you are trying to boot from the "old" drive, you have to enter your systems configuration screen during startup. When you are asked to enter "setup" or what ever your system calls it just a few seconds after you boot or reboot your system, press whatever key it says like "Esc", "F1", "F2", etc... Then in your boot options, turn "Boot From USB" support on. Then in boot order, move your USB device to the top of the list. This should boot to your old operating system where you can access all of the files like you used to. Then move whatever files you want to the new system's hard drive. There is a possibility that you cannot boot to the old operating system without first repairing it to work with the new system's components. You other option is recovery software: Read the following tutorial for more information: http://forums.xisto.com/topic/82436-topic/?findpost=1064293081 I hope this helps. vujsa
  2. Well, since these folders take very little room, I suggest leaving them alone! Most of them can go and when you log into cPanel again, the important ones will be recreated. You must keep the following:mailpublic_htmlpublic_ftpwwwWithout these, your data will be lost. Most of the others, as far as I know, are just settings files that keep your preferences stored.Yes, www is a"shortcut" to public_html. This is a security precaution. This way only the "shortcut" is available to the public while the files are kept away in another folder. You must have both to work correctly.Again, since we are talking about very little storage space for these "extra" files and folders, I recommend leaving them alone.vujsa
  3. Actually, I have most of the I Love Jack Daniels cheat sheets. They are well organized and have plenty of examples and tips. The best part is that they are done in PDF format and can be easily printed out without the need to format it or place it into another document. Personally, I printed my cheat sheets at best quality on 8-1/2 X 11 double sided soft gloss photo paper. They really look good when printed in such a way. The heavier paper makes them more durable and by using both sides, I have fewer sheets to lose. While most of the commands on cheat sheets I already know, I find that it is handy to have them around when I need a refresher on the particulars of a function, command, or feature. This is particularly useful for doing date formats in PHP since there are many format characters to use. I think that cheat sheets are a very valuable tool for most web developers since it allows them to concentrat on the project more and on the methods less. vujsa
  4. What you need here is the header function. Like so: <? phpif($_POST['username'] == 'Nuwan'){ header('Location: http://forums.xisto.com/no_longer_exists/{ header('Location: http://forums.xisto.com/no_longer_exists/;Of course, you'll need a way to compare your username and password to a database or list of users but you didn't ask that question so I'll assume for now that you either don't need it yet or have already figured that out. Hope this helps. vujsa
  5. I still have not noticed any irregularities with the credit system. It continues to work the same way that I have observed it for the past 2.5 years with a couple of exceptions. First, the script adjusts your credit count according to any content you add or remove from an edited post. This includes edits made by staff to your posts! Second, the script automatically removes credits from your account if your post is deleted. This includes posts made in topics that are deleted. If you reply to a post that is determined to be junk or spam, you may lose credits if a staff member deletes the topic. The issue is that a deleted post carries a penalty with it. If there are a lot of replies to a "BAD" topic, we try to just close it or orphan the replies or at least the larger ones so not hurt the honest members that mistakenly replied to the topic. For more information, read this: You Will Lose Hosting Credits If I Delete Your Post I'm sorry, but this is a fact of life here. Instead of replying to junk or getting involved in pointless discussions, you should report the offensive topics for the betterment of the entire website. vujsa
  6. Yeah, it looks like someone has limited that sub domains accessibility!. Meaning, it can only be accessed internally. This isn't a problem for the entire domain since just on level up works fine. http://kpdsb.on.ca/ is okay here! Your school's IT has limited the sub domain to either a specific IP range or to a specific domain. Since this requires very specific rules to be written either at the server configuration level or with the .htaccess file for the sub domain's folder, I would assume that they don't intend for the web pages contained within to be accessed from outside. This is so that they can control bandwidth and liability by preventing the students from using the school district's server as their own personal web host! Basically, the pages you want to view from "home" aren't intended to be seen from outside of school. Your school knows this already, have done it intensionally, and probably will not release access to the sub domain to the general public. There is actually a huge list of reasons why the school district would not allow student authored web sites to be publicly accessed. The biggest concern is the privacy and safety of the students that may unintentionally divulge important information to online predators. vujsa
  7. Very nice summary of web related "languages". PHP: PHP Hypertext Preprocessor is a recursive acronym meaning that the definition of the acronym contains the acronym. I couldn't possibly think that far ahead in naming a language nor poses the skill to write my own language which leads me to believe that the originators are pretty smart people. I did think that given the importance that Perl has played in the development of web based applications, it should also be mention. Perl (Practical Extraction and Report Language) is usually what is running when you see anything that uses the cgi-bin directory. It is a very powerful language and was the main server side parser before PHP. File extensions include .cgi and.pl ASP (Active Server Pages) is also a common language for the web. Personally, I don't use it and don't have little personal information about the language but thought it should be mentioned. It is limited in usefulness since support on Unix/Linux based web servers (usually running Apache) isn't very good which is problematic since the vast majority of web servers use this platform. ASP is a Microsoft language and as a result is rather complex but very powerful! I like the point that you made about PHP parsing the script into HTML prior to being sent to the browser. Many people don't understand this. In fact, most people don't understand that there are only four ways to display information as a web page. HTML, JavaScript, Plain Text, and graphical (through JS or HTML usually). These are the only formats that your browser will understand. While it is possible to code a website entirely in JavaScript, I don't recommend it. vujsa
  8. Well, since you pointed out that different native English speakers pronounce English words differently, I guess I can understand how you came up with your pronunciation. :blink:But, wouldn't the first "a" be long since there is only a single consonant before the second "a"?Long "a" followed by an "r" is pronounce the same as "air"? At least we agree the the "ch" in this case is a hard "k" sound like in "care".I guess it depends on which syllable you place the "r" in. I include the "r" with the first syllable but I see that you place it in the second syllable.I suppose that well need to have a Canadian moderate this topic. :Dvujsa
  9. I think the best and most common method is to use regular expressions. Using regular expressions allows you to match a wider variety of patterns. If you only use str_replace, then if the user makes a mistake in the BBC or the BBC contains something you weren't expecting, you could get a lot of errors. For example, here is some BBC for URL using regular expressions: <?php $input = "[url]http://forums.xisto.com/no_longer_exists/ />\n[url=http://forums.xisto.com/no_longer_exists/ PHP[/url]";$pattern = array( '@(\[url=)([^\]]*?)(\])(.*?)(\[/url\])@si', // This matches [url=http://http://www.domain.com/; '@(\[url)([^\]]*?)(\])(.*?)(\[/url\])@si' // This matches [url]http://http://www.domain.com/; );$replace = array( '<a href="${2}">${4}</a>', '<a href="${4}">${4}</a>' );$output = preg_replace($pattern, $replace, $input);echo $input . "\n<hr />\n" . $output;?>See, instead of replacing a part of the BBC, the entire tag is replaced and selected parts of the tag is reinserted into the new string. The first pattern is actually composed of 5 sub-patterns:(\]*?) - Second, match everything after that up to but not including "]" - This is the "http..." (\]) - Third, find the end bracket for the opening tag. (.*?) - Fourth, Match everything here until the next sub-pattern. - This is the "Handy PHP" (\[/url\]) - Fifth, find the closing tag for the BBC. Now, the replacements include back references to parts of the original string. For example, ${2} means use the second sub-pattern match from the original string which is http://forums.xisto.com/no_longer_exists/. Since you are matching a full string instead of pieces and parts of a string, you can better control how the output will be formated. While this pattern doesn't tackle the issue of single, double, or no quotes being used by the user, it could be easily modified to do so. See this new version that looks for single and double quotes: <?php $input = "[url]http://forums.xisto.com/no_longer_exists/ />\n[url=\"http://forums.xisto.com/no_longer_exists/ PHP[/url]<br />\n[url='http://handyphp.com PHP[/url]<br />\n[url=http://forums.xisto.com/no_longer_exists/ PHP[/url]";$pattern = array( '@(\[url=)(\'|")*([^\]]*?)(\'|")*(\])(.*?)(\[/url\])@si', '@(\[url)([^\]]*?)(\])(.*?)(\[/url\])@si' );$replace = array( '<a href="${3}">${6}</a>', '<a href="${4}">${4}</a>' );$output = preg_replace($pattern, $replace, $input);echo $input . "\n<hr />\n" . $output;?> You may have noticed that I use arrays for both pattern and replace. preg_replace will cycle through each array item in $pattern and replace it with the corresponding item from $replace. You should also see that I have 2 different patterns and 2 different matches. This is because of the 2 different methods that the URL BBC can usually be implemented. The first should always be the more specific pattern followed by the more general. Since the link with a a name is a more complex string, the pattern for it has to be more specific. Due to the complexity of regular expressions, many newer programmers have a lot of trouble figuring out how to use them. In fact, I still learn new things every time I try to use regular expressions. I depend a lot on trial and error. The above examples are not quite as optimized as they could be but these are the easiest to understand examples I could come up with. For example, since you only need 2 back references in this example, it isn't really necessary to have everything broken down into sub-patterns. Only that which you want to back reference needs to be sub-patterned. I recommend that you do more research into regular_expression. Here is a good place to learn: [url="http://forums.xisto.com/no_longer_exists/ In general, that is a fantastic website for web developers. I printed a number of the full color cheat sheets onto glossy double sided photo paper. As for checking for injections, you can reject urls the end with ".exe" if you want. It just requires you to adjust the regular expression to "NOT" match the BBC if it contains a link with .exe at the end. Or you could replace offensive links with some other string which is easier and will cover all links in the input and not just the once in BBC. I hope this helps vujsa
  10. Ah, this again. The server has for a long time had an issue with "unlimited". That is why most of the limits are 99 or 999 which is more than enough but gets around this issue. If you still haven't gotten this resolved, please do as velma suggested and send a support ticket.vujsa
  11. The script doesn't know what you want to move! When a file is uploaded, it by default goes to the temporary directory with a temporary name. You have to tell the script to move the file from that directory and give it a name for this to work. Also, even if this method were to work, you would still need to assign a value to $myfile like $myfile = $_POST['myfile']; I'm afraid that the very best example of file uploads is at the PHP.net Website. Chapter 38. Handling file uploads This is by far the easiest way to do this and learn the functions required to make it work. This is the method most developers use. The best part of this, the whole script is written for you and ready for modification. vujsa
  12. Maybe if you all would grow up and use an FTP client like the rest of the World, you might find it easier to "develop" your web sites. I mean really, who cares what the cPanel looks like. I hardly ever log into my cPanel unless I want to add a domain or email. From time to time, I'll check some stats but that is about it. All of my files are developed locally then uploaded via FTP.If it is a really big problem for you to use the current cPanel theme, then please feel free to find a new host! You are welcome to continue debating the issue but it won't change anything! The theme we have is what we will continue to use. There will not be a change no matter how many people vote for it in the polls. I thought that BuffaloHelp's reply was enough to end this but I guess not. vujsa
  13. Warn you, I think we all probably agree with you! Being on the Xisto staff is a lot of hard work. It is easier when all of the staff works well together to eliminate the problems facing the board such as spam, junk, and hosting approvals. vujsa
  14. Well, the magnet issue is kind of a design flaw on the part of the toy company. But the toy is designed to be magnetic so it is hard not to have the magnets. I guess that they may want to not make toys that require small magnets but the suggested age for the product was for children less likely to swallow such items. While I wouldn't suggest it, swallowing a small magnet causes relatively few problems other than it takes a long time to pass and won't break down. The real problem is when 2 or more magnets are swallowed in a short period of time. When 2 or more magnets are in the intestines at the same time, they tend to attract each other. This attraction first causes intestinal blocking as the magnets won't move since they are held in place by each other. After time, the attraction becomes more and more of a problem as the magnets actually tear the intestinal walls holding them apart. Keep in mind that a lot of toys use small magnets and some toys are magnets. A fun building toy that seems to be popular is made up entirely of various shaped magnets. Despite the recall on toys containing magnets, I believe that magnets will continue to be used safely in many toys in the future. As for the Chinese, I really don't have anything else to say with regaurds to this issue. vujsa
  15. Let me stat by saying that I have nothing against Chinese people and aside from a difference in politics, I have no problem with the country of China. However, the lack of quality control and the overwhelming number of low paying jobs has caused a lot of problems in the U.S. recently.For a long time I think most people have assumed that products from China were not of the highest quality but nobody expected to be poisoned by Chinese products. In Spring 2007, a large number of dogs and cats became very ill with many dying as a result of contaminated pet food. The contamination was traced back to the wheat gluten tat was imported from China. The thing that really bothers me about this is that the U.S. has the ability to feed the entire World with it's own wheat production, so we don't even need to import wheat gluten from China. We import it to help promote trade with China and keep friendly relations alive. It turns out that the person determined to be responsible for allowing the contaminated food product to be sent to the U.S. was arrested by the Chinese government and was executed by hanging. So a few Americans had some of their pets die, right? Well, wheat gluten is used for human consumption as well. This food product could have been purchased by a restaurant chain or food manufacturer instead of a pet food company! A few thousand pet poisonings could have been a few thousand human poisonings. Obviously, the U.S. government has banned wheat gluten imports from the Chinese company that allowed the contaminated product to be sent to the U.S. Okay, one Chinese company made a mistake or maybe just didn't know that they had sent bad product. Does that give me the right to complain about all Chinese made products? The answer is "No"! Knowing their quality of product and not understanding the need to import wheat gluten, I just figured that it was a matter of time before something like this happened. What I didn't expect was for another issue to pop up so soon. I figured that they would have learned their lesson and tried to improve their quality control structure.In the summer of 2007, A very large toy manufacturer was forced to recall million of products made in China. Apparently, China didn't get the memo that lead paint is bad. Lead poisoning causes brain damages and leads to developmental problems in children even at small doses. Maybe the person in charge of product safety eat too many paint chips as a child. Millions of toys sent to the U.S. have been painted with lead paint. These are common toys and it is very likely that they are in many countries around the World. Ultimately, the toy company is responsible for the safety of the final product and should have checked the toys for safety before they were accepted but the problem was missed. So, China was finally informed that lead paint is not safe for children toys. Alright, two little situations that could have been avoided if the U.S. companies had fully tested the poison content of the products prior to distribution to the public. Should I really get so upset? Well, the story hasn't ended yet. Just a few weeks after the lead poison issue, yet another problem was found!That's right, last week is was announced that single use toothpaste made in China for hotels is also toxic! Diethylene glycol, a chemical used in automobile antifreeze, may be present in some toothpaste produced in China! This stuff is toxic to humans and animals to the point of death! Most people know that swallowing toothpaste in not good for you and swallowing enough toothpastes can make you sick but that is without a highly toxic chemical like diethylene glycol!Is China cutting too many corners to be able to afford to get manufacturing contracts with American companies? Will they improve their safety record in the next few years? Is it just a coincidence that there have been three major issues in such a short time and because of the short time they haven't been able to make all of the necessary changes yet? Aside from it's unbelievably large workforce, does China have anything to offer the World if they can't produce safe products?I ask these questions because they are the questions that everyone that uses products made in China should be asking. If you have never used a product made in China, I'd be surprised. China is quickly becoming on of the wealthiest countries in the World but most of it's citizens will ever benefit from that wealth. Most of the people in China would leave their job if offer just a few more cents per day in pay and many do. I'm not talking about a lot more money, maybe less than one U.S. dollar a week! As a result, a factory may find that none of the employees showed up for work one morning because they took jobs at the factory across town. Or worse yet, the employees show up but the government didn't tell you that it was your day not to have electricity. That's right, not every factory in China can have electricity at once! They have to rotate the electrical usage. Many of the better factories have managed to install their own generators so that they can run the factory as much as they want. That is of course if there isn't a fuel shortage.So the next time you see a Scion driving down the street and think it is a cute car, remember, the few that were tested were safe but the one you are looking at may not be. I'm not suggesting that be ban all products made in China but I do believe that we need to let China know that they need to ensure that the products they make are safe for everyone. Maybe if China was to care enough about its people to have banned lead paint already, millions of children may not be a a greater risk of developmental problems. After all, how can Chinese companies ensure the safety of the products they export if they don't bother checking the safety of the products they use.Basically, China is over populated and the government there has finally found a way to cash in on that problem. The only reason that China executed the guy they said was responsible for checking the safety of the wheat gluten is because he embarrassed the country. Instead of executing him, maybe they should have asked him what he needed to be sure it wouldn't happen again. Without the Chinese government implementing strict safety laws for all products manufactured in China and with continued low pay for the workforce, I believe that the problem will only get worse.Well, at least I have an opinion,vujsa
  16. My guess is that your previous server used PHP4 and our server uses PHP5. If you are using older PHP3 functions in your scripts that are no longer supported, then this would cause the problem. I can't imagine any other issue which would cause this problem. As mentioned by pyost, most PHP scripts utilize these superglobal variables and nobody else is having said issues. It is important to remember that the error could exist somewhere other than the retrieval of the superglobal variable value. For example, if the function for compose has an error in it because of a database error, PHP5 incompatibility issue, or even a file permission setting, the script may be written to return to the default page of the master script which in this case would be index.php?p=messenger. My suggestion is to review your error logs or better yet, upgrade your PM system. Please keep us up to date on your status with this problem. vujsa
  17. I think I see the problem.. We don't support asp here. We used to but it was just too difficult to maintain with the linux servers and nobody used it. But if you are interested in learning a web scripting language, we do support PHP and have a lot of information on the subject in these forums.vujsa
  18. Well, here is my guess...The user obviously used AOL in the past and may have signed up for their AOL Broadband service. The AOL Broadband service allows people used to the AOL system to continue using AOL with a broadband connection. AOL has for a long time been manipulating the computers of its users to hide the true internet from them. At one point in time, AOL had a software version that would allow it's members to fully interact with non-AOL email addresses. Really irritated a lot of people!My point is, the AOL software on the system has probably made changes that are causing the problems. Since many AOL users don't fully understand the internet, AOL has managed to continue getting monthly service fees without any real service! What is really funny is that their are many AOL users that have never made it beyond the AOL network and into the true internet.So the AOL software sets the computer up so that when a user tries to use the internet, the AOL login screen is shown so that the user can gain access to his or her account. The settings are such so that if you choose not to login or you logoff, the browser is closed. Again, this is AOL assuming that the user is only using the AOL interface. And, this also propagates the idea that you can only connect to the internet with AOL. AOL wants it's users to believe that the only way to use the internet is with their serve so they designed their software to make that dream a reality.You should be able to use the internet by opening a seperate browser without logging in first. My suggestion is to uninstall any AOL software on the systems you are inspecting.vujsa
  19. Well, I have made up my mind. Sorry for the long delay, been pretty busy and expect to be even busier soon. I too really liked saint-michael and Niru's submissions the best but found all of the entries to have something to offer a final product! Here is a breakdown of credits awarded: 30 Credits : Niru - Overall Best Design _0 Credits : saint-michael - Second best design but unable to transfer credits to non-hosted members. Would have been 20 credits. 20 Credits : livingston - 10 credits for each submission, nice text effects. _0 Credits : Team Destiny 07 - Very nice background effects but unable to transfer creedits to non-hosted members. Would have been 10 credits. For SM and TD07, I cannot think of any way to reward you for your hard work. If you have any suggestions as to how I might reward you, please PM me! Thank you to everyone for their submissions and input. vujsa
  20. My first suggestion to data recovery is not to lose it to begin with! I'm all about the backup and redundency! The biggest problem with losing data is that you eventually have to go to some forum and explain all of the mistakes you made in the loss of your data. But if you are dead set on losing your data or if you already lost your data, then you'll need some data recovery software. Read this: http://forums.xisto.com/topic/82436-topic/?findpost=1064293081 I think that will help. vujsa
  21. Well at the time of the deadline, saint-michael was in the lead with Niru following closely behind. Thanks to everyone for participating and voting in this contest. This weekend I will review all of the votes, opinions, and suggestions and make my decision on who will receive the bulk of the credits. I still haven't figured out how to award credits to saint-michael but every entry will get at least 10 credits! Bet more people wish they had entered the contest now. B)Also, I may use a combination method for the final images to be used but I think that most people agree that every entry had something positive to contribute.I'll reply later with a breakdown of the distribution of credits to the participants after the weekend. Been so busy. Needless to say, this will cost me a lot more than 30 credits. :)vujsa
  22. Everything you have ever posted here was copied from someplace else! vujsa
  23. I'm glad to see all of the input I'm getting on thiis topic. I'm looking forward to reading more comments and seeing how the poll results turn out.Thanks to everyone that submitted a logo set and everyone that has voted and commented on the designs submitted.vujsa
  24. You will have credits deducted from your account at the rate of 1 credit every 24 hours. So, you will lose 0.5 credits in 12 hours etc... You can do whatever you want with your credits. I think most people here understand that most members want more credits. We generally don't request payment for help here but there isn't any rule against that. Please remember, the staff will not get involved in your trades! If you design a website for someone and they don't transfer credits to you afterwards, there is nothing we can do about it! The credit transfer option was designed to allow a member to voluntarily transfer credits to someone if they felt that the member had been very helpful with their problem. Additionally, we thought that some people might benefit from requesting help in exchange for credits! For example, I have a logo design challenge that I will award 30 credits to the winner. hot linking! Well, we allow it if used responsibly! If you are hoping to run a website on another host and to save bandwidth there, host all of your images here; we don't allow that! If you want to make your content available to others to use on their website by direct link, we do allow that as long as it doesn't negatively affect the server. You can have as many sub-domains as you wish on your account. You are currently using the default www sub-domain on your account I imagine! With cPanel, you can add even more. if your domain was this: http://forums.xisto.com/no_longer_exists/ then you would have sub-domains like this: members.mydomainname.org or new.members.mydomainname.org You will not have a Xisto.com sub-domain name if you set your account up with your own domain name. If you have an Xisto sub-domain or even your own domain name, you can add additional domain names to the account with the Add on feature in cPanel and each of those domains can also have sub-domains. The options are pretty limitless in this area! Hope this helps, vujsa
  25. Searching for a "Website" on Google usually doesn't return the expected result for new or smaller websites. Google will return the results of the search string based on the relevance and rank of the page the string is on! While handyphp.com finally has me listed as #1 in Google, most of the results are from larger, more popular websites that have a link to my website on them! But, the upside is that people are finding information about your website! Your website is probably already indexed for something other than the name of the website! For example, a search for "Joomla SearchBot" on Google lists my website first but a search for "PHP" doesn't even list me in the first 25 pages of search results! While you may be getting unwanted results from the queries that you perform on Google, there may be others getting a lot of useful information about your website by performing queries that you never considered. Check your logs for the referer information to see what people searched for before they got to your site. Here is a line from my log where someone came to my website after a Google search for "all my files saved in mpeg extention" XXX.XX.XXX.XXX - - [06/Apr/2007:07:15:33 -0700] "GET /content/view/14/17/ HTTP/1.1" 404 - "https://www.google.ca/search?hl=en&q=all+my+files+saved+in+mpeg+extention&btnG=Google+Search&meta=&%2334; "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)" The statistical display fetures in cPAnel offer a lot of easy to read query statistics. By analyzing how people find your site, you can adjust the content or promotion to better target the users you want. Hope this helps. vujsa
×
×
  • 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.