> 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,
> 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
> 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
> > 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
> 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
> 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
> 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,
> 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
> $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
> 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
> 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
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]
> 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 (
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
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
> 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
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
> > 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
> > > 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
> > > > 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
> > 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
> 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,
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
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
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
> 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
> 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
> 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
> 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
> 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
> > 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]
> 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
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]
> 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 $
"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]
> 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
> 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
> > 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:
> 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
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
> 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
> 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
> "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
> 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
> 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
> > 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
> 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
47 matches
Mail list logo