php-windows Digest 27 Feb 2003 11:00:41 -0000 Issue 1608

Topics (messages 18722 through 18728):

Re: Is ASP.NET faster than php?
        18722 by: Steve Yates

files
        18723 by: Aidal

Re: not serving css styles?, css not showing up on local dev box
        18724 by: Per Lundberg

Re: html2pdf on windows?
        18725 by: Aidal
        18726 by: Michael Power

Re: newbie: installing php_gd
        18727 by: Michael Power

Re: Duplicate entry removal
        18728 by: Uttam

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
"Charles P. Killmer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>Does anyone have any thoughts about PHP vs ASP.NET?

See http://www.php.net/manual/en/faq.languages.php , including the comments.

 - Steve Yates
 - When all else is lost, the future still remains.

~ Taglines by Taglinator - www.srtware.com ~



--- End Message ---
--- Begin Message ---
Hi NG.

I have a problem with an php application handling files.
The problem is when my app. opens an excisting file with text in it for
editing.

How do I make sure that the edited (new) text doesn't just get written like
a layer over the old text, so if the new text is shorter than the old one,
the difference between the old and the new text will still appear in the end
of that file?

I've treid rewinding the file, but as the word implies the file is only
rewinded, not emptied which i need.

How can I empty a text file so I can write new text in it?

/Aidal



--- End Message ---
--- Begin Message ---
On Wed, 2003-02-26 at 22:36, Beach, Jim wrote:
> My default browser for development is Mozilla but the same problem
> occurs when I try it with IE6. That makes me think it's an Apache config
> thing.
> 
> Does anyone have an idea?

The only thing that pops up in my mind is that it could be a bad MIME
configuration.  CSS files should be sent as text/css.  This is
configured in mime.types in Apache.

Mozilla will print a warning message about this in the Javascript
console, so you can look there and see what you get.

-- 
Best regards,

Per Lundberg / Capio ApS
Phone: +46-18-4186040
Fax: +46-18-4186049
Web: http://www.capio.com



Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---
--- Begin Message ---
I know this wasn't exactly what you asked for, but I had a lot of trouble
myself finding somthing to create pdf on-the-fly for applications running on
a WinBox.
After spending much time and efford trying to find this, with no luck I may
add, I bought a copy of HTMLDOC.
This application comes in a pack of two applikations, one with an UI and one
for command-line use (e.i. with PHP's passtru()).

I don't know if anything has changed since then, but when I got it I could
just sign up for 1 month of tech support which means buying these two apps
and getting 1 month of support.
You can't buy the apps without support and the shortest period is 1 month.
The apps will work unlimited though, you just can't get support or download
a newer version when your support period has expired.

Check it out here: http://www.easysw.com

Hope that will help you, it did me :o)

/Aidal

"Anthony" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> has anyone gotten html2pdf to work on NT?  I'm putting together a Linux
box
> right now to use specifically for this purpose but since part of my app is
> NT only it would be awesome if I could get it to run on my NT box.  IIS5
and
> Win2K if that makes any difference.
>
> If you've done this, please help me out :)
>
> - Anthony
>
>
>



--- End Message ---
--- Begin Message ---
You could always try a slightly more complicated approach...

I used to use the Adobe Post Script Printer Driver (free from www.adobe.com)
via VB6 and MSOffice (i.e. VBA to select correct printer and print) to
create a post script file.  I think you should be able to do the same with
PHP=>COM functions.

Then use the command line app. Ghostscript (free from www.ghostscript.com)
to convert the Post Script to a PDF.

The advantage of this approach is you can create a PDF out of anything you
can select a printer for and print from via COM...  Just a thought???

Cheers
Mike

--
Michael Power
Software Developer
Concentrix Limited
_______________________________________

Helping you strengthen your customer relationships

To find out more about how we can help you visit our website
http://www.concentrix.co.uk

The Technology Centre, Epinal Way,
Loughborough, Leicestershire, LE11 3GE
T: +44 (0)1509 235000 F: +44 (0)1509 221740
_______________________________________

> "Anthony"
> has anyone gotten html2pdf to work on NT?  I'm putting together a Linux
box
> right now to use specifically for this purpose but since part of my app is
> NT only it would be awesome if I could get it to run on my NT box.  IIS5
and
> Win2K if that makes any difference.
>
> If you've done this, please help me out :)
>
> - Anthony
>
>
>



--- End Message ---
--- Begin Message ---
Try "C:\php4\extensions"

i.e. add the dbl quotation marks.

Cheers
Mike

> "Anthony Ritter"
> Rich,
> On MS Win 98 / Apache / PHP 4
>
> If somebody out there using Win can check my php.ini file and advise me
what
> I'm doing wrong.
>
> I have uncommented:
> ..............
> extension=php_gd.dll
> ..................
> and have included:
> ..................
> extension_dir = C:\php4\extensions
> ....................
<SNIP>



--- End Message ---
--- Begin Message ---
isn't it better to just:

SELECT DISTINCT YEAR(<date>) FROM <table>;



regds,

-----Original Message-----
From: Michael Power [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 17:10
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Duplicate entry removal


Better yet define the required dataset with SQL to speed the whole
process
up:

"SELECT YEAR(your_date) FROM table_name GROUP BY your_date";

Cheers
Mike

> "Matt Hillebrand"
> array_unique()
>
> |-----Original Message-----
> |From: Per Christian [mailto:[EMAIL PROTECTED]
> |
> |Hi
> |
> |I'm building a PHP project for fun, and are going to get some
> |dates from my database (mysql). The problem is that I only
> |want the year, but the date is in the format YYYY-MM-DD so I
> |get the whole column and remove the -MM-DD part, but now I
> |have a lot of the same year Is there a function or some code
> |that removes duplicate entries from a array?
> |
> |Best Regards,
> |Per Christian




--- End Message ---

Reply via email to