Jump to content
xisto Community

shadow-x

Members
  • Content Count

    28
  • Joined

  • Last visited

Everything posted by shadow-x

  1. Hi guys and girls. Im an old member who migrated to T17 but im back as it seems no-one at T17 can help. My problem is with PHP and IMAP... im experimenting with php and IMAP to read emails on my local email server. My local email server is Mercury V4 which apparently does support POP and IMAP, i have confirmed the server is working by sending an email from the server using its internal send mail system and then checking that email using the Thunderbird client. the email was sent and received properly. So i moved into the PHP area and done the basic connect code (the full code i used is below so check that, im sure its right, i basically copied it) which seemed to work, i got the result: "Resource Id #2" Should that be "#4" instead? One tut said i would get #4 so maybe the error lies here... Anyway it connected and disconnected with no errors so i proceeded to use Imap_headers($connect); to get the headers of the emails.. Oh no.. It didnt work...The error detection code just told me it had failed with the variable i used to contain the header info returning a FALSE result and as such it just didnt work.... Any ideas? I really cant think of it. My PHPINFO tells me i have IMAP libs installed with the readout being: And as i said the mercury mail server seems to support IMAP and POP so what else can it be? I have just updated to the latest version of PHP and checked that the PHP.INI file contains the right filepath for the IMAP DLL. Im all out of ideas! The code ive used is below and is virtually copied with the changing of a few variable names: <?$user = "phptest";$pass = "test";$connect = @imap_open("{localhost}INBOX", $user, $pass)or die("Connection to server failed");echo $connect;$headers = @imap_headers($connect)or die("Couldn't get emails");$numEmails = sizeof($headers);echo "You have $numEmails in your mailbox";imap_close($connect); Ive also just updated my email server to the latest version but no luck, ive disabled my firewall with no luck. Im really getting so damn annoyed with this and no-one seems to be able to help..Its just stupid! If you dont know what i can do cna you suggest a FREE, WINDOWS XP, mail server that i can try? Im desperate here its driving me frikking mad.
  2. yeh i tried editing the config file already as said before that didnt work, had to use the cd to reconfig everything. Ii shall look for my drivers methinks...hopefully thatll do it. thanx
  3. Hi allIm running mandrake 2005 on a laptop with wide screen, and thats my problem, mandrake doesnt sem to have a resolution size that fits my screen. im fairly certain that my screen size is 1020 X 800 or 1024 X 800 but the closet setting is 1024 X 768 which is really annoying as everything is stretched out and horrible, so does anyone know of a way to get a custom size screen? its an LCD screen and i have set it to an lcd display but still it isnt right. If anyone does know of a way can you explain it abit as im abit of a linux newbie.Thanx
  4. Amen! Big companies like those already mentioned are greedy, self obsessed companies. They have no morals or anything like that just greed. Pirate copies of windows are the best thing to hit this planet (although i use a legal version as it came pre-installed) pirate dvds are also great because it costs about £5 to go to the cinema which is a complete con! and the real deal would cost about £20 (not saying that i use any pirate software, musicm dvds etc..of course) These are just my opinions, im not tellin anyone to go out and get anything on pirate, just my veiws that piracy isnt always bad. Of course if theres a new, unsigned artist charging £10 for their first ever albumn id be happy to buy that to help them out rather than get it for free on pirate because they just want to get started and the price isnt too bad but buying software for £100 is a complete con...or a game for £50
  5. [sHAME]Oh deer, deer, me!I spent hours reading tutorials and everything else and forgot to realise it was case-sensitive.Well thank you so much atlast I can get somewhere now![/sHAME] Well I am blonde!
  6. If you use windows and you havent emptied your recycle bin then its as simple as right clicking the file in the recycle bin and clicking "restore" if you have emptied the recycle bin then you can try some data rercovery software, because of the way files are deleted etc.. they do not actually disapear off of the disk untill they are written over so this software attempts to find them and save them again Download.com search results That link will take you to download.com and the results for a search for all free data recovery tools for all operating systems so you wil be able to use the applications there to recovery it (fingers crosssed!) I dont know how linux works when it deletes things but im sure that if you can find a data recovery program for linux or any other operatuing system for that matter, it should work the same as a windows one will. And if you use windows xp and the above doesnt work you can try a system restore, though i dont know for sure whether that will restore the file or not, but its worth a shot as a last resort. Good luck!
  7. Hello everyone! Before I start let me just say that ive read many threads on here about php and sessions, several tutorials and the php manual but I still cant find a solution to my problem. My problem is that when i try to read data from a session it just comes up blank, and an if statement to see if the variable is null returns true. The code im using is for a login script which checks the input from a user and compares it with the data in a database to log the user in, this works fine, also reading the data from the session works perfectly on the page which the session is generated by so the problem is when the user navigates to another page the variables dont seem to travel with them. The code I'm using to generate the sessions is this: to try and read the variables from another page ive used an included file with thise code: This returns "no session is set" which means that the variable is null. the data inside the session file is "name|N;chris|N;status|N;0|N;" I dont know if that helps to see what the problem is. So can anyone tell me why the variables aren't being read by the pages?
  8. Thanks everyoneI've sorted that out now using the single quotes so im getting the data out atlast and can finally finish off my login script...i hope
  9. Thanks, ill take a look at that one too, I havent got anything to loose!
  10. I've been working on this for hours now which is really embarrasing really considering I've got it to work perfectly in the past but I cant find the script I used then Here is the script im working on: By using the "or die" function on line 6 it shows that the query is wrong, this is supposing that "or die" works with the "MYSQL_QUERY" function, I just improvised there and hoped it would work to show me where the problem is. The script connects to the database and selects the right table so what else could be wrong? I dont see anything wrong with the query. I was also trying for an hour or so to get a variable array when selecting the entire row but that didnt work either Is there anything I can do? Thanks PS. No error is actually dislayed other than the "or die" in line 6
  11. Humm...what I dont understand or like about science is it has to be right...why cant an alien live on this new planet? so what if its cold or hot or frozen, we have already found animals on OUR planet that are weird, like being frzoen in the winter and then still living and thowing out when its warmer (a fish I belive) So i see no reason why life couldnt exsist on this new planet, probably not intelligent but multi cell organisms like plankton in the ice and who knows one day we might venture off to that planet taking with us all the carbon dioxide from our world and dumping it thee making the greenhouse effect to warm the place up abit!Although if its that big then we might all end up looking like midgets because of the gravity
  12. Well im quite addicted to Runescape myself! I think its pretty nifty :lol:I notcied you said Tibia, do you actually play Tibia or is it just one that you know of?I did join and TRY to play but it drove me crazy, i found the graphics were terrible...the worst ever! and the gameplay wasnt very good either although i have mates who are crazy about it, i just cant see why.
  13. but atleast if it keeps the scent in the police dogs wont find you! And being dressed in full polyester you could plead insanity
  14. Now im know im dragging this thread up from the dead but its better than posting a whole new topic and I just wanted to say .... WOW! I love the fact that I can have a decent conversation about computers or religion with so many people! also i wanted to quote this: and say yay because youre one of the few people who understand Santanism by the sounds of things. Back on topic i belive that wicca is what you make it. In my opinion its simply a path to a higher place, think of it as you like, heaven, reincarnation, god etc...i belive that all religions and paths are brilliant aslong as they make you a better person and take you where you want to go and let you experience what you want to experience. im suprised actually that gods and goddesses havent been mentioned much yet. I personally belive in the Lord and the Lady being energies, i simply cant see how any god, which would mean a male energy, being able to create life ALONE no man no matter how powerfull can ever create life on his own. So it makes sense to have a female and a male both equally important. I think Wicca is a way for people to express themselves, it allows us to be creative and open minded. Its also a great feeling to go out into the world and know that you are here fore a reason and to feel nature...(am i getting kinda...poetic here? lol) as mentioned it does also include witchcraft and i have a question for those who do not belive in witchcraft...do you belive in prayer and its effects? if so how can you say that spells etc do not work? Prayer and magic are both similar, in prayer you ask for things to happen, in a spell or magical working you tell them to happen that is the only difference, in both you are seeking for help from higher energies to acheive a goal. Well i guess everyone stopped reading about half an hour ago so ill wrap up here but thanks for this interesting topic, i was going to post asking about peoples religions but i see i dont need to now treehuggers, well some, Wiccans belive that nature is wonderfull, which it is and we should protect it from destruction. our justification is to live life to the full and also allow others to do the same.
  15. Woohoo! Thanks guys/girls! I'm using Mandriva right now so thats out of the way but i have another question, is the display supposd to be not so sharp as windows? I've noticed this before, my monitor is a flat panel lcd with 'diamond veiw' image quality, and its a laptop. is there anything I can do about this or is it just normal? It's not unreadable its jus annoying basically.
  16. Yes! That is awesome I bet they dont have a computer that can do that....yet!
  17. **logs onto to Ebay** hehe...surely though you can just jump and then theres no earth connection...or do stun guns have a positive and negative terminal...humm. I cant say I've ever had any experience of a stun gun or tazer other than a home made one from a disposable camera...now that was fun!And yeh, how do the bad guys get hold of this stuff? It must be dodgy police or something I guess.
  18. I typed the iwconfig command under root in the terminal and this is its output: I also tried setting my IP address manually and restarted, by monitoring the WLAN it showed that data was coming in and out, which i though suggests theres a connection but when I tried to connect to the network it failed. Also now when booting it brings up the network device and on the KDE shows the device is 'up' but still doesnt connect.
  19. I started all the way back with javascript. I think its a good way to start with something like Javascript because it will easilly let you learn the absoulte basics of programming like variables, timing, logic gates etc. Then id suggest PHP because thats the way I went and i found that php is a really fun language to learn because with languages like visual basic and C etc.. you have to think of something to program like a calculator and youll soon get bored of that, where as with php you can make things like guestbooks, logins, maybe forums if you stick with it and then use them on your websites. Then I guess step up to languages like VB and C. I think i did it wrong by using VB before learning C because im having huge difficulties learning C. Although VB is also good for understanding the fundamentals especially events in programs.
  20. Yay! Thanks for that link, just downloaded it and so far it looks fantastic, IDE for C++ aswell as VB.NET whic hare the two languages im really interested in. The look of it is rpetty awesome too. Thanks
  21. Hi any and all.I recently got a D-link wireless router and my laptop has an internal WLAN card which works perfectly under windows so I know the hardware is not the problem. The Distro im using is Mandrake/Mandriva (depending on what you call it) limited edition 2005. During bootup I've pressed escape to monitor whats going on and it fails to bring up my device, it knows its there but it cant bring it up, I dont know if this is because it cant detect the WLAN so it means theres no WLAN or if theres a problem with drivers etc and it cant start up the hardware? Ive been into the Configure Your Computer program and checked the hardware and its recognised, I've configured it using my network details (the name and WEP key is there anything I missed here?) and restarted but it still failed to bring up the network during boot. Im fairly new to Linux because I havent used it much due to my stupid F@st 800 modem...true disaster them things, but im really hoping that once I can use the internet from linux I can use it more often.Also, I dont think it should affect the WLAN but I am dual booting with Windows XP pro, but I dont think that should cause me problems.So could anyone help me here?Thanks.
  22. Also with access to the router or access point they can easilly change all the settings including the hidden ones and generally own your router or AP from then on, they can also watch all packets sent over the network so anything you do they can see. I think the really annoying thing is using your bandwidth though. Also its a pretty good way of getting annonymous internet access for anything like hacking, or anything illegal on the internet. If they really want to get sneaky they could use the information they get to scam you at your door or by email jus saying theyre from a company whose website you visited and con you there! Are you planning on setting up a wireless network or is it just a curiosity thing?
  23. Ahh I've been thinking of a script like this for a while so thanks for giving me a reason to find one Theoretically it could be possible to preload an image such as a full sceen plain black image and make sure it will fill the screen no matter where the scroll is at and then hide it. Then use javascript to detect the key press event of the print screen key and use this to fire an event to make the black image visible. it all works perfectly in my mind and I cant see any reason why it wouldnt work so long as javascript can hide the image and then show it easilly enough, which I havent tried myself. And it will work no mater what a persons bandwith is because the image is pre-loaded. Another way it could be done to protect only the images, which is most likely the way I will try it, is to create every image as a rollover image and again use the keydown or keypress event in JS to make the images all rollover when the print screen key is pressed. Then the images would be safe. Anyway the code for detecting a keypress is this: function doSomething(e){ var code; if (!e) var e = window.event; if (e.keyCode) code = e.keyCode; else if (e.which) code = e.which; var character = String.fromCharCode(code); alert('Character was ' + character);} Source: http://forums.xisto.com/no_longer_exists/ so by adding a small if statement to compare the key pressed and the value of the print screen key you can use this code to fire off another event to rollover the images or something like that. And if you dont like either of those methods you can just adapt that code to detect the print screen key anyway if it works then let me know!
  24. I know that VB.net is proprietry to Microsoft but is there a free IDE that has all the support that VB.NET has? I found one before but it just didnt support many of the things that VB.NET does such as timers which was really annoying. Does anyone know of any IDEs like this that support the same functions and features as VB.NET but without the rather hefty (Over priced, in my opinion) price tag? If anyone does then drop me a PM or a reply!Thanks
  25. I think techocian hit the nail on the head with that post! Yes it seems fantastic, especially to us students, I'd never need to read anything again, jsut download it all onto a chip and BAM! Instant A. But theres huge downsides like what happens if theres an EMP storm or even a thunder storm, we all know what happens to the TV and somethnig like that going on inside my head doesnt sound fun! also what happens if theres a war, one EMP bomb could kill hundreds, thousands even. AND (yes there is more!), think back to the matrix film...I know its far fetched but Sony already have a patent on Matrix-like technology but if either of these technologies make it to us innevitably some-one is going to want to connect to a network, be it like the internet or mobile phones or any knid of network it doesnt matter. If anyone wanted anything all they have to do is basically hack into people!!! All it would need is a little command line programming and millions could die, belive they are dogs, become puppets or anything. I know that I definately wont be taking any of this technology because its just like signing your life away. No-one would have to worry about bird-flu anymore but we will have to worry about the next My-doom or sasser to hit and just imagine that, every few minutes your whole brain would 'reboot'! Cant be good But all said I dont doubt it could help alot of people, like already said those with brain problems like epilepsy, parkinsons etc... but i dont really thing we can do much to improve nature, we are all already pretty perfect except for the odd problem here or there with disease and such but thats part of everyday lfie and thats how it should stay in my humble opinion! Although it would be fun to watch people obey everything you typed into theyre new 'Brain' hehe!
×
×
  • 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.