This is what I used that is relevant:
--with-png-dir=../libpng-1.2.5/ --with-zlib-dir=../zlib-1.1.4/ --with-jpeg-
dir=../jpeg-6b/ --with-gd
of course, the paths for libpng, zlib and jpeg will probably be different
for you.
"Todd Cary" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi,
I have a registration form, but I would like to add a Date of Birth section. Now,
because of the different formats of writing it I want to have 3 seperate drop down
boxes, Date, Month and Year.
However, I then want those 3 dropdowns to go into one field in a mySQL database, in
DD/MM/ f
$EnteredDate = $date . "/" . $month . "/" . $year;
This would output DD/MM/ if $date = DD, $month = MM and $year =
.
-Original Message-
From: Vicky [mailto:[EMAIL PROTECTED]
Sent: 31 May 2003 15:06
To: PHP List
Subject: [PHP] 3 entries going into 1 field
Hi,
I have a registrati
have 3 select boxes bdMonth, bdDay, bdYear.
Then when processing the $_POST, simply contact them in the format you want.
$bdString = $_POST['bsMonth'].'/'.$_POST['bsDay'].'/'.$_POST['bsYear'];
HTH,
=C=
* Cal Evans
* http://www.christianperformer.com
* Stay plugged into your audience
* The measur
On Sat, 31 May 2003, Alberto Ferrer wrote:
> Im compiling the last vercion of PHP 4.3.2 and says this after finish of
> compile.
> The system is a Redhat 7.3, Apache 1.3.27.
>
> ext/mysql/libmysql/my_tempnam.lo: In function `my_tempnam':
> /root/php-4.3.2/ext/mysql/libmysql/my_tempnam.c:115: the
Hi
I have been trying to get to know the imap functions for checking pop3 email
account with php. i have had absolutely no luck. just cant get the script to
connect to the server.
here is a sample:
it just loads and loads doesnt even give an error. could somebody please
look into it and see
My english is bad, but see the code:
$mbox = imap_open ("{localhost/pop3:110}INBOX", "user_id", "password");
The only way I could open a IMAP or POP3 conection into my server is, I hope
it helps you$MAILSERVER="{mail.midominio.cl:110/pop3/notls}"; //Para POP3
$MAILSERVER="{mail.midomino.cl:143/im
Monfort--
> There lies my problem.
> How do I get mysql to translate:
>... where table.username =
> 'table2.domain/table2.username' into
See:
http://lists.mysql.com/mysql?sub=1
--Frappy
On Friday 30 May 2003 08:35 pm, [-^-!-%- wrote:
> Hello all !
>
> Need a little help here. Is there
Me and a friend have been trying to make a php ftp client, it works fine on
*nix systems, but not on Windows. We looked at everything, until i finaly
noticed that php 4.2.3 is missing in the php.ini the extension=php_ftp.dll
line. The actualy file in the extensions dir is missing as well.
So where
> Me and a friend have been trying to make a php ftp client, it works fine on
> *nix systems, but not on Windows. We looked at everything, until i finaly
> noticed that php 4.2.3 is missing in the php.ini the extension=php_ftp.dll
> line. The actualy file in the extensions dir is missing as well.
>
> header("Content-type: application/zip");
> header("Content-Disposition: attachment; filename=yourfilename.zip");
> readfile("/path/to/yourfilename.zip");
>
I have found that to make sure it works with all browsers you want to put
quotes around the filename in the content-disposition header.
hea
On Saturday 31 May 2003 07:41 am, Canadaka wrote:
> Me and a friend have been trying to make a php ftp
> client,
I'm confused. Do you literally mean an FTP client that is
written in PHP (thus requiring PHP to be installed on each
client machine)?
Or do you mean a PHP generated HTML-based page,
Shouldn't the correct suntax for pop3 be:
$mbox = imap_open ("{mail.hot.ee:110/pop3}", "pop3testing", "testing");
http://us2.php.net/imap_open
--
Jason k Larson
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,,
I have a preg_match issue matching numbers. I am currently using
!preg_match ('/([0-9\-\.\#:])/', $_POST['nums1']
throw error[]
This fails if you use something like ' asdf ' but if you use ' asdf789 ' it passes
false and does not throw an error.
This is not the obvious solution.
To correct myself ...
I believe you actually require the INBOX attribute as well.
$mbox = imap_open ("{mail.hot.ee:110/pop3}INBOX", "pop3testing", "testing");
if you still have problems you might also try (explictly request non-SSL connection):
$mbox = imap_open ("{mail.hot.ee:110/pop3/notls}IN
I'll add to what the others have already said. As was already mentioned, you
need to create three dropdown fields for the birthdate: year, month and day.
I do this by setting up arrays for each field that offers valid date
choices.
$year[2000] = 2000;
$year[2001] = 2001;
$year[2002] =
Hello All and Thanks in advance.
I'm developing a site PHP site.
I would like to define HTML code in XML and be able to get the HTML code using PHP.
I was hoping for a simple example.
I will not be able to update the version of PHP with any "modules" as my hosting
company (hostway.com) admins
I have a member site that uses sessions. People who have their browser
cookies turned off, however, cannot use our site. I read somewhere that to
avoid this, I'd have to manually append the PHPSESSID var to every URL when
redirecting in a script.
Is this really the best or only way to avoid this p
I have a database full of links. I need to write a script to go to each one
and check the modification date of the file. My plan is, once that is
logged, to do this every week and indicate which pages have "changed."
What is the simplest approach to this? Do I need to use CURL functions or
rem
Hi,
I have binary data. I know the format but I do not know how to read it with
PHP. I saw some articles and comments on the manual but it seems taht it is
not enough for me.
Anyone to haelp, please?
I just nedd a good documentation about it.
TIA
--
PHP General Mailing List (http://www.php.
Again, "It's not perfect, but I don't think anyone has come up with a better
way."
It's called session hijacking, and it is a great reason to use SSL. However,
there's still the issue of cross-site scripting, which can really only be
prevented by smarter coding.
Even then there are issues. For
Don't know about 4.3.2, but at the end of 5.0-dev make, the following message
is output:
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).
On Saturday 31 May 2003 06:29 am, Volker Augustin wrote:
> hi,
> this sounds like a warning not like an error, your php is suc
Hi there are a couple projects done in php to go around these problemes
however it will cost you on performance.
Here are a couple projects you might want to look into (I never used
them, but since the book XML and PHP talk about them i guess they are
good proejcts)
eZXML (an alternative to PHP/D
Just for the record, adding the --batch argument to the GnuPG command
solved the problem.
Regards,
Pierre-Luc
Pierre-Luc Soucy wrote:
Hi,
I would like to decrypt data encoded with GnuPG without including the
private key passphrase in the command to prevent people from viewing it
with "ps".
file_get_contents() is binary safe.
$binary_data = file_get_contents("/path/to/file");
php.net/file_get_contents
On Saturday 31 May 2003 12:42 pm, Ferhat BINGOL wrote:
> Hi,
>
> I have binary data. I know the format but I do not know how to read it with
> PHP. I saw some articles and comments o
I don't understand what it is you're trying to accomplish, so, it's hard to
offer a solution. If you just want to verify whether or not a variable
contains numeric data, why not just use the is_numeric() function:
http://us4.php.net/manual/en/function.is-numeric.php
preg_match() will return T
I do not understand how to use this one from the manual but thanks I am
working on it. Meanwhile I was trying to open the binary with fopen and
unpack 154 bytes from it (it is the firs line accordint to my structure
format.) I got the first letter but afterwords it just gives stupid
characters.
Do
I had no idea their was a is_numeric function(). Ill check it out. Its
probably a lot better to use then trying to preg_match()/
Many thanks
- Original Message -
From: "Monty" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 31, 2003 3:21 PM
Subject: [PHP] Re: regex probl
/* UNTESTED. */
function get_http_lm_date($url) {
$d = parse_url($url);
if ( !$fp = fsockopen ($d['host'], (isset($d['port'])) ? $d['port'] : '80') )
return FALSE;
fputs($fp, "HEAD ".$d['path']." HTTP/1.0\r\n\r\n");
while ( !feof($fp) ) {
/* This example will echo the first 154 bytes of a file
* ("/path/to/file" in the example). */
$binary_data = file_get_contents("/path/to/file"):
echo substr($binary_data, 0, 154);
On Saturday 31 May 2003 01:29 pm, Ferhat BINGOL wrote:
> I do not understand how to use this one from the manual b
I am getting
NTERRUPT_DURATION
or similar text between the values..
this binary reading thing is dahm jard..
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sat, 2003-05-31 at 07:41, nabil wrote:
> Greeting,
>
> I have a postnuke site and I want to connect it to two databases in order to
> verify users from these databases.
and..??
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello all,
I'm currently working on a site for my brother-in-law. I have written a
script that will access a website
(http://www.remax.nf.ca/listings.asp?a=163&cp=1) and pull the page into a
variable ($var). I have striped the page down to include only the listings
(still in HTML and table forma
I'm currently attempting to upgrade to the latest version of php.
When I run:
./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local
I get the following message:
Cannot find header files under /usr/local
Why is this?
ron
--
PHP General Mailing List (http://www.php.net
Have you ever get INTERRUPT DURATION string while you are trying to read a
binary file.
I am getting something like this.
ferhat NTERRUPT_DURATIO | Nbingol RUPT_DURAT
there is 65 characters dummy at the beginning afterwards 24 byte string 16
byte string...
I am using this
$record_format = 'A6
Are you wanting the $_POST['nums1'] to have only numbers, -, ., #, :
Is this what you are trying to match. if so, try this.
if ( preg_match("/[^0-9\#\:\.\-]/", $_POST['nums1']) ) {
throw error()
}
This will match anything that is not a number or one of the other special
chars that are in
Thanks guys ;o)
"Bix" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Is there any way getting the time taken to parse a script?
>
> IE:
>
> This page took 0.13 seconds to generate.
>
> Is it a predefined variable anywhere?
>
> Thanks ;o)
>
> Bix.
>
>
--
PHP General Mailing List
Call it a hunch ...
./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local/mysql
--
Jason k Larson
Ron Dyck wrote:
I'm currently attempting to upgrade to the latest version of php.
When I run:
./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/loca
the same is given for 4.3.2, just compiled it today :).
Thomas
On Sat, 31 May 2003 12:50:38 -0700 [EMAIL PROTECTED] (Evan Nemerson) wrote:
> Don't know about 4.3.2, but at the end of 5.0-dev make, the following message
> is output:
>
> Build complete.
> (It is safe to ignore warnings about te
On Sat, 31 May 2003 13:18:13 +, you wrote:
>what is the online-version?
>I mean which webserver-software in which version?
>
>
>Thomas
Linux RH 7.3
Apache 1.3.24
mySql 3.23.55
PHP4.2.0
Also, this is an httpS connection if it makes a difference in some
way.
Floyd
>On Fri, 30 Ma
php-general Digest 1 Jun 2003 00:43:06 - Issue 2090
Topics (messages 149647 through 149689):
Re: Using Cookies Securely
149647 by: Dustin Mitchell
149670 by: Evan Nemerson
Compile 4.3.2 Errors.
149648 by: Alberto Ferrer
149649 by: Volker Augustin
1496
Yes, there are a bunch of arrays in the program.
This is on a DSL line... ?? Would the asynco thing be likely, or
possibly even standard, with DSL?
Did you come up with a workaround?
Floyd
On Sat, 31 May 2003 14:38:05 +0200, you wrote:
>On Fri, 30 May 2003 20:45:08 -0400 [EMAIL
Hi,
At 2003-05-31 14:52 -0400, [EMAIL PROTECTED] wrote:
>I'm developing a site PHP site.
>
>I would like to define HTML code in XML and be able to get the HTML code using PHP.
>
>I was hoping for a simple example.
>
>I will not be able to update the version of PHP with any "modules" as my hosting
If I wanted to remove tags from my form as well as
tags, would I use a preg_match function or is their another simple funtion
that does this ?
-Dan
- Original Message -
From: "Jim Lucas" <[EMAIL PROTECTED]>
To: "Daniel J. Rychlik" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Saturday
hi guys i have an authentication class , there is one last big issue to
fix , i am trying to prevent multiple logins , it does this ok except , the
first login gets kicked instead of the second one , i have a last_login
date entry to work with , what else should i have so on the login check if
the
hi,
this is only a very fast response :))
is solved this kind of problem like that:
(quick solution for a chatboard - user cannot login for x seconds -
maxidletime)
/***two functions:**/
function logoutMsgBoardUser($UserName)
global $MessageBoardTable,$SiteID;
$DB=ne
doh silly me , i'll have to set a logged out flag , will help me in the
long run :D thanks dude
> hi,
> this is only a very fast response :))
> is solved this kind of problem like that:
> (quick solution for a chatboard - user cannot login for x seconds -
> maxidletime)
> /***two funct
I had same problem and it involved an array. In my case there was a typo,
and the array I was trying to do something with didn't even exist, but it
was hard to find because instead of dying with an error it would just sort
of sit there, not outputting anything further, until I clicked stop in the
b
> hi guys i have an authentication class , there is one last big issue
to
> fix , i am trying to prevent multiple logins , it does this ok except
,
> the
> first login gets kicked instead of the second one , i have a
last_login
> date entry to work with , what else should i have so on the login
che
What if I accidentally close my browser and come back to log
> in? The system will not let me because I'm still "logged_in" until X
> minutes pass. Also with this method, you need to keep track of these
> attempted log ins and somehow alert the first user.
good question i'm checking this out atm :
hmmm,
for me these few line are working well, user cannot login before
max-idletime is reached (i check the list every time an action is taken
on the board, if no user is online, i cant login forever and have to connect
as another user first ;)
thats all, you could check idletime for all users
so wot do i check upon , (NOW() - last_login) > max_idletime ? what do i do
with the other check for logged_in=0 ?
> hmmm,
> for me these few line are working well, user cannot login before
> max-idletime is reached (i check the list every time an action is
> taken on the board, if no user is o
> for me these few line are working well, user cannot login before
> max-idletime is reached (i check the list every time an action is
> taken
> on the board, if no user is online, i cant login forever and have to
> connect
> as another user first ;)
And you call that a viable solution? That's
wots the best solution then ??
"SELECT username FROM users WHERE logged_in=0 AND username='".$this->post
['username']."'"
thats my current one but yes i get blocked out , what else can i add to it ?
>
> And you call that a viable solution? That's ridiculous.
>
--
PHP General Mailing List (
ok here is the latest sql query
SELECT username FROM users WHERE (logged_in=0 OR (NOW()-last_login) > 300
AND username='".$this->post['username']."'"
there is the idle time added but what after the idle time they log bak in
and then kiks the first login out ? there must be a better solution ??
ok well i just noticed my sql statement is a bit flakey as its not a true
idle time to get a true idle i'd have to keep a record of the time every
request to the pages when logged in, this is checking when they lasted
logged in so the user may still be logged in 300 seconds later , this isnt
reall
i said that before!
just a hint to think offany questions?
volker
> - Original Message -
> From: "John W. Holmes" <[EMAIL PROTECTED]>
> To: "'Volker Augustin'" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Sunday, June 01, 2003 5:48 AM
> Subject: RE: [P
Is it possible to reference two instances of an object at once with a
single variable name while retaining the ability to reference the
objects seperately?
I am using the PEAR Template IT package and need to generate two similar
but different results at the same time. I am doing this with two
ins
the idiot mirror search is going to google instead and not giving me results
http://www.google.com/search?q=manual%2Fen%2Ffunction.connection-
aborted.php+site:www.php.net&l=en
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm querying prices off a database then storing these in an array, I
want to add these up to get the grand total, how would I go about adding
up all the prices stored in the array?
Thanks in advance.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/
If they are coming out of your database, why not get your database to do
it for you by calling SUM() in your query?
On Sun, 1 Jun 2003, Ralph wrote:
> I'm querying prices off a database then storing these in an array, I
> want to add these up to get the grand total, how would I go about adding
>
how can i get this to work ??
if (connection_aborted()) $this->db->query("UPDATE users SET logged_in=0
WHERE userID=$this->userID");
> ok well i just noticed my sql statement is a bit flakey as its not a
> true idle time to get a true idle i'd have to keep a record of the time
> every request to
We are reworking our local search code. It was killing the server.
Pointed it at Google temporarily.
-Rasmus
On Sun, 1 Jun 2003 [EMAIL PROTECTED] wrote:
> the idiot mirror search is going to google instead and not giving me results
>
> http://www.google.com/search?q=manual%2Fen%2Ffunction.conne
On Sun, 1 Jun 2003 [EMAIL PROTECTED] wrote:
> how can i get this to work ??
>
> if (connection_aborted()) $this->db->query("UPDATE users SET logged_in=0
> WHERE userID=$this->userID");
Did you read the connection handling chapter in the manual?
http://www.php.net/manual/en/features.connection-han
On Sat, 1 Jun 2003, Jackson Miller wrote:
> Is it possible to reference two instances of an object at once with a
> single variable name while retaining the ability to reference the
> objects seperately?
No chance. Well, you could hack it with some really fancy object
overloading, but in general,
Right... I never thought of this.
But can I use this if what I'm trying to get the (price * quantity).
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 01, 2003 12:43 AM
To: Ralph
Cc: PHP General Mailing List
Subject: Re: [PHP] Add Up Prices in Array
Hi,
Is there any body who have experience with the flags in mysql_connect() in
php >= 4.3 . Especially the MYSQL_CLIENT_COMPRESS flag.
I dont know if it works or not. I cant make any difference. Should php must
be compiled with a special flag to get work this?
Thanks
Armand
--
PHP General Mai
on 01/06/03 6:01 AM, Monty ([EMAIL PROTECTED]) wrote:
> I have a member site that uses sessions. People who have their browser
> cookies turned off, however, cannot use our site. I read somewhere that to
> avoid this, I'd have to manually append the PHPSESSID var to every URL when
> redirecting in
Disregard my last post, I went with what you suggested and I got it to
work.
Thanks again.
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 01, 2003 12:43 AM
To: Ralph
Cc: PHP General Mailing List
Subject: Re: [PHP] Add Up Prices in Array
If they are
Maybe it's just that it's late, but can't seem to figure this out. I
want to show a shipping price depending on the amount of purchase. I
thought about using a lot of if() statements, but I know this is not the
best way to go about this.
Can anybody enlighten me on this one and give me a better ap
I thought about this but how would I go about performing greater than or
equal to without having to specify a CASE for every price range?
-Original Message-
From: Jason Paschal [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 01, 2003 1:47 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Shipping
of course thats where i got the example from but it doesnt work
ignore_user_abort(true);
if (connection_aborted()) $this->db->query("UPDATE users SET logged_in=0
WHERE userID=$this->userID");
if i close the browser its not setting the fiel to 0 meaning they are logged
out
-Original Message---
Better approach in what sense? From a performance perspective you are not
going to beat a specific set of if conditions unless there is an distinct
formula you can apply. I will assume there is no simple mathematical
relationship for your full set of data and what you are really looking for
is a
?? Are you reading that chapter at all? Closing the browser has
absolutely nothing to do with aborted connections unless the browser is
closed while data is actually flowing across the wire. You are completely
on the wrong track here. HTTP is a simple stateless protocol. Sessions
can be used t
At 08:39 01.06.2003, Jackson Miller said:
[snip]
>Is it possible to reference two instances of an object at once with a
>single variable name while retaining the ability to reference the
>objects seperately?
[snip]
No
Just noticed a small glitch in the attach() method - check_object will not
be called for the first object. Use this attach() / check_object()
implementation instead. The "var $class" instance variable of CTeeObject
can be omitted.
function attach(&$hObj) {
if (!$this->check_object($hObj))
Thanks!
Arcadius.
"Nabil" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> www.spiderhosts.com
>
> i'v been for so long with them, and the service is good
> Nabil
> www.cabms.org
> www.d2ue.com
>
>
> "Arcadius A." <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hell
php-general Digest 1 Jun 2003 12:45:55 - Issue 2091
Topics (messages 149690 through 149725):
Re: Long screen display cut short.
149690 by: Floyd Baker
149696 by: Tim Burden
Re: PHP getting values from XML
149691 by: Jaap van Ganswijk
Re: regex problem
149692
78 matches
Mail list logo