[PHP] Wierd time shifting problem?!?

2005-07-25 Thread Gord Busse
Greetings,

 

I have an application I built that allows the user to schedule mailings to
subscribed users for specific times and dates. Everything was working fine
as far as I could tell then all of a sudden this time shifting problem
started popping up and seems to be getting worse. The application makes
extensive use of the date() and time() command for generating and displaying
dates and times. It appears that the times are shifting 7 hours into the
future. If I shutdown Apache then start it back up next time I log into the
application all of the times are now displayed correctly. Below is my server
configuration:

 

-  Windows Advanced Server 2000 with all updates applied

-  Apache 2.0.47 non SSL

-  PHP 4.3.3 using Apache2 module

-  MySQL 4.0.14-max

-  phpMyAdmin 2.5.2-pl1

 

The application itself also makes heavy use of:

 

-  Adodb 4.52

-  Smarty 2.6.5

 

I am hoping someone can at least point me in the right direction here as
this is starting to become very annoying. We are going to be moving the
application over to an Mac OSX 10.4 server in the near future but I still
need to find out why this is happening on the Windows server. I have never
had this type of thing happen on this server to my knowledge. I am going to
be upgrading Apache to 2.0.54 and PHP to 4.4.0 probably today to see if this
helps. I have also considered moving Apache back to the 1.3x series as I
have heard that the 2.x series has some stability problems on Windows.

 

Anyways, thank you in advance to anyone that can help me!!!

 

Gord

 

 

 

--

 

Gord Busse  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]

Website:  http://gordo.bussefamily.net http://gordo.bussefamily.net

 

99 little bugs in the code, 99 bugs in the code,
fix one bug, compile it again...
101 little bugs in the code 

 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Need help with loading and displaying PDF files

2004-04-21 Thread Gord Busse
Greetings,
 
I have an archive of PDF documents that are stored in a non web accessible
directory. I wrote a small script that will load a PDF document from this
directory, dump it to the browser and display it in the Acrobat Plug-in.
This works ok. Where the problem lies is in the naming of the PDF file. When
viewing the PDF file in the Acrobat Plug-in if I click the plug-in's save to
disk icon the filename the PDF file wants to be saved as it test.pdf. The
name of my PHP script is test.php. How if at all, can I get the PDF filename
to be the actual PDF filename and not test.pdf. If I try manually opening a
PDF document directly into the browser it works fine, but doing it via PHP
and my script doesn't. Below is what I have written so far after searching
the web:
 
?php
 
$document_directory = d:/documents;
$document_filename = the_document.pdf;
$document = $document_directory./.$document_filename;
 
header(Content-Type: application/pdf);
header(Content-Length:  .filesize($document));
header(Content-Disposition: inline; filename=.$document_filename);
readfile($document);
 
?
 
I am running Windows XP Pro and using IE6 as my browser. Although I have
also tried this without success using Mozilla 1.6 on Windows and Safari and
IE5 on OSX. Sorry if a solution to this problem has already been posted
elsewhere. If it has please point me in the right direction.
 
Thanx in advance,
Gord
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php