-
Posts
3,584 -
Joined
-
Last visited
-
Days Won
3
Everything posted by JonnoTheDev
-
For point 1 read this: http://www.swiftmailer.org/wikidocs/v3/tips/spam
-
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.
-
OS Commerce http://www.oscommerce.com/
-
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.
-
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
-
Downloading Files using Curl or Using system?
JonnoTheDev replied to Disturbed's topic in PHP Coding Help
Then it needs to be run as a shell script. You could setup a cron to run it. -
Downloading Files using Curl or Using system?
JonnoTheDev replied to Disturbed's topic in PHP Coding Help
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. -
Check the server maillogs after running the script. Is the mail server service started i.e. using sendmail: > service sendmail start
-
Couldnt you set the max execution time in the php.ini to deter something like a badly constructed loop?
-
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.
-
Opens a connection to a IRC server! Your server isn't being used for DDOS attacks is it?
-
PHP Form running a permanent server process?
JonnoTheDev replied to execute's topic in PHP Coding Help
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. -
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
-
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'
-
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.
-
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.
-
// get 18066 $typeIdValue = $array1['typeID']; // get 28 from 18066 $valueFromTypeIdInArray2 = $array2[$typeIdValue];
-
[SOLVED] very easy file uploading question
JonnoTheDev replied to nilsk123's topic in PHP Coding Help
Upload to a tmp folder, move the file, delete the tmp upload -
ucwords(strtolower(?)) and supplied argument is not a valid ?
JonnoTheDev replied to plodos's topic in PHP Coding Help
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'])); -
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.
-
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.
-
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
-
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.
-
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'>";