php-general Digest 13 Feb 2004 07:08:21 -0000 Issue 2587
Topics (messages 177537 through 177572):
PHP with FTP installation
177537 by: rodner.edigitalweb.com
177564 by: Jason Wong
Re: Using date() with the function fileatime() doesn't return accurate timestamp...
177538 by: Scott Fletcher
177539 by: Roger B.A. Klorese
php5beta4 problem
177540 by: Gareth Thomas
PHP License question
177541 by: Ben Ramsey
177547 by: Dan Phiffer
177550 by: Greg Beaver
sql query question
177542 by: tony
177543 by: Ben Ramsey
177551 by: Steve Solomon
177555 by: Hamid Hossain
(retry) [ANN] Kwartz -- a template system for PHP, Ruby and Java
177544 by: maco.letter.or.jp
IMAP/SSL on Windows
177545 by: Dan Phiffer
Re: [Q]PHP not taking input values from forms
177546 by: Philip Olson
177548 by: Vail, Warren
negative impact on session management after turning off trans_id?
177549 by: Chris W. Parker
Mp3 with php?
177552 by: carlos castillo
177553 by: Chris W. Parker
177557 by: Gerard Samuel
177562 by: John Nichel
IPTC image comments utility
177554 by: Paul Furman
177556 by: Paul Furman
177563 by: Andy Crain
177570 by: Paul Furman
Browser Detection another page
177558 by: PETCOL
177559 by: Richard Davey
177560 by: joel boonstra
Re: [SOLVED][PHP] Browser Detection another page
177561 by: PETCOL
E-Commerce
177565 by: Jimmy
177567 by: PHP Email List
177568 by: Philip J. Newman
177569 by: Philip J. Newman
177571 by: Terence
177572 by: John Nichel
Re: date() funtion language
177566 by: Don Read
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Hi,
I just know how to reconfigure php installation with --ftp-enable. I
already did a ./configure --ftp-enable command but when echo the
phpinfo() hust to see if its been updated, its still showing
./configure' '--with-mysql' '--with-apxs=/www/bin/apxs' on the configure
command.
I would appreciate any help. thanks
Rodner
--- End Message ---
--- Begin Message ---
On Friday 13 February 2004 03:19, [EMAIL PROTECTED] wrote:
> I just know how to reconfigure php installation with --ftp-enable. I
> already did a ./configure --ftp-enable command but when echo the
> phpinfo() hust to see if its been updated, its still showing
> ./configure' '--with-mysql' '--with-apxs=/www/bin/apxs' on the configure
> command.
Everytime you use ./configure it 'reconfigures' php from scratch. Meaning you
have to specify every option you need/don't need. Thus in your case you would
probably want to do:
./configure --with-mysql --with-apxs=/www/bin/apxs --enable-ftp
Then you need to compile:
make
Then stop your webserver and install the newly compiled php:
make install
Then start your webserver.
--
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
------------------------------------------
/*
Rebellion lay in his way, and he found it.
-- William Shakespeare, "Henry IV"
*/
--- End Message ---
--- Begin Message ---
Oh I understand now. There is a different between fileatime(), filectime()
and filemtime(), with a letter 'a', 'c' or 'm'... The one with the m is
what work with Unix/Linux..
Scott F.
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I saw the article at http://us2.php.net/manual/en/function.fileatime.php
and
> gave it a shot with the timestamp for the file but it doesn't work
correctly
> because it only returned the current timestamp (as it is from our watch or
> clock) but not the one from the file...
>
> I had verify that the file is correct and that the date() is working
> correctly and that the timeatime() is working correctly if they are tested
> independantly, so it is just putting them all three together cause them
not
> to work right...
>
> --snip--
> $current_filename = "test.pdf";
> echo (date('F j, Y, h:i a', (fileatime($current_filename))));
> --snip--
>
> What did I do wrong??
>
> Scott F.
--- End Message ---
--- Begin Message ---
> Oh I understand now. There is a different between
> fileatime(), filectime()
> and filemtime(), with a letter 'a', 'c' or 'm'... The one
> with the m is
> what work with Unix/Linux..
Um, they all "work with Unix/Linux" -- they just mean different things.
Atime is the time a file was last accessed.
Mtime is the time the contents of a file were last modified.
Ctime is the time the metadata about a file -- length, owner, permissions,
times -- were last updated.
--- End Message ---
--- Begin Message ---
Hi,
just updated from beta3 (which worked fine) and now my system is hosed. I am
running Apache 1.3.29 on WinXP and when I try and simply bring up phpinfo I
get the following message in the Apache error log file:
"Premature end of script headers: c:/php/php.exe"
Anyone any idea what is causing this?? One thing I did notice is that the
Zip distribution of b4 is different to b3, for example it no longer creates
a sapi directory with the apache dll's in, so I am wondering if this problem
might be due to subtle differences in the distribution.
Any help would be much appreciated.
G.
--- End Message ---
--- Begin Message ---
I currently developing a project that I wish to release under a,
preferably, open-source and "copy-left" license. So, I'm taking a close
look at the GNU GPL for this, and it seems to serve this purpose, well.
However, I am aware that the PHP license conflicts with the GNU GPL,
and, thus, anything released under the PHP license cannot also be
released in software under the GPL. At least, this is my assumption.
Now, to my question: if a PEAR package is released under the PHP
license, and my product is under the GPL, can I include the PEAR package
in my product? Under the above assumption, the answer would be no. So,
what license should I release my product under to maintain it's
copy-left status and yet still allow the PEAR packages to be included?
--- End Message ---
--- Begin Message ---
Ben Ramsey wrote:
Now, to my question: if a PEAR package is released under the PHP
license, and my product is under the GPL, can I include the PEAR package
in my product?
I don't know if this satisfies the legal requirement, but perhaps you
could script some kind of automatic PEAR installation (assuming PEAR was
already configured)?
-Dan
--- End Message ---
--- Begin Message ---
Ben,
You can ship the package as two separately licensed components. The
PEAR packages will retain their original licenses. If you customize the
package, then you should redistribute it as a different thing under your
own license, and probably rename the files/classes so that they don't
confuse with the PEAR package.
The only thing you cannot do is release the unomdified PEAR package
under GPL.
A better alternative is to use the LGPL, which does not force other
packages to use GPL, but is still copy-left/open-source.
Greg
P.S. I'm not an expert, this is my common sense understanding of how the
license works. The PHP License is less restrictive than GPL. You can
do anything you want with the code as long as it doesn't affect the
original code's license.
Ben Ramsey wrote:
I currently developing a project that I wish to release under a,
preferably, open-source and "copy-left" license. So, I'm taking a close
look at the GNU GPL for this, and it seems to serve this purpose, well.
However, I am aware that the PHP license conflicts with the GNU GPL,
and, thus, anything released under the PHP license cannot also be
released in software under the GPL. At least, this is my assumption.
Now, to my question: if a PEAR package is released under the PHP
license, and my product is under the GPL, can I include the PEAR package
in my product? Under the above assumption, the answer would be no. So,
what license should I release my product under to maintain it's
copy-left status and yet still allow the PEAR packages to be included?
--- End Message ---
--- Begin Message ---
hi
if i have new car and i want to search
each word in description
can i do
SELECT * FROM table WHERE
descript = "new" OR descript ="car"??
any help is appreciated
--- End Message ---
--- Begin Message ---
This is a SQL question, rather than a PHP question, so I would suggest
doing a google search on SQL tutorials, but I think what you are trying
to do would work like this:
SELECT * FROM table WHERE descript LIKE '%new%' OR descript LIKE '%car%'
Tony wrote:
hi
if i have new car and i want to search
each word in description
can i do
SELECT * FROM table WHERE
descript = "new" OR descript ="car"??
any help is appreciated
--- End Message ---
--- Begin Message ---
select * from table where locate("new",descript)>0 or
locate("car",descript)>0;
"Tony" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
hi
if i have new car and i want to search
each word in description
can i do
SELECT * FROM table WHERE
descript = "new" OR descript ="car"??
any help is appreciated
--- End Message ---
--- Begin Message ---
Hi,
It is better to use FullText. Convert the description field to FullText. You
will gain a powerfull control in this case. For more information on how to
use FullText read a little-bit in the MySql manual (MATCH AGAINST) commands.
Regards,
Hamid Hossain
-----------------------
Check Amazon.com Latest PHP books:
http://www.amazon.com/exec/obidos/redirect?tag=zawraqclassif-20&path=tg/browse/-/295223
Start Accepting CreditCard at your site in minutes:
http://www.2checkout.com/cgi-bin/aff.2c?affid=106720
Download Alexa Tool Bar to stop Pop-ups for FREE:
http://download.alexa.com/?amzn_id=zawraqclassif-20
Download Ready-Made Templates for your site:
http://www.aplustemplates.com/cgi/affiliates/c1.cgi/zawraq_ad
----Original Message Follows----
From: Ben Ramsey <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], tony <[EMAIL PROTECTED]>
Subject: [PHP] Re: sql query question
Date: Thu, 12 Feb 2004 16:05:16 -0500
This is a SQL question, rather than a PHP question, so I would suggest doing
a google search on SQL tutorials, but I think what you are trying to do
would work like this:
SELECT * FROM table WHERE descript LIKE '%new%' OR descript LIKE '%car%'
Tony wrote:
hi
if i have new car and i want to search
each word in description
can i do
SELECT * FROM table WHERE
descript = "new" OR descript ="car"??
any help is appreciated
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
--- End Message ---
--- Begin Message ---
Hi all,
(B
(BI'm pleased to announce a public release of Kwartz.
(B
(BKwartz(*1) is a template sysmtem for web-designer and web-programmer.
(B
(BKwartz has the following features.
(B
(B * Kwartz can separate presentation logic from a template.
(B * Kwartz can be available in PHP, Ruby and Java.
(B * Kwartz doesn't break HTML design at all.
(B * Kwartz can handle any type of text file.
(B * Kwartz can sanitize automatically.
(B
(BSee Kwartz User's Guide for more detail.
(B
(BHomepage:
(B http://www.kuwata-lab.com/webtech/kwartz/index.html
(B
(BDownload:
(B http://www.kuwata-lab.com/webtech/kwartz/kwartz_2004-02-12.tar.gz
(B
(BUser's Guide:
(B (English)
(B http://www.kuwata-lab.com/webtech/kwartz/users-guide.en.html
(B (Japanese)
(B http://www.kuwata-lab.com/webtech/kwartz/users-guide.ja.html
(B
(B
(B (*1) Development of Kwartz is subsidized by Exploratory Software
(B Project of IPA (Information-Technology Promotion Agency Japan).
(B
(B
(BHave fun!
(B
(B--
(Bregards,
(Bkwa
--- End Message ---
--- Begin Message ---
Hello,
I'm trying to get an SSL-encrypted IMAP connection to work on my Windows
box. Here's the error message I get when attempting to connect:
Warning: imap_open(): Couldn't open stream
{<snip>:993/imap/ssl/novalidate-cert}INBOX in
D:\Dan\Projects\Mail\mail.php on line 92
I'm running Windows XP Pro, Apache 2 and PHP 4.3.4 (CGI) and have the
following listed in my phpinfo():
imap
IMAP c-Client Version 2001
openssl
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.7b 10 Apr 2003
Thanks for any help,
-Dan
--- End Message ---
--- Begin Message ---
> > > that tag is working fine and shows me the info. For some reason php will
> > > take input values only from the URL, not from the html code. any ideas?
> >
> >A few questions:
> >
> > a) What's the exact version of PHP?
> > b) Please post the smallest possible form that creates this
> > problem.
> > c) And how are you attempting to access these form values?
> >
> >If you're interested in some working examples and related
> >information, have a look at the following manual page:
> >
> > http://www.php.net/variables.external
>
> Thanks for the suggestions, first of all. I tried that exact code from the
> code you included and I cut and pasted the "Simple HTML Form", and below
> that I pasted the "Accessing Data..." php code. When I go to the page, all
> it does after I hit the submit button with data in the fields, is say "no
> input file specified". But when I run it through the url giving the input
> names with values, it returns them. I tried getting it working with like ten
> people so far, and no one's been able to figure out... I am running PHP
> 4.3.4, btw.
>
Be sure you rename the "action" part of the "simple html form"
to whatever page you are using, instead of foo.php, as otherwise
it will literally attempt to access foo.php I'm guessing this
is what's happening by seeing "no input file specified".
Either fix that or on that same manual page is the example
titled "More complex form variables", this prints to itself
as it demonstrates a use of the popular $_SERVER['PHP_SELF']
variable.
Also, it's important you realize the difference between POST
and GET, and how to access them, so you may want to read that
manual page too. (hint: GET is through the URL's QUERY_STRING
(the stuff after the ?) while POST is not).
Regards,
Philip
--- End Message ---
--- Begin Message ---
Suggestion,
Stick the following line of code in a spot in the php code that gets control
from the form submit and see what is actually being passed from the form;
foreach($_POST as $k => $v) echo "POST[".$k."] = [".$v."]<br>";
see if this shows you what you are looking for.
NOTE: if you are not using the form "POST" method, change all instances of
"POST" to "GET" in the statement.
good luck,
Warren Vail
-----Original Message-----
From: Philip Olson [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 1:55 PM
To: Dan Aloma
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] [Q]PHP not taking input values from forms
> > > that tag is working fine and shows me the info. For some reason php
will
> > > take input values only from the URL, not from the html code. any
ideas?
> >
> >A few questions:
> >
> > a) What's the exact version of PHP?
> > b) Please post the smallest possible form that creates this
> > problem.
> > c) And how are you attempting to access these form values?
> >
> >If you're interested in some working examples and related
> >information, have a look at the following manual page:
> >
> > http://www.php.net/variables.external
>
> Thanks for the suggestions, first of all. I tried that exact code from the
> code you included and I cut and pasted the "Simple HTML Form", and below
> that I pasted the "Accessing Data..." php code. When I go to the page, all
> it does after I hit the submit button with data in the fields, is say "no
> input file specified". But when I run it through the url giving the input
> names with values, it returns them. I tried getting it working with like
ten
> people so far, and no one's been able to figure out... I am running PHP
> 4.3.4, btw.
>
Be sure you rename the "action" part of the "simple html form"
to whatever page you are using, instead of foo.php, as otherwise
it will literally attempt to access foo.php I'm guessing this
is what's happening by seeing "no input file specified".
Either fix that or on that same manual page is the example
titled "More complex form variables", this prints to itself
as it demonstrates a use of the popular $_SERVER['PHP_SELF']
variable.
Also, it's important you realize the difference between POST
and GET, and how to access them, so you may want to read that
manual page too. (hint: GET is through the URL's QUERY_STRING
(the stuff after the ?) while POST is not).
Regards,
Philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi.
I'm wondering if there are any negative side affects to turning off the
trans_id? Does it just mean that the site can't keep track of a user
unless they have cookies turned on?
There are enough parts of my site that don't require a session that I
think requiring cookies is not a problem so I'm willing to turn it off.
But I imagine there's something I'm not thinking about regarding this.
If anyone can elaborate a little that'd be great!
Thanks,
Chris.
--- End Message ---
--- Begin Message ---
does anyone know how to reproduce a mp3 file with php?
Thanks
Carlos A. Castillo.
Ingeniero de desarrollo
[EMAIL PROTECTED]
____________________________________
Su Aliado Efectivo en Internet
www.imagine.com.co
(57 1)2182064 - (57 1)6163218
Bogotá - Colombia
____________________________________
- Soluciones web para Internet e Intranet
- Soluciones para redes
- Licenciamiento de Software
- Asesoría y Soporte Técnico
____________________________________
--- End Message ---
--- Begin Message ---
carlos castillo <mailto:[EMAIL PROTECTED]>
on Thursday, February 12, 2004 3:53 PM said:
> does anyone know how to reproduce a mp3 file with php?
What do you mean reproduce? Copy? Create from scratch? Represent
visually?
In any case.. I'd say PHP cannot do anything but create a copy of a
file. It cannot read in data from a microphone or a cd player or the
like (as far as I know).
Chris.
--- End Message ---
--- Begin Message ---
On Thursday 12 February 2004 06:52 pm, carlos castillo wrote:
> does anyone know how to reproduce a mp3 file with php?
>
reproduce???
--- End Message ---
--- Begin Message ---
carlos castillo wrote:
does anyone know how to reproduce a mp3 file with php?
Copy an existing file? Yes.
Other than that, the only thing I know you can do with Mp3's is
modify/add/delete id3 tags.
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--- End Message ---
--- Begin Message ---
Does anyone know of a utility for WRITING or at least reading IPTC data
in images with PHP? I found lots of EXIF utilities and did an
experimental thing with that. PHP even has a built in EXIF reader but
the only IPTC utilities I've found are expensive ActiveX or Delphi
components and I don't even know if those could be operated by PHP. THe
one I used worked at a command line & I just did a shell command with a
constructed syntax.
Here's some stuff I dug up:
COMIPTC 900 Euros
http://www.j2s.net/EN/Products/comiptc.html
Works with Visual Basic, ASP or PHP
Matches Photoshop format
Works on JPEG, TIFF, PSD
TIPTC Delphi $566.60
<http://www.atom5.com/Development/Components-Libraries-for-Delphi/tiptc-delphi-component-to-read-and-write-iptc-data-from-jpeg-tiff-files-2620.html>
JPEG/TIFF
source code in pure Delphi code
Atalasoft dotImage $329-$999
http://www.atalasoft.com/Components/dotImage
C# ActiveX component .NET compatible
many features
AiS EXIF ActiveX $25-$99 (server)
http://www.watermarker.com/exif-iptc-gps/
ActiveX component for Win9X/ME/NT/2k/XP
Visual Basic, Delphi, C++, ASP, ASPX, PHP.
EXIF, IPTC for JPEG/TIFF
--- End Message ---
--- Begin Message ---
OK this looks like the thing:
http://multipart-mixed.com/photo/iptc.html
It's a perl module. Can I use that in PHP?
Paul Furman wrote:
Does anyone know of a utility for WRITING or at least reading IPTC data
in images with PHP? I found lots of EXIF utilities and did an
experimental thing with that. PHP even has a built in EXIF reader but
the only IPTC utilities I've found are expensive ActiveX or Delphi
components and I don't even know if those could be operated by PHP. THe
one I used worked at a command line & I just did a shell command with a
constructed syntax.
Here's some stuff I dug up:
COMIPTC 900 Euros
http://www.j2s.net/EN/Products/comiptc.html
Works with Visual Basic, ASP or PHP
Matches Photoshop format
Works on JPEG, TIFF, PSD
TIPTC Delphi $566.60
<http://www.atom5.com/Development/Components-Libraries-for-Delphi/tiptc-delphi-component-to-read-and-write-iptc-data-from-jpeg-tiff-files-2620.html>
JPEG/TIFF
source code in pure Delphi code
Atalasoft dotImage $329-$999
http://www.atalasoft.com/Components/dotImage
C# ActiveX component .NET compatible
many features
AiS EXIF ActiveX $25-$99 (server)
http://www.watermarker.com/exif-iptc-gps/
ActiveX component for Win9X/ME/NT/2k/XP
Visual Basic, Delphi, C++, ASP, ASPX, PHP.
EXIF, IPTC for JPEG/TIFF
--- End Message ---
--- Begin Message ---
This might help:
http://pear.php.net/package/Image_IPTC
Andy
> -----Original Message-----
> From: Paul Furman [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 12, 2004 7:36 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: IPTC image comments utility
>
> OK this looks like the thing:
> http://multipart-mixed.com/photo/iptc.html
> It's a perl module. Can I use that in PHP?
>
> Paul Furman wrote:
>
> > Does anyone know of a utility for WRITING or at least reading IPTC data
> > in images with PHP? I found lots of EXIF utilities and did an
> > experimental thing with that. PHP even has a built in EXIF reader but
> > the only IPTC utilities I've found are expensive ActiveX or Delphi
> > components and I don't even know if those could be operated by PHP. THe
> > one I used worked at a command line & I just did a shell command with a
> > constructed syntax.
> >
> > Here's some stuff I dug up:
> >
> >
> > COMIPTC 900 Euros
> > http://www.j2s.net/EN/Products/comiptc.html
> > Works with Visual Basic, ASP or PHP
> > Matches Photoshop format
> > Works on JPEG, TIFF, PSD
> >
> > TIPTC Delphi $566.60
> > <http://www.atom5.com/Development/Components-Libraries-for-Delphi/tiptc-
> delphi-component-to-read-and-write-iptc-data-from-jpeg-tiff-files-
> 2620.html>
> >
> > JPEG/TIFF
> > source code in pure Delphi code
> >
> > Atalasoft dotImage $329-$999
> > http://www.atalasoft.com/Components/dotImage
> > C# ActiveX component .NET compatible
> > many features
> >
> > AiS EXIF ActiveX $25-$99 (server)
> > http://www.watermarker.com/exif-iptc-gps/
> > ActiveX component for Win9X/ME/NT/2k/XP
> > Visual Basic, Delphi, C++, ASP, ASPX, PHP.
> > EXIF, IPTC for JPEG/TIFF
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Andy Crain wrote:
This might help:
http://pear.php.net/package/Image_IPTC
Andy
Thanks, I don't know why I didn't find that. No documentation though and
some unfamiliar stuff with @ and references to other commands which I
guess this replaces (not sure). If so I can't figure out how to run the
thing. Below is some snippage from the code trying to get at how to use
it. I'm still interested in whether I can get the perl module to run
with PHP, it sounds like it may be a bit more reliable. I've got perl
loaded but don't know how to use it.
<snippage>
* This class encapsulates the functions iptcparse() and iptcembed(). It
provides
* the necessary methods for extracting, modifying, and saving IPTC data with
* image files (JPEG and TIFF files only).
class Image_IPTC
var $_sFilename = null;
var $_aIPTC = array();
* The IPTC fields that were extracted from the image
* or updated by this class.
var $_bIPTCParse = false;
* set to true if the APP header data could be obtained.
iptcparse (places where I saw this)
http://us4.php.net/iptcparse
function Image_IPTC( $sFilename )
$this->_aIPTC = @iptcparse($aAPP['APP13']);
$this->_bIPTCParse = true;
function isValid()
return $this->_bIPTCParse;
function getAllTags()
return $this->_aIPTC;
* An array of IPTC fields as it extracted by iptcparse()
iptcembed (places where I saw this)
http://us4.php.net/iptcembed
one comment refers to the Image::IPTCInfo Perl module
-undocumented, some serious compatibility problems, improper format
function save( $sOutputFile = null )
$sImageData = @iptcembed($sIPTCBlock, $this->_sFilename, 0);
function output()
@iptcembed($sIPTCBlock, $this->_sFilename, 2);
Paul Furman wrote:
OK this looks like the thing:
http://multipart-mixed.com/photo/iptc.html
It's a perl module. Can I use that in PHP?
--- End Message ---
--- Begin Message ---
PHP Newbie here,
I have been able to work out how to detect the browser I'm looking for.
Then I need to take the user to another page.
<? php
if (strstr($HTTP_USER_AGENT,'Windows CE')) {
//go to the Windows CE version of the site
} else {
// go to or Stay on the large version
}
?>
Suggestions
Col
--- End Message ---
--- Begin Message ---
Hello PETCOL,
Friday, February 13, 2004, 12:57:59 AM, you wrote:
P> I have been able to work out how to detect the browser I'm looking for.
P> Then I need to take the user to another page.
P> if (strstr($HTTP_USER_AGENT,'Windows CE')) {
P> //go to the Windows CE version of the site
P> } else {
P> // go to or Stay on the large version
P> }
if (strstr($HTTP_USER_AGENT, "Windows CE"))
{
Header("Location: http://www.yoursite.dom/ce_page.php");
exit;
}
else
{
Header("Location: http://www.yoursite.dom/another_page.php");
exit;
}
--
Best regards,
Richard mailto:[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
On Fri, Feb 13, 2004 at 11:57:59AM +1100, PETCOL wrote:
> Then I need to take the user to another page.
>
> <? php
>
> if (strstr($HTTP_USER_AGENT,'Windows CE')) {
> //go to the Windows CE version of the site
> } else {
> // go to or Stay on the large version
> }
>
> ?>
Hopefully you're aware that $HTTP_USER_AGENT is an unreliable variable,
in that it is sent by the client, and can contain virtually anything.
I saw a response letting you know how to do this, but I would recommend
not sending people to different pages based on which browser/OS they're
using.
The most I would use $HTTP_USER_AGENT for is if I'm presenting a list of
different OSes (say, for links to OS-specific downloads), and I want to
select an intelligent default.
It should be possible to use CSS/(X)HTML to present your content in a
way that is accessible to whichever browser accesses your site. IMHO,
browser-sniffing to serve different content is a bad idea.
</$.02>
--
[ joel boonstra | gospelcom.net ]
--- End Message ---
--- Begin Message ---
Richard,
Thanks for that, looks too simple ;-)
It's exactly what I want for this particular application.
Thanks
Col
"Richard Davey" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello PETCOL,
>
> Friday, February 13, 2004, 12:57:59 AM, you wrote:
>
> P> I have been able to work out how to detect the browser I'm looking for.
> P> Then I need to take the user to another page.
>
> P> if (strstr($HTTP_USER_AGENT,'Windows CE')) {
> P> //go to the Windows CE version of the site
> P> } else {
> P> // go to or Stay on the large version
> P> }
>
> if (strstr($HTTP_USER_AGENT, "Windows CE"))
> {
> Header("Location: http://www.yoursite.dom/ce_page.php");
> exit;
> }
> else
> {
> Header("Location: http://www.yoursite.dom/another_page.php");
> exit;
> }
>
> --
> Best regards,
> Richard mailto:[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Hi all. Is PHP a suitable language for building an online shop? Where would
I go to find out more info on this? Thanks in advance!
--- End Message ---
--- Begin Message ---
Jimmy jimmy jimmy...
Now if your question is, Can PHP be the most versatile languge that one
should use for creating the best online shop ever? Then yes.
Can PHP interact with MySql and just about every other Database program to
store all your wonderful merchandise, in a nice compact easy to carry
carrying case. Then YES.
And if your also asking if PHP would be a server side scripting language
like CGI/ASP/JAVA/~.. Then YES again.
But if your asking whether or not PHP, would be able to SAY?
Log your client's information
Store your inventory
Display your merchandise
Process orders
Interact with your clients
Keep your client's informed of what's in and what's not
Manipulate your inventory records
Inform you of what's getting low for reordering
Track what's selling and what isn't
Allow online technical support through forums
Allow 24x7 access to your Storefront
And last but not least, Tuck you in at night?
Then no. It can't tuck you in at night. But PHP does all the rest and SO
MUCH MORE....Read about it here
http://www.php.net
Best Shopping cart website setup utility you'll ever need. Enjoy!
Wolf
-----Original Message-----
From: Jimmy [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 10:44 PM
To: [EMAIL PROTECTED]
Subject: [PHP] E-Commerce
Hi all. Is PHP a suitable language for building an online shop? Where would
I go to find out more info on this? Thanks in advance!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I just about wet my self laughing.
Just look around the net, PHP is used in about 40% of the online shopping sites.
----- Original Message -----
From: "PHP Email List" <[EMAIL PROTECTED]>
To: "Jimmy" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, February 13, 2004 6:48 PM
Subject: RE: [PHP] E-Commerce
> Jimmy jimmy jimmy...
>
> Now if your question is, Can PHP be the most versatile languge that one
> should use for creating the best online shop ever? Then yes.
>
> Can PHP interact with MySql and just about every other Database program to
> store all your wonderful merchandise, in a nice compact easy to carry
> carrying case. Then YES.
>
> And if your also asking if PHP would be a server side scripting language
> like CGI/ASP/JAVA/~.. Then YES again.
>
> But if your asking whether or not PHP, would be able to SAY?
> Log your client's information
> Store your inventory
> Display your merchandise
> Process orders
> Interact with your clients
> Keep your client's informed of what's in and what's not
> Manipulate your inventory records
> Inform you of what's getting low for reordering
> Track what's selling and what isn't
> Allow online technical support through forums
> Allow 24x7 access to your Storefront
>
> And last but not least, Tuck you in at night?
>
> Then no. It can't tuck you in at night. But PHP does all the rest and SO
> MUCH MORE....Read about it here
> http://www.php.net
> Best Shopping cart website setup utility you'll ever need. Enjoy!
>
> Wolf
>
> -----Original Message-----
> From: Jimmy [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 12, 2004 10:44 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] E-Commerce
>
>
> Hi all. Is PHP a suitable language for building an online shop? Where would
> I go to find out more info on this? Thanks in advance!
>
> --
> 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
>
--- End Message ---
--- Begin Message ---
I just about wet my self laughing.
Just look around the net, PHP is used in about 40% of the online shopping sites.
----- Original Message -----
From: "PHP Email List" <[EMAIL PROTECTED]>
To: "Jimmy" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, February 13, 2004 6:48 PM
Subject: RE: [PHP] E-Commerce
> Jimmy jimmy jimmy...
>
> Now if your question is, Can PHP be the most versatile languge that one
> should use for creating the best online shop ever? Then yes.
>
> Can PHP interact with MySql and just about every other Database program to
> store all your wonderful merchandise, in a nice compact easy to carry
> carrying case. Then YES.
>
> And if your also asking if PHP would be a server side scripting language
> like CGI/ASP/JAVA/~.. Then YES again.
>
> But if your asking whether or not PHP, would be able to SAY?
> Log your client's information
> Store your inventory
> Display your merchandise
> Process orders
> Interact with your clients
> Keep your client's informed of what's in and what's not
> Manipulate your inventory records
> Inform you of what's getting low for reordering
> Track what's selling and what isn't
> Allow online technical support through forums
> Allow 24x7 access to your Storefront
>
> And last but not least, Tuck you in at night?
>
> Then no. It can't tuck you in at night. But PHP does all the rest and SO
> MUCH MORE....Read about it here
> http://www.php.net
> Best Shopping cart website setup utility you'll ever need. Enjoy!
>
> Wolf
>
> -----Original Message-----
> From: Jimmy [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 12, 2004 10:44 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] E-Commerce
>
>
> Hi all. Is PHP a suitable language for building an online shop? Where would
> I go to find out more info on this? Thanks in advance!
>
> --
> 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
>
--- End Message ---
--- Begin Message ---
all in one awesome package:
www.oscommerce.com
----- Original Message -----
From: "PHP Email List" <[EMAIL PROTECTED]>
To: "Jimmy" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, February 13, 2004 1:48 PM
Subject: RE: [PHP] E-Commerce
Jimmy jimmy jimmy...
Now if your question is, Can PHP be the most versatile languge that one
should use for creating the best online shop ever? Then yes.
Can PHP interact with MySql and just about every other Database program to
store all your wonderful merchandise, in a nice compact easy to carry
carrying case. Then YES.
And if your also asking if PHP would be a server side scripting language
like CGI/ASP/JAVA/~.. Then YES again.
But if your asking whether or not PHP, would be able to SAY?
Log your client's information
Store your inventory
Display your merchandise
Process orders
Interact with your clients
Keep your client's informed of what's in and what's not
Manipulate your inventory records
Inform you of what's getting low for reordering
Track what's selling and what isn't
Allow online technical support through forums
Allow 24x7 access to your Storefront
And last but not least, Tuck you in at night?
Then no. It can't tuck you in at night. But PHP does all the rest and SO
MUCH MORE....Read about it here
http://www.php.net
Best Shopping cart website setup utility you'll ever need. Enjoy!
Wolf
-----Original Message-----
From: Jimmy [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 12, 2004 10:44 PM
To: [EMAIL PROTECTED]
Subject: [PHP] E-Commerce
Hi all. Is PHP a suitable language for building an online shop? Where would
I go to find out more info on this? Thanks in advance!
--
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
--- End Message ---
--- Begin Message ---
Terence wrote:
all in one awesome package:
www.oscommerce.com
I just got finished building a site for a customer who wanted OSCommerce
(didn't want to pay for a 'real' shopping cart, or for me to build him
one), and in my 8+ years of web development, they have to be one of the
worst in most aspects.
First off, it won't install or run if you have register_globals off.
When I saw this, I said to myself, "this isn't so bad if they're writing
secure code, but it opens up ALL the code on the site." Then I started
configuring it (hacking it) to fit the customers wants and desires, and
found a few areas where it could be compromised.
Second, the code looks like it was written by someone who originaly had
no intention of releasing this code to the world. It's sloppy,
unorganized, and poorly (if at all) commented. Compare the code from an
application like phpMyAdmin to OSCommerce to see what I mean.
The only thing I have positive to say about it, is on it's ease of use
for the end user who wants to run an online store, but doesn't know
diddly about computers.
Until they fix the first issue, I will continue to recommend against
OSCommerce.
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--- End Message ---
--- Begin Message ---
On 12-Feb-2004 André Cerqueira wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> i had problems with locale
> i think its safer to make a dayname and monthname array, and use
> getdate(), than build the string yourself
>
<snip>
>
> //the follow should, but doesnt seem to work
> //setlocale(LC_ALL, 'pt_BR');
> //echo date('l, j de F de Y');
> ?>
date() doesn't format according to locale but strftime() does:
setlocale(LC_ALL, 'pt_BR.ISO8859-1');
echo strftime('%A, %B %e %Y');
// output 'Quinta Feira, Fevereiro 12 2004'
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
--- End Message ---