Re: [PHP] PHP 4.1.2 + GD 2.0.1 please help.
I am having the same problem, I can't compile the latest php-cvs with gd support on Linux It worked until last week or so Sebastian At 8:46 Uhr -0800 04032002, Rasmus Lerdorf wrote: Which OS? If a Linux distro, are you sure you have both libpng and libpng-devel packages installed? And does your configure script detect PNG support? On Mon, 4 Mar 2002, Alex Bloor wrote: Hi, Thanks for reading this message I am having great difficulty recompiling php 412 + apache 1323 + gd 201 I need freetype support (and freetype 2 is installed) -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp
Re: [PHP] How to use gd/php with no freetype?
Hello and thanks for your time. After endless searching, I am still lost let's just assume I can't install freetype, and it looks like that for matters I won't get into. (linux, raq 3) What solution would allow me to specify fonts for text written into images? Instead of using the default font, imagine I want to use helvetica. Am I out of luck without freetype? And if somehow I get freetype installed does php allow the method to name the font such as Arial and if so, which file do I edit so by default I can specify the font so the text written to the image looks as I intended? Thanks. I searched and couldn't find answer to both q's, esp. the first. Joel Hi Joel, If you want to use PostScript fonts you may install the T1 Lib ftp://sunsite.unc.edu/pub/Linux/libs/graphics/t1lib-1.3.1.tar.gz compile T1, compile php gdlib with T1 support Best, Sebastian -- 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] HTTP_REFERER
Hi Jord, You don't need to get HTTP_REFERER, in order to know what the client requested! And every browser stores some other info in HTTP_REFERER... The filename that was reqested is stored in $REQUEST_URI Best, Sebastian Hi, I'm writing a 404 handler and in order to report the item that was requested I was trying to get the value of HTTP_REFERER. But, it does seem to get set. Does anyone know how to find thi value? Is there a reason why it would not get set? TIA, -- 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] Send an e-mail witdh php
Hello, I want to send an e-mail to one address(To) and many carbon copies to many e-mailadresses(BCC). Is there a class to do this?? Henk Hi Henk, You don't need a special class, just use: $to = [EMAIL PROTECTED]; $subject = Your Subject; $messages = some text you want to send...; $headers = CC: firstname[EMAIL PROTECTED], [EMAIL PROTECTED],; $headers .= [EMAIL PROTECTED]\n; $headers .= From: Your name[EMAIL PROTECTED]\n; mail ($to, $subject, $message , $headers); Best, Sebastian -- 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
Hi Heidi, Does anyone have any idea how i can detect a clients IP address? in PHP: ? echo $REMOTE_ADDR; ? best, Sebastian -- 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] GD
At 10:06 Uhr -0500 07.09.2001, Joseph Bannon wrote: I just installed PHP 4.0.6. 1) Do I have to down load GD (graphics library) and install it sperately or is it in 4.0.6 already? 2) Do I have to run anything special during configuration? 3) Do I have to completely re-install PHP and Apache? Thanks, Joseph Hi Joseph, You have to download GD from http://www.boutell.com/gd/ make sure you have zlib, libjpeg, libpng, and (if you need it) freetype if not compile and install them all... then configure php with #./configure your options \ --with-gd=your dir \ --with-zlib=your dir \ --with-jpeg-dir=your dir \ --with-png-dir=your dir \ --with-tiff-dir=your dir \ --with-freetype-dir=your dir #make #make install then you will have to restart apache Best regards, Sebastian Wenleder -- 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] MAIL to a Bcc: ???
At 18:02 Uhr -0700 10.07.2001, Marcus James Christian wrote: Hello, How do I change the value of the TO: in a mail() function to a value of Bcc: ? Or at least trick the mail to a Bcc:So the recipients emails aren't shown? Hi Marcus, $headers=Bcc:[EMAIL PROTECTED]\n; $headers.=Subject: Your Subject\n; $msg=The Message; mail([EMAIL PROTECTED],Subject, will be overwritten...,$msg,$headers); BTW, You could have found that in the manual... best, Sebastian -- 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] PHP / gd problems / compiling
my configure line: ./configure' '--with-mysql' '--with-apache=../apache_1.3.12' '--enable-track-vars' '--enable-ftp' '--with-jpeg-dir=/usr/local/bin' '--with-gd-dir=/usr/local/bin' gd version 1.8.1 .. Then whenever I try to create an image of any kind, be it gif, jpg, or png, I get: br bWarning/b: ImageTtfText: No TTF support in this PHP build in b/data/www/apache/htdocs/airforce/quote/image.php/b on line b7/bbr br bWarning/b: ImageGif: No GIF support in this PHP build in b/data/www/apache/htdocs/airforce/quote/image.php/b on line b8/bbr (It would give me the same warnings for JPG .. No JPG support, no PNG support, etc.) What did I do wrong? I thought I built it in correctly, that configure line appears when I do the phpinfo() stuff .. Hi Chad! You should compile PHP with TTF-Support, if you want to use TrueTypeFonts (ImageTTFText does this) for this you would need the freetype package (http://freetype.sourceforge.net) and add this to your configure line for freetype 1.x: --with-ttf='/path/to/ttf' -- or -- for freetype 2.x: --with-freetype-dir='/path/to/freetype' you should also make sure you built gd with freetype support, i'm not sure if gd 1.8.1 supports freetype 2.x and I would recommend that you upgrade your gd_lib to 2.0.1 it's a beta, but it's quite stable! Best, Sebastian -- 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] Code check please
At 18:00 Uhr +0200 20.06.2001, Andreas Skarin wrote: I've tried to get this working for over an hour now, and it still won't. I don't even get an error message to help me find the problem so I was hoping that someone could check my code for me. [snip] $sql = INSERT INTO tabell SET . fornamn ='$fornamn', . efternamn='$efternamn', . email='$email';; Hi Andreas I'd use this SQL-query: $sql = INSERT INTO tabell \ (fornamn,efternamn,email) \ VALUES(.$fornamn., \ .$efternamn., .$email.); Hope it works for you! Best, Sebastian -- 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] download successfull... but in binary... why?
Hi, header(Content-type: application/download); try this: Header(Content-Type: application/x-octet-stream); It always worked for me... good luck, Sebastian -- 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]