Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread speedboy
> Thanks for the suggestion but it didn't change anything. It won't. Put them in a web accessible directory and don't use custom header calls because they do not work reliably. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] IRC Channel

2001-10-20 Thread speedboy
> Is there a PHP IRC channel? efnet (http://www.irchelp.org/irchelp/networks/efnet.txt) The channel is #php Run by a bunch of children though *troll bait away* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] enable truetype string function in gd

2001-10-21 Thread speedboy
> Does anyone know what it's going to take to get access to the function > imagettftext() in PHP 4.0.6?! My eyes are bloodshot right about now. http://database.sourceforge.net/documentation/installing_apache_with_gd_zlib_png_jpg_tiff_pdf_support.html -- PHP General Mailing List (http://www.php

Re: [PHP] HELP: Still Learning

2001-10-28 Thread speedboy
> > Still learning! But need syntax help. This works: > > Notice something? :) Yep, you forgot to paste the error message into the email. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact th

Re: [PHP] Create images jpeg

2001-10-28 Thread speedboy
> ImageJpeg: No JPG support in this PHP build in No jpeg support. Isn't it obvious? Recompile php --with-jpeg-dir=/usr/local For more information: http://database.sourceforge.net/documentation/installing_apache_with_gd_zlib_png_jpg_tiff_pdf_support.html -- PHP General Mailing List (http://w

Re: [PHP] Breaking a string

2001-10-28 Thread speedboy
> I was looking to take a string like Dan or Dan is great and return it > like > > D > a > n... http://www.php.net/manual/en/function.wordwrap.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To c

Re: [PHP] \n's

2001-10-29 Thread speedboy
> quick problem... I don't seem to be able to strip \n's out of a string > of text: str_replace("\n", "", $line); -- 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,

Re: [PHP] lesson in NOT how to run your php website ...

2001-10-29 Thread speedboy
> I teach law at a university .. I also run the website here ... Thankfully Tasmania is not considered part of Australia. :) *troll bait away* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To con

[PHP] Re: [PHP-DB] PHP Getting Variables from String

