Search found 6 matches

by skyhawk133
Tue Nov 19, 2002 12:25 am
Forum: PHP - Code
Topic: Including PHP in a HTML page
Replies: 4
Views: 795

Unless however you have enough control over your server to add the HTML MIME type to types of pages that are parsed using the PHP engine...

I did that for about 6 months during the period that google and other engines updated the links to my new pages... same concept though.
by skyhawk133
Mon Nov 18, 2002 12:37 pm
Forum: Databases
Topic: Event Calendar using PHP/MySQL
Replies: 3
Views: 1397

Try this, fiddle with the mySQL code as you fit. but the calendar code should work fine. comment out the mySQL parts to see just the calendar. <? // If the $Month and $Year values don't exist, make them the current month and year. if ((!$Month) && (!$Year)) { $Month = date (&q...
by skyhawk133
Sat Nov 16, 2002 6:40 pm
Forum: PHP - Code
Topic: using mail() function
Replies: 3
Views: 1343

The 'circumstances' for which you would use the mail() function is anytime you want to send an email, I just used it like this to send a welcome email to my members: $message = "Welcome to dream.in.code and the DreamStudios Network $in_username. As a member of dream.in.code you now have access ...
by skyhawk133
Sat Nov 16, 2002 10:30 am
Forum: PHP - Code
Topic: MIME Email
Replies: 8
Views: 2775

Link it from offsite, full http://www..... address

Here is the newsletter I send out with that script:

http://home.dreamincode.net/newsletters/111102.php
by skyhawk133
Sat Nov 16, 2002 4:46 am
Forum: PHP - Code
Topic: MIME Email
Replies: 8
Views: 2775

Don't know if you've seen this one yet: $headers = "From: dream.in.code <forums@dreamincode.net>\r\n"; $headers .= "To: ".$name."<".$email.">\r\n"; //specify MIME version 1.0 $headers .= "MIME-Version: 1.0\r\n"; //unique boundary $boundary = uniqid(&...
by skyhawk133
Wed Nov 13, 2002 10:25 pm
Forum: PHP - Code
Topic: A little help?
Replies: 2
Views: 579

One thing you can do is CHMOD the directory after you set it up using the PHP scripts which potentially has more permissions than you as a user: chmod ("/somedir/somefile", 755); // decimal; probably incorrect chmod ("/somedir/somefile", "u+rwx,go+rx"); // string; incor...