Forum: PHP Jun 8th, 2008 |
| Replies: 0 Views: 488 Hi there.
All mail sent through the SMTP server, i need to modify the message being sent through.
I already have a PHP script to send MIME emails with embedded images for HTML meails. What i need... |
Forum: PHP Jul 25th, 2007 |
| Replies: 4 Views: 3,056 Your Database information is incorrect
In order to connect you will need to have the valid information for;
DB Name
DB Username
DB Userpass
DB Host
One of these is incorrect. |
Forum: PHP Jul 25th, 2007 |
| Replies: 11 Views: 2,764 What you want to do, is create a global space for your site,
and depending on which action your performing, include the appropriate class and content pages.
What i do is make a module (eg: for... |
Forum: PHP Jul 25th, 2007 |
| Replies: 6 Views: 1,211 You are running PHP on an operating system, which one is it ? |
Forum: PHP Jul 25th, 2007 |
| Replies: 11 Views: 2,764 Do you want to create the class using DB information?
Or get DB information when creating the class ?
Just clarifying before i answer your question |
Forum: PHP Jul 25th, 2007 |
| Replies: 6 Views: 1,211 Are you running PHP on windows or linux? |
Forum: PHP Jul 25th, 2007 |
| Replies: 11 Views: 2,764 You wouldnt really create the object of Animal in its own class unless you really need to.
After creating the class and all its methods.
You just need to do.
... |
Forum: PHP Jul 25th, 2007 |
| Replies: 14 Views: 1,548 Again, you need to validate your mail() command. By using @ or IF. |
Forum: PHP Jul 24th, 2007 |
| Replies: 5 Views: 2,147 Golffor1, without going into your code too much, ihave noticed your using row[0] and row[1].
However in your SQL query you're only selecting 1 field, therefore you will only have row[0]
Cheers |
Forum: PHP Jul 24th, 2007 |
| Replies: 5 Views: 2,147 Iamthwee, what are you talking about ? the back ticks `` denote a field name or table name within mySQL proper syntax.
PHP fills these in for you if you don't use them. |
Forum: PHP Jul 24th, 2007 |
| Replies: 2 Views: 1,903 aasgar. Your problem is when you do an explode() on the $even_time your seperator is "." but there are no dots in 13:00 it should be
exlode(":", $event_time);
Fix that, and it should work for... |
Forum: PHP Jul 24th, 2007 |
| Replies: 3 Views: 1,173 I'm not aware of any scripts to do this.
You're looking to create your text file.
Create a socket to your FTP server.
Send the appropriate FTP commands to Login + change DIR + upload file.
... |
Forum: PHP Jul 24th, 2007 |
| Replies: 2 Views: 4,441 A better solution for yourself would be just to mask the bad words (unless you really don't want to send the email).
Just do a preg_replace of *@!>&^ (or however many characters are in the... |
Forum: PHP Jul 24th, 2007 |
| Replies: 14 Views: 1,548 The mail() function returns TRUE or FALSE upon sendin the email.
In order for you to write a decent script, you will have to verify that this mail was sent corrently.
Therefore you will need to... |
Forum: PHP Jul 17th, 2007 |
| Replies: 5 Views: 3,741 Every page in the system is grabbed into index.php.
For each page i'd like the title to change according to the page it's on, this can be set manually within each page we want to send.
My... |
Forum: PHP Jul 17th, 2007 |
| Replies: 14 Views: 1,548 The following is the necessary code to store, check that no info was empty and email the user.
You will need to change the $to variable to suit your needs.
You will also need to make <input... |
Forum: PHP Jul 17th, 2007 |
| Replies: 5 Views: 3,249 You can execute PHP in any part of your HTML page, for example witin the <head> |
Forum: PHP Jul 17th, 2007 |
| Replies: 16 Views: 4,459 You could use JavaScript Encode, to encode the HTML/page source, so that it isn't readable at all. |
Forum: PHP Jul 16th, 2007 |
| Replies: 18 Views: 4,015 Well done Johny, i never tought of that :D |
Forum: PHP Jul 15th, 2007 |
| Replies: 43 Views: 175,252 Try echoing your query, and see if it makes sense.
Try pasting it directly into mySQL (not via PHP) and see what happens also. |
Forum: PHP Jul 13th, 2007 |
| Replies: 3 Views: 2,055 What is the money for?
Are you paying that? or paying someone else that? Let me know, and i'll help you further.
Or is that what you want your paypal integration to do. |
Forum: PHP Jul 12th, 2007 |
| Replies: 17 Views: 2,690 As i mentioned before. You can run Apache. mySQL, PHP servers all configured to work with each other.
Using WAMP (www.wampserver.com (http://www.wampserver.com))
Google it.
Enjoy. |
Forum: PHP Jul 10th, 2007 |
| Replies: 16 Views: 3,401 Thanks for your input digital-ether (http://www.daniweb.com/forums/member50324.html).
CAPTCHA is already going to be implemented to minimalise the risk of automated attacks.
The database idea,... |
Forum: PHP Jul 8th, 2007 |
| Replies: 16 Views: 3,401 I like the way your thinking Invisal.
I will wait for more replies from other coders, before i decide which is the more suitable method to use.
Thanks for your input ;) |
Forum: PHP Jul 8th, 2007 |
| Replies: 10 Views: 1,349 Not a problem dude, i have nothing else to do :)
Ask away. |
Forum: PHP Jul 8th, 2007 |
| Replies: 10 Views: 1,349 Yes, that's correct.
You've declared $msg as an instance variable of the class, so to refer to it you would do $this->variable.
Same if u have another function in the same class, you could call... |
Forum: PHP Jul 8th, 2007 |
| Replies: 7 Views: 2,401 |
Forum: PHP Jul 8th, 2007 |
| Replies: 17 Views: 2,690 |
Forum: PHP Jul 8th, 2007 |
| Replies: 16 Views: 3,401 Sorry mabye i was a bit unclear - if the user login fails 5 times WITHIN 15 mins, it will block it for 15 minutes.
Intresting concept invisal . any more ? |
Forum: PHP Jul 8th, 2007 |
| Replies: 10 Views: 1,349 What happens when you print it ? |
Forum: PHP Jul 8th, 2007 |
| Replies: 16 Views: 3,401 Hey, just made the title like that, to grab intrest ;)
I'm developing a system at the moment, i'm going to implement a filter to the login section, so that only 5 invalid login attempts can be... |
Forum: PHP Jul 8th, 2007 |
| Replies: 7 Views: 2,401 the purpose of this, is just to check if the SQL table actually exists before you INSERT data into it. If you're sure that the table exists (that you've created it), then you won't need this, its... |
Forum: PHP Jul 8th, 2007 |
| Replies: 6 Views: 1,454 I do something very similar.
/* set up valid pages in array */
$array = array('contact','forum','about','cable');
/* if page isnt set, make default page=home.php */... |
Forum: PHP Jul 8th, 2007 |
| Replies: 3 Views: 4,812 The issue is definetley connecting to the mailserver.
I agree trying a public SMTP server.
One i know of is: smtp.blueyonder.co.uk (Port: 25. SSL: No)
Let us know how u get on.
Cheers |
Forum: PHP Jul 8th, 2007 |
| Replies: 1 Views: 994 Check your phpini setting "max_execution_time". that can affect your uploads.
Goodluck! |
Forum: PHP Jul 8th, 2007 |
| Replies: 17 Views: 2,690 Yes i was about to recommend WAMP for yourself.
WAMP easily configures the above services together. You can set it to "offline" or "online" so that you can work from "localhost" or have it... |
Forum: PHP Jul 8th, 2007 |
| Replies: 18 Views: 4,015 I recommend this method too.
It's simple yet effective, without too much complexity or code to be done.
1) Set a cookie when user visits site.
2) If they try to do something which needs... |
Forum: PHP Jul 8th, 2007 |
| Replies: 2 Views: 678 Assuming your database is mySQL.
You will need your mySQL server to be on the internet (accessable by IP Address).
You can set 'priveladges' within PhpMyAdmin..
To set the specific HOSTS to... |
Forum: PHP Jul 8th, 2007 |
| Replies: 7 Views: 2,401 yes that's the problem then! lol that code either shouldnt be there! it's not valid PHP, if its a valid mySQL function it will need wrapped in a mysql_query() statement :)
Welldone Mitko for... |
Forum: PHP Jul 8th, 2007 |
| Replies: 7 Views: 2,401 What is exactly line 7 within your .php file?
It's just a syntax error, and can be worked out momentarily for you :)
Cheers. |