Jump to content

Captain_Pugwash

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Captain_Pugwash's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi Guys I have searched the forums and the net to try and find a soluction for the problem. Basically I want to be able to open a mailbox, retrieve the mail in the box and then read the contents of each email. All pretty straightforward according to the manual. So following things diligently I used the IMAP_OPEN function. all I ever get is Warning: Couldn't open stream {mail.mailserver.com:110/POP3/tls}INBOX I have tried various combinations of of :110/POP3/notls etc. ect. adn I still get the same warning message I have tried telnetting adn all I get is can't open connection to the host. But using outlook I can retreive the mail I want to. my guess is this is either a firewall or network problem. there seems to be loads of issues with imap_open on the net adn I've tried all of them to no avail. so if anyone has any handy tips or hints they would be most welcome thanks in advance cp
  2. i'm 55 just getting over my recent quad bypass. 5 kids are to blame, 3 still at home one son in the army preparing for another stint in Iraq my oldest about to drop Jnr MKII so pleanty to keep me active. for all you youngsters out there I basically got fed up with some 'grey suit' whose sole ambition was to climb another half inch up teh greasy pole at my expense. I saw it happend and also slide back down just as quickly. I learned that 'career' is merely a term used by managers to squeeze 20% more work out of you without paying anything. so I have 'free lanced' for about 20 years. I can say what I like and people listen. If they don't I charge anyway. If they don't listen too often then there's always another contract around the corner. they need me more than I need them. don't think about just go and do it. I paid of my house 10 years early and always wish I hadn't waited so long. Its a great feeling to tell the bank manager to swivel on the middle finger, even better to tell your boss. oh and for you new parents out there the best thing about kids is them have their own. You can sit back and watch their pain and say 'you were exactly the same'
  3. Like the man said memory is for lawyers and historians. I have some vague idea there may be a function which broadly does the job then look up the manual for the exact syntax and usage. I always find it more difficult when switching languages like writing PHP in .NEt or javascript in PHP but after a couple of days it usually all comes flooding back.
  4. If you really want to be fair the best bet is to use jobserve.com and see what clients are prepared to pay for pHp developers. USe that as your base then work out how much time it will take you to do the job. Most clients will expect a time estimate anyway and this shows a degree of professionalism. After that multiply the amount of time by the rate. hey presto you have a charge estimate. Do bear in mind though it is not unusual for their clients to modify their spec once they see how the results are shaping up. At this stage you need to add on for T & M or include some contingency for mods. How you do it depends on your client. Always a judgment call for a new client Hope that helps. CP
  5. Hi Guys I really need your help ( well we all say that don't we) but what i am basically trying to do is to create a class which will open an email inbox, and read the contents. I used the imap_open() function ( obviously with parameters) and all I get is Warning: Couldn't open stream I have tried shed loads of combinations and nothing makes a jot of difference. To help I have attached routines which will read imap_alerts () imap_last_error() imap_errors() None produce any results implying there are no alerts or errors as a rsult of not being able to open the stream. I have also tried various combination of tls and notls all to no avail. I have tried telnetting to the mail server without success which leads me to suspect a firewall or network problem. The difficulty is the guys in networking as you would expect claim all is fine and dandy, without additional info I cannot counter their argument. I have noted from previous posts this has been a contentious issue in the past, but no-one seems to have posted any solutions. So come guys, someone must have an answer somewhere It would be really, really helpful if you could share this. Thanks to all who contribute tot his topic CP
  6. try $XMLdoc = domxml_new_doc('1.0'); works for me
  7. does this mean you list the relevent data agianst each user listed. If so why not store it as a hddien field and then read the contents of the hidden field in javascript. this may make the page very 'top-heavy' if a lot of data is required. jsut a thought for something qucik and easy if not particularly elegent
  8. Would you normally set 'class="active"' I would tend to use 'class=active' note the missing inverted Commas CP
  9. Hi Guys here is the problem. I use MySQl to query the database and bring back a set of records - works fine What then happens Is that I begin to read through each row recovered. For each row I read through each attribute and for each attribute I collect the attribute (field) name and use Create element & create_child to create a new xML element. Once the element is created I then add the value of the field to a new element. The idea is that at the end of the whole sequence you have an xml document with an element for each field complete with appropriate value. Now all this works pretty well except one field. No closing tag is created. All other elements have the correct closing tags, except one. the filed name is 'BASE' is this a reserved word or something? I cannot find any reason why this particular field would create a problem. What ever data is retreived this one element always and consistently causes greif. I need to fix it because I need to use a well formed xml object for other things. Thanks in advance CP
  10. I would go with daniel0 If you can turn it into a class( perhaps be refering to obejcts you haven't really grasped the core of OOP) to be exact then do so. You never know where or when these may be useful for other applicaions. PersonallyI have classes for form generation date, handling, database access as standard and these are imported automastically to every website I develop and boy does it save bucket loads of work. I'm currently working on a simialr routine for dynamic style sheets, but it's a way off yet. You know the service you want to provide, so you build the tools you need to provide that service, hence the expression a poor workman always balmes his tools. Rememebr he made the tools.
  11. Hi Guys new to this site adn have a major problem. The gist of it is that I make a call to MySql, retreive teh data I want and make up an xml string from the data. So far so good. then I collect an xsl style sheet so far so good. the idea is then to transform the xml string with the xsl style sheet. all works fine in Php 5, but the hosting server uses php 4. Initially I tried $DOMDoc->loadXML($xmlstr) now this as I say works fine in php 5 but has a serious wobble in php 4 so i tried domxml_open_mem($xmlstr) which I gather is the php4 equiv. All I get is a call to undefined function If It helps I have run php info and curl and DOM/XML are both enabled so even if domxml_open_mem doesn't work it should stil be defined as a method of the original doc or have I missed something, very basic. for fullness I would add php 4 is php4.4.4 running on an appache server 1.3.37 I hav checked the net generally and found this to be a problem, although no-one offers any sepcific solutions adn I did a seqarch on teh site,here but to without success. If you want teh code then let me know an will forward, although without the db it's unliekly to be of any benefit. Thanks in advance this one has me beat CP
  12. Firts off do actually have MySQL installd & then have you created your database. I do this sounds like a stupid question, but i've seen it happen. If you have the standard $db = mysql_connect(host, username,passowrd ) should get you a connection to mysql. You then have to connect to the actual database using mysql_select_db(DbName,$db) and then you're off. if you don't have mysql or you are having trouble creating a databse come back to us
×
×
  • Create New...

Important Information

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.