RE: [PHP] parse error when requiring

2001-12-06 Thread Oosten, Sjoerd van

hmm it still doesn't work. Maybe its because if have an if statement in the
include which is closed in bottom.php?


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 
___


-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 when requiring


> Parse error: parse error in /home/sites/site139/web/EIA/sessionstart.php
on
> line 10
>
> It's strange that line number 10 doesn't exist!

Do you have an include statement in sessionstart.php?

--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969 Mob 07763 620378
PGP Key available, send email with subject: Send PGP Key


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] parse error when requiring

2001-12-06 Thread Oosten, Sjoerd van

Parse error: parse error in /home/sites/site139/web/EIA/sessionstart.php on
line 10

It's strange that line number 10 doesn't exist!


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 
___


-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 when requiring


Maybe you could give a little more info on what 
the parse error actually says?



On Thu, 2001-12-06 at 06:51, Oosten, Sjoerd van wrote:
> I have a question about require...
> 
> I have a session_start() on top of every page and an if-else construction.
>  session_start()
> if ($SessieEIA->Login == 1) 
> {  
> ?>
> 
> 
> 
> 
> 
> On the bottom of every page
>  else {
> require "error.php";
> }
> ?>
> 
> This works fine, but now i made the files sessionstart.php and bottom.php
> 
> sessionstart.php
> --
>  session_start()
> if ($SessieEIA->Login == 1) 
> {  
> ?>
> 
> 
> bottom.php
> --
>  else {
> require "error.php";
> }
> ?>
> 
> And i require these files on top resp. bottom of the page and i get two
> parse errors.
> 
> Can somebody tell me why?
> 
> Thanks in advance!
> 
> 
> 
> 
> 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 General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] parse error when requiring

2001-12-06 Thread Oosten, Sjoerd van

I have a question about require...

I have a session_start() on top of every page and an if-else construction.
Login == 1) 
{  
?>





On the bottom of every page


This works fine, but now i made the files sessionstart.php and bottom.php

sessionstart.php
--
Login == 1) 
{  
?>


bottom.php
--


And i require these files on top resp. bottom of the page and i get two
parse errors.

Can somebody tell me why?

Thanks in advance!




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 General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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: 
click here
 
the next file sees $name as rob instead of $name=rob & sjoerd
 
i've tried the urlencode function but that doesn't work.
 
Somebody,
 
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 General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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 General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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, $year);
$daytemp = date("Y-m-d", $dayactief);
$resultactive = mysql_query("SELECT * FROM EIAProjecten WHERE
((Project_begindatum >= '$daytemp' AND Project_id = '$Project_id') OR
(Project_einddatum <= '$daytemp' AND Project_id = '$Project_id'))",$db);

$num_rows = mysql_num_rows($resultactive);
if ($num_rows == '1'){
return "red"; }
}


AND i'm calling this function in an while loop



(I translated it into english so maybe some mistakes!)

When i try to call the function i get a mysql error every time, even when i
make $resultactive ("SELECT * FROM EIAProjecten") // NO DATE

1. Is it possible to make a sql connection in my function
2. did i do something wrong?

Can somebody help me?

Sjoerd








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 General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 
___


