Jump to content
xisto Community

shadow-x

Members
  • Content Count

    28
  • Joined

  • Last visited

  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.
×
×
  • 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.