Jump to content

titan21

Members
  • Posts

    158
  • Joined

  • Last visited

Everything posted by titan21

  1. titan21

    Hello

    Welcome to PHPFreaks!
  2. The at symbol (@) before $dev will suppress errors so remove that and see what errors it will generate as this may help you identify what the issue is. Don't think error suppression should really be used with variables IMHO.
  3. Hi, Did you get a response to this. I have a Joomla question as well and looking for the right forum to get an answer - any pointers? Cheers, Tim
  4. It's the library which SimpleXML uses to execute on XML documents. You can check if it's enabled in your phpInfo page.
  5. Hi, This is my first foray into Joomla so be kind. I have created a component which displays a form which is used to search a data source. What I also have is a page which is used to display teh results. How do make this page (results) available in the system without creating a menu item? Thanks in advance! Tim
  6. The answer was actually around 15 minutes so I use about 25 minutes to make sure.
  7. I've set up an e-commerce site and wired up the IPN notifications so all is working well. The question I have is how long is a possible purchase valid for? I am trying to account for every user contingency. What I am thinking is that a user may decide to click the "Buy Now" button, get redirect to PayPal and then, for whatever reason, not actually complete the transaction. Let's assume the user comes back six hours later and tries to purchase the item from the PayPal site, I know PayPal will refuse the transaction at some point but I wondered when this happens. I think it's somewhere around 3 or 4 hours but not 100%. Anybody know? Hopefully I am making sense. Thanks in advance! Tim
  8. This issue seems only to occur with Opera but the footer on my site doesn't seem to align centrally. All other browsers seem fine. Not sure what's happening here any ideas? If there is a solution, I would prefer it to be CSS based rather than anything else. Any ideas? The site is http://www.titan21.co.uk/.
  9. Sorry - I totally rushed into answering that! I haven't actually used this particular functionality before but had a look at the documentation. and I think that if you select the correct language then bindtextdomain will select the correct gettext file (I think??) If you just put $linkchoice in a session then you can call this at the top of each page and it will generate the correct text. Again - I haven;t used this before but it seems like a sensible plan...?
  10. This may sound a bit strange - but have u tried a different browser? I had a situation recently whereby a php generating a JSON response was resulting a download of a php file on IE8. It's a long shot tho... Alterantvely - do you run your own server? Are you absolutely sure that the hosting company provides php4? Does PHP run normally? BTW - just seen that you can run multiple versions of PHP on one server! You learn something new everyday!
  11. If .htaccess isn't working it may be that the server admin has disabled that functionality. in which case it would need to go into httpd.conf or something similar. I'm not even 100% if it is even possible to run two versions of PHP from the same server (I would imagine not!). The only thing I can thing of is running a second instance of Apache on a different port with PHP4 installed. I'm sure someone else will be able to give you a better answer however.
  12. Have a look at incorporating session variables into the application. You'll be able to mainatin state across a visit then: session_start(); $language = $_SESSION['language']; //handle code based on language...
  13. Hello, I have been looking at enforcing quotas for users of my mail system (postfix and Dovecot v1.2). Have tried to follow a few tuts on the web but its not having the desired effect. Essentially I can still send and receive mail on an account that I believe has had its quota exceeded. In my main.cf, I have: userdb sql { args = /etc/dovecot/mysql/dovecot-mysql.conf } passdb sql { args = /etc/dovecot/mysql/dovecot-mysql.conf } and... protocol lda { mail_plugins = quota } protocol imap { mail_plugins = quota imap_quota } plugin { quota_exceeded_message = You have exceeded the maximum quota for your mailbox } the dovecot sql (mysql) file has the following query for pulling out user ids and quotas etc: user_query = SELECT maildir, mymailuser as uid, mymailgroup as gid,concat('maildir:storage=',quota) as quota FROM virtual_mailbox WHERE username = '%u' I have set one of my users to have a quota of 1 (so one byte I believe) so it should be over the limit pretty much immediately. Looking at the logs I can see that the system is picking up on the quota limit but doesn't seem to enforce it. Apr 27 10:29:02 deliver(test@testdomain.com): Info: auth input: quota=maildir:storage=1 Apr 27 10:29:02 deliver(test@testdomain.com): Info: Quota root: name=storage=1 backend=maildir args= Any ideas? Am i missing something?
  14. Oops! Yeh I meant formatOutput but that wasn't the issue. I do type it correctly but no formatting seems to occur
  15. Hi, Has anyone come across an issue when saving DOM to a file and $document->preserveWhiteSpace = false; $document->formatOutout = true; has no effect?
  16. Brilliant - didn't even occur to me to try that! Doh! It begs the question tho - why would my registrar be charging for then? They offer their own hosting as well possibly to cash in on unknowing users? Cheers kicken!
  17. I don't even know if this is possible but is there a hook or a filter to provide templates that a page is based on from a plugin rather than a theme? I saw template_include which seems to determine what template should be used if a particular category, post_ID etc is used so I don't think this would work. And I also saw template_redirect - again this seems to react to the type of page that is being called. Essentially, on the Page Admin screen in WP, I would like to provide a template that a user can use by selecting it from the template dropdown box. I can include templates if there are available in a theme but not from a plugin. Any ideas?
  18. I'm full of questions recently!! I have heard a bit about BIND. I have had no exposure to it whatsoever but understand that is essentially nameserver software. (correct me if I'm wrong which I probably am!) What I was wondering was if it was possible to use BIND to create further subdomains for use. So, for example I can easily set up subdomain.domain.com by just going to my registrar's control panel. But if I install BIND would I be able to create something.subdomain.domain.com . The registrar I am using does offer the ability purchase additional sub-domains but the number I need ideally needs to be managed dynamically so heading off to the registrar every time I need a sub-sub-domain wouldn't be practical. (Am I making sense..?)
  19. Going to mark this as solved - god knows how I did it but I do have a better understanding of how all this fits together (he says - unconvinced...)
  20. Never even seen that one - will check that out although PHPDocumenter does look pretty sweet!
  21. Just checked that out and bookmarked it - seems pretty comprehensive! Cheers! Like the class diagrams it generates.
  22. Sorry - I mean to document code. PHPDoc is one I can think of off the top of my head but I think there are a few more
  23. Hi all! Just wondered if anyone had any recommendations of PHP Documentation libraries. I've seen a few around but not sure which one to go for. Any advice would be appreciated. Cheers, Tim
  24. Okay - well I've been messing around a bit on this. I have set up the following dovecot config: mail_location = maildir:/var/mail/%d/%n/Maildir auth_verbose = yes auth default { mechanisms = plain userdb static { args = uid=vmail gid=vmail home=/var/mail/%d/%n mail=maildir:/var/mail/%d/%n/Maildir } passdb passwd-file { args = /etc/dovecot/passwd } } but when the mail tries to get delivered - its states: Apr 02 15:49:07 deliver(www-data): Info: msgid=<20120330151626.8764E262711@titan21.Belkin>: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2012-04-02 15:49:07] Apr 02 15:49:07 deliver(www-data): Info: maildir: data=/var/mail//www-data/Maildir Apr 02 15:49:07 deliver(www-data): Info: maildir++: root=/var/mail//www-data/Maildir, index=, control=, inbox=/var/mail//www-data/Maildir Apr 02 15:49:07 deliver(www-data): Info: Namespace : Permission lookup failed from /var/mail//www-data/Maildir Apr 02 15:49:07 deliver(www-data): Info: Namespace : Using permissions from /var/mail//www-data/Maildir: mode=0700 gid=-1 Apr 02 15:49:07 deliver(www-data): Error: stat(/var/mail//www-data/Maildir/tmp) failed: Not a directory Apr 02 15:49:07 deliver(www-data): Info: msgid=<20120328213648.859AB2625B2@titan21.Belkin>: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2012-04-02 15:49:07] now i think this has soemthing to do with either the way deliver is configure in master.cf which is dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${recipient}-d ${user}@${nexthop} -m ${extension} or perhaps i have to use a namespace??
  25. Hi, I set up my mail server some time ago and set it up so that essentially I get all the mail. It's basically a user on the system. But now I am needing to set up virtual users and wondered if there is anyway to combine the two? My current dovecot.conf has the following: auth default { passdb passwd-file { args = /etc/dovecot/passwd } userdb static { args = uid=vmail gid=vmail home=/home/%u } } Is there a way to override this default behaviour at all for specific mail recipients?
×
×
  • 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.