-Oorspronkelijk bericht-
Van: Fred [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 20 november 2001 18:18
Aan: [EMAIL PROTECTED]
Onderwerp: Re: [PHP] Re: DATE Questions


Alright.  I was recently writting an attendance application for a school.  I
wanted to beable to display attendance information from mysql in a calendar,
but I did not want to have to write the calendar script from scratch.  I
must have looked at thirty or so calendar scripts before I found this one:
http://www.stevenrebello.f2s.com/ .  I chose this calendar because it looks
nice, but is very simple and does not contain a bunch of stuff I don't need.

I rewrote the script as a function and changed it to fit my needs.  I will
include the source here so that you can see how I made it work with mysql.
There are two places where I made changes.  First, you can see that I
changed the code for generating the links to last month and next month.  You
will need to do this in order to pass the correct variables to the page that
contains the function.

I then added the code for priting my dadabase information.  Most of the code
for formatting the data for each day is in a seperate function that gets
called once for each day on the calendar.  You will notice that I have the
database code in there twice.  This is because I did things a little
differently for the current day.  This is not necessary, but you will have
to rearrange the code a bit if you still want to highlight the current day.

Good Luck.
function  AttendanceCalendar($mon,$year,$Student,$Class)
{
  global $dates, $first_day, $start_day, $Attend;

  $first_day = mktime(0,0,0,$mon,1,$year);
  $start_day = date("w",$first_day);
  $res = getdate($first_day);
  $month_name = $res["month"];
  $no_days_in_month = date("t",$first_day);

  file://If month's first day does not start with first Sunday, fill table
cell with a space
  for ($i = 1; $i <= $start_day;$i++)
   $dates[1][$i] = " ";

  $row = 1;
  $col = $start_day+1;
  $num = 1;
  while($num<=31)
   {
if ($num > $no_days_in_month)
  break;
else
 {
  $dates[$row][$col] = $num;
  if (($col + 1) > 7)
   {
$row++;
$col = 1;
   }
  else
   $col++;
  $num++;
 }//if-else
   }//while
  $mon_num = date("n",$first_day);
  $temp_yr = $next_yr = $prev_yr = $year;

  $prev = $mon_num - 1;
  $next = $mon_num + 1;

  file://If January is currently displayed, month previous is December of
previous year
  if ($mon_num == 1)
   {
$prev_yr = $year - 1;
$prev = 12;
   }

  file://If December is currently displayed, month next is January of next
year
  if ($mon_num == 12)
   {
$next_yr = $year + 1;
$next = 1;
   }

  echo "";

  echo  "\n ".
"<< ".
"".date("F",$first_day)." ".$temp_yr."".
" ".
">> ";

  echo "\nSunMonTue";
  echo
"WedThuFriSat";
  echo " ";

  $end = ($start_day > 4)? 6:5;
  for ($row=1;$row<=$end;$row++)
   {
for ($col=1;$col<=7;$col++)
 {
  if ($dates[$row][$col] == "")
  $dates[$row][$col] = " ";

  if (!strcmp($dates[$row][$col]," "))
   $count++;

  $t = $dates[$row][$col];

  file://If date is today, highlight it
  if (($t == date("j")) && ($mon == date("n")) && ($year == date("Y")))
  {
   file://echo "\n".$t."";
   echo "\n";//.(($t == " " )? " "
:$t)."";

   $Result = mysql_query("SELECT Attend, Credit, Date FROM Attendance
WHERE StudentID = \"$Student\" AND SectionNo = \"$Class\" AND MONTH(Date) =
\"$mon\" AND YEAR(Date) = \"$year\" AND DAYOFMONTH(Date) = \"$t\"",
MakeConn())
   or die (mysql_error());

   if (mysql_num_rows($Result) > 0)
   {
   $DataRow = mysql_fetch_assoc($Result);
   extract ($DataRow);
   PrintDay($Attend,$Credit,$t,$mon,$year);
   mysql_free_result($Result);
   }

   echo "";}
  else {
  if ($t == " ") {
  echo "\n";
  echo "";
  }else{
   file://If the date is absent ie after 31, print space
   echo "\n";//.(($t == " " )? " "
:$t)."";

   $Result = mysql_query("SELECT Attend, Credit, Date FROM Attendance
WHERE StudentID = \"$Student\" AND SectionNo = \"$Class\" AND MONTH(Date) =
\"$mon\" AND YEAR(Date) = \"$year\" AND DAYOFMONTH(Date) = \"$t\"",
MakeConn())
   or die (mysql_error());

   if (mysql_num_rows($Result) > 0)
   {
   $DataRow = mysql_fetch_assoc($Result);
   extract ($DataRow);
   PrintDay($Attend,$Credit,$t,$mon,$year);
   mysql_free_result($Result);
   }
   else
   {
   echo $t;
   }



   echo "";}}
 }// for -col

if (($row + 1) != ($end+1))
 echo "\n";
else
 echo "";
   }// for - row
  

RE: [PHP] Re: DATE Questions

2001-11-20 Thread Oosten, Sjoerd van

Of course i'm very interested!

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 757 
___


