Jump to content
xisto Community

iGuest

Members
  • Content Count

    72,093
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by iGuest

  1. Why not just listen to W3C Standards for the correct method of doing this without any dynamic scripting involved. It makes sense considering there's tonnes of languages, that to write a line of code for each one, does not make any sense. If you develop alternative pages in different languages then I suggest you read W3C on how it should be handled and not rely on what device connects to you, because it's possible they don't have an ACCEPT_LANGUAGE and you have not set a default for if it doesn't match. Also what someone said with the ACCEPT_LANGUAGE having a mixed string, since you can have it set up by preference, including the language that you prefer, but if you're not checking for their preferred language and only one that they've set, then you're definitely better off using W3C's way.$HTTP_ vars are old, learn what's now and not in the past, no point in continuing with something deprecated.The new variable is $_SERVER['HTTP_ACCEPT_LANGUAGE'];Cheers,MC
  2. Best place to learn PHP, from those who know.Second best place to learn, anywhere else, even in different programming languages you can learn not about it, but how you could use it.As long as you have a fair idea of what capabilities it has, and what it can do for you and why you NEED to use it, then it might be for you, but make sure to learn it, stop skipping things out and asking people to do things for you, it's something I hate, but at the same time, I like sharing knowledge, but I don't want to be doing people's work for them, it's more satisfying knowing that it's your own work.Cheers,MC
  3. Kushika,I don't think you understand DNS properly, this is for resolving the NAME to an IP, e.g. if your computer is called Sam, then the DNS is to make sure that your computer and those on the network understand that Sam actually lives at 192.168.53.3. So just look at it as a NAME that is used instead of an IP address when refering to that computer.Without using a "Proper DNS", the IP Address is the only address you actually need, no need for names at all.First things first, lets make sure Apache is listening for all connections on port 80, in httpd.conf or the config file of apache, there should be a line that starts with Listen,That line should read:Listen 80Which means Apache will listen on all connections on port 80. If you set an IP address here, then Apache will limit it's connection to only that IP, not what you want to do if you want it to be available to everyone.Your network or localhost IP will be what you use to connect to your own server, outside of the network, those you give access to must use your Internet given IP, which might be static or dynamic, if dynamic you might want to get a dynamic DNS name to give out.You'll need to set up port forwarding or httpd service in your router, you'll make your network IP of your computer where to forward connections to, on port 80 using TCP.You'll need to configure your firewall to allow connections to port 80 on that computer.There's probably more to do, but I can't think of any right now, too early in the morning for me.Cheers,MC
  4. OK then, give us the important information that we need.What distribution are you running? What version of Apache do you have installed?Going by what you've said you say you've got Apache2, in /etc/Apache2, that sounds like Debian or a variant of it.So the command that you will need to use is/etc/init.d/apache2 restartorapache2ctl restartFor the apache2ctl command, If it returns command not found, do:which apache2ctlAnd it will show paths of where this command could exist, then you would do /path/to/apache2ctl restartCheers,MC
  5. I find the Star Wars game that was released some time ago to be more challenging and fun. Gunz just seem to be missing that 'umph' that most games get. Same for this Star Wars game can be said, but at least it gives off it's bright moments when you play it. I don't think Gunz will last any longer than this year, and a new game will try to take it's place that would be made online, and maybe by another Korean group.
  6. 20 years from now, the world is gonna probably be over heating on summer days, and freezing on winter days. The world will be out of balance and we're just waiting to die The poles will be melting because of the Green House Effect, and Martians will live there from there on forth. As for technology, the only advancements will be computers, that help in fighting wars :/ War will be alive again and whoever is ruling will be an evil dictator who wishes to be President of the Earth.
  7. Check the Xisto link off the menu here: http://forums.xisto.com/no_longer_exists/
  8. A sister company to the Xisto Forums is Xisto - Web Hosting.com. They recently started to offer Web Hosting Re-selling plans. Might want to check it out at the Xisto - Web Hosting.com main page. https://xisto.com/ or PM to OpaQue.
  9. iGuest

    PHP Problems

    First of all, start-up the server and your Browser. Simple so far. In the Browser Address bar, type in : http://localhost/folder/[subfolder/]file_name.phpwhere the folder/[subfolder/]file_name.php is below the 'server-root' for the local installation. I have an XAMPP set-up on my machine and the windows file path is something like : c:/apache/xampp/htdocs/folder/filename, where c:/apache/xampp/htdocs is the server-root, so in my browser I type http://localhost/folder/[subfolder/]filenameThe stuff inside the square brackets is optional if the file path does not require it.
  10. I actually like Final Fantasy XI much better than World of Warcraft :/ There's something about WoW that doesn't seem fun after like a few hours of gameplay and sorts. Same can be said about FFXI for most, but somehow, it's just what I like. I guess it's just your own taste and you have to test it out to understand your 'review' on it. Though WoW got so much good reviews and lots of people play it, I say it's not fun and sort of boring at most times. I want a MMORPG that can keep me playing hours on end, and days and months and even years if possible. Final Fantasy XI was my choice after I tried both WoW and FFXI (Tried it at friend's house before buying FFXI over WoW) Just all you have to do is, buy and register for a month on the game, see how it's like. Then if you like it, stick with it and continue the monthly payments of 'almost' 15 bucks. If you hate the game or don't think you'll be playing it as much as you were hoping, cancellation will do the trick, and you can start square one with another game, or none at all and save monthly payments XDYour choice in the end, you just have to try it basically.
  11. Yeah a dome of some sort would be very nice, and maybe add a little green house and sorts and you got yourself a crazy world to live in ! I'd love to do that one day once I'm rich and all that >_> Yeah.. rich.. hehThough, what are the chances of people moving to Mars just to live there anyways? I always thought it was too 'dead' to live in without more life around than the dome you might live in... Great planet just wasted :/
  12. Houdini is close but the proper commands you can do is /sbin/service httpd start /sbin/service httpd stop /sbin/service httpd restart Which restart is is the one you've after, can only be performed by root or a super user. I usually do: su -c "/sbin/service httpd restart" Which is similar to sudo but I feel is much better to use than sudo, it may not work with some older distributions. Cheers, MC
  13. Of course 96 is a lot more than 6 >_< STill though, the thought of it is scary as heck. Even though most of us, if not all (And only counting those who are aware of their surrounds, so babies don't count) who will still be here, will have to face something like this haha. It's scary to even think about it, and if it actually happened now. What would you do if it was 1 month left before it hit?*Thinks of a million ideas ~_~*
  14. What laptop do you have?I'm going to say this is not possible, usually the graphics card is integrated, and built specifically for that laptop, that even the drivers may be different that the vendor of the card does not make them but the vendor of the laptop does.A lot of tests would have gone around heating issues, and adding onto it, you may cause problems for it. The only things that seem upgradable is the memory, hard drive space and if you're luckly the possibilities of having the rom drive upgraded.You're pretty much out of luck when it comes to upgrading other things on your laptop.Cheers,MC
  15. Usually the clock is based off the server's location, as it makes sense to have those servers run in their timezone than the different timezones of each member. In PHP you can add to your script <?phpputenv('TZ=Pacific/Auckland');?> Pacific/Auckland is my timezone, you'll need to replace it with your own. There's a file on Linux systems located at /usr/share/zoneinfo/zone.tab whichs has quite a complete list of timezones that you can use. I'll output it here: # @(#)zone.tab 8.1## TZ zone descriptions## From Paul Eggert (1996-08-05):## This file contains a table with the following columns:# 1. ISO 3166 2-character country code. See the file `iso3166.tab'.# 2. Latitude and longitude of the zone's principal location# in ISO 6709 sign-degrees-minutes-seconds format,# either +-DDMM+-DDDMM or +-DDMMSS+-DDDMMSS,# first latitude (+ is north), then longitude (+ is east).# 3. Zone name used in value of TZ environment variable.# 4. Comments; present if and only if the country has multiple rows.## Columns are separated by a single tab.# The table is sorted first by country, then an order within the country that# (1) makes some geographical sense, and# (2) puts the most populous zones first, where that does not contradict (1).## Lines beginning with `#' are comments.##country-#code coordinates TZ commentsAD +4230+00131 Europe/AndorraAE +2518+05518 Asia/DubaiAF +3431+06912 Asia/KabulAG +1703-06148 America/AntiguaAI +1812-06304 America/AnguillaAL +4120+01950 Europe/TiraneAM +4011+04430 Asia/YerevanAN +1211-06900 America/CuracaoAO -0848+01314 Africa/LuandaAQ -7750+16636 Antarctica/McMurdo McMurdo Station, Ross IslandAQ -9000+00000 Antarctica/South_Pole Amundsen-Scott Station, South PoleAQ -6734-06808 Antarctica/Rothera Rothera Station, Adelaide IslandAQ -6448-06406 Antarctica/Palmer Palmer Station, Anvers IslandAQ -6736+06253 Antarctica/Mawson Mawson Station, Holme BayAQ -6835+07758 Antarctica/Davis Davis Station, Vestfold HillsAQ -6617+11031 Antarctica/Casey Casey Station, Bailey PeninsulaAQ -7824+10654 Antarctica/Vostok Vostok Station, S Magnetic PoleAQ -6640+14001 Antarctica/DumontDUrville Dumont-d'Urville Base, Terre AdelieAQ -690022+0393524 Antarctica/Syowa Syowa Station, E Ongul IAR -3436-05827 America/Argentina/Buenos_Aires Buenos Aires (BA, CF)AR -3124-06411 America/Argentina/Cordoba most locations (CB, CC, CN, ER, FM, LP, MN, NQ, RN, SA, SE, SF, SL)AR -2411-06518 America/Argentina/Jujuy Jujuy (JY)AR -3124-06411 America/Argentina/Tucuman Tucuman (tm)AR -2828-06547 America/Argentina/Catamarca Catamarca (CT), Chubut (CH)AR -2926-06651 America/Argentina/La_Rioja La Rioja (LR)AR -3132-06831 America/Argentina/San_Juan San Juan (SJ)AR -3253-06849 America/Argentina/Mendoza Mendoza (MZ)AR -5138-06913 America/Argentina/Rio_Gallegos Santa Cruz (SC)AR -5448-06818 America/Argentina/Ushuaia Tierra del Fuego (TF)AS -1416-17042 Pacific/Pago_PagoAT +4813+01620 Europe/ViennaAU -3133+15905 Australia/Lord_Howe Lord Howe IslandAU -4253+14719 Australia/Hobart Tasmania - most locationsAU -3956+14352 Australia/Currie Tasmania - King IslandAU -3749+14458 Australia/Melbourne VictoriaAU -3352+15113 Australia/Sydney New South Wales - most locationsAU -3157+14127 Australia/Broken_Hill New South Wales - YancowinnaAU -2728+15302 Australia/Brisbane Queensland - most locationsAU -2016+14900 Australia/Lindeman Queensland - Holiday IslandsAU -3455+13835 Australia/Adelaide South AustraliaAU -1228+13050 Australia/Darwin Northern TerritoryAU -3157+11551 Australia/Perth Western AustraliaAW +1230-06858 America/ArubaAX +6006+01957 Europe/MariehamnAZ +4023+04951 Asia/BakuBA +4352+01825 Europe/SarajevoBB +1306-05937 America/BarbadosBD +2343+09025 Asia/DhakaBE +5050+00420 Europe/BrusselsBF +1222-00131 Africa/OuagadougouBG +4241+02319 Europe/SofiaBH +2623+05035 Asia/BahrainBI -0323+02922 Africa/BujumburaBJ +0629+00237 Africa/Porto-NovoBM +3217-06446 Atlantic/BermudaBN +0456+11455 Asia/BruneiBO -1630-06809 America/La_PazBR -0351-03225 America/Noronha Atlantic islandsBR -0127-04829 America/Belem Amapa, E ParaBR -0343-03830 America/Fortaleza NE Brazil (MA, PI, CE, RN, PB)BR -0803-03454 America/Recife PernambucoBR -0712-04812 America/Araguaina TocantinsBR -0940-03543 America/Maceio Alagoas, SergipeBR -1259-03831 America/Bahia BahiaBR -2332-04637 America/Sao_Paulo S & SE Brazil (GO, DF, MG, ES, RJ, SP, PR, SC, RS)BR -2027-05437 America/Campo_Grande Mato Grosso do SulBR -1535-05605 America/Cuiaba Mato GrossoBR -0846-06354 America/Porto_Velho W Para, RondoniaBR +0249-06040 America/Boa_Vista RoraimaBR -0308-06001 America/Manaus E AmazonasBR -0640-06952 America/Eirunepe W AmazonasBR -0958-06748 America/Rio_Branco AcreBS +2505-07721 America/NassauBT +2728+08939 Asia/ThimphuBW -2545+02555 Africa/GaboroneBY +5354+02734 Europe/MinskBZ +1730-08812 America/BelizeCA +4734-05243 America/St_Johns Newfoundland IslandCA +4439-06336 America/Halifax Atlantic Time - Nova Scotia (most places), W Labrador, E Quebec & PEICA +4612-05957 America/Glace_Bay Atlantic Time - Nova Scotia - places that did not observe DST 1966-1971CA +4606-06447 America/Moncton Atlantic Time - New BrunswickCA +5320-06025 America/Goose_Bay Atlantic Time - E LabradorCA +4531-07334 America/Montreal Eastern Time - Quebec - most locationsCA +4339-07923 America/Toronto Eastern Time - Ontario - most locationsCA +4901-08816 America/Nipigon Eastern Time - Ontario & Quebec - places that did not observe DST 1967-1973CA +4823-08915 America/Thunder_Bay Eastern Time - Thunder Bay, OntarioCA +6608-06544 America/Pangnirtung Eastern Time - Pangnirtung, NunavutCA +6344-06828 America/Iqaluit Eastern Time - east NunavutCA +6408-08310 America/Coral_Harbour Eastern Standard Time - Southampton IslandCA +6245-09210 America/Rankin_Inlet Central Time - central NunavutCA +4953-09709 America/Winnipeg Central Time - Manitoba & west OntarioCA +4843-09429 America/Rainy_River Central Time - Rainy River & Fort Frances, OntarioCA +6903-10505 America/Cambridge_Bay Central Time - west NunavutCA +5024-10439 America/Regina Central Standard Time - Saskatchewan - most locationsCA +5017-10750 America/Swift_Current Central Standard Time - Saskatchewan - midwestCA +5333-11328 America/Edmonton Mountain Time - Alberta, east British Columbia & west SaskatchewanCA +6227-11421 America/Yellowknife Mountain Time - central Northwest TerritoriesCA +6825-11330 America/Inuvik Mountain Time - west Northwest TerritoriesCA +5946-12014 America/Dawson_Creek Mountain Standard Time - Dawson Creek & Fort Saint John, British ColumbiaCA +4916-12307 America/Vancouver Pacific Time - west British ColumbiaCA +6043-13503 America/Whitehorse Pacific Time - south YukonCA +6404-13925 America/Dawson Pacific Time - north YukonCC -1210+09655 Indian/CocosCD -0418+01518 Africa/Kinshasa west Dem. Rep. of CongoCD -1140+02728 Africa/Lubumbashi east Dem. Rep. of CongoCF +0422+01835 Africa/BanguiCG -0416+01517 Africa/BrazzavilleCH +4723+00832 Europe/ZurichCI +0519-00402 Africa/AbidjanCK -2114-15946 Pacific/RarotongaCL -3327-07040 America/Santiago most locationsCL -2710-10927 Pacific/Easter Easter Island & Sala y GomezCM +0403+00942 Africa/DoualaCN +3114+12128 Asia/Shanghai east China - Beijing, Guangdong, Shanghai, etc.CN +4545+12641 Asia/Harbin HeilongjiangCN +2934+10635 Asia/Chongqing central China - Gansu, Guizhou, Sichuan, Yunnan, etc.CN +4348+08735 Asia/Urumqi Tibet & most of Xinjiang UyghurCN +3929+07559 Asia/Kashgar southwest Xinjiang UyghurCO +0436-07405 America/BogotaCR +0956-08405 America/Costa_RicaCS +4450+02030 Europe/BelgradeCU +2308-08222 America/HavanaCV +1455-02331 Atlantic/Cape_VerdeCX -1025+10543 Indian/ChristmasCY +3510+03322 Asia/NicosiaCZ +5005+01426 Europe/PragueDE +5230+01322 Europe/BerlinDJ +1136+04309 Africa/DjiboutiDK +5540+01235 Europe/CopenhagenDM +1518-06124 America/DominicaDO +1828-06954 America/Santo_DomingoDZ +3647+00303 Africa/AlgiersEC -0210-07950 America/Guayaquil mainlandEC -0054-08936 Pacific/Galapagos Galapagos IslandsEE +5925+02445 Europe/TallinnEG +3003+03115 Africa/CairoEH +2709-01312 Africa/El_AaiunER +1520+03853 Africa/AsmeraES +4024-00341 Europe/Madrid mainlandES +3553-00519 Africa/Ceuta Ceuta & MelillaES +2806-01524 Atlantic/Canary Canary IslandsET +0902+03842 Africa/Addis_AbabaFI +6010+02458 Europe/HelsinkiFJ -1808+17825 Pacific/FijiFK -5142-05751 Atlantic/StanleyFM +0725+15147 Pacific/Truk Truk (Chuuk) and YapFM +0658+15813 Pacific/Ponape Ponape (Pohnpei)FM +0519+16259 Pacific/Kosrae KosraeFO +6201-00646 Atlantic/FaeroeFR +4852+00220 Europe/ParisGA +0023+00927 Africa/LibrevilleGB +512830-0001845 Europe/LondonGD +1203-06145 America/GrenadaGE +4143+04449 Asia/TbilisiGF +0456-05220 America/CayenneGH +0533-00013 Africa/AccraGI +3608-00521 Europe/GibraltarGL +6411-05144 America/Godthab most locationsGL +7646-01840 America/Danmarkshavn east coast, north of ScoresbysundGL +7030-02215 America/Scoresbysund Scoresbysund / IttoqqortoormiitGL +7634-06847 America/Thule Thule / PituffikGM +1328-01639 Africa/BanjulGN +0931-01343 Africa/ConakryGP +1614-06132 America/GuadeloupeGQ +0345+00847 Africa/MalaboGR +3758+02343 Europe/AthensGS -5416-03632 Atlantic/South_GeorgiaGT +1438-09031 America/GuatemalaGU +1328+14445 Pacific/GuamGW +1151-01535 Africa/BissauGY +0648-05810 America/GuyanaHK +2217+11409 Asia/Hong_KongHN +1406-08713 America/TegucigalpaHR +4548+01558 Europe/ZagrebHT +1832-07220 America/Port-au-PrinceHU +4730+01905 Europe/BudapestID -0610+10648 Asia/Jakarta Java & SumatraID -0002+10920 Asia/Pontianak west & central BorneoID -0507+11924 Asia/Makassar east & south Borneo, Celebes, Bali, Nusa Tengarra, west TimorID -0232+14042 Asia/Jayapura Irian Jaya & the MoluccasIE +5320-00615 Europe/DublinIL +3146+03514 Asia/JerusalemIN +2232+08822 Asia/CalcuttaIO -0720+07225 Indian/ChagosIQ +3321+04425 Asia/BaghdadIR +3540+05126 Asia/TehranIS +6409-02151 Atlantic/ReykjavikIT +4154+01229 Europe/RomeJM +1800-07648 America/JamaicaJO +3157+03556 Asia/AmmanJP +353916+1394441 Asia/TokyoKE -0117+03649 Africa/NairobiKG +4254+07436 Asia/BishkekKH +1133+10455 Asia/Phnom_PenhKI +0125+17300 Pacific/Tarawa Gilbert IslandsKI -0308-17105 Pacific/Enderbury Phoenix IslandsKI +0152-15720 Pacific/Kiritimati Line IslandsKM -1141+04316 Indian/ComoroKN +1718-06243 America/St_KittsKP +3901+12545 Asia/PyongyangKR +3733+12658 Asia/SeoulKW +2920+04759 Asia/KuwaitKY +1918-08123 America/CaymanKZ +4315+07657 Asia/Almaty most locationsKZ +4448+06528 Asia/Qyzylorda Qyzylorda (Kyzylorda, Kzyl-Orda)KZ +5017+05710 Asia/Aqtobe Aqtobe (Aktobe)KZ +4431+05016 Asia/Aqtau Atyrau (Atirau, Gur'yev), Mangghystau (Mankistau)KZ +5113+05121 Asia/Oral West KazakhstanLA +1758+10236 Asia/VientianeLB +3353+03530 Asia/BeirutLC +1401-06100 America/St_LuciaLI +4709+00931 Europe/VaduzLK +0656+07951 Asia/ColomboLR +0618-01047 Africa/MonroviaLS -2928+02730 Africa/MaseruLT +5441+02519 Europe/VilniusLU +4936+00609 Europe/LuxembourgLV +5657+02406 Europe/RigaLY +3254+01311 Africa/TripoliMA +3339-00735 Africa/CasablancaMC +4342+00723 Europe/MonacoMD +4700+02850 Europe/ChisinauMG -1855+04731 Indian/AntananarivoMH +0709+17112 Pacific/Majuro most locationsMH +0905+16720 Pacific/Kwajalein KwajaleinMK +4159+02126 Europe/SkopjeML +1239-00800 Africa/BamakoMM +1647+09610 Asia/RangoonMN +4755+10653 Asia/Ulaanbaatar most locationsMN +4801+09139 Asia/Hovd Bayan-Olgiy, Govi-Altai, Hovd, Uvs, ZavkhanMN +4804+11430 Asia/Choibalsan Dornod, SukhbaatarMO +2214+11335 Asia/MacauMP +1512+14545 Pacific/SaipanMQ +1436-06105 America/MartiniqueMR +1806-01557 Africa/NouakchottMS +1644-06213 America/MontserratMT +3554+01431 Europe/MaltaMU -2010+05730 Indian/MauritiusMV +0410+07330 Indian/MaldivesMW -1547+03500 Africa/BlantyreMX +1924-09909 America/Mexico_City Central Time - most locationsMX +2105-08646 America/Cancun Central Time - Quintana RooMX +2058-08937 America/Merida Central Time - Campeche, YucatanMX +2540-10019 America/Monterrey Central Time - Coahuila, Durango, Nuevo Leon, TamaulipasMX +2313-10625 America/Mazatlan Mountain Time - S Baja, Nayarit, SinaloaMX +2838-10605 America/Chihuahua Mountain Time - ChihuahuaMX +2904-11058 America/Hermosillo Mountain Standard Time - SonoraMX +3232-11701 America/Tijuana Pacific TimeMY +0310+10142 Asia/Kuala_Lumpur peninsular MalaysiaMY +0133+11020 Asia/Kuching Sabah & SarawakMZ -2558+03235 Africa/MaputoNA -2234+01706 Africa/WindhoekNC -2216+16530 Pacific/NoumeaNE +1331+00207 Africa/NiameyNF -2903+16758 Pacific/NorfolkNG +0627+00324 Africa/LagosNI +1209-08617 America/ManaguaNL +5222+00454 Europe/AmsterdamNO +5955+01045 Europe/OsloNP +2743+08519 Asia/KatmanduNR -0031+16655 Pacific/NauruNU -1901+16955 Pacific/NiueNZ -3652+17446 Pacific/Auckland most locationsNZ -4357-17633 Pacific/Chatham Chatham IslandsOM +2336+05835 Asia/MuscatPA +0858-07932 America/PanamaPE -1203-07703 America/LimaPF -1732-14934 Pacific/Tahiti Society IslandsPF -0900-13930 Pacific/Marquesas Marquesas IslandsPF -2308-13457 Pacific/Gambier Gambier IslandsPG -0930+14710 Pacific/Port_MoresbyPH +1435+12100 Asia/ManilaPK +2452+06703 Asia/KarachiPL +5215+02100 Europe/WarsawPM +4703-05620 America/MiquelonPN -2504-13005 Pacific/PitcairnPR +182806-0660622 America/Puerto_RicoPS +3130+03428 Asia/GazaPT +3843-00908 Europe/Lisbon mainlandPT +3238-01654 Atlantic/Madeira Madeira IslandsPT +3744-02540 Atlantic/Azores AzoresPW +0720+13429 Pacific/PalauPY -2516-05740 America/AsuncionQA +2517+05132 Asia/QatarRE -2052+05528 Indian/ReunionRO +4426+02606 Europe/BucharestRU +5443+02030 Europe/Kaliningrad Moscow-01 - KaliningradRU +5545+03735 Europe/Moscow Moscow+00 - west RussiaRU +5312+05009 Europe/Samara Moscow+01 - Caspian SeaRU +5651+06036 Asia/Yekaterinburg Moscow+02 - UralsRU +5500+07324 Asia/Omsk Moscow+03 - west SiberiaRU +5502+08255 Asia/Novosibirsk Moscow+03 - NovosibirskRU +5601+09250 Asia/Krasnoyarsk Moscow+04 - Yenisei RiverRU +5216+10420 Asia/Irkutsk Moscow+05 - Lake BaikalRU +6200+12940 Asia/Yakutsk Moscow+06 - Lena RiverRU +4310+13156 Asia/Vladivostok Moscow+07 - Amur RiverRU +4658+14242 Asia/Sakhalin Moscow+07 - Sakhalin IslandRU +5934+15048 Asia/Magadan Moscow+08 - MagadanRU +5301+15839 Asia/Kamchatka Moscow+09 - KamchatkaRU +6445+17729 Asia/Anadyr Moscow+10 - Bering SeaRW -0157+03004 Africa/KigaliSA +2438+04643 Asia/RiyadhSB -0932+16012 Pacific/GuadalcanalSC -0440+05528 Indian/MaheSD +1536+03232 Africa/KhartoumSE +5920+01803 Europe/StockholmSG +0117+10351 Asia/SingaporeSH -1555-00542 Atlantic/St_HelenaSI +4603+01431 Europe/LjubljanaSJ +7800+01600 Arctic/Longyearbyen SvalbardSJ +7059-00805 Atlantic/Jan_Mayen Jan MayenSK +4809+01707 Europe/BratislavaSL +0830-01315 Africa/FreetownSM +4355+01228 Europe/San_MarinoSN +1440-01726 Africa/DakarSO +0204+04522 Africa/MogadishuSR +0550-05510 America/ParamariboST +0020+00644 Africa/Sao_TomeSV +1342-08912 America/El_SalvadorSY +3330+03618 Asia/DamascusSZ -2618+03106 Africa/MbabaneTC +2128-07108 America/Grand_TurkTD +1207+01503 Africa/NdjamenaTF -492110+0701303 Indian/KerguelenTG +0608+00113 Africa/LomeTH +1345+10031 Asia/BangkokTJ +3835+06848 Asia/DushanbeTK -0922-17114 Pacific/FakaofoTL -0833+12535 Asia/DiliTM +3757+05823 Asia/AshgabatTN +3648+01011 Africa/TunisTO -2110+17510 Pacific/TongatapuTR +4101+02858 Europe/IstanbulTT +1039-06131 America/Port_of_SpainTV -0831+17913 Pacific/FunafutiTW +2503+12130 Asia/TaipeiTZ -0648+03917 Africa/Dar_es_SalaamUA +5026+03031 Europe/Kiev most locationsUA +4837+02218 Europe/Uzhgorod RutheniaUA +4750+03510 Europe/Zaporozhye Zaporozh'ye, E LuganskUA +4457+03406 Europe/Simferopol central CrimeaUG +0019+03225 Africa/KampalaUM +1700-16830 Pacific/Johnston Johnston AtollUM +2813-17722 Pacific/Midway Midway IslandsUM +1917+16637 Pacific/Wake Wake IslandUS +404251-0740023 America/New_York Eastern TimeUS +421953-0830245 America/Detroit Eastern Time - Michigan - most locationsUS +381515-0854534 America/Kentucky/Louisville Eastern Time - Kentucky - Louisville areaUS +364947-0845057 America/Kentucky/Monticello Eastern Time - Kentucky - Wayne CountyUS +394606-0860929 America/Indiana/Indianapolis Eastern Time - Indiana - most locationsUS +382232-0862041 America/Indiana/Marengo Eastern Time - Indiana - Crawford CountyUS +411745-0863730 America/Indiana/Knox Eastern Time - Indiana - Starke CountyUS +384452-0850402 America/Indiana/Vevay Eastern Time - Indiana - Switzerland CountyUS +415100-0873900 America/Chicago Central TimeUS +384038-0873143 America/Indiana/Vincennes Central Time - Indiana - Daviess, Dubois, Knox, Martin, Perry & PulaskiUS +382931-0871643 America/Indiana/Petersburg Central Time - Indiana - Pike CountyUS +450628-0873651 America/Menominee Central Time - Michigan - Dickinson, Gogebic, Iron & Menominee CountiesUS +470659-1011757 America/North_Dakota/Center Central Time - North Dakota - Oliver CountyUS +394421-1045903 America/Denver Mountain TimeUS +433649-1161209 America/Boise Mountain Time - south Idaho & east OregonUS +364708-1084111 America/Shiprock Mountain Time - NavajoUS +332654-1120424 America/Phoenix Mountain Standard Time - ArizonaUS +340308-1181434 America/Los_Angeles Pacific TimeUS +611305-1495401 America/Anchorage Alaska TimeUS +581807-1342511 America/Juneau Alaska Time - Alaska panhandleUS +593249-1394338 America/Yakutat Alaska Time - Alaska panhandle neckUS +643004-1652423 America/Nome Alaska Time - west AlaskaUS +515248-1763929 America/Adak Aleutian IslandsUS +211825-1575130 Pacific/Honolulu HawaiiUY -3453-05611 America/MontevideoUZ +3940+06648 Asia/Samarkand west UzbekistanUZ +4120+06918 Asia/Tashkent east UzbekistanVA +4154+01227 Europe/VaticanVC +1309-06114 America/St_VincentVE +1030-06656 America/CaracasVG +1827-06437 America/TortolaVI +1821-06456 America/St_ThomasVN +1045+10640 Asia/SaigonVU -1740+16825 Pacific/EfateWF -1318-17610 Pacific/WallisWS -1350-17144 Pacific/ApiaYE +1245+04512 Asia/AdenYT -1247+04514 Indian/MayotteZA -2615+02800 Africa/JohannesburgZM -1525+02817 Africa/LusakaZW -1750+03103 Africa/Harare P.S. Switched to codebox tags, rather than quote so formatting is maintained and post length short. Cheers, MC
  16. Have you had any viruses or spyware?Sometimes they can affect your network connections, in which the only way would be to reinstall the component that is failing.Could uninstall your network card, and reboot and have it reinstalled.Also, onboard NICs do fail easily, you'd be surprised by the number of them that do fail. Even though it may work sometimes, it's probably just showing it's last legs before something major happens.Also which drivers are you using, probably in this case I would go with the vendor's latest drivers from their website, and if it still continues, switch to MS generic ones.Since it freezes while trying to configure it, I'm thinking it's something with a windows component not working correctly, but that's just my hunch, there's other things that may seem unrelated like the power supply etc that can also cause problems.Cheers,MC
  17. Have you cleared the cache and other temp Internet files? Might be sitting in the local cache of your computer with this error. (?) Also, try using the following format for access : http:// xx.xx xx xx/~cpanel_user_name_here where xx.xx.xx.xx is the IP Address of the server. Example: http://forums.xisto.com/no_longer_exists/ works for me at my Xisto account. I don't know which server Xisto accounts are on, so find the IP address and try that. Just trying to help...
  18. Here is a PHP Script which may help you. First of all, Let us create a table named tbl_test in a MySQL Database. The table contains three fields: 1. field_id 2. category 3 description Now here is the CREATE TABLE CODE for you. First of all, we'll drop Table, if it exists. DROP table if exists `tbl_test`; Now we'll create the table tbl_test. CREATE TABLE `tbl_test` ( `field_id` int(11) NOT NULL auto_increment, `category` char(20) default 'General', `description` char(100) default 'Not Specified', PRIMARY KEY (`field_id`) ) Now insert some test data in the table. Now is the time to play with the following PHP Script. The script starts at this point. <?php global $db_name,$db_host,$db_user_name,$db_pass; $db_name='test'; $db_host='localhost'; $db_username='test'; $db_pass='test'; Connecting to Database: $new_file="myfile.csv"; Consider giving a dynamic file name rather than a static one. This is the file that will store the fetched data. Create a file using fwrite(): $fp=fopen($new_file,"w"); if(!$fp) die("Error creating file"); It will be used later on to store the fetched records. $link_id=mysql_connect($db_host, $db_username,$db_pass); if(!$link_id) die("connection failed"); Hopefully you can add a more appropriate error handler. Setting the current database: $current_db=mysql_select_db($db_name,$link_id); if(!$current_db) die("error connecting host"); Creating a HTML table echo " <table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">"; echo "<tr>"; The table will hold a form which will display the options ( i.e. category as in my example). Your users will choose a value from the options given. echo "<td><form name=\"form1\" enctype=\"multipart/form-data\" method=\"post\" action=\"$PHP_SELF\">"; echo "<p>Please select a category </p>"; Now selecting the records ( i.e. category) one after another from the category table and displaying it in a list box echo "<select name=\"category\" size=\"1\">"; $search_string="SELECT DISTINCT category FROM tbl_test"; $result_of_search_string=mysql_query($search_string); while($data_search_string=mysql_fetch_row($result_of_search_string)) { echo "<option> $data_search_string[0] </option>"; } echo "</select>"; A simple one line instruction for the user: echo "Click here to start :"; echo "<input type=\"submit\" name=\"Submit\" value=\"search\">"; echo "</form>"; echo"</tr>"; The FORM ends at this point Note the action attribute of the FORM tag set to $PHP_SELF So when the user clicks on the submit botton the same page reloads with a value saved in the $category variable. Now we'll show the record based on the options chosen by the user. echo "<tr><td><h2> Your records </h2></td></tr>"; Let us set few global variables. global $records_per_page, $cur_page, $PHP_SELF, $search_category, $category; Checking if $category variable stotes any value or not, if it does not, we set it to default : General/ Or any value you prefer, but it must be the one of the values you have entered in the category field of your table. if(empty($_POST["category"])) $search_category="General"; else $search_category=$_POST["category"]; Checking is done. Now we'll show the user, what value he wanted to see. echo "You are searching for $search_category"; Now counting the number of records found in the database for that category: $count_query="select count(*) from tbl_test where category = '$search_category' "; $result = mysql_query($count_query); if(!$result) die("error"); $query_data = mysql_fetch_row($result); $total_record = $query_data[0]; if(!$total_record) die('No Record Found!'); Now setting the page number. $page_num = $cur_page + 1;Now setting the maximum number of records to be displayed in one page: $records_per_page=10; You can use another form to allow the user to select the records per page as we have done for selecting the category from the table. Now we are calculating the total number of pages. $total_num_page = $last_page_num = ceil($total_record/$records_per_page); echo "<tr><td><CENTER><H3>$total_record found on $search_category - Displaying the page $page_num out of $last_page_num.</H3></CENTER>\n</tr></td>"; Now set the current page number. To start with it will have a value = 0. if(empty($cur_page)) { $cur_page = 0; } Now we set the limit for the records to be displayed per page. $limit_str = "LIMIT ". $cur_page * $records_per_page . ", $records_per_page"; $new_query="SELECT description FROM tbl_test where category LIKE '$search_category'"; $query=$new_query ." ". $limit_str; Again a database query to fetch the records as per the option selected by the user. And display the records in a table. $result = mysql_query($query); if(!$result) die("No record found"); while($data=mysql_fetch_row($result)) { echo " <tr><td> $data[0] </td></tr> "; // this will show records fwrite($fp,$data[0]); // this will write to the file fwrite($fp,","); // This is the ", " seperater } We have finished fetching records and at the same time stroring it in a file. Now we are creating links for the user to nevigate to continuation pages. if($page_num > 1) { $prev_page = $cur_page - 1; echo "<A HREF=\"$PHP_SELF?&cur_page=0\">[Top]</A>"; echo "<A HREF=\"$PHP_SELF?&cur_page=$prev_page\">[Prev]</A> "; } if($page_num < $total_num_page) { $next_page = $cur_page + 1; $last_page = $total_num_page - 1; echo "<A HREF=\"$PHP_SELF?&cur_page=$next_page\">[Next]</A> "; echo "<A HREF=\"$PHP_SELF?&cur_page=$last_page\">[Bottom]</A>"; } Now we'll allow the user to download the file. echo "<tr><td><a href =\"$new_file\">Click here to download</a>"; Our task is over. Now some closing HTML tags again. echo" </Td>"; echo " </tr>"; echo "</table>"; ?> So far as the present script is concerned, I got a great help from a book entitle BEGINNING PHP4 published by Wrox Press Ltd. Infact page transition part has actually been scripted in that great book. It works nicely. Regards, Sid
  19. I think ipod's gonna be like google, taking over the things they are handing out. If Ipod keeps it up, we can expect some of the most advance music/video/radio/etc essentials ever. Heck, I wouldn't be suprised if Ipods were one day recommended as a help tool for school haha XDSo, if Ipod can step up, but one day fall, what would be the likely reason to that? That's something to contemplate about haha.
  20. I agree, I've been playing Counter Strike since about 1.3 or 1.4, and the first time I touched it, I was amazed at how people can actually work as a team, ONLINE! That was something new to me back then; working as a team usually meant to me as worthless because no one usually helps back. I spectated how they worked as a team when I first began and wanted to learn more. I saw how they send some to one side of the map, while the others went to another to be the decoy and sorts.Amazing strategies, cunning skills, and abusive shanks were what I loved to see through spectating. Then came the time I just had to be like them. The game's amazing, I could tell a life story about how this game can really help people haha. They say that FPS games help with eye reflexes and sound detection, and man are they right. I'm more aware of my surrounds outside of the game as it. (Don't expect me to run around with a knife to get faster though)So yeah, great game, not worth the download, because it's worth the purchase really. I can't wait for that new Half Life 2 package that's coming out, that chapter 2 or something. Don't want to look at it in detail because I might be spoiled :x1043252/10 (That good)
  21. All files are owned by someone and belong to a group, usually when you upload a file via FTP, that user who's logged in, will be the owner of that file. Also on your filesystem, you would have the owner of that file, usually an image has permissions 644, which is Owner:read/write Group:read All Others:read. So only the Owner is allowed to make alterations, all the rest can still view the file with no problems. If you created the image from your graphics program, then you're the owner of it (the person you logged in as). Only super users or yourself may alter the file, all others will only be able to read it. It also depends on where you store the photo, if it's in your home directory and you've made your home directory only viewable by the owner (you) then no one but you or super user could get to it, all the rest would be stopped trying to get into your home directory. You've obviously heard of chmod, other commands are chgrp (change group) and chown (change owner) which all these commands relate to one another in some way. Cheers, MC
  22. So what are you trying to do? Is it a membership login, securing pages, etc?What usually happens is people build web applications in which they believe is secure, someone comes along and breaks it and then they fix those problems.There's really no 100% safe way, it's always a trial and error experience.Large companies don't rely on just those technologies and sometimes have 3rd party software involved as well.If you have code snippets that you think would be good, you should post those, that way I could help with sifting through what I would consider safe.The basics is you've got a Username field a Password field and a login button. All data entered by the user must be checked against.Never match user with password, just grab the user's row and then compare the password from the results, if the user doesn't exist you'd know because the database couldn't return the results, if the password doesn't match from the results returned from the database, also it will be incorrect.Make sure you use either crypt() or md5() (heard md5 has collission problems, which doesn't mean it's that insecure just means multiple passwords could equal the same hash) to encrypt the password, if possible, you should have it connect over a Secure Connection.Always have a counter to count the times someone attempts to connect to that login multiple times, after 3 or more, present them with another login form which requires the visual representation of letters/numbers to be inserted, as well as a means to reset their password if they have forgotten it.Sessions should be given to every user who connects to your site, even if they have not signed in, this is to help you monitor them.Do not give back too much information that went wrong, e.g. if the username was incorrect, say either the username or password were incorrect (basically make it out that both were incorrect).Using a salt for password is basically for random generating a password, it's probably best to use this and send this type of password to the user's email before allowing them to create and change there password, this way, you also verify their email address and can also send them changes/updates etc. Also try to make sure they use strong passwords and not weak ones.There's tonnes more that would need to be talked about, even the security of your database and files etc, basically trying to make sure there's no weak links, since you might have the most secure login page in the world, yet your database security let you down and exposed everything, etc.Cheers,MC
  23. If that was the case, then it's quite possible, but only a super user or the owner of the file could make those alterations to it.Cheers,MC
  24. To delete files, you use the unlink() function.Problems you may encounter is the owner of the file is not the script that is calling the unlink, usually if you create the file with the script and then remove it with the script, it would be ok to do so. Another problem is trying to delete a file that's in use, if that's the case, you should always make sure that you've fclose() the file before trying to remove it.Cheers,MC
  25. w3schools has this to say about them.The (dl, dt, dd format} is used to 'structure' the list of links in the menu, similar to <ol> or <ul> tags, but different. Rather than use a 'class' or 'id' for the links, <dt>, <dl>, <dd>'s can be targetted for css attributes. When using <li>'s within a <ul> tag, there are only two attributes which you can select to assign attributes for without using 'class' or 'id'. Using this <dt> code in the html allows for an additional selection criteria. This gives you a greater degree of control on the output for colours, sizes, spacings, etc. Also, it can make it easier to control some page output. Use the <dt> selectors for the menu and <ul>'s inside the page when the page contains a list and it will be a little easier for determining the selection criteria for styling, sometimes. A bit of a hack, but what the heck...
×
×
  • 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.