|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general Digest 27 Jul 2004 21:04:54 -0000 Issue 2902
php-general-digest-help
lists.php.net
Date: Tue Jul 27 2004 - 16:04:54 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 27 Jul 2004 21:04:54 -0000 Issue 2902
Topics (messages 191950 through 192021):
Re: URGENT: Space char in rewriterule
191950 by: Miroslav Hudak (php/ml)
Re: Usng Session Vaiable in WHERE Statement
191951 by: Sheawh
Organising PHP projects
191952 by: Howard Miller
191958 by: Jason Barnett
is there any function can list all files in a directory?
191953 by: Sheawh
191955 by: Howard Miller
191956 by: Sheawh
phpmyadmin and UTF
191954 by: Pete
191957 by: Pete
191962 by: Jay Blanchard
Creating a PHP5 RPM
191959 by: Marcus Bointon
191988 by: Chris Martin
191990 by: Brent Clements
Printing using php script CRON
191960 by: Vern
191961 by: Jay Blanchard
191963 by: Vern
191964 by: Jason Wong
191966 by: James E Hicks III
191967 by: Vern
191968 by: Jay Blanchard
191969 by: Vern
191972 by: Ed Curtis
191973 by: Vern
191978 by: Burhan Khalid
192019 by: Vern
Status
191965 by: renuka.1ststeps.org.uk
MathML
191970 by: EE
191971 by: Yann Larrivee
php & paypal
191974 by: Mike R
191977 by: Jason Merrique
191979 by: Jason Davidson
191981 by: Mike R
191983 by: Steve Douville
191984 by: Vail, Warren
191989 by: Chris Martin
Re: Retrieve The Last Record in a Table
191975 by: Jason Davidson
191980 by: JOHN MEYER
191986 by: Curt Zirzow
mysql and mysqli
191976 by: Marcus Bointon
Installing PEAR on Windows
191982 by: webmaster.jnsolutions.co.uk
191987 by: Matt M.
Re: PHP5 for Fedora Core 2
191985 by: PHPDiscuss - PHP Newsgroups and mailing lists
Re: JavaScript conversion to PHP code...
191991 by: Scott Fletcher
Re: Extra byte added to PDF streaming file
191992 by: Larry E. Ullman
191998 by: Scott Taylor
Re: Apache 2 and PHP for Production?
191993 by: Marten Lehmann
exists max number of case block in switch steatment ?
191994 by: Gianni Pirini
191995 by: Gianni Pirini
191996 by: Justin Patrin
191997 by: raditha dissanayake
191999 by: Gianni Pirini
192010 by: Alister
xored TruStudio PHP Editor
192000 by: Daryl Meese
Re: Is there a brian I can pick?
192001 by: Rory McKinley
destroying objects in an array in PHP5
192002 by: Erik Franzén
192003 by: Erik Franzén
192004 by: Matt M.
192007 by: Erik Franzén
192011 by: Matthew Sims
192014 by: Curt Zirzow
192015 by: Matthew Sims
192021 by: Erik Franzén
freeTDS
192005 by: Edward Peloke
192006 by: Matt M.
192008 by: Edward Peloke
192009 by: Matt M.
192012 by: James E Hicks III
192013 by: Edward Peloke
192016 by: John Nichel
192017 by: John Nichel
perl LWP for PHP?
192018 by: Marten Lehmann
192020 by: Matt M.
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
I think, the point, Curt wanted to point out was, that URI CAN NOT contain SPACE
character and all SPACE characters (ord 32) are converted to %20 ... thus, space
character in rewrite rule will lead to bogus URI... thus, browser will send %20
instead and... dunno if apache will convert it to " " before applying the
regexp, but if not, this will lead into your problem. Couldn't you just avoid
that space by encoding?
m.
Robert Winter wrote:
> It didn't work. Still the same problem.
>
> Thanks
>
> "Marek Kilimajer" <lists
kilimajer.net> escribió en el mensaje
> news:410467A7.7050408
kilimajer.net...
>
>>Robert Winter wrote:
>>
>>>I have the following rewriterule:
>>>
>>>RewriteRule ^(([0-9]|[A-Z]|[a-z]|_)+)$ redirect.php?$1 [L]
>>>
>>>that transforms http://mysite.com/XXX to
>
> http://mysite.com/redirect.php?XXX
>
>>>and I need to also include to space char, for example
>>>
>>>that transforms http://mysite.com/AB XX to
>
> http://mysite.com/redirect.php?AB
>
>>>XX
>>>
>>>
>>>I didn't find a way to write the " " characters. I tested with
>
> RewriteRule
>
>>>^(([0-9]|[A-Z]|[a-z]|_| )+)$ redirect.php?$1 [L] but didn't work.
>>>
>>>Thanks!
>>>Rob
>>>
>>
>>Did you try
>>
>>RewriteRule ^([0-9A-Za-z_%]+)$ redirect.php?$1
>>
>>?
>
>
--
Miroslav Hudak
developer & designer
http://hudak.info
attached mail follows:
> $MembersDataQry = "SELECT * FROM MembersData
> WHERE UserID=' ".$_SESSION['logname']." ' ";
attached mail follows:
I have come to PHP from Java and am finding managing large/enterprise
projects using lots of includes and suchlike rather tricky and error prone.
Are there any projects and/or best-practice documentation for describing
a good way to organise large projects with lots of files and/or
classes. I have an idea that some sort of semi-automatic system would be
nice.
Sorry for vague question - but its a bit of a vague problem.
attached mail follows:
One of the new options that I am playing with is the __autoload() handler. If
you keep each of your main classes in a separate file then it will try to load
the class file the first time you try to create an instance of an undefined class.
There is a little bit of documentation out there about this, along with a few
examples. In fact you can check out the archives from a few weeks ago, I posted
the __autoload function I'm using there.
attached mail follows:
thanks all
attached mail follows:
Sheawh wrote:
> thanks all
http://www.php.net/manual/en/ref.filesystem.php
...have a look at the user submitted examples at the bottom of the page.
attached mail follows:
i found this one!
http://hk2.php.net/manual/en/function.opendir.php
"Sheawh" <ilovethisgame1984
hotmail.com> ¦b¶l¥ó
news:20040727103212.44282.qmail
pb1.pair.com ¤¤¼¶¼g...
> thanks all
attached mail follows:
Guten Morgen
habe gerade im Apache den Default Zeichensatz auf UTF-8 gesetzt und in der phpmyadmin ebenfalls.
In der phpadmin GUI habe ich de-utf-8 ausgewählt.
Nun kommt folgende Fehlermeldung von phpmyadmin:
"Die PHP-Erweiterungen iconv und recode, welche für die Zeichensatzkonvertierung benötigt werden, konnten nicht geladen werden. Bitte ändern Sie Ihre PHP-Konfiguration und aktivieren Sie diese Erweiterungen oder deaktivieren Sie die Zeichensatzkonvertierung in phpMyAdmin."
Wie kann man das beheben ?
Danke
attached mail follows:
Sorry, here is the English version:
I have just set the Apache Default Char Set to UTF-8. Same thing in the
phpmyadmin config file.
I chose de-utf-8 in the phpmyadmin GUI.
When I try to look at a particular database the following error comes up.
"Can not load iconv or recode extension needed for charset conversion,
configure php to allow using these extensions or disable charset conversion
in phpMyAdmin. "
How can that be fixed ?
Thank you.
attached mail follows:
[snip]
Guten Morgen
habe gerade im Apache den Default Zeichensatz auf UTF-8 gesetzt und in der phpmyadmin ebenfalls.
In der phpadmin GUI habe ich de-utf-8 ausgewählt.
Nun kommt folgende Fehlermeldung von phpmyadmin:
"Die PHP-Erweiterungen iconv und recode, welche für die Zeichensatzkonvertierung benötigt werden, konnten nicht geladen werden. Bitte ändern Sie Ihre PHP-Konfiguration und aktivieren Sie diese Erweiterungen oder deaktivieren Sie die Zeichensatzkonvertierung in phpMyAdmin."
Wie kann man das beheben ?
[snip]
Sie müssen um dieses auf der phpmyadminliste bitten. Sie wünschen Ihre Anzeige zu Englisch übersetzen, bevor Sie senden.
attached mail follows:
I normally compile PHP straight from the regular source, however, this means
that RPM loses track of what PHP version is installed on RedHat Linux (EL3),
causing dependency and version mismatch problems. So it appears that I need
to build an RPM from the normal source, then install it with RPM. However, I
have no idea how to do this - can anyone give me some pointers? Is it as
simple as adding a configure switch like --build-rpm?
Thanks,
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
marcus
synchromedia.co.uk | http://www.synchromedia.co.uk
attached mail follows:
Marcus Bointon wrote:
> I normally compile PHP straight from the regular source, however, this means
> that RPM loses track of what PHP version is installed on RedHat Linux (EL3),
> causing dependency and version mismatch problems. So it appears that I need
> to build an RPM from the normal source, then install it with RPM. However, I
> have no idea how to do this - can anyone give me some pointers? Is it as
> simple as adding a configure switch like --build-rpm?
>
> Thanks,
>
> Marcus
I haven't done it myself yet, but I've been thinking about the same
thing. I had bookmarked these "how to's" while searching google.
http://user.cs.tu-berlin.de/~ccorn/software/rpm/build-rpm.html
http://www3.sympatico.ca/sarrazip/dev/rpm-building-crash-course.html
http://www-106.ibm.com/developerworks/library/l-rpm2/
--
Chris Martin
Web Developer
Open Source & Web Standards Advocate
http://www.chriscodes.com/
attached mail follows:
The easiest thing to do is to take the existing Redhat EL3 php source rpm,
install and get the php spec file.
Edit that spec file and modify it for php5. Then copy the php 5.0 tar.gz
file over to /usr/src/redhat/SOURCES and then run rpmbuild -bb php.spec or
whatever you named your php spec file.
If you don't have a clue about the RPM build system, you may want to look at
the Maximum RPM online book available at redhat. Or search google for it.
-Brent
----- Original Message -----
From: "Chris Martin" <chris
chriscodes.com>
To: <php-general
lists.php.net>
Sent: Tuesday, July 27, 2004 11:55 AM
Subject: [PHP] Re: Creating a PHP5 RPM
> Marcus Bointon wrote:
> > I normally compile PHP straight from the regular source, however, this
means
> > that RPM loses track of what PHP version is installed on RedHat Linux
(EL3),
> > causing dependency and version mismatch problems. So it appears that I
need
> > to build an RPM from the normal source, then install it with RPM.
However, I
> > have no idea how to do this - can anyone give me some pointers? Is it as
> > simple as adding a configure switch like --build-rpm?
> >
> > Thanks,
> >
> > Marcus
>
> I haven't done it myself yet, but I've been thinking about the same
> thing. I had bookmarked these "how to's" while searching google.
>
> http://user.cs.tu-berlin.de/~ccorn/software/rpm/build-rpm.html
> http://www3.sympatico.ca/sarrazip/dev/rpm-building-crash-course.html
> http://www-106.ibm.com/developerworks/library/l-rpm2/
>
> --
> Chris Martin
> Web Developer
> Open Source & Web Standards Advocate
> http://www.chriscodes.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
I hate to keep beating a dead horse, but this horse is not quite dead yet.
I need to print a php script from a web site using CRON. I'm thinking
something like this should work but I don't know enough about it to say that
it would. I know that I can run a php script using CRON as such:
lynx --dump http://yoursite.com/cronjob.php >/dev/null
Can I not output this data to a printer?
Thanks
attached mail follows:
[snip]
I hate to keep beating a dead horse, but this horse is not quite dead
yet.
I need to print a php script from a web site using CRON. I'm thinking
something like this should work but I don't know enough about it to say
that
it would. I know that I can run a php script using CRON as such:
lynx --dump http://yoursite.com/cronjob.php >/dev/null
Can I not output this data to a printer?
[/snip]
If you have a printer attached to the server from where the cron is
running you might try
lynx --dump http://yoursite.com/cronjob.php >lpt1
or something similar. Not tested.
attached mail follows:
> If you have a printer attached to the server from where the cron is
> running you might try
> lynx --dump http://yoursite.com/cronjob.php >lpt1
>or something similar. Not tested.
Actually it's a netwotl printer and in order to print the job I need to type
the following on the box:
lpr -P hp1300n myfilename.txt
So I'm not exctaly sure how I can do that.
attached mail follows:
On Tuesday 27 July 2004 20:33, Vern wrote:
> > If you have a printer attached to the server from where the cron is
> > running you might try
> > lynx --dump http://yoursite.com/cronjob.php >lpt1
> >or something similar. Not tested.
>
> Actually it's a netwotl printer and in order to print the job I need to
> type the following on the box:
>
> lpr -P hp1300n myfilename.txt
>
> So I'm not exctaly sure how I can do that.
Try:
lynx --dump http://yoursite.com/cronjob.php | lpr -P hp1300n
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Mene, mene, tekel, upharsen.
*/
attached mail follows:
On Tuesday 27 July 2004 08:33 am, Vern wrote:
> Actually it's a netwotl printer and in order to print the job I need to
> type the following on the box:
>
> lpr -P hp1300n myfilename.txt
>
> So I'm not exctaly sure how I can do that
This works great for me. Except that I use lp -d printername filename.txt
instead of the command you're using. I can print to any printer that I set up
in CUPS on the webserver. I do this from webpages so I'm sure you can get it
to work with CRON.
$filename = uniqid("").".txt";
$filehandle = fopen($filename,"w");
fwrite($filehandle, "Hello World");
fclose($filehandle);
system("lpr -P hp1300n ".$filename);
James
attached mail follows:
One would think this should be really simple but it's not.
I need to retrieve the file somewhere on the internet. I read somewhere in
order to read a php script's output you need to add the "php" command in
front, as such:
php http://yoursite.com/cronjob.php | lpr -P hp1300n
however I am getting the following error:
Status: 404 suggesting that the page doesn't exist, however it does. Is
there something I am missing here?
attached mail follows:
[snip]
One would think this should be really simple but it's not.
I need to retrieve the file somewhere on the internet. I read somewhere
in
order to read a php script's output you need to add the "php" command in
front, as such:
php http://yoursite.com/cronjob.php | lpr -P hp1300n
however I am getting the following error:
Status: 404 suggesting that the page doesn't exist, however it does. Is
there something I am missing here?
[/snip]
You are trying to run a PHP script on a remote site? Have a look at cURL
http://www.php.net/curl
attached mail follows:
I feel like I taking a hammer and.... well I'm sure you all know the
feeling.
cURL does help me to get the file and save the file somewhere locally,
however printing a page like this gives me all the html code (i.e. <html>,
etc) and I need the report that is being displayed to the browser in all
it's glory (color, graphs and so forth). So somehow I need to simply have
the output of this file converted to an image file of some some. You would
think that there is and easy command from the command prompt that would
allow you to do this. Am I incorrect? Do I have to rewrite this whole page
to output to an image or pdf?
Seems there should be an easier way.
attached mail follows:
You could try this:
http://marginalhacks.com/Hacks/html2jpg/
Save the page as an image, and then run it through the printer. It does
have some overhead though to get it done.
Hope it helps,
Ed
On Tue, 27 Jul 2004, Vern wrote:
> I feel like I taking a hammer and.... well I'm sure you all know the
> feeling.
>
> cURL does help me to get the file and save the file somewhere locally,
> however printing a page like this gives me all the html code (i.e. <html>,
> etc) and I need the report that is being displayed to the browser in all
> it's glory (color, graphs and so forth). So somehow I need to simply have
> the output of this file converted to an image file of some some. You would
> think that there is and easy command from the command prompt that would
> allow you to do this. Am I incorrect? Do I have to rewrite this whole page
> to output to an image or pdf?
>
> Seems there should be an easier way.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
Seems to me that this needs XWindows or something install, am I incorrect?
attached mail follows:
Vern wrote:
> One would think this should be really simple but it's not.
wget -O -q - http://www.domain.com/file.php | lpr -P hp1300n
attached mail follows:
I get:
# wget -O -q http://www.comp-wiz.com/index.html | lpr -P hp1300n
--16:49:59-- http://www.comp-wiz.com/index.html
=> `-q'
Resolving www.comp-wiz.com... done.
Connecting to www.comp-wiz.com[207.234.154.95]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 22,011 [text/html]
100%[======================================================================>
] 22,011 139.58K/s ETA 00:00
16:49:59 (139.58 KB/s) - `-q' saved [22011/22011]
lpr: stdin is empty, so no job has been sent.
attached mail follows:
attached mail follows:
Dears,
I wounder if PHP support MathML? I not really not sure if actually if it
is browser function or server-side function?
attached mail follows:
Hi,
I know there is an extension to render mathml with php4.
You can find more information about it here.
http://www.math.mcgill.ca/~drew/mathmlrender/
Yann Larrivee
On Tue, 2004-07-27 at 09:50, EE wrote:
> Dears,
>
> I wounder if PHP support MathML? I not really not sure if actually if it
> is browser function or server-side function?
attached mail follows:
Does anyone know if it is possible to pass a variable in the URL to the
return page when using paypal?
Meaning, when someone is done a transaction in paypal and they return the
merchant's site, can a variable be passed all of the way through back to the
merchant's site?
:)
-Mike
attached mail follows:
You mean like the credit card number? :\
> -----Original Message-----
> From: Mike R [mailto:spycobalt
spyproductions.com]
> Sent: 27 July 2004 16:12
> To: php-general
lists.php.net
> Subject: [PHP] php & paypal
>
>
> Does anyone know if it is possible to pass a variable in the
> URL to the return page when using paypal?
>
> Meaning, when someone is done a transaction in paypal and
> they return the merchant's site, can a variable be passed all
> of the way through back to the merchant's site?
>
> :)
>
> -Mike
>
> --
> PHP General Mailing List (http://www.php.net/) To
> unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
Might be easier to use session vars to track whatever it is your tracking.
Jason
On Tue, 27 Jul 2004 11:11:31 -0400, Mike R <spycobalt
spyproductions.com> wrote:
>
> Does anyone know if it is possible to pass a variable in the URL to the
> return page when using paypal?
>
> Meaning, when someone is done a transaction in paypal and they return the
> merchant's site, can a variable be passed all of the way through back to the
> merchant's site?
>
> :)
>
> -Mike
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
That's true....I didn't even think of that. Not a cc number, but, say, an
invoice number that the person starts with before they go off to paypal and
return from paypal with the same invoice number so that I can then do more
things with the user (the invoice number being unique).
:)
Thanks,
-Mike
>
> Might be easier to use session vars to track whatever it is your tracking.
>
> Jason
>
> On Tue, 27 Jul 2004 11:11:31 -0400, Mike R
> <spycobalt
spyproductions.com> wrote:
> >
> > Does anyone know if it is possible to pass a variable in the URL to the
> > return page when using paypal?
> >
> > Meaning, when someone is done a transaction in paypal and they
> return the
> > merchant's site, can a variable be passed all of the way
> through back to the
> > merchant's site?
> >
> > :)
> >
> > -Mike
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
attached mail follows:
If you have a business account there, you can use the PayPal API which does
return values to you when the transaction is complete. Take a read through
the PayPal docs, it's pretty well laid out there.
"Mike R" <spycobalt
spyproductions.com> wrote in message
news:GKEFLEHIPEGIFEECKBNECEOCIPAB.spycobalt
spyproductions.com...
>
> Does anyone know if it is possible to pass a variable in the URL to the
> return page when using paypal?
>
> Meaning, when someone is done a transaction in paypal and they return the
> merchant's site, can a variable be passed all of the way through back to
the
> merchant's site?
>
> :)
>
> -Mike
attached mail follows:
Did you think of saving the information (invoice number) in a session or
cookie before sending them off to paypal, for use when the user returns?
Warren Vail
-----Original Message-----
From: Mike R [mailto:spycobalt
spyproductions.com]
Sent: Tuesday, July 27, 2004 8:51 AM
To: Jason Davidson
Cc: php-general
lists.php.net
Subject: RE: [PHP] php & paypal
That's true....I didn't even think of that. Not a cc number, but, say, an
invoice number that the person starts with before they go off to paypal and
return from paypal with the same invoice number so that I can then do more
things with the user (the invoice number being unique).
:)
Thanks,
-Mike
>
> Might be easier to use session vars to track whatever it is your
> tracking.
>
> Jason
>
> On Tue, 27 Jul 2004 11:11:31 -0400, Mike R
> <spycobalt
spyproductions.com> wrote:
> >
> > Does anyone know if it is possible to pass a variable in the URL to
> > the return page when using paypal?
> >
> > Meaning, when someone is done a transaction in paypal and they
> return the
> > merchant's site, can a variable be passed all of the way
> through back to the
> > merchant's site?
> >
> > :)
> >
> > -Mike
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Vail, Warren wrote:
> Did you think of saving the information (invoice number) in a session or
> cookie before sending them off to paypal, for use when the user returns?
>
> Warren Vail
>
>
> -----Original Message-----
> From: Mike R [mailto:spycobalt
spyproductions.com]
> Sent: Tuesday, July 27, 2004 8:51 AM
> To: Jason Davidson
> Cc: php-general
lists.php.net
> Subject: RE: [PHP] php & paypal
>
>
>
> That's true....I didn't even think of that. Not a cc number, but, say, an
> invoice number that the person starts with before they go off to paypal and
> return from paypal with the same invoice number so that I can then do more
> things with the user (the invoice number being unique).
>
> :)
>
> Thanks,
>
> -Mike
>
>
>
>
>>Might be easier to use session vars to track whatever it is your
>>tracking.
>>
>>Jason
>>
>>On Tue, 27 Jul 2004 11:11:31 -0400, Mike R
>><spycobalt
spyproductions.com> wrote:
>>
>>>Does anyone know if it is possible to pass a variable in the URL to
>>>the return page when using paypal?
>>>
>>>Meaning, when someone is done a transaction in paypal and they
>>
>>return the
>>
>>>merchant's site, can a variable be passed all of the way
>>
>>through back to the
>>
>>>merchant's site?
>>>
>>>:)
>>>
>>>-Mike
>>>
>>>--
>>>PHP General Mailing List (http://www.php.net/)
>>>To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
>>
>>
>
Not in the URL.
Read the PayPal docs, they post back a form to the return page. Most of
what you're looking for will be there, otherwise there are a few custom
fields you can use (for say an invoice number).
--
Chris Martin
Web Developer
Open Source & Web Standards Advocate
http://www.chriscodes.com/
attached mail follows:
You could LIMIT 2, using the order on a column, the first record would
be last, the second would be second last. Kinda dirty way to do it,
however, off hand, cant think of an alternative, ill post it if i do
think of one though.
Jason
On Tue, 27 Jul 2004 09:59:21 +0100, Harlequin
<michael.mason
arraspeople.co.uk> wrote:
> Thanks for that Jason
>
> Any suggestions on how I would retrieve the next to last entry...? The last
> time prior to this session that the user logged in...?
>
> --
> -----------------------------
> Michael Mason
> Arras People
> www.arraspeople.co.uk
> -----------------------------
> "Jason Davidson" <jason.davidson
gmail.com> wrote in message
> news:6c925ae2040726112334d593c0
mail.gmail.com...
>
>
> > as mentioned already, use a column in the table to order the query and
> > then use LIMIT to only to return one record. Best columns to use would
> > be an auto_increment or a datetime field type.
> >
> > Jason
> >
> > On Mon, 26 Jul 2004 18:27:25 +0100, Harlequin
> > <michael.mason
arraspeople.co.uk> wrote:
> > >
> > >
> > > I would like to retrieve the last entry in a login table and present
> that to
> > > a user so they can verify the date we have when they last logged in.
> > >
> > > Is this possible...?
> > >
> > > --
> > > -----------------------------
> > > Michael Mason
> > > Arras People
> > > www.arraspeople.co.uk
> > > -----------------------------
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
Or you could retrieve that information prior to inserting the login
information, say, as soon as they type in their login name, store that, then
present it.
>From: Jason Davidson <jason.davidson
gmail.com>
>To: Harlequin <michael.mason
arraspeople.co.uk>
>CC: php-general
lists.php.net
>Subject: Re: [PHP] Retrieve The Last Record in a Table
>Date: Tue, 27 Jul 2004 08:17:19 -0700
>
>You could LIMIT 2, using the order on a column, the first record would
>be last, the second would be second last. Kinda dirty way to do it,
>however, off hand, cant think of an alternative, ill post it if i do
>think of one though.
>
>Jason
>
>On Tue, 27 Jul 2004 09:59:21 +0100, Harlequin
><michael.mason
arraspeople.co.uk> wrote:
> > Thanks for that Jason
> >
> > Any suggestions on how I would retrieve the next to last entry...? The
>last
> > time prior to this session that the user logged in...?
> >
> > --
> > -----------------------------
> > Michael Mason
> > Arras People
> > www.arraspeople.co.uk
> > -----------------------------
> > "Jason Davidson" <jason.davidson
gmail.com> wrote in message
> > news:6c925ae2040726112334d593c0
mail.gmail.com...
> >
> >
> > > as mentioned already, use a column in the table to order the query and
> > > then use LIMIT to only to return one record. Best columns to use would
> > > be an auto_increment or a datetime field type.
> > >
> > > Jason
> > >
> > > On Mon, 26 Jul 2004 18:27:25 +0100, Harlequin
> > > <michael.mason
arraspeople.co.uk> wrote:
> > > >
> > > >
> > > > I would like to retrieve the last entry in a login table and present
> > that to
> > > > a user so they can verify the date we have when they last logged in.
> > > >
> > > > Is this possible...?
> > > >
> > > > --
> > > > -----------------------------
> > > > Michael Mason
> > > > Arras People
> > > > www.arraspeople.co.uk
> > > > -----------------------------
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > > >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
* Thus wrote Harlequin:
> I would like to retrieve the last entry in a login table and present that to
> a user so they can verify the date we have when they last logged in.
retrieving the last record is a lot of overhead, instead add a
'last logged in' field to the user table. retrieve the field the
field when they log in, save it in a session variable if you wish
to keep that value and update the table with a new last logged in
value.
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!
attached mail follows:
I've got mysql 4.1.13 installed on RH EL 3 and I'm trying to build PHP5
against it with both mysql and mysqli extensions. It's quite happy to config
and make with --with-mysql=/usr/local or --with-mysqli, but if I specify
them both together (in either order), I get thousands of errors like this:
/usr/lib/mysql/libmysqlclient.a(my_static.o)(.data+0x6b4): multiple
definition of `my_default_record_cache_size'
/usr/lib/mysql/libmysqlclient.a(my_static.o)(.data+0x6b4): first defined
here
Finally ending with:
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
I installed all of mysql from official RPMs, except for devel and shared
modules which I compiled from the source RPM (These 4.1.13 binary RPMs are
hard-wired to OpenSSL 0.9.6 so you can't use them on any recent OS).
Any ideas to fix this?
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
marcus
synchromedia.co.uk | http://www.synchromedia.co.uk
attached mail follows:
I've had no luck with the PEAR General List... so...
I've successfully "manually" installed PEAR onto my windows server after trying
many attempts at installing it properly - however, it's prooving a pain in the
arse to upgrade the packages, and install any new ones.
So, can anyone assist in why it won't install?
Loading zlib: ok
Using local package: PEAR.............ok
Using local package: Archive_Tar......ok
Using local package: Console_Getopt....ok
Using local package: XML_RPC..........ok
Bootstrapping: PEAR...................(local) ok
Bootstrapping: Archive_Tar............
Bootstrapping: Console_Getopt.........
Using local package: DB...............ok
Using local package: Net_Socket.......ok
Using local package: Net_SMTP.........ok
Using local package: Mail.............ok
Using local package: XML_Parser.......ok
Using local package: PHPUnit..........ok
Extracting installer..................
Warning: main(PEAR.php): failed to open stream: No such file or directory in C:\
www\pear\Archive\Tar.php on line 21
Fatal error: main(): Failed opening required 'PEAR.php' (include_path='/C:\DOCUM
E~1\ADMINI~1.DEV\LOCALS~1\Temp\gop1.tmp') in C:\www\pear\Archive\Tar.php on line
21
attached mail follows:
> Warning: main(PEAR.php): failed to open stream: No such file or directory in C:\
> www\pear\Archive\Tar.php on line 21
>
> Fatal error: main(): Failed opening required 'PEAR.php' (include_path='/C:\DOCUM
> E~1\ADMINI~1.DEV\LOCALS~1\Temp\gop1.tmp') in C:\www\pear\Archive\Tar.php on line
> 21
>
pear is requiring that PEAR.php be included in the script and it can't
find it. I think adding C:\www\pear\ to your include path might solve
this problem
attached mail follows:
C.F. Scheidecker Antunes wrote:
> Hello all,
> Are there any pre compiled rpm packages from Fedora Core 2 yet?
> If not, I will most likely built it myself.
> Thanks.
Any chance you can send it to me when you finish? Thanks.
attached mail follows:
Good thinking... I like without the substr() because substr() take more time
than we want it to be....
FletchSOD
"Matt M." <h.dudeness
gmail.com> wrote in message
news:7d45802004072614375f97299a
mail.gmail.com...
> > --snip--
> > $char_code = strpos($char_set,(substr($input,$loop,1)));
> > --snip--
>
> even a little shorter
>
> $char_code = strpos($char_set,$input{$loop});
attached mail follows:
>> I've seen cases where extra buffer content gets added to the
>> downloaded file. The problem was fixed by deleting any existing
>> buffer before sending the file to the client. Not sure that will
>> solve the problem but it's worth a shot.
>
> How does one delete an existing buffer? ob_end_flush();?
ob_end_clean()
For future reference, you should normally reply to the entire PHP list,
not just to the person replying to your message. That way you're not
imposing upon a person trying to help and you're not waiting for that
one person to respond.
Larry
attached mail follows:
Larry E. Ullman wrote:
>>> I've seen cases where extra buffer content gets added to the
>>> downloaded file. The problem was fixed by deleting any existing
>>> buffer before sending the file to the client. Not sure that will
>>> solve the problem but it's worth a shot.
>>
>>
>> How does one delete an existing buffer? ob_end_flush();?
>
>
> ob_end_clean()
>
I just figured this out myself, and after doing so, I checked my email.
I suppose I could have saved my self some trouble...
> For future reference, you should normally reply to the entire PHP
> list, not just to the person replying to your message. That way you're
> not imposing upon a person trying to help and you're not waiting for
> that one person to respond.
>
Yes, I was just about to post my answer to whole list. Thank you very much!
Scott
attached mail follows:
Hello,
> And following the last line - I'm still running Apache2 with PHP5 on
> Windows on an increasing number of sites, without a single problem to
> date ;)
I switched to Apache 2 and PHP 5.0.0 a week ago and hand no problems so
far (several hundred thousand hits each day). Apache 2 is running in
prefork mode and PHP has been build with --with-apxs2 --disable-all and
--with-pcre-regexp --with-custom-odbc.
I have to agree with Steve Wardell:
The PHP-group should rather announce to support prefork only than not to
support apache 2 at all.
Regards
Marten
attached mail follows:
Hello !!
First of all, sorry for my english...
I've one question, what is a reasonable max number of case block in a switch
steatment?
If i want to redirect 300 pages, for example, to one page index.php?id=32
and include in this page, in base of the id value, 300 different pages, i
can have some problem or not ?
Thank you very much !!
By By, Gianni from Italy...
attached mail follows:
Hello !!
First of all, sorry for my english...
I've one question, what is a reasonable max number of case block in a switch
steatment?
If i want to redirect 300 pages, for example, to one page index.php?id=32
and include in this page, in base of the id value, 300 different pages, i
can have some problem or not ?
Thank you very much !!
By By, Gianni from Italy...
attached mail follows:
On Tue, 27 Jul 2004 15:36:13 +0200, Gianni Pirini
<siamo_solo_noi
libero.it> wrote:
> Hello !!
> First of all, sorry for my english...
> I've one question, what is a reasonable max number of case block in a switch
> steatment?
> If i want to redirect 300 pages, for example, to one page index.php?id=32
> and include in this page, in base of the id value, 300 different pages, i
> can have some problem or not ?
>
Sorry, I have no idea what you're asking. Are you saying you want a
switch with 300 case statements, all redirecting to one page? That
doesn't make sense. If you mean a switch with 300 different cases, yes
you can do it....but you should really switch to maybe a DB backend as
300 case statements would be very hard to maintain.
--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder
paperCrane --Justin Patrin--
attached mail follows:
Gianni Pirini wrote:
>Hello !!
>First of all, sorry for my english...
>I've one question, what is a reasonable max number of case block in a switch
>steatment?
>
>
Depends on what you are trying to achieve. But if you have a lot of
cases in your switch - that probably means your design can be improved.
>If i want to redirect 300 pages, for example, to one page index.php?id=32
>and include in this page, in base of the id value, 300 different pages, i
>can have some problem or not ?
>
>
If it's just a simple redirection look at apache URL rewriting - there
is an excellent guide in the manual.
>Thank you very much !!
>
>By By, Gianni from Italy...
>
>
>
--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.
attached mail follows:
Hello !!
First of all, sorry for my english...
I've one question, what is a reasonable max number of case block in a switch
steatment?
If i want to redirect 300 pages, for example, to one page index.php?id=32
and include in this page, in base of the id value, 300 different pages, i
can have some problem or not ?
Thank you very much !!
By By, Gianni from Italy...
attached mail follows:
Gianni Pirini wrote:
> Hello !!
> First of all, sorry for my english...
> I've one question, what is a reasonable max number of case block in a switch
> steatment?
> If i want to redirect 300 pages, for example, to one page index.php?id=32
> and include in this page, in base of the id value, 300 different pages, i
> can have some problem or not ?
If mod_rwwrite wasn't suitable, I'd use a lookup table:
$callFunc = array(
32 => 'ShowIndex',
92 => 'InputForm',
);
if (isset($callFunc[$_GET['id']]) and
function_exists($callFunc[$_GET['id']])) {
$func = $callFunc[$_GET['id']];
$retval = $func();
}
Alister
attached mail follows:
Does anyone know how to get the "hover" functionality working in xored's
webstudio/trustudio for PHP.
TIA,
Daryl
attached mail follows:
Tom Ray [Lists] wrote:
> Hey all-
>
> I've run into a small bump in some code I'm writing for a membership
> database. The first thing that needs to be done is an index of all
> states in the US with members. The fun part is that the state
> information is stored as the abbreviation in the database (ie MI, WI)
> and the HTML page needs to display the full name of the State. I want
> to display the information in a four column table that kicks out as
> many rows as needed. Now in order to get the full name of the state,
> I'm running the state result through a switch statement. Actaully,
> it's working rather well expect for this little issue:
>
> Row 8: South Dakota Tennessee Texas Virgina
> Row 9: West Virgina Wisconsin Texas Virgina
>
> I need to kill that extra Texas and Virgina.....here's how I'm doing
> this:
>
> <table border=1>
> <?
> $query=mysql_query("SELECT DISTINCT state FROM members WHERE
> country='US' ORDER BY state ASC"); while($q=mysql_fetch_array($query)) {
> <snip>
Hi Tom
Seeing as you are already using mysql, why not create a lookup table
with the following fields:
state_abbreviation, state_full_name
And your query to :
SELECT DISTINCT b.state_full_name FROM members a, state_lookup b WHERE
a.country='US' AND b,state_abbreviation = a.state ORDER BY
b.state_full_name ASC
This shifts the data processing work to MySQL (which is what it is
designed for) - you can also use the state lookup table for user input
validation if needed.
--
Rory McKinley
Nebula Solutions
+27 21 555 3227 - office
+27 21 551 0676 - fax
+27 82 857 2391 - mobile
www.nebula.co.za
====================
This e-mail is intended only for the person to whom it is addressed and
may contain confidential information which may be legally privileged.
Nebula Solutions accepts no liability for any loss, expense or damage
arising from this e-mail and/or any attachments.
attached mail follows:
See the following example:
<?PHP
$oObjectA = array();
$oObjectB = array();
for(i=0;i<10;i++) {
$oObjectA[$i] = new foo();
$oObjectB[$i] = $oObjectA[$i];
}
?>
How do I remove an element in the oObjectA array without destroying the
object? I do not want to clone any object.
If I call unset($oObjectA[3]), the object will also be destroyed.
apparently $oObjectB[3] is also destroyed?
/Erik
attached mail follows:
I am correcting myself...
<?PHP
class foo {}
$oObjectA = array();
$oObjectB = array();
for($i=0;$i<2;$i++) {
$oObjectA[$i] = new foo();
$oObjectB[$i] = $oObjectA[$i];
}
unset($oObjectA[1]);
var_dump($oObjectA);
var_dump($oObjectB);
?>
will output:
array(1) {
[0]=>
object(foo)#1 (0) {
}
}
array(2) {
[0]=>
object(foo)#1 (0) {
}
[1]=>
object(foo)#2 (0) {
}
}
So my question is, how do I destroy the object $oObjectA[1] in both arrays?
attached mail follows:
On Tue, 27 Jul 2004 21:22:05 +0200, Erik Franzén <erik
nordicaudi.com> wrote:
> I am correcting myself...
>
> <?PHP
> class foo {}
>
> $oObjectA = array();
> $oObjectB = array();
>
> for($i=0;$i<2;$i++) {
> $oObjectA[$i] = new foo();
> $oObjectB[$i] = $oObjectA[$i];
> }
>
> unset($oObjectA[1]);
>
> var_dump($oObjectA);
> var_dump($oObjectB);
> ?>
>
> will output:
>
> array(1) {
> [0]=>
> object(foo)#1 (0) {
> }
> }
> array(2) {
> [0]=>
> object(foo)#1 (0) {
> }
> [1]=>
> object(foo)#2 (0) {
> }
> }
>
> So my question is, how do I destroy the object $oObjectA[1] in both arrays?
you could try:
$oObjectB[$i] = &$oObjectA[$i];
or
unset($oObjectA[1],$oObjectB[1]);
attached mail follows:
$oObjectB[$i] = &$oObjectA[$i];
The above statement does not matter, because in PHP5 "objects are
referenced by handle, and not by value".
Look at this example:
<?PHP
class foo {}
$a = new foo();
$b = $a;
unset($a);
var_dump($b);
>?
This will output:
object(foo)#1 (0) {
}
The object is not destroyed!? How do I destroy it without calling unset($b)?
I my application I am "sending" arrays, which are "holding objects", to
objects. If I want to destroy an object inside that array, I want to
destroy it for all objects.
attached mail follows:
>
> The object is not destroyed!? How do I destroy it without calling
> unset($b)?
>
Not sure if this is your solution but have you looked in to destructors?
Half down this page it explains:
http://us4.php.net/migration5.oop
--
--Matthew Sims
--<http://killermookie.org>
attached mail follows:
* Thus wrote Erik Franzn:
> $oObjectB[$i] = &$oObjectA[$i];
>
> The above statement does not matter, because in PHP5 "objects are
> referenced by handle, and not by value".
This is not true. PHP 5 passes objects by reference to functions
only. Assignments are treated the same way as php4 externally.
<?php
/* note: no &$f */
function testfoo($f) {
$f->foo = 'testfoo';
}
class foo { public $foo; }
/* object is passed by reference */
$a = new foo();
$a->foo = 'main';
testfoo($a);
var_dump($a); /* ->foo == 'testfoo' */
/* variable is only copied */
$b = $a;
$a = null;
var_dump($a); /* NULL */
var_dump($b); /* Object 1 */
/* make 2 reference but remove one of them */
$a = new foo();
$b = &$a;
unset($a); /* only removes the reference to object #1 */
var_dump($a); /* Undefined */
var_dump($b); /* Object #1 */
/* here is your solution */
/* make 2 references but delete object, 2 variable
* references still exits */
$a = new foo();
$b = &$a;
$a = null;
var_dump($a); /* NULL */
var_dump($b); /* NULL */
/* proof that references still exists */
$b = new foo();
var_dump($a); /* Object #1 */
var_dump($b); /* Object #1 */
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!
attached mail follows:
>
> This is not true. PHP 5 passes objects by reference to functions
> only. Assignments are treated the same way as php4 externally.
>
> <?php
>
> /* note: no &$f */
> function testfoo($f) {
> $f->foo = 'testfoo';
> }
>
> class foo { public $foo; }
>
> /* object is passed by reference */
> $a = new foo();
> $a->foo = 'main';
> testfoo($a);
> var_dump($a); /* ->foo == 'testfoo' */
>
> /* variable is only copied */
> $b = $a;
> $a = null;
> var_dump($a); /* NULL */
> var_dump($b); /* Object 1 */
>
> /* make 2 reference but remove one of them */
> $a = new foo();
> $b = &$a;
> unset($a); /* only removes the reference to object #1 */
> var_dump($a); /* Undefined */
> var_dump($b); /* Object #1 */
>
>
> /* here is your solution */
> /* make 2 references but delete object, 2 variable
> * references still exits */
> $a = new foo();
> $b = &$a;
> $a = null;
> var_dump($a); /* NULL */
> var_dump($b); /* NULL */
>
> /* proof that references still exists */
> $b = new foo();
> var_dump($a); /* Object #1 */
> var_dump($b); /* Object #1 */
>
>
> Curt
Wow! I just learned a whole lotta OO from just this email. Thanks Curt!
--
--Matthew Sims
--<http://killermookie.org>
attached mail follows:
Thanxs for the help Curt!! Thats a tricky solution, but it works...
This is almost motivating a new method in PHP5: $foo->__destroy() which
will destroy the object once and for all... :)
/Erik
Curt Zirzow wrote:
> * Thus wrote Erik Franzn:
>
>>$oObjectB[$i] = &$oObjectA[$i];
>>
>>The above statement does not matter, because in PHP5 "objects are
>>referenced by handle, and not by value".
>
>
> This is not true. PHP 5 passes objects by reference to functions
> only. Assignments are treated the same way as php4 externally.
>
> <?php
>
> /* note: no &$f */
> function testfoo($f) {
> $f->foo = 'testfoo';
> }
>
> class foo { public $foo; }
>
> /* object is passed by reference */
> $a = new foo();
> $a->foo = 'main';
> testfoo($a);
> var_dump($a); /* ->foo == 'testfoo' */
>
> /* variable is only copied */
> $b = $a;
> $a = null;
> var_dump($a); /* NULL */
> var_dump($b); /* Object 1 */
>
> /* make 2 reference but remove one of them */
> $a = new foo();
> $b = &$a;
> unset($a); /* only removes the reference to object #1 */
> var_dump($a); /* Undefined */
> var_dump($b); /* Object #1 */
>
>
> /* here is your solution */
> /* make 2 references but delete object, 2 variable
> * references still exits */
> $a = new foo();
> $b = &$a;
> $a = null;
> var_dump($a); /* NULL */
> var_dump($b); /* NULL */
>
> /* proof that references still exists */
> $b = new foo();
> var_dump($a); /* Object #1 */
> var_dump($b); /* Object #1 */
>
>
> Curt
attached mail follows:
My web host recompiled php with the freeTDS library for me so that I can use
the php mssql extensions but it still doesn't seem to work. He has told me
that I can change the configuration file...what needs to be done?
Thanks,
Eddie
attached mail follows:
> My web host recompiled php with the freeTDS library for me so that I can use
> the php mssql extensions but it still doesn't seem to work. He has told me
> that I can change the configuration file...what needs to be done?
any error messages? Can you use tsql to connect to the mssql databases?
attached mail follows:
I was simply using a script which attempts to use the mssql_connect function
yet I still get the error that it is undefined....
http://mwvre.ht-tech.net/dbtest.php
-----Original Message-----
From: Matt M. [mailto:h.dudeness
gmail.com]
Sent: Tuesday, July 27, 2004 3:52 PM
To: Edward Peloke
Cc: Php-General
Subject: Re: [PHP] freeTDS
> My web host recompiled php with the freeTDS library for me so that I can
use
> the php mssql extensions but it still doesn't seem to work. He has told
me
> that I can change the configuration file...what needs to be done?
any error messages? Can you use tsql to connect to the mssql databases?
attached mail follows:
> I was simply using a script which attempts to use the mssql_connect function
> yet I still get the error that it is undefined....
>
> http://mwvre.ht-tech.net/dbtest.php
if you do a phpinfo() do you see any mssql information?
php needs to be compiled with freetds
http://us4.php.net/mssql
attached mail follows:
On Tuesday 27 July 2004 03:54 pm, Edward Peloke wrote:
> My web host recompiled php with the freeTDS library for me so that I can
> use the php mssql extensions but it still doesn't seem to work. He has
> told me that I can change the configuration file...what needs to be done?
Just guessing here, (don't even know what TDS is) but there are some MSSQL
specific settings in the php.ini file. You may need to make changes to them
before phpinfo() will tell you anything at all about MSSQL. Again all guesses
here.
James Hicks
attached mail follows:
no, I don't see any mssql info...and yes, they said they did recompile with
freetds. If there anything I have to change in the freetds conf file or in
php.ini?
-----Original Message-----
From: Matt M. [mailto:h.dudeness
gmail.com]
Sent: Tuesday, July 27, 2004 4:05 PM
To: Edward Peloke
Cc: Php-General
Subject: Re: [PHP] freeTDS
> I was simply using a script which attempts to use the mssql_connect
function
> yet I still get the error that it is undefined....
>
> http://mwvre.ht-tech.net/dbtest.php
if you do a phpinfo() do you see any mssql information?
php needs to be compiled with freetds
http://us4.php.net/mssql
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Edward Peloke wrote:
> no, I don't see any mssql info...and yes, they said they did recompile with
> freetds. If there anything I have to change in the freetds conf file or in
> php.ini?
<snip>
Then either :
A) It hasn't been compiled with FreeTDS or,
B) The web server hasn't been restarted.
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john
kegworks.com
attached mail follows:
Edward Peloke wrote:
> no, I don't see any mssql info...and yes, they said they did recompile with
> freetds. If there anything I have to change in the freetds conf file or in
> php.ini?
<snip>
Then either :
A) It hasn't been compiled with FreeTDS or,
B) The web server hasn't been restarted.
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john
kegworks.com
attached mail follows:
Hello,
I'm familiar with perl's LWP library. Today I searched through the PHP
documentation, but the only thing I found that was somewhat similar to
LWP was file() and some socket-functions to do http-GET/POST calls to a
foreign server. Are any higher level functions available so I don't have
to handle encoding/decoding of parametersin the request, transfer
encodings of http-response and timeouts of my own?
Regards
Marten
attached mail follows:
> I'm familiar with perl's LWP library. Today I searched through the PHP
> documentation, but the only thing I found that was somewhat similar to
> LWP was file() and some socket-functions to do http-GET/POST calls to a
> foreign server. Are any higher level functions available so I don't have
> to handle encoding/decoding of parametersin the request, transfer
> encodings of http-response and timeouts of my own?
PEAR
http://pear.php.net/package-search.php?pkg_name=http&bool=AND&submit=Search
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]