-Oorspronkelijk bericht-
Van: Fred [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 20 november 2001 9:35
Aan: [EMAIL PROTECTED]
Onderwerp: [PHP] Re: DATE Questions


If you are interested I can show you a script that will generate a monthly
calendar based on the current date.  It has links to go forward and backward
by month.  It is a fairly simple script that I found at hotscripts.com, but
it has amazing potential.  I have used it as the basis for some rather
advanced database applications.

Fred


Sjoerd Van Oosten <[EMAIL PROTECTED]> wrote in message
C9F89DA57491D511BDAF00E0180C348103BFE5@ESADM01">news:C9F89DA57491D511BDAF00E0180C348103BFE5@ESADM01...
>
> 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 are between say 20 november and 20
> december dynamically?
> - How can i make an array containing the values of these dates?
> - How do i make a for loop and print these values.
>
> I hope somone can help me out. 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 General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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 are between say 20 november and 20
december dynamically?
- How can i make an array containing the values of these dates?
- How do i make a for loop and print these values.

I hope somone can help me out. 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 General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 E-sites B.V. 
http://www.esites.nl
Minervum 7368 Telefoon: (076) 5 730 730 
4817 ZH BREDA Telefax: (076) 5 877 757 
___


-Oorspronkelijk bericht-
Van: Heidi Belal [mailto:[EMAIL PROTECTED]]
Verzonden: maandag 19 november 2001 10:58
Aan: js-jive mailing list; Php
Onderwerp: [PHP] Detecting IP address


Does anyone have any idea how i can detect a clients
IP address?  I've found javascripts on the net but
they only work on netscape and only when java is
enabled.  I need it to work on IE.
Thanks!
Heidi

=
Heidi Belal
ICQ# 32127109

A bus stops at a bus station.
A train stops at a train station.  On my desk
I have a work station...

__
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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 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 General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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 resource in
/opt/guide/www.domain.nl/HTML/inc/menu.php on line 34"

Thanks,

Sjoerd


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 General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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 757 
___


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] EREG_REPLACE?

2001-11-15 Thread Oosten, Sjoerd van


> Hello, ive got a problem
> 
> I want to replace this string:
> this must also be variable
> 
> by:
> 
> this must also be variable
> 
> So the two tags should be placed before and after the link when a link is
> in my $pagecontent
> 
> I know it's easier to use another class, but for the moment that's not an
> option.
> 
> Greetings,
> 
> Sjoerd 
> 
> 
> 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 General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 : 

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
Minervum 7368 Telefoon: (076) 5 730 730 
4817 ZH BREDA Telefax: (076) 5 877 757 
___


-Oorspronkelijk bericht-
Van: Brandon Orther [mailto:[EMAIL PROTECTED]]
Verzonden: donderdag 15 november 2001 18:55
Aan: 'PHP User Group'
Onderwerp: [PHP] The url of the last site?


Hello,
 
I am trying to have a script that process a form and then sends the
person back to the form they were on if there are errors.
 
Does anyone know how I can get the url of the form that someone submit
to the script from?
 
Thanks
Brandon

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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=variable&Object_type=normal&Street_type=normal
street&.

The variable Street_type doesn't get through netscape 4.7, but IE and
Netscape 6 do let the variable through.


Is there a way to automatically let a spacer fill with %20 so it works at
all browsers and i don't have to reprogram my system?


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 General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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 
___


-Oorspronkelijk bericht-
Van: Harry Lau [mailto:[EMAIL PROTECTED]]
Verzonden: dinsdag 13 november 2001 10:36
Aan: [EMAIL PROTECTED]
Onderwerp: [PHP] Any easy way of finding "yesterday"...?


It is easy to use the function getDate() to obtain the date of today.
But instead of writing plenty of conditions,
is there any easy way to get the date of yesterday?
Thank you.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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
Minervum 7368 Telefoon: (076) 5 730 730 
4817 ZH BREDA Telefax: (076) 5 877 757 
___


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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 B.V. 
http://www.esites.nl
Minervum 7368 Telefoon: (076) 5 730 730 
4817 ZH BREDA Telefax: (076) 5 877 757 
___


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Using PHP for directory indexing

2001-11-12 Thread Oosten, Sjoerd van

\n");

// open directory
$myDirectory = dir(".");

// get each entry
while($entryName = $myDirectory->read())
{
print("$entryName \n");
}

// close directory
$myDirectory->close();

print("\n");
?>


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 
___


-Oorspronkelijk bericht-
Van: Kevin Garrett [mailto:[EMAIL PROTECTED]]
Verzonden: maandag 12 november 2001 14:08
Aan: [EMAIL PROTECTED]
Onderwerp: [PHP] Using PHP for directory indexing


Hi All,

I am wondering if anyone can help me with this.  I want people
accessing my 
site to see a list of HTML reports but I don't want to turn on Directory 
indexing on my Apache webserver, seeing as the directory path is present.  
What I'm looking to do, is to write a basic php script which will read the 
files in a certain directory & create links to be presented to the user.  
Has anyone ever done this before?  Can someone give me an example or a 
headstart on this.

Thanks in advance
Kev

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[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 viewing
the e-mail.

Is this possible and how should I do this?

Thanks in advance,

Sjoerd


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 General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]