Jump to content

the_oliver

Members
  • Posts

    364
  • Joined

  • Last visited

    Never

Everything posted by the_oliver

  1. Hello, I was wondering how i would go about taking the first 7 charictors off the beggining of a string? Eg i have "Order #77" and only want the "77" bit. Thanks!
  2. Hello, Im trying to build something where a user can select from a dropdown menu a number. After the form has been submited another form appears, with the same number of textareas as the number they chose in the dropdown menu. I can work that bit out, but the bit that im unsure of is how when they submit the new form, i can place each of the entries into an aray to be transfered into a database? Does that make sence. Thanks.
  3. Hello, Im have a form that is submited to someone elses site. (PayPal). When the user clickes the submit button, i would like my site to update a database, as well as submitting the form. (so as to prevent a situation where they click one button, and then another to do the same thing). How can i go about that? Thanks.
  4. If it works in home then it could be seLinux getting in the way. Are you running seLinux?
  5. Ok, so that shows that Sendmail is setup and running.  Next thing to do would be to look in the logs.  They should be in  /var/log/ and called something like mailog.  Have a look in this and see what it shows.  Will say wheter it tried to deliver, did deliver, or if the messages are not in there then its not getting them!
  6. Firstly a friendly word of advice: Dont post your real email address in forums like this!  You may want to eddit it out of your preious post. Sort of thing that spamers scan for, and before you know it your bombarded with gunk! . . . . . Try this small change and see if it makes any diffrence: [code] $success = mail("youremail@domain.com","Subject","Content"); if ($success) {   echo "mail sent..."; } else {   echo "unable to send mail"; } [/code] The above will however not tell you that the message has been sent, just that it has been sent to the server so you have to look a little deeper ie the logs. If your using sendmail (the 'out of the box' standard) unable to diliver problems are offten sent strait to your root mail box.  From the comand line, login as root and type: "mail". If its set up you should get a list of messages appear.  The hit enter and have a read.  to exit just hit "q" twice then enter again.  Could be a usefull diagnosting! Failing that try (again as root) [quote]ps axvw | grep sendmail[/quote] and post us the output Shout if none of that made sence!  Oh . . . and can you tell us what linux you are using. Engoy!
  7. Are you sure your runnig on i386? You can also try "yum remove MySQL". But may have to set up yum first. If you do use yum it should be able to cope with the upgrade, without having to remove the previous version.
  8. Not sure if i understood that but perhaps something simple like: SELECT cast(field2 as decimal) as field2 FROM table1 WHERE field2 > 0
  9. I realise that you marked this as solved but thought you may be intrested in this: http://www.geocities.com/steve93138/ its called 'Kiss My Firewall', and is fairly bomb proof!
  10. For the netowking issue check /ete/resolve.conf and insure that the name servers are listed. Also check /etc/sysconfig/iptables to make sure that your firewall is not blocking outgoing or incoming traffic. You will need to do some reading up on iptables - loads in google! as there somewhat important! Tomcat is harder then the others to install. It will require other bits to be installed first. i found this usefull the first time i did it: http://www.tummy.com/Community/Articles/tomcat-centos/tomcat5.html Tomcat is a form of webserver that is used for java aplications. Can be a fiddly one! As to MySQL it should not cause you to many problems. I would use RPM's as it will make your life considrably eseyer! As thorpe mentioned you can use yum to make things realy simple. eg can just type 'yum install apache' and it does that hard work. Again google RH9 Yum Public Key to find out how to set up yum. You will find the best thing about Linux is that there is loads of good, free support out there (forums, howto's etc) Good luck!
  11. Run <?php phpinfo(); ?> and nothing else in a file, and see if there is anything on the info page that looks wrong. Something todo with flag/error_log as 'daq' sugests is most likly.
  12. Where does it say mail sent? Can you post part of your sendmail log showing an attempt to send?  Or does it not appear in your send mail log?  The log will have the definitive word!
  13. Also how can i make the height of the frame auto fit to contents? Thanks!
  14. Hello. How can i have a link that will open in an iframe. (So if i click a link in a submenu it will load new content into the iframe). Some think similer to adding <a href="" target="_iframe"> Thanks!
  15. Not sure i understand that? Would that not put the error docs in the same folder as the main site? Im keen to keep them in a directory bellow! Thanks for you help so far!
  16. <Directory "/usr/local/thefile"> Options None AllowOverride None Order allow,deny Allow from all </Directory> You will find that SELinux will oftern get it the way of these! However if you have the time to make this work propaly for you it could be very usefull to you.
  17. I thought of that, but apparently it reads from the DocumentRoot, rather then the /var. So it told me it couldnt fint the error page! I also tried ../error but then when it needed an error page it just printed ../error to the browser! So it would try to reed form /var/www/doman.com/httpdocs/var/www/...ect.. Thanks!
  18. That sounds like your web host may not support mail() from the local host. You should check this with them. It they dont they will probably be able to give you the details of an SMTP you can use. If you cant do it from the local host there are loads of posts in the forum about how to do it.
  19. Im trying to have individual error pages for each of my vhosts. The part thats proving difficault is having the error pages outside the Document root. Eg DocumentRoot /var/www/domain.com/httpdocs and errors in /var/www/domain.com/error. The vhost code im using is: <VirtualHost *:80> ServerAdmin webmaster@domain.com DocumentRoot /var/www/domain.com/httpdocs ServerName www.domain.com CustomLog logs/domain_log combined <IfDefine ERRORDOCS> Alias /error/ "/var/www/doman.net/error/" <Directory "/var/www/html/domain.com/error/"> AllowOverride None Options IncludesNoExec AddOutputFilter Includes html AddHandler type-map var Order allow,deny Allow from all </Directory> </IfDefine ERRORDOCS> ErrorDocument 404 /404.html However when i tried to restart the service if get the following error: Starting httpd: Syntax error on line 1112 of /etc/httpd/conf/httpd.conf: Expected </IfDefine> but saw </IfDefin> Line 1112 is the one above starting "<IfDefine ERRORDOCS>". Can anyone offer me some advice? - Thanks!
  20. The trouble with that is that when the user goes to edit the content again they will see &pound not £. Will try these, and see what happens. Thanks!
  21. Hello, I have a problem where text is stored in a database. When the text is extracted via a query the £ charictor comes up as strange charictors in some browsers. I tried header("Content-Type: text/html; charset=utf-8"); but that just change the browsers which had the problems! What i was wondering was wheter i could scearch throught the data returned from the query, and replace any £ with the html code for £? Thanks
  22. Small Point: You normaly cannot extend an existing partition. You can change the size of the partition, but the file system on it will remain the same size. You can use some fancy tools but ive not done enough with them to advise. I would dissagree with the thedarkwinter. I think that ajusting the size of your current partition is very risky. (take a backup whatever you say). His seccond point of creating a new partionon would be far better. Then you could move some of your larger users accross to that and use a symlink. Also if your not to confident in partitioning then it gives you a charnce to play around with it. If you do go down the route of changing the current partition then make sure no one is trying to right to it at the time (if it on network). Also you could consider setting it to expand as it need.
  23. if ( $err_num == 0 ) { mail("whoever@emailaddres.com", "Sussesful file upload", "The File: ".$file_var." was uploaded", "From: <$from_address>"); } sorry, one to many mail's! Not all hosting will alow the function just like that. You may have to specify mail servers etc. Tryit and post the result.
  24. add something to the end like: if ( $err_num == 0 ) { mail mail("whoever@emailaddres.com", "Sussesful file upload", "The File: ".$file_var." was uploaded", "From: <$from_address>"); }
×
×
  • 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.