2001-10-29 Thread speedboy
> $string="These are some words" > > I want it to turn into $var1=These, $var2=are, $var3=some, $var4=some $search_entities = explode(" ", $string); if (count($search_entities) > 0) { $criteria = ""; for ($i = 0; $i < count($search_entities); $i++) { if ($i == (c

Re: [PHP] Trouble with php generated images

2001-10-29 Thread speedboy
> The text printed on this image looks sloppy and grainy. (This image is being > generated on a linux server RH 7.1, Apache 1.3.19, with GD 1.8) It looks fine on GD 2.0.1 using arial.ttf. Maybe you could try another font? > My question is this, is there a > way to generate a quality image or i

Re: [PHP] Asian fonts

2001-11-02 Thread speedboy
> Any idea how to use (install) asian fonts on an > english version of RH? I need them in the gd > library, to generate an image with chinese/japanese > text. Configure php with the following: --with-gd=/tmp/www/gd-2.0.1 --with-freetype-dir=/usr/local/include/freetype2 --enable-gd-imgstrttf T

Re: [PHP] site last updated

2001-11-03 Thread speedboy
last modified ^ I put that on the bottom of every page on some sites I make. -- 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] Secure transfer between servers

2001-11-04 Thread speedboy
> For the more complex functions where it is necessary to redirect them to > another server, > local to them, I have a problem. If these machines are on a LAN together I would suggest you use database sessions. I.e. a table with records containing active sessions. -- PHP General Mailing List (

[PHP] PHP + GD 2.0.1 problem.

2001-08-04 Thread speedboy
Hello I am trying to install PHP 4.0.6 with GD 2+ support and I am receiving an error at `make` time. Can anyone suggest something to try and fix this problem? Thankyou :) I have installed the following with no path changes to the defaults: freetype-2.0.4.tar.gz gd-2.0.1.tar.gz jpegsrc.v6b.tar.g

[PHP] Postgresql + Sessions + Large objects.

2001-08-04 Thread speedboy
I am having trouble with the following function working _with_ sessions. If I turn off my session checking function it enables you to download the file flawlessly, if sessions are turned on then Internet Explorer displays an error: Internet Explorer cannot download ...URL Internet Explorer was n

Re: [PHP] Re: Postgresql + Sessions + Large objects.

2001-08-04 Thread speedboy
> Do you have session db and your data db on the same db? No, the sessions are php sessions with data stored in flat files. -- 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 admini

[PHP] PHP + GD 2.0.1

2001-08-04 Thread speedboy
Has anyone got PHP successfully compiled and using GD 2.0.1? If so what was your configure line please and any other changes you had to make in order to get PHP to compile. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: [PHP] PHP + GD 2.0.1

2001-08-04 Thread speedboy
> > Has anyone got PHP successfully compiled and using GD 2.0.1? > > > > If so what was your configure line please and any other changes you had to > > make in order to get PHP to compile. Thanks. > > Build gd-2.0.1 with these two lines in your GD2 Makefile: > > CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LI

Re: [PHP] PHP + GD 2.0.1

2001-08-04 Thread speedboy
> > > Build gd-2.0.1 with these two lines in your GD2 Makefile: > > > > > > CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE > > > > CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE > > > > Same as mine. > > > > > LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm > > > > LIBS=libgd.a

Re: [PHP] PHP + GD 2.0.1

2001-08-04 Thread speedboy
> > > > It's obviously a simple error but I have no idea about C. > > > > > > You left out your PHP configure line > > > > I was trying to make gd-2.0.1, are you saying don't make GD at all, > > just go straight to configuring php? > > Ah, no, type: make libgd.a > in your gd dir. Ok, making libg

[PHP] Compiling PHP + GD 2.0.1 Documentation

2001-08-04 Thread speedboy
> > Make php failed: > > Make sure you don't have gd-1.x header files in /usr/local/include Excellent! That worked. For everyone else, my documentation for installing: Apache with GD, zlib, png, jpg, tiff, pdf support is at: http://database.sourceforge.net/Installing_apache_with_gd_zlib_png

Re: [PHP] newest PHP compile won't see pg_connect()

2001-08-04 Thread speedboy
> On linux 6.1, I've installed fresh builds of postgres 6.0.4, apache 1.3.20, > php 4.0.6. Get postgresql 7.1.2, make and install. Configure php --with-pgsql ./configure --help Will show you all available configure options. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Postgresql large objects.

2001-08-12 Thread speedboy
Does using pg_loread or any other php functions for postgresql large objects modify the size of the file? I'm seeing a size increase in a few bytes when I receive the file back to my hard drive. The file still seems to run ok, but I'm wondering what is doing this? -- PHP General Mailing List (h

Re: [PHP] Question about sessions

2001-08-13 Thread speedboy
There's a session deletion script based on the last time a session file was written to. You can set the duration a session is allowed to stay on the file system for. http://database.sf.net/ - Down the bottom. On Tue, 14 Aug 2001, Chris Kay wrote: > > I have a mysql/php db/website that uses sess

Re: [PHP] session security issue

2001-08-15 Thread speedboy
You need to check against a value that was registered as a session variable. There is no use in checking if some SSL variable is set. Here's a simplified version of my check_session function that I run at the top of every page that requires a session to be established. I also write to the session

Re: [PHP] Re: HTTPS oddity

2001-08-19 Thread speedboy
> Try throwing a on each port and see what else you are > getting... > > > > This has worked for ages - but sometime last night the behaviour of my/our > > server changed and now over an non-SSL connection, $HTTPS = ON and over a > > SSL connection $HTTPS = on (note the change in case). This is

Re: [PHP] Countries and ip addresses

2001-08-20 Thread speedboy
> How can I find out from witch country user is based on user ip address? I > need this from php script. You can't. You can try with their hostname. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] hope someone can help !

2001-08-20 Thread speedboy
> so why when I try ImageTTFText do I get call to unknown function php must > be compiled with ttf ?? Try this first: http://database.sourceforge.net/Installing_apache_with_gd_zlib_png_jpg_tiff_pdf_support.html Possibly also try configuring without somany options initially. -- PHP General M

Re: [PHP] time in php

2001-08-20 Thread speedboy
> hi. > how I compare two times with php? > 12:23:50 - 13:12:00 = ??? Convert them to timestamps (unix timestamps) and subtract the two. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact th

Re: [PHP] mail from

2001-08-20 Thread speedboy
> Hello all. Does anyone know how i can set up the "from " and "Return > Address" fields in the mail functions in php? mail("[EMAIL PROTECTED]", "subject.", "body.", "From: php@$SERVER_NAME\n"); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Re: [PHP] Re: header function

2001-08-20 Thread speedboy
> > header("Location:index.php"); header("Location: login.php"); -- 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] session timeouts

2001-08-20 Thread speedboy
> I'm writing a web survey in php and trying to set session timeouts. I have > a main script that starts the session and displays the pages. Is there a > way I can make the session timeout if they idle for too long? Check the php.ini file, it has some settings to set the session timeout. Other t

Re: [PHP] php and flash

2001-08-20 Thread speedboy
STOP asking this question again and again. -- 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] Directory Listing in an Array

2001-08-20 Thread speedboy
> Just something I havent been able to sort out in the archives, but what im > wanting to do it this. Do a listing of all files in a directory, and load > up an array with each returned filename. $files_dir = "/tmp"; chdir($files_dir); $dir_handle = @opendir($files_dir) or die("Unable to open $

[PHP] Re: do not mean to be harsh but I though this is supposed to benicer community

2001-08-20 Thread speedboy
"Getting Started with PHP/Ming" http://www.phpbuilder.com/columns/suyoto20010809.php3 -- 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] time

2001-08-21 Thread speedboy
> hi. > how do I can wrk with time: > > 11:56:23 - 10:00:45 = Don't ask this again. Date: Mon, 20 Aug 2001 19:14:41 +1000 (EST) From: speedboy <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: [PHP] time in php > hi. > how I compare two times wit

Re: [PHP] transfer tables to another database?

2001-08-21 Thread speedboy
> hi. > I want to transfer tables to another database. > how?? Have you read the documentation on backing up and restoring databases/tables in postgresql? http://www.ca.postgresql.org/users-lounge/docs/7.1/admin/backup.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-m

Re: [PHP] Serious Fopen Problems - not newbie :)

2001-08-30 Thread speedboy
> > with fopen(). Everytime I try to use fopen, I get some weird error > > messages. If I do fopen("http://www.php.net";, "r") - I get this error > > message: Undefined error: > > If I try doing > > fopen("http://www.somehost.com/~myname/somefile.php?var=value";, "r") - I > > get this message:

Re: [PHP] Serious Fopen Problems - not newbie :)

2001-08-30 Thread speedboy
> I'm sure http://www.php.net exists. :) No, what my sentence meant was you're trying to do some operations on a mis-typed file descripter? $fp = fopen... fputs($fp2... ^- There should be no 2. Possibly something like that? > > > > with fopen(). Everytime I try to use fopen, I get s

Re: [PHP] newbie : how to access functions in seperate files???

2001-09-03 Thread speedboy
What do people do with required files? I have a file called config.php which contains all my functions. It is 329526 bytes. Should I split this up into other files? I don't think so, but what do others think? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTE

RE: [PHP] PHP 4.0.6 + GD

2001-09-07 Thread speedboy
> As far as I can tell, it's a bug. I posted it on here and the only reply I > got was from someone having the same problem. I logged it as a bug and then > wasn't able to add more information as I hadn't set a password when I first > entered the bug. Then I emailed trying to be able to change

Re: [PHP] GD picture quality

2001-09-07 Thread speedboy
> Take a look at this picture... > > http://www.sayimhot.com/images/mycurrentscore.jpg > > ... now take a look at it while text is added to it... > > http://www.sayimhot.com/myscore.php > > What happens to the picture quality? How can it be improved? (code below) You mean the font quality? Th

Re: [PHP] Invalid MySQL result resource

2001-09-12 Thread speedboy
> "Supplied argument is not a valid MySQL result resource in . on line 52" > > Line 52 is the line where I fetch the row from the second query. Don't keep doing a mysql_connect on each loop. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: [PHP] Get the row number in php-script?

2001-09-16 Thread speedboy
> Does anybody know how to get hold of the rownumber of the current row in a > php-script? > (Rownumber in the actual file.) echo __LINE__; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

Re: [PHP] PHP vs. PERL (Functional Comparison)??

2001-09-16 Thread speedboy
> ie. don't necessarily use 1 file per block, create functions that are > defined in a single file and call those instead of including a new file. How do you echo your html, do you put the html in your functions and escape the double quotes? There is some extra load there echoing all the html? T

[PHP] Re: echo/printing html within a function - best method

2001-09-16 Thread speedboy
> > How do you echo your html, do you put the html in your functions and > > escape the double quotes? There is some extra load there echoing all the > > html? > > echo HTML? I do this: > > > HTML stuff > > > I drop out of PHP mode to display raw HTML. If I have a lot of HTML with > a

Re: [PHP] How to set the time for session??

2001-09-19 Thread speedboy
> i want to expire the session if user sits 15 minutes idle without doing > anything. On each page view, you could write a variable to the session file, so the last modified time is updated. Then run the session deletion script from: http://database.sourceforge.net/scripts/session.sh every mi