[PHP] Attachments again

2001-11-12 Thread Oosten, Sjoerd van
Hi, When i send a dynamic HTML newletter, which contains newsitems in the database I now send the e-mail with a link to the image on the webserver. What i would like to do is instead of linking the image, send the image as a sort of attachment. So an internetconnection is not required when

RE: [PHP] Using PHP for directory indexing

2001-11-12 Thread Oosten, Sjoerd van
? // print the current directory in unordered list print(UL\n); // open directory $myDirectory = dir(.); // get each entry while($entryName = $myDirectory-read()) { print(LI$entryName \n); } //

[PHP] anti-alias

2001-11-13 Thread Oosten, Sjoerd van
Hello, I have a little question about the GD-Lib. Is it possible to parse anti-aliassed text? This would be very interesting because anti-aliassed buttons are more beatiful! Thanks, Sjoerd van Oosten Digitaal vormgever [EMAIL PROTECTED] Datamex E-sites

[PHP] even or not

2001-11-13 Thread Oosten, Sjoerd van
Hello, How can is check with php wether a number is even or not? What i want is that in a while loop the background color of a cell changes! Thanks, Sjoerd van Oosten Digitaal vormgever [EMAIL PROTECTED] Datamex E-sites B.V. http://www.esites.nl

RE: [PHP] Any easy way of finding yesterday...?

2001-11-13 Thread Oosten, Sjoerd van
$yesterday = mktime(0,0,0,date(m),date(d) -1,date(Y)); Sjoerd van Oosten Digitaal vormgever [EMAIL PROTECTED] Datamex E-sites B.V. http://www.esites.nl Minervum 7368 Telefoon: (076) 5 730 730 4817 ZH BREDA Telefax: (076) 5 877 757

[PHP] %20

2001-11-14 Thread Oosten, Sjoerd van
Hello I just discovered a netscape 4.7 bug when sending a string. The variable cannot contain a space. So a string like this does not work in netscape 4.7 objectdetail.php?Bouw=variableObject_type=normalStreet_type=normal street. The variable Street_type doesn't get

RE: [PHP] The url of the last site?

2001-11-15 Thread Oosten, Sjoerd van
You could process the form in the same file form action : ? print PHP_SELF; ? and in the header of the page if ($Submit){ // YOUR ACTION HERE } Sjoerd van Oosten Digitaal vormgever [EMAIL PROTECTED] Datamex E-sites B.V. http://www.esites.nl

[PHP] EREG_REPLACE?

2001-11-15 Thread Oosten, Sjoerd van
Hello, ive got a problem I want to replace this string: a class=mn href=whatever is here should be left her and is variablethis must also be variable/a by: font size=2a class=mn href=whatever is here should be left her and is variablethis must also be variable/a/font So the two

[PHP] require or include

2001-11-15 Thread Oosten, Sjoerd van
Hello list, I'm just wandering what's better, require or include. Greetings, Sjoerd van Oosten Digitaal vormgever [EMAIL PROTECTED] Datamex E-sites B.V. http://www.esites.nl Minervum 7368 Telefoon: (076) 5 730 730 4817 ZH BREDA Telefax: (076) 5 877

[PHP] custom errors

2001-11-16 Thread Oosten, Sjoerd van
Hi, I know how to make an error message when the connection is lost with the database, with the @ and the OR DIE in the connection with the database. Is there also a way to display a custom error message when this error is displaid? Warning: Supplied argument is not a valid MySQL result

[PHP] link to a pdf file

2001-11-16 Thread Oosten, Sjoerd van
Hello, a question again. I have a pdf file which can be downloaded. How can i link to this file so, that the file isn't opened in the browser (if acrobat reader is installed) but the file download popup appears? Greetings, Sjoerd van Oosten Digitaal

RE: [PHP] Detecting IP address

2001-11-19 Thread Oosten, Sjoerd van
some loggings: $LogIp1 = getenv(REMOTE_ADDR); $LogIpaddr = gethostbyaddr($LogIp1); $LogIpname = gethostbyname($LogIp1); $LogBrowser = $HTTP_USER_AGENT; $LogReferer = getenv(HTTP_REFERER); Sjoerd van Oosten Digitaal vormgever [EMAIL PROTECTED] Datamex

[PHP] DATE Questions

2001-11-20 Thread Oosten, Sjoerd van
Hello, I'm working on a project planning system and what i want to do is making a sort of table structure with an overview form today till a month later. All the projects that are between these dates must be viewed. Right now i have the following questions: - How can i determine how much days

RE: [PHP] Re: DATE Questions

2001-11-20 Thread Oosten, Sjoerd van
Fred thanks a lot, you really helped me out! Sjoerd van Oosten Digitaal vormgever [EMAIL PROTECTED] Datamex E-sites B.V. http://www.esites.nl Minervum 7368 Telefoon: (076) 5 730 730 4817 ZH BREDA Telefax: (076) 5 877 757

[PHP] SQL in Function

2001-11-22 Thread Oosten, Sjoerd van
Hello, im a newbie in writing functions but right now im trying to. I have made the following function // FUNCTION TO DECIDE WHETHER A PROJECT IS IN BETWEEN PROJECTBEGIN AND PROJECTEND , YES OR NO function Activeyesno($month,$day,$year,$Project_id){ $dayactief = mktime(0, 0, 0, $month, $day,

[PHP] session

2001-11-23 Thread Oosten, Sjoerd van
Hi, is it possible to make a session last longer? Thanks, Sjoerd van Oosten Digitaal vormgever [EMAIL PROTECTED] Datamex E-sites B.V. http://www.esites.nl Minervum 7368 Telefoon: (076) 5 730 730 4817 ZH BREDA Telefax: (076) 5 877 757

[PHP] problem with urlencode

2001-11-29 Thread Oosten, Sjoerd van
Hi there, I have a problem putting through a variable which contains an in the string. When the variabele is something like: a href=test.php?name=robsjoerdclick here/a the next file sees $name as rob instead of $name=rob sjoerd i've tried the urlencode function but that doesn't work.

RE: [PHP] parse error when requiring

2001-12-06 Thread Oosten, Sjoerd van
: (076) 5 730 730 4817 ZH BREDA Telefax: (076) 5 877 757 ___ -Oorspronkelijk bericht- Van: Andrew Forgue [mailto:[EMAIL PROTECTED]] Verzonden: donderdag 6 december 2001 16:13 Aan: Oosten, Sjoerd van CC: [EMAIL PROTECTED] Onderwerp: Re: [PHP] parse error

RE: [PHP] parse error when requiring

2001-12-06 Thread Oosten, Sjoerd van
4817 ZH BREDA Telefax: (076) 5 877 757 ___ -Oorspronkelijk bericht- Van: Jon Farmer [mailto:[EMAIL PROTECTED]] Verzonden: donderdag 6 december 2001 16:49 Aan: Oosten, Sjoerd van; 'Andrew Forgue' CC: [EMAIL PROTECTED] Onderwerp: Re: [PHP] parse error