Search Results

Showing results 1 to 40 of 76
Search took 0.01 seconds.
Search: Posts Made By: dr4g ; Forum: PHP and child forums
Forum: PHP Jun 8th, 2008
Replies: 0
Views: 488
Posted By dr4g
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
Posted By dr4g
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
Posted By dr4g
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
Posted By dr4g
You are running PHP on an operating system, which one is it ?
Forum: PHP Jul 25th, 2007
Replies: 11
Views: 2,764
Posted By dr4g
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
Posted By dr4g
Are you running PHP on windows or linux?
Forum: PHP Jul 25th, 2007
Replies: 11
Views: 2,764
Posted By dr4g
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
Posted By dr4g
Again, you need to validate your mail() command. By using @ or IF.
Forum: PHP Jul 24th, 2007
Replies: 5
Views: 2,147
Posted By dr4g
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
Posted By dr4g
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
Posted By dr4g
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
Posted By dr4g
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
Posted By dr4g
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
Posted By dr4g
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
Posted By dr4g
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
Posted By dr4g
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
Posted By dr4g
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
Posted By dr4g
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
Posted By dr4g
Well done Johny, i never tought of that :D
Forum: PHP Jul 15th, 2007
Replies: 43
Views: 175,252
Posted By dr4g
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
Posted By dr4g
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
Posted By dr4g
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
Posted By dr4g
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
Posted By dr4g
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
Posted By dr4g
Not a problem dude, i have nothing else to do :)
Ask away.
Forum: PHP Jul 8th, 2007
Replies: 10
Views: 1,349
Posted By dr4g
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
Posted By dr4g
Forum: PHP Jul 8th, 2007
Replies: 17
Views: 2,690
Posted By dr4g
Forum: PHP Jul 8th, 2007
Replies: 16
Views: 3,401
Posted By dr4g
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
Posted By dr4g
What happens when you print it ?
Forum: PHP Jul 8th, 2007
Replies: 16
Views: 3,401
Posted By dr4g
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
Posted By dr4g
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
Posted By dr4g
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
Posted By dr4g
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
Posted By dr4g
Check your phpini setting "max_execution_time". that can affect your uploads.

Goodluck!
Forum: PHP Jul 8th, 2007
Replies: 17
Views: 2,690
Posted By dr4g
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
Posted By dr4g
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
Posted By dr4g
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
Posted By dr4g
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
Posted By dr4g
What is exactly line 7 within your .php file?
It's just a syntax error, and can be worked out momentarily for you :)

Cheers.
Showing results 1 to 40 of 76

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC