Jump to content

JonnoTheDev

Staff Alumni
  • Posts

    3,584
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by JonnoTheDev

  1. For point 1 read this: http://www.swiftmailer.org/wikidocs/v3/tips/spam
  2. You can extend the WHM API to do this. Generate an API access key in WHM to allow your php script to talk to the server.
  3. OS Commerce http://www.oscommerce.com/
  4. Is it not the case that you are destroying the session values from form 1 in form 2 by using this line: $_SESSION = $_POST; If this is the case you need the form values from form 1 as hidden fields in form 2.
  5. Batch sending using the BCC is not the best idea for sending to multiple recipients. The Swift Mailer library can do exactly what your asking: http://www.swiftmailer.org Batch sending: http://www.swiftmailer.org/wikidocs/v3/tutorials/multirecipients
  6. Then it needs to be run as a shell script. You could setup a cron to run it.
  7. Its not really a case of which is better to use, it is a case of what do you want to do with each. WGET is fine for grabbing webpages and storing as static files, even grabbing images but not so great if lets say you wanted to spider a website checking all the links work, etc.
  8. Check the server maillogs after running the script. Is the mail server service started i.e. using sendmail: > service sendmail start
  9. Couldnt you set the max execution time in the php.ini to deter something like a badly constructed loop?
  10. I think you may have to use a trial and error approach. When under a DDOS attack (massive server usage levels) I personally had to disable each site on the server one by one to determine where the attack was aimed at. You may have to do the same thing to find the location of the problem. I cant see a simple php script causing this issue, more like a 3rd party manipulating a script. I would check the access logs on each site to look at page request times and unusual patterns. Modification of the apache environment variables may have some undesired effects but if the server has been running fine before without any mods then you can rule this out.
  11. Opens a connection to a IRC server! Your server isn't being used for DDOS attacks is it?
  12. Your validation is a bit lapse and could be worked around quite easily from a 3rd party script. Have you checked the access logs on the server to see whats happening. Even look at your web stats for a pattern. If this is a contact email form then I would apply a CAPTCHA to it.
  13. Im not sure where this guy is asking about CSS switching? I would definately do this with 1 page. If you have a colours DB table i.e. colours -------- id name Then your page can accept the id of the colour to get the desired results: mypage.php?id=3 $id = $_GET['id']; // do some filtering on $id then run in query mysql_query("SELECT * FROM tablename WHERE colourId='".$id."'"); P.S. I love the way you guys spell colour. Its just so wrong! LOL
  14. If the user details are submitting to a MYSQL database then surely you are storing the chosen colour. So in your red.php file your query may be: SELECT * FROM submissions WHERE colour='red'
  15. Better for what? If you are talking about better for Google results then it totally depends on their current algorithm that often changes in how it will interprit the url in order to rank. In my opinion there is no difference between the two.
  16. This is correct. You could have a lookup array that maps the rewritten urls to the product id as the array key. From the rewritten url you can find the id to perform your database query.
  17. // get 18066 $typeIdValue = $array1['typeID']; // get 28 from 18066 $valueFromTypeIdInArray2 = $array2[$typeIdValue];
  18. Upload to a tmp folder, move the file, delete the tmp upload
  19. I dont think they are tyying to disply the {}, probably using to encapsulate the functions. Should be: echo ucwords(strtolower($info['lname']))." ".ucwords(strtolower($info['fname']));
  20. A good database design would be a start. Break up all the functionality requirements and map out the data flow for each section (maybe use pseudo code). Then lay your code out and test each unit. Alternatively you could try a pre-built CMS such as Joomla. Im usually against using these CMS for websites but it depends on your programming experience.
  21. not possible
  22. No, check that the variables have values before running the mail() function. Also you may want to check the referring page from contact.php to make sure that it is the form.html page. This code is wide open to abuse as it is.
  23. You need a 3rd party service to do this or you could grab screenshots from a service like Alexa (if they have the shots available. I think your site needs to be in the DMOZ directory) Try: http://www.artviper.com/tools.php#thumbnails
  24. Dont think you can do this although maybe wrong. You have to use the embed src provided by YouTube for the video you want to play. Not sure they allow you to link directly to videos from other players.
  25. Correct. So: $ID = 123; echo "<a rel='lightbox' href='images/products/".$ID."one.jpg'><img src='images/products/".$ID."one.jpg' width='50' height='50' border='0'>";
×
×
  • 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.