|
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 30 Mar 2006 03:11:46 -0000 Issue 4042
php-general-digest-help
lists.php.net
Date: Wed Mar 29 2006 - 21:11:46 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 30 Mar 2006 03:11:46 -0000 Issue 4042
Topics (messages 232822 through 232882):
Re: private $foo
232822 by: Philip Thompson
232823 by: Duncan Hill
232825 by: Dan Parry
232838 by: tedd
232840 by: tedd
232846 by: Austin Denyer
Re: private $foo [HISTORY - TOTALLY THREAD JACKED]
232824 by: Jay Blanchard
232831 by: Anthony Ettinger
232842 by: tedd
232848 by: John Nichel
232853 by: tedd
232854 by: John Nichel
Download problems
232826 by: bsnottum.hkskole.no
Re: php error reporting problem
232827 by: ngwarai zed
232863 by: Christopher Murtagh
232864 by: Christopher Murtagh
Re: Word to txt
232828 by: Rafael
232859 by: Weber Sites LTD
232871 by: Chris
232881 by: Nobody Special
Re: page expire error
232829 by: Remon
Re: Not sure if this is a php problem or a mysql problem
232830 by: Angelo Zanetti
232861 by: Weber Sites LTD
Array Question
232832 by: cybermalandro cybermalandro
232833 by: M. Sokolewicz
232835 by: cybermalandro cybermalandro
validating ereg patterns
232834 by: Jared Nedzel
232836 by: Philip Hallstrom
Re: Date addition problem
232837 by: tedd
232862 by: Weber Sites LTD
232882 by: David Robley
Re: private $foo [GONE WILD]
232839 by: Jay Blanchard
232841 by: Philip Thompson
232843 by: John Nichel
232845 by: tedd
White label with PHP?
232844 by: Merlin
232849 by: Richard Lynch
232851 by: Jay Blanchard
232855 by: Merlin
Re: Problem with IE and not displaying the correct images...
232847 by: tedd
Can't get XSLT on PHP
232850 by: MARG
232858 by: Anthony Ettinger
232865 by: MARG
ojbect substitute for array map?
232852 by: Mark Steudel
232866 by: Jochem Maas
one-liner with strtolower and array_walk()?
232856 by: Marten Lehmann
232857 by: Shaunak Kashyap
CURL_OPTION in foreach statement
232860 by: Jose Lopez
IP Address Filtering
232867 by: Rahul S. Johari
232868 by: Jim Moseby
232870 by: Joe Harman
232873 by: Kevin Kinsey
232874 by: Joe Harman
Array Question again
232869 by: cybermalandro cybermalandro
Object oriented design
232872 by: Richard U
232875 by: Jochem Maas
addslashes()
232876 by: Chris Boget
232877 by: Jasper Bryant-Greene
232879 by: Chris Boget
FastCGI and --enable-force-cgi-redirect
232878 by: Jimmy Scott
A Problem!
232880 by: Tom Wong \(Yakang Accessories\)
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:
On Mar 29, 2006, at 8:25 AM, tedd wrote:
>>> I have been programming since the mid 70's and foo was in the
>>> lexcon at
>>> that point. I guess I am old school.
>>
>>
>> People have been programming since the 70's?!!?!! I didn't think
>> it was possible until the early 90's! Wow I must be young! ;)
>>
>> ~Philip
>
> ~Philip:
>
> Read up on the history of computers -- the first programmer, as I
> recall, was one Lady Lovelace who programmed Babbage's first
> mechanical computer (if you don't count the abacus) in the early
> 1800's.
>
> Of course, I remember programming with rocks and that was before we
> had zero's. We only had one's and that was a programming nightmare.
> You new guys at least have 1's and 0's to work with.
>
> Best,
>
> tedd
tedd,
I laughed my head off about your 'rocks' statement! Thanks for that.
For those of you who didn't pick up on my sarcasm previously, do so
now. =D I'm not *that* young. Hehe
~PRT
attached mail follows:
On Wednesday 29 March 2006 15:43, Philip Thompson wrote:
> > Of course, I remember programming with rocks and that was before we
> > had zero's. We only had one's and that was a programming nightmare.
> > You new guys at least have 1's and 0's to work with.
> > tedd
>
> I laughed my head off about your 'rocks' statement! Thanks for that.
> For those of you who didn't pick up on my sarcasm previously, do so
> now. =D I'm not *that* young. Hehe
Rocks! You had rocks!?
When I was a programmer, we had nothing but primeval chaos to program with.
Worse than herding cats, and prone to returning random values whether your
cat was dead or alive. We would have killed to have rocks (let alone one's)!
:)
attached mail follows:
I can see a pattern emerging here...
Chaos? You had chaos? All we had was this sodding great explosion...
:-)
Dan
-----------------------------------------------------
Dan Parry
Senior Developer
Virtua Webtech Ltd
http://www.virtuawebtech.co.uk
-----Original Message-----
From: Duncan Hill [mailto:dhill+php
cricalix.net]
Sent: 29 March 2006 15:46
To: php-general
lists.php.net
Subject: Re: [PHP] private $foo
On Wednesday 29 March 2006 15:43, Philip Thompson wrote:
> > Of course, I remember programming with rocks and that was before we
> > had zero's. We only had one's and that was a programming nightmare.
> > You new guys at least have 1's and 0's to work with.
> > tedd
>
> I laughed my head off about your 'rocks' statement! Thanks for that.
> For those of you who didn't pick up on my sarcasm previously, do so
> now. =D I'm not *that* young. Hehe
Rocks! You had rocks!?
When I was a programmer, we had nothing but primeval chaos to program with.
Worse than herding cats, and prone to returning random values whether your
cat was dead or alive. We would have killed to have rocks (let alone
one's)!
:)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
__________ NOD32 1.1454 (20060321) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com
attached mail follows:
At 8:43 AM -0600 3/29/06, Philip Thompson wrote:
>On Mar 29, 2006, at 8:25 AM, tedd wrote:
>
>>>>I have been programming since the mid 70's and foo was in the lexcon at
>>>>that point. I guess I am old school.
>>>
>>>
>>>People have been programming since the 70's?!!?!! I didn't think
>>>it was possible until the early 90's! Wow I must be young! ;)
>>>
>>>~Philip
>>
>>~Philip:
>>
>>Read up on the history of computers -- the first programmer, as I
>>recall, was one Lady Lovelace who programmed Babbage's first
>>mechanical computer (if you don't count the abacus) in the early
>>1800's.
>>
>>Of course, I remember programming with rocks and that was before we
>>had zero's. We only had one's and that was a programming nightmare.
>>You new guys at least have 1's and 0's to work with.
>>
>>Best,
>>
>>tedd
>
>tedd,
>
>I laughed my head off about your 'rocks' statement! Thanks for that.
>For those of you who didn't pick up on my sarcasm previously, do so
>now. =D I'm not *that* young. Hehe
>
>~PRT
You're welcome. As this list gets to know me, I think you'll find I
have a slightly different, and often humorous, perspective on
everything. As Oscar Wilde once said "Life is far too important to be
taken seriously."
tedd
--
--------------------------------------------------------------------------------
http://sperling.com
attached mail follows:
At 3:56 PM +0100 3/29/06, Dan Parry wrote:
>I can see a pattern emerging here...
>
>Chaos? You had chaos? All we had was this sodding great explosion...
>
>:-)
>
>Dan
Great explosion!? You had a Great explosion!?
All we had was xml and everyone knows you can't do anything with that.
:-)
tedd
--
--------------------------------------------------------------------------------
http://sperling.com
attached mail follows:
tedd wrote:
> At 3:56 PM +0100 3/29/06, Dan Parry wrote:
>
>> I can see a pattern emerging here...
>>
>> Chaos? You had chaos? All we had was this sodding great explosion...
>>
>> :-)
>>
>> Dan
>
>
> Great explosion!? You had a Great explosion!?
>
> All we had was xml and everyone knows you can't do anything with that.
And if you told that to the programmers of today, they'd never believe you.
#;-D
Regards,
Ozz.
attached mail follows:
[snip]
Read up on the history of computers -- the first programmer, as I
recall, was one Lady Lovelace who programmed Babbage's first
mechanical computer (if you don't count the abacus) in the early
1800's.
Of course, I remember programming with rocks and that was before we
had zero's. We only had one's and that was a programming nightmare.
You new guys at least have 1's and 0's to work with.
[/snip]
ROFLMMFAO! You had rocks?!? Dang dude. I can't top that.
I remember when we got our first hard-drive in the lab...a 10Mb
dishwasher sized behemoth with its own AC unit
attached mail follows:
On 3/29/06, Jay Blanchard <jblanchard
pocket.com> wrote:
>
> [snip]
> Read up on the history of computers -- the first programmer, as I
> recall, was one Lady Lovelace who programmed Babbage's first
> mechanical computer (if you don't count the abacus) in the early
> 1800's.
>
> Of course, I remember programming with rocks and that was before we
> had zero's. We only had one's and that was a programming nightmare.
> You new guys at least have 1's and 0's to work with.
> [/snip]
>
> ROFLMMFAO! You had rocks?!? Dang dude. I can't top that.
lol! that must've been before the wheel.
I remember when we got our first hard-drive in the lab...a 10Mb
> dishwasher sized behemoth with its own AC unit
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--
Anthony Ettinger
Signature: http://chovy.dyndns.org/hcard.html
attached mail follows:
Mime-Version: 1.0
Message-Id: <p06230917c05069d3a5db
[192.168.1.100]>
Date: Wed, 29 Mar 2006 11:51:21 -0500
To: "Jay Blanchard" <jblanchard
pocket.com>, "tedd" <tedd
sperling.com>,
"Philip Thompson" <prthomp
uark.edu>,
"[php] PHP General List" <php-general
lists.php.net>
From: tedd <tedd
sperling.com>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
Subject: RE: [PHP] private $foo [HISTORY - TOTALLY THREAD JACKED]
At 8:50 AM -0600 3/29/06, Jay Blanchard wrote:
>[snip]
>Read up on the history of computers -- the first programmer, as I
>recall, was one Lady Lovelace who programmed Babbage's first
>mechanical computer (if you don't count the abacus) in the early
>1800's.
>
>Of course, I remember programming with rocks and that was before we
>had zero's. We only had one's and that was a programming nightmare.
>You new guys at least have 1's and 0's to work with.
>[/snip]
>
>ROFLMMFAO! You had rocks?!? Dang dude. I can't top that.
>
>I remember when we got our first hard-drive in the lab...a 10Mb
>dishwasher sized behemoth with its own AC unit
Not meaning to continue this thread, but you brought back memories.
I remember in the early 80's when Crovis (sp) came out the their
first HD -- at least it was the first I drooled over. It had 5 Megs
and cost $5k and you could daisy-chain three together to get a
whopping 15M for only $15,000.
In my last HD purchase, 15M cost me less than $0.01. Not a bad
advance in technology over the last 20 years, huh?
tedd
--
--------------------------------------------------------------------------------
http://sperling.com
attached mail follows:
tedd wrote:
> At 8:50 AM -0600 3/29/06, Jay Blanchard wrote:
>> [snip]
>> Read up on the history of computers -- the first programmer, as I
>> recall, was one Lady Lovelace who programmed Babbage's first
>> mechanical computer (if you don't count the abacus) in the early
>> 1800's.
>>
>> Of course, I remember programming with rocks and that was before we
>> had zero's. We only had one's and that was a programming nightmare.
>> You new guys at least have 1's and 0's to work with.
>> [/snip]
>>
>> ROFLMMFAO! You had rocks?!? Dang dude. I can't top that.
>>
>> I remember when we got our first hard-drive in the lab...a 10Mb
>> dishwasher sized behemoth with its own AC unit
>
> Not meaning to continue this thread, but you brought back memories.
>
> I remember in the early 80's when Crovis (sp) came out the their first
> HD -- at least it was the first I drooled over. It had 5 Megs and cost
> $5k and you could daisy-chain three together to get a whopping 15M for
> only $15,000.
>
> In my last HD purchase, 15M cost me less than $0.01. Not a bad advance
> in technology over the last 20 years, huh?
>
Hard drives. You wusses. Between punch cards, data cassettes, 5-1/4
and 8" floppies, it was years before I saw a hard drive.
--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
jnichel
dotcomholdingsofbuffalo.com
attached mail follows:
>Hard drives. You wusses. Between punch cards, data cassettes,
>5-1/4 and 8" floppies, it was years before I saw a hard drive.
>
>--
>John C. Nichel IV
I didn't say that HD's were my first storage medium. I remember
typing in 200+ line Star Trek program three times trying to get my GE
tape recorder to work when Apple ][ came out with their first
computer -- which had a wopping 16k of Integer on the motherboard,
but no floppies.
Before that, I used magnetic strips, before that a roll of paper
punch tape, before that punch cards, and before that we recorded
binary on rocks by turning them over in the sun. On cloudy days, our
systems would crash.
tedd
--
--------------------------------------------------------------------------------
http://sperling.com
attached mail follows:
tedd wrote:
>> Hard drives. You wusses. Between punch cards, data cassettes, 5-1/4
>> and 8" floppies, it was years before I saw a hard drive.
>>
>> --
>> John C. Nichel IV
>
> I didn't say that HD's were my first storage medium. I remember typing
> in 200+ line Star Trek program three times trying to get my GE tape
> recorder to work when Apple ][ came out with their first computer --
> which had a wopping 16k of Integer on the motherboard, but no floppies.
>
> Before that, I used magnetic strips, before that a roll of paper punch
> tape, before that punch cards, and before that we recorded binary on
> rocks by turning them over in the sun. On cloudy days, our systems would
> crash.
>
> tedd
>
I forgot the " ;) "
--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
jnichel
dotcomholdingsofbuffalo.com
attached mail follows:
-------------------------- Opprinnelig melding ---------------------------
Emne: Download problems
Fra: bsnottum
hkskole.no
Dato: ons 29. mars 2006 9:53
Til: php-general-digest
lists.php.net
--------------------------------------------------------------------------
Hallo!
I am running php-4.3.10-2.4 on an fedora core 2. My webserver is apache -
httpd-2.0.51-2.9.
I am also running a program called phpWebFTP which accesses my ftp server
via port 80.
I am having problems with downloading from my ftp-server through this
program, and I think it has to do with php. I have tried to alter the
settings in php.ini according to filesize, but the problem persists.
What happens is that when I download for instance a word document, when I
try to open it my system says that the file does not excist in the folder
I downloaded it to - althoug I can see it and boubleclick on it. The
strange thing is that this does not happen every time - sometimes the
download actaully works.
Has anyone experienced the same? What can I do about this?
Thanks!
Bjorn
attached mail follows:
Thanks Christopher for your help. I followed you numbered advicestep by
step.
1) I verified that there weren't any typo's that were causing fatal problems
in my php.ini
2) looked at the output of phpinfo() and verified the location of the
php.ini script. /etc/php.ini .This is the file I am modifying
3) checked my apache config, could not see anything that might be
overriding my setup.
4) checked my script for any ini_set() function calls that might be
changing display_errors. I did not use any ini_set() functions
But still the problem is not solved. Just to recap on the problem: I just
want the deliberate php errors Imake to shown as errors on the php page when
the script runs.
Thanks in advance
On 3/29/06, Christopher Murtagh <christopher.murtagh
mcgill.ca> wrote:
>
> On Wed, 2006-03-29 at 16:38 +0300, ngwarai zed wrote:
> > I tried changing display_errors = On and error_reporting = On in
> > php.ini , restarted httpd but when I check with phpinfo() I still see
> > display_errors set to Off and error_reporting set to 2047. My php
> > script still does not show any errors. Why are my changes to php.ini
> > not refrlected when I run phpinfo() ? Where am I getting it all wrong?
>
> Here are the things I would try (I'm assuming Linux/Apache setup):
>
> 1) verify that there aren't any typo's that are causing fatal problems
> in your php.ini
>
> 2) look at the output of phpinfo() and verify the location of the
> php.ini script. Default locations on *nix systems can
> be /usr/local/lib/php.ini or /etc/php.ini depending on how PHP was
> built. You might be modifying the wrong file (I've done that more than
> once).
>
> 3) check your apache config, see if there's anything that might be
> overriding your setup.
>
> 4) check your script for any ini_set() function calls that might be
> changing display_errors.
>
> Cheers,
>
> Chris
>
>
>
>
attached mail follows:
From: Christopher Murtagh <christopher.murtagh
mcgill.ca>
To: ngwarai zed <makotore
gmail.com>
Cc: php-general
lists.php.net
Content-Type: text/plain
Date: Wed, 29 Mar 2006 13:06:51 -0500
Message-Id: <1143655611.12926.11.camel
brahma.wsg.mcgill.ca>
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: Re: [PHP] php error reporting problem
On Wed, 2006-03-29 at 18:25 +0300, ngwarai zed wrote:
> But still the problem is not solved. Just to recap on the problem: I
> just want the deliberate php errors Imake to shown as errors on the
> php page when the script runs.
Yes, that should be the normal behaviour. Check your error_reporting
setting. It should be one of the following (see below).
The most common would be:
error_reporting = E_ALL
If this still doesn't work, try the default php.ini.dist and copy it
over your php.ini.
Cheers,
Chris
------------- error_reporting values -------------
; reporting level
; E_ALL - All errors and warnings (doesn't include E_STRICT)
; E_ERROR - fatal run-time errors
; E_WARNING - run-time warnings (non-fatal errors)
; E_PARSE - compile-time parse errors
; E_NOTICE - run-time notices (these are warnings which often result
; from a bug in your code, but it's possible that it was
; intentional (e.g., using an uninitialized variable and
; relying on the fact it's automatically initialized to an
; empty string)
; E_STRICT - run-time notices, enable to have PHP suggest changes
; to your code which will ensure the best interoperability
; and forward compatibility of your code
; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
; initial startup
; E_COMPILE_ERROR - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR - user-generated error message
; E_USER_WARNING - user-generated warning message
; E_USER_NOTICE - user-generated notice message
attached mail follows:
On Wed, 2006-03-29 at 16:38 +0300, ngwarai zed wrote:
> I tried changing display_errors = On and error_reporting = On in
> php.ini , restarted httpd but when I check with phpinfo() I still see
> display_errors set to Off and error_reporting set to 2047. My php
> script still does not show any errors. Why are my changes to php.ini
> not refrlected when I run phpinfo() ? Where am I getting it all wrong?
Here are the things I would try (I'm assuming Linux/Apache setup):
1) verify that there aren't any typo's that are causing fatal problems
in your php.ini
2) look at the output of phpinfo() and verify the location of the
php.ini script. Default locations on *nix systems can
be /usr/local/lib/php.ini or /etc/php.ini depending on how PHP was
built. You might be modifying the wrong file (I've done that more than
once).
3) check your apache config, see if there's anything that might be
overriding your setup.
4) check your script for any ini_set() function calls that might be
changing display_errors.
Cheers,
Chris
attached mail follows:
Pray to St. Google with something like "doc2txt"
Ministério Público wrote:
> I'd like to know if any of you know if I can and if I can how do I do to
> transform a Word documento to txt with php.
>
> What I'd like to do is offer the user in my site to upload a word file and
> the script transforms the word to txt and saves to server, my site already
> can receive txt.
> Thanx to you all.
--
Atentamente,
J. Rafael Salazar Magaña
Innox - Innovación Inteligente
Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE
http://www.innox.com.mx
attached mail follows:
Try this :
Class to convert any document, that can be read by MS Word, to another
format supported by Word.
http://www.weberdev.com/get_example-3211.html
Sincerely
berber
Visit the Weber Sites Today,
To see where PHP might take you tomorrow.
SEO Data Monitor http://seo.weberdev.com
-----Original Message-----
From: Ministério Público [mailto:arquivomortovirtual
gmail.com]
Sent: Wednesday, March 29, 2006 3:14 PM
To: php-general
lists.php.net
Subject: [PHP] Word to txt
I'd like to know if any of you know if I can and if I can how do I do to
transform a Word documento to txt with php.
What I'd like to do is offer the user in my site to upload a word file and
the script transforms the word to txt and saves to server, my site already
can receive txt.
Thanx to you all.
Rodrigo
attached mail follows:
Weber Sites LTD wrote:
> Try this :
>
> Class to convert any document, that can be read by MS Word, to another
> format supported by Word.
> http://www.weberdev.com/get_example-3211.html
Note that this particular example only works on windows servers since it
uses the COM object.
> -----Original Message-----
> From: Ministério Público [mailto:arquivomortovirtual
gmail.com]
> Sent: Wednesday, March 29, 2006 3:14 PM
> To: php-general
lists.php.net
> Subject: [PHP] Word to txt
>
> I'd like to know if any of you know if I can and if I can how do I do to
> transform a Word documento to txt with php.
>
> What I'd like to do is offer the user in my site to upload a word file and
> the script transforms the word to txt and saves to server, my site already
> can receive txt.
> Thanx to you all.
>
> Rodrigo
>
--
Postgresql & php tutorials
http://www.designmagick.com/
attached mail follows:
http://wvware.sourceforge.net/
You can also automate openoffice.org to do this, but that requires much work.
I used the wvware on a project way back in 1999 to do convert word to
html and it works fine for that.
On 3/29/06, Ministério Público <arquivomortovirtual
gmail.com> wrote:
> I'd like to know if any of you know if I can and if I can how do I do to
> transform a Word documento to txt with php.
>
> What I'd like to do is offer the user in my site to upload a word file and
> the script transforms the word to txt and saves to server, my site already
> can receive txt.
> Thanx to you all.
>
> Rodrigo
>
>
--
Use Linux.
W=Wrong
Proud member of the reality-based community!
In opposing the Federalists, [Jefferson] ushered in a
kind of sustained partisan activity that had never existed
before. Initially called the Republican party, it became known
in the era of Andrew Jackson as simply the Democracy;
later on, it was called the Democratic party. But even the modern
Republican party, formed in 1854, chose its name in part to honor
Jefferson. -- Joyce Appleby on Jefferson
attached mail follows:
Hi,
You could do it with post, if you set the right headers in your script.
http://nl2.php.net/manual/en/function.header.php
"Text from php.net"
PHP scripts often generate dynamic content that must not be cached by the
client browser or any proxy caches between the server and the client
browser. Many proxies and clients can be forced to disable caching with:
<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
?>
Note: You may find that your pages aren't cached even if you don't output
all of the headers above. There are a number of options that users may be
able to set for their browser that change its default caching behavior. By
sending the headers above, you should override any settings that may
otherwise cause the output of your script to be cached.
Additionally, session_cache_limiter() and the session.cache_limiter
configuration setting can be used to automatically generate the correct
caching-related headers when sessions are being used.
Remember that header() must be called before any actual output is sent,
either by normal HTML tags, blank lines in a file, or from PHP. It is a very
common error to read code with include(), or require(), functions, or
another file access function, and have spaces or empty lines that are output
before header() is called. The same problem exists when using a single
PHP/HTML file.
Greetz
-----Oorspronkelijk bericht-----
Van: Barry [mailto:barry
flyerheaven.de]
Verzonden: dinsdag 28 maart 2006 9:46
Aan: php-general
lists.php.net
Onderwerp: [PHP] Re: page expire error
suresh kumar wrote:
> Hai,
> i am facing one problem in my project.I am using 2
> pages for search operation.
>
> In Search page 1:
> i am having 3 fields say Company
> name,state,country. when user enters search key in
> their corresponding field and press submit button.
> search result will be displayed in another page
> "Search result page".when i click back button in
> browser toolbar.it is displaying error message as
>
> "The page you requested was created using information
> you submitted in a form. This page is no longer
> available. As a security precaution, Internet Explorer
> does not automatically resubmit your information for
> you" .
>
> I am storing the field name in session.
That's because you use Forms.
The Explorer is just telling you that he don't will submit the posted
formvars again.
Well the message is very selfexplaining, but probably not easy to
understand for you because i suggest you don't speak english that well.
If you can live with some security problems use method="GET" rather than
method="POST" this will give you no errors in this case probably.
Greets
Barry
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.2/294 - Release Date: 27-3-2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.3/295 - Release Date: 28-3-2006
attached mail follows:
Chris wrote:
> Paul Goepfert wrote:
>
>> Hi all,
>>
>> I have developed a php functilon that is to return the date +1 from a
>> Mysql database. My sql statement is as follows
>>
>> SELECT dayNum FROM Days Where dayNum >= day(curdate())+1;
>>
>> The function works great on the intended webserver but when placed on
>> a different mysql server (The one I have using to develop the webpage)
>> the return variable with the intended SQL statement is not being set.
>
>
> What do you get on both servers when you run it manually through
> phpmyadmin or some other tool?
>
> Are they the same mysql version - select version(); ?
>
> Same php version?
>
why not use the DATE_ADD function from mySQL??
(date,INTERVAL expr type)
eg:
mysql> SELECT DATE_ADD('1997-12-31 23:59:59',
-> INTERVAL 1 DAY);
hope this helps!
Angelo
attached mail follows:
If you want to do it in PHP you can always do :
$Tomorrow = date( "Y-m-d", strtotime ("1 day" ) ) ;
Or more general : http://www.weberdev.com/get_example-292.html
Sincerely
berber
Visit the Weber Sites Today,
To see where PHP might take you tomorrow.
SEO Data Monitor http://seo.weberdev.com
-----Original Message-----
From: Paul Goepfert [mailto:paul.goepfert
gmail.com]
Sent: Wednesday, March 29, 2006 2:20 AM
To: php-general
lists.php.net
Subject: [PHP] Not sure if this is a php problem or a mysql problem
Hi all,
I have developed a php functilon that is to return the date +1 from a Mysql
database. My sql statement is as follows
SELECT dayNum FROM Days Where dayNum >= day(curdate())+1;
The function works great on the intended webserver but when placed on a
different mysql server (The one I have using to develop the webpage) the
return variable with the intended SQL statement is not being set.
I Think it has something to do with thlis "day(curdate())" portion of my sql
statement. When I had "month" in place of "day" I was able to ge a output.
I don't have a problem with "year(curdate())" or "month(curdate())". Even
though the functilon works on the final destination webserver I would like
to know why it won't work on my testing server.
Thanks
Paul
--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
attached mail follows:
So, I have an array that looks like this
rray(3) {
[0]=>
array(8) {
["line"]=>
string(1) "1"
["ponbr"]=>
string(5) "34474"
["emt"]=>
string(3) "yes"
["qty"]=>
string(1) "5"
["price"]=>
string(2) "19"
["shipdate"]=>
string(8) "11/06/07"
["tracking"]=>
string(17) "11111111111111111"
["approved"]=>
string(4) "true"
}
[1]=>
array(8) {
["line"]=>
string(1) "1"
["ponbr"]=>
string(5) "TEST1"
["emt"]=>
string(3) "yes"
["qty"]=>
string(1) "5"
["price"]=>
string(2) "19"
["shipdate"]=>
string(8) "12/04/06"
["tracking"]=>
string(9) "123123123"
["approved"]=>
string(4) "true"
}
[2]=>
array(8) {
["line"]=>
string(1) "2"
["ponbr"]=>
string(5) "TEST1"
["emt"]=>
string(3) "yes"
["qty"]=>
string(1) "5"
["price"]=>
string(2) "12"
["shipdate"]=>
string(8) "12/04/06"
["tracking"]=>
string(12) "123123123123"
["approved"]=>
string(4) "true"
}
}
I want to see if the array["ponbr"] values matched then pick this array and
construct another one with the matched arrays so I can get something like
this
[0]=>
array(8) {
["line"]=>
string(1) "1"
["ponbr"]=>
string(5) "TEST1"
["emt"]=>
string(3) "yes"
["qty"]=>
string(1) "5"
["price"]=>
string(2) "19"
["shipdate"]=>
string(8) "12/04/06"
["tracking"]=>
string(9) "123123123"
["approved"]=>
string(4) "true"
}
[1]=>
array(8) {
["line"]=>
string(1) "2"
["ponbr"]=>
string(5) "TEST1"
["emt"]=>
string(3) "yes"
["qty"]=>
string(1) "5"
["price"]=>
string(2) "12"
["shipdate"]=>
string(8) "12/04/06"
["tracking"]=>
string(12) "123123123123"
["approved"]=>
string(4) "true"
}
What is the best way to do this efficiently?
Thanks for your input!
attached mail follows:
Date: Wed, 29 Mar 2006 18:10:40 +0200
From: "M. Sokolewicz" <tularis
php.net>
To: cybermalandro cybermalandro <cybermalandro
gmail.com>
Cc: php-general
lists.php.net
Message-id: <442AB180.3020406
php.net>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii; formatowed
Content-transfer-encoding: 7BIT
Subject: Re: Array Question
cybermalandro cybermalandro wrote:
> So, I have an array that looks like this
>
>
> rray(3) {
> [0]=>
> array(8) {
> ["line"]=>
> string(1) "1"
> ["ponbr"]=>
> string(5) "34474"
> ["emt"]=>
> string(3) "yes"
> ["qty"]=>
> string(1) "5"
> ["price"]=>
> string(2) "19"
> ["shipdate"]=>
> string(8) "11/06/07"
> ["tracking"]=>
> string(17) "11111111111111111"
> ["approved"]=>
> string(4) "true"
> }
> [1]=>
> array(8) {
> ["line"]=>
> string(1) "1"
> ["ponbr"]=>
> string(5) "TEST1"
> ["emt"]=>
> string(3) "yes"
> ["qty"]=>
> string(1) "5"
> ["price"]=>
> string(2) "19"
> ["shipdate"]=>
> string(8) "12/04/06"
> ["tracking"]=>
> string(9) "123123123"
> ["approved"]=>
> string(4) "true"
> }
> [2]=>
> array(8) {
> ["line"]=>
> string(1) "2"
> ["ponbr"]=>
> string(5) "TEST1"
> ["emt"]=>
> string(3) "yes"
> ["qty"]=>
> string(1) "5"
> ["price"]=>
> string(2) "12"
> ["shipdate"]=>
> string(8) "12/04/06"
> ["tracking"]=>
> string(12) "123123123123"
> ["approved"]=>
> string(4) "true"
> }
> }
>
>
> I want to see if the array["ponbr"] values matched then pick this array and
> construct another one with the matched arrays so I can get something like
> this
>
> [0]=>
> array(8) {
> ["line"]=>
> string(1) "1"
> ["ponbr"]=>
> string(5) "TEST1"
> ["emt"]=>
> string(3) "yes"
> ["qty"]=>
> string(1) "5"
> ["price"]=>
> string(2) "19"
> ["shipdate"]=>
> string(8) "12/04/06"
> ["tracking"]=>
> string(9) "123123123"
> ["approved"]=>
> string(4) "true"
> }
> [1]=>
> array(8) {
> ["line"]=>
> string(1) "2"
> ["ponbr"]=>
> string(5) "TEST1"
> ["emt"]=>
> string(3) "yes"
> ["qty"]=>
> string(1) "5"
> ["price"]=>
> string(2) "12"
> ["shipdate"]=>
> string(8) "12/04/06"
> ["tracking"]=>
> string(12) "123123123123"
> ["approved"]=>
> string(4) "true"
> }
>
> What is the best way to do this efficiently?
>
> Thanks for your input!
>
$resultArray = array();
foreach($array as $key=>$val) {
if($val['ponbr'] == 'TEST1') {
$resultArray[$key] = $val;
}
}
$resultArray will contain the output you specified; pretty quick IMO.
- tul
attached mail follows:
Well I don't want have to specify $val['ponbr'] == 'TEST1' I want to say if
($val['ponbr'] == repeated value) then $resultArray[$key] = $val;
In other words I want to go through the array matched the values of ponbr
that repeat or are the same so if they match then I put the results in
another array. Does this make sense? sorry I have difficulties with arrays
still.
thnx for your input
On 3/29/06, M. Sokolewicz <tularis
php.net> wrote:
>
> cybermalandro cybermalandro wrote:
>
> > So, I have an array that looks like this
> >
> >
> > rray(3) {
> > [0]=>
> > array(8) {
> > ["line"]=>
> > string(1) "1"
> > ["ponbr"]=>
> > string(5) "34474"
> > ["emt"]=>
> > string(3) "yes"
> > ["qty"]=>
> > string(1) "5"
> > ["price"]=>
> > string(2) "19"
> > ["shipdate"]=>
> > string(8) "11/06/07"
> > ["tracking"]=>
> > string(17) "11111111111111111"
> > ["approved"]=>
> > string(4) "true"
> > }
> > [1]=>
> > array(8) {
> > ["line"]=>
> > string(1) "1"
> > ["ponbr"]=>
> > string(5) "TEST1"
> > ["emt"]=>
> > string(3) "yes"
> > ["qty"]=>
> > string(1) "5"
> > ["price"]=>
> > string(2) "19"
> > ["shipdate"]=>
> > string(8) "12/04/06"
> > ["tracking"]=>
> > string(9) "123123123"
> > ["approved"]=>
> > string(4) "true"
> > }
> > [2]=>
> > array(8) {
> > ["line"]=>
> > string(1) "2"
> > ["ponbr"]=>
> > string(5) "TEST1"
> > ["emt"]=>
> > string(3) "yes"
> > ["qty"]=>
> > string(1) "5"
> > ["price"]=>
> > string(2) "12"
> > ["shipdate"]=>
> > string(8) "12/04/06"
> > ["tracking"]=>
> > string(12) "123123123123"
> > ["approved"]=>
> > string(4) "true"
> > }
> > }
> >
> >
> > I want to see if the array["ponbr"] values matched then pick this array
> and
> > construct another one with the matched arrays so I can get something
> like
> > this
> >
> > [0]=>
> > array(8) {
> > ["line"]=>
> > string(1) "1"
> > ["ponbr"]=>
> > string(5) "TEST1"
> > ["emt"]=>
> > string(3) "yes"
> > ["qty"]=>
> > string(1) "5"
> > ["price"]=>
> > string(2) "19"
> > ["shipdate"]=>
> > string(8) "12/04/06"
> > ["tracking"]=>
> > string(9) "123123123"
> > ["approved"]=>
> > string(4) "true"
> > }
> > [1]=>
> > array(8) {
> > ["line"]=>
> > string(1) "2"
> > ["ponbr"]=>
> > string(5) "TEST1"
> > ["emt"]=>
> > string(3) "yes"
> > ["qty"]=>
> > string(1) "5"
> > ["price"]=>
> > string(2) "12"
> > ["shipdate"]=>
> > string(8) "12/04/06"
> > ["tracking"]=>
> > string(12) "123123123123"
> > ["approved"]=>
> > string(4) "true"
> > }
> >
> > What is the best way to do this efficiently?
> >
> > Thanks for your input!
> >
> $resultArray = array();
> foreach($array as $key=>$val) {
> if($val['ponbr'] === 'TEST1') {
> $resultArray[$key] = $val;
> }
> }
>
> $resultArray will contain the output you specified; pretty quick IMO.
>
> - tul
>
attached mail follows:
Message-ID: <442AB258.2000005
gene-it.com>
Date: Wed, 29 Mar 2006 11:14:16 -0500
From: Jared Nedzel <jared.nedzel
gene-it.com>
MIME-Version: 1.0
To: php-general
lists.php.net
Content-Type: text/plain; charset=ISO-8859-1; formatowed
Content-Transfer-Encoding: 7bit
Subject: validating ereg patterns
How do I detect the difference between a bad ereg pattern and no matches?
I've got a UI that allows the user to enter an ereg expression.
Clearly, the user may enter an invalid expression (for example, the
expression may not have matching [] brackets). ereg returns false if
there are no matches or if an error occurred.
I need to distinguish between no matches and an error, so I can present
a meaningful message to the user. Any suggestions on how to do this?
Thanks,
Jared
attached mail follows:
> How do I detect the difference between a bad ereg pattern and no matches?
>
> I've got a UI that allows the user to enter an ereg expression. Clearly,
> the user may enter an invalid expression (for example, the expression may not
> have matching [] brackets). ereg returns false if there are no matches or if
> an error occurred.
>
> I need to distinguish between no matches and an error, so I can present a
> meaningful message to the user. Any suggestions on how to do this?
Maybe try preg_match. The docs say it will return false for an error,
otherwise the number of times it matched.
-philip
attached mail follows:
Hi:
The problem is that you have transposed your date elements.
See this:
http://xn--ovg.com/a3.php
Try this code:
<?php
echo"<h1> date test (d/m/y)</h1>";
$start = "05-09-07";
$start = explode('-',$start);
$startmk = mktime(0,0,0,$start[1],$start[0],$start[2]);
$startdate = date('d-m-y',$startmk);
print_r($start);
for($i=0;$i<10;$i++){
$nextdate = date('d-m-y',$startmk + ($i*604800));
echo"<h1>$i: $startdate -- -- --$nextdate</h1>";
}
?>
Best,
tedd
---
At 1:51 PM +0100 3/29/06, Adrian Bruce wrote:
>Hi
>
>I am having an unusual problem when trying to calculate dates in
>advance from a start date. the code below shows a loop where by on
>each run an increasing number of weeks is added to the start date,
>this works as expected up untill the 8th time where for some reason
>it produces 01-11-05 instead of 02-11-05. I am at a loss as to why
>this would happen when it works perfectly for all the other dates.
>where am i going wrong?
>
>[snip]
>
><?php
>echo"<h1> date test</h1>";
>$start = "05-09-07";
>$start = explode('-',$start);
>$startmk = mktime(0,0,0,$start[1],$start[2],$start[0]);
>$startdate = date('d-m-y',$startmk);
>
>for($i=0;$i<10;$i++){
> $nextdate = date('d-m-y',$startmk + ($i*604800));
> echo"<h1>$i: $startdate -- -- --$nextdate</h1>";
>}
>?>
>
>OUTPUT:
>
>0: 07-09-05 -- -- --07-09-05
>1: 07-09-05 -- -- --14-09-05
>2: 07-09-05 -- -- --21-09-05
>3: 07-09-05 -- -- --28-09-05
>4: 07-09-05 -- -- --05-10-05
>5: 07-09-05 -- -- --12-10-05
>6: 07-09-05 -- -- --19-10-05
>7: 07-09-05 -- -- --26-10-05
>8: 07-09-05 -- -- --01-11-05
>9: 07-09-05 -- -- --08-11-05
>
>[/snip]
>
>Thanks a lot
>
>Ade
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
--
--------------------------------------------------------------------------------
http://sperling.com
attached mail follows:
Date of today +1 .. +x days
http://www.weberdev.com/get_example-292.html
Sincerely
berber
Visit the Weber Sites Today,
To see where PHP might take you tomorrow.
SEO Data Monitor http://seo.weberdev.com
-----Original Message-----
From: Adrian Bruce [mailto:abruce
stvincent.ac.uk]
Sent: Wednesday, March 29, 2006 2:52 PM
To: php-general
lists.php.net
Subject: [PHP] Date addition problem
Hi
I am having an unusual problem when trying to calculate dates in advance
from a start date. the code below shows a loop where by on each run an
increasing number of weeks is added to the start date, this works as
expected up untill the 8th time where for some reason it produces
01-11-05 instead of 02-11-05. I am at a loss as to why this would happen
when it works perfectly for all the other dates. where am i going wrong?
[snip]
<?php
echo"<h1> date test</h1>";
$start = "05-09-07";
$start = explode('-',$start);
$startmk = mktime(0,0,0,$start[1],$start[2],$start[0]);
$startdate = date('d-m-y',$startmk);
for($i=0;$i<10;$i++){
$nextdate = date('d-m-y',$startmk + ($i*604800));
echo"<h1>$i: $startdate -- -- --$nextdate</h1>"; }
?>
OUTPUT:
0: 07-09-05 -- -- --07-09-05
1: 07-09-05 -- -- --14-09-05
2: 07-09-05 -- -- --21-09-05
3: 07-09-05 -- -- --28-09-05
4: 07-09-05 -- -- --05-10-05
5: 07-09-05 -- -- --12-10-05
6: 07-09-05 -- -- --19-10-05
7: 07-09-05 -- -- --26-10-05
8: 07-09-05 -- -- --01-11-05
9: 07-09-05 -- -- --08-11-05
[/snip]
Thanks a lot
Ade
--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
attached mail follows:
Adrian Bruce wrote:
> Hi
>
> I am having an unusual problem when trying to calculate dates in advance
> from a start date. the code below shows a loop where by on each run an
> increasing number of weeks is added to the start date, this works as
> expected up untill the 8th time where for some reason it produces
> 01-11-05 instead of 02-11-05. I am at a loss as to why this would
> happen when it works perfectly for all the other dates. where am i
> going wrong?
>
> [snip]
>
> <?php
> echo"<h1> date test</h1>";
> $start = "05-09-07";
> $start = explode('-',$start);
> $startmk = mktime(0,0,0,$start[1],$start[2],$start[0]);
> $startdate = date('d-m-y',$startmk);
>
> for($i=0;$i<10;$i++){
> $nextdate = date('d-m-y',$startmk + ($i*604800));
> echo"<h1>$i: $startdate -- -- --$nextdate</h1>";
> }
> ?>
>
> OUTPUT:
>
> 0: 07-09-05 -- -- --07-09-05
> 1: 07-09-05 -- -- --14-09-05
> 2: 07-09-05 -- -- --21-09-05
> 3: 07-09-05 -- -- --28-09-05
> 4: 07-09-05 -- -- --05-10-05
> 5: 07-09-05 -- -- --12-10-05
> 6: 07-09-05 -- -- --19-10-05
> 7: 07-09-05 -- -- --26-10-05
> 8: 07-09-05 -- -- --01-11-05
> 9: 07-09-05 -- -- --08-11-05
>
> [/snip]
>
> Thanks a lot
>
> Ade
Does daylight saving start or finish in that range of dates? If so, using 0
as the hour argument to mktime may give you the odd result you are seeing.
Try say 2 as the hour argument and see what happens .
Cheers
--
David Robley
The guy who writes all those bumper stickers HATES New York.
Today is Prickle-Prickle, the 16th day of Discord in the YOLD 3172.
attached mail follows:
[snip]
You're welcome. As this list gets to know me, I think you'll find I
have a slightly different, and often humorous, perspective on
everything. As Oscar Wilde once said "Life is far too important to be
taken seriously."
[/snip]
He also said that life was to short to dance with ugly women, or was
that Will Rogers?
attached mail follows:
On Mar 29, 2006, at 10:39 AM, Jay Blanchard wrote:
>> [snip]
>> You're welcome. As this list gets to know me, I think you'll find I
>> have a slightly different, and often humorous, perspective on
>> everything. As Oscar Wilde once said "Life is far too important to be
>> taken seriously."
>> [/snip]
>
> He also said that life was to short to dance with ugly women, or was
> that Will Rogers?
I think that was Mr. Rogers (Neighborhood).....
attached mail follows:
Jay Blanchard wrote:
> [snip]
> You're welcome. As this list gets to know me, I think you'll find I
> have a slightly different, and often humorous, perspective on
> everything. As Oscar Wilde once said "Life is far too important to be
> taken seriously."
> [/snip]
>
> He also said that life was to short to dance with ugly women, or was
> that Will Rogers?
I thought it was, "Life was too ugly to dance with short women."
--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
jnichel
dotcomholdingsofbuffalo.com
attached mail follows:
At 10:39 AM -0600 3/29/06, Jay Blanchard wrote:
>[snip]
>You're welcome. As this list gets to know me, I think you'll find I
>have a slightly different, and often humorous, perspective on
>everything. As Oscar Wilde once said "Life is far too important to be
>taken seriously."
>[/snip]
>
>He also said that life was to short to dance with ugly women, or was
>that Will Rogers?
I don't know if it was Will Rogers, but Wilde didn't care for women,
ugly or otherwise.
tedd
--
--------------------------------------------------------------------------------
http://sperling.com
attached mail follows:
Hello there,
I am searching for ways to create a white label solution out of my php webapp.
Now I am pretty new to that topic. Is there an "easy" solution within php?
My first try would be to create XML output via PHP and then on the other server
install an xml parser which creates the html code.
I would be happy if someone could post some helpful links or info which get me
started in that topic.
Thank you in advance,
Merlin
attached mail follows:
On Wed, March 29, 2006 10:52 am, Merlin wrote:
> I am searching for ways to create a white label solution out of my php
> webapp.
> Now I am pretty new to that topic. Is there an "easy" solution within
> php?
> My first try would be to create XML output via PHP and then on the
> other server
> install an xml parser which creates the html code.
>
> I would be happy if someone could post some helpful links or info
> which get me
> started in that topic.
http://php.net/xml
--
Like Music?
http://l-i-e.com/artists.htm
attached mail follows:
[snip]
I am searching for ways to create a white label solution out of my php
webapp.
Now I am pretty new to that topic. Is there an "easy" solution within
php?
My first try would be to create XML output via PHP and then on the other
server
install an xml parser which creates the html code.
I would be happy if someone could post some helpful links or info which
get me
started in that topic.
[/snip]
What you talkin' 'bout Willis? There are so many uses for a 'white label
solution' that this is too vague.
attached mail follows:
Richard Lynch schrieb:
> On Wed, March 29, 2006 10:52 am, Merlin wrote:
>> I am searching for ways to create a white label solution out of my php
>> webapp.
>> Now I am pretty new to that topic. Is there an "easy" solution within
>> php?
>> My first try would be to create XML output via PHP and then on the
>> other server
>> install an xml parser which creates the html code.
>>
>> I would be happy if someone could post some helpful links or info
>> which get me
>> started in that topic.
>
> http://php.net/xml
>
Hi,
would you consider this book as a good starter?
http://www.amazon.de/exec/obidos/ASIN/097524020X/qid%3D1143653338/028-9391931-9087712
or rather this one:
http://www.amazon.de/exec/obidos/ASIN/3935042507/ref=pd_ecc_rvi_1/028-9391931-9087712
Merlin
attached mail follows:
At 12:58 PM +0200 3/29/06, Jochem Maas wrote:
>Gregory Machin wrote:
>>Hi
>>I have a site that changes the backround pic after login both have different
>>names..
>>it work perfect in firefox and epiphany , but not IE , it loads the login
>>page with the
>>backround that's only suposed to be displayed after login ..
>>If I download the 2 picks manual they both work fine ...
>>Both pics have different name ..
>>I'm lost any ideas ..
>
>use 2 stylesheets. and switch between them?
>
>(doesn't sound much like a php question btw ;-)
Could be -- see:
http://www.sperling.com/examples/styleswitch/
tedd
--
--------------------------------------------------------------------------------
http://sperling.com
attached mail follows:
Hi,
I'm trying to get XSLT support on PHP, but i'm not able :(
I've compiled Sablotron 1.0.2 successfully and compiled PHP 5.1.2 with
--enable-xslt \
--with-xslt-sablot
I get no errors and PHP works fine, but i get no XSLT support (confirmed
via phpinfo()).
Any ideas ?
Any help would be apreciated.
Warm Regards,
MA
attached mail follows:
obvious one, but did you restart apache?
On 3/29/06, MARG <lists
tuxdoit.com> wrote:
> Hi,
>
> I'm trying to get XSLT support on PHP, but i'm not able :(
>
> I've compiled Sablotron 1.0.2 successfully and compiled PHP 5.1.2 with
> --enable-xslt \
> --with-xslt-sablot
>
> I get no errors and PHP works fine, but i get no XSLT support (confirmed
> via phpinfo()).
>
> Any ideas ?
>
> Any help would be apreciated.
>
> Warm Regards,
> MA
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--
Anthony Ettinger
Signature: http://chovy.dyndns.org/hcard.html
attached mail follows:
Anthony Ettinger wrote:
> obvious one, but did you restart apache?
Sure :)
-- AM
>
> On 3/29/06, MARG <lists
tuxdoit.com> wrote:
>
>>Hi,
>>
>>I'm trying to get XSLT support on PHP, but i'm not able :(
>>
>>I've compiled Sablotron 1.0.2 successfully and compiled PHP 5.1.2 with
>>--enable-xslt \
>>--with-xslt-sablot
>>
>>I get no errors and PHP works fine, but i get no XSLT support (confirmed
>>via phpinfo()).
>>
>>Any ideas ?
>>
>>Any help would be apreciated.
>>
>>Warm Regards,
>>MA
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>
>
>
> --
> Anthony Ettinger
> Signature: http://chovy.dyndns.org/hcard.html
attached mail follows:
Is there a substitute function for arraymap that one can use on ojbects?
Mark
attached mail follows:
Message-ID: <442ADED2.2040305
iamjochem.com>
Date: Wed, 29 Mar 2006 21:24:02 +0200
From: Jochem Maas <jochem
iamjochem.com>
MIME-Version: 1.0
To: Mark Steudel <mark
netriver.net>
Cc: php-general
lists.php.net
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: [PHP] ojbect substitute for array map?
Mark Steudel wrote:
> Is there a substitute function for arraymap that one can use on ojbects?
no. what are you wanting to do exactly?
>
> Mark
>
attached mail follows:
Hello,
is it possible to write a one-liner like this:
$uppercase = array("ONE", "TWO");
array_walk($uppercase, "strtolower");
print_r($uppercase);
I don't want to do a foreach-loop on each element, putting the lowercase
in a new array and returning this. Is there a nicer way?
Regards
Marten
attached mail follows:
Yes, it is possible. You just need a slight modification to your code.
Try this:
[code]
$uppercase = array("ONE", "TWO");
$uppercase = array_map("strtolower", $uppercase);
print_r($uppercase);
[/code]
Shaunak Kashyap
Senior Web Developer
WPT Enterprises, Inc.
5700 Wilshire Blvd., Suite 350
Los Angeles, CA 90036
Direct: 323.330.9870
Main: 323.330.9900
www.worldpokertour.com
Confidentiality Notice: This e-mail transmission (and/or the
attachments accompanying) it may contain confidential information
belonging to the sender which is protected. The information is intended
only for the use of the intended recipient. If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or taking of any action in reliance on the contents of this
information is prohibited. If you have received this transmission in
error, please notify the sender by reply e-mail and destroy all copies
of this transmission.
> -----Original Message-----
> From: Marten Lehmann [mailto:lehmann
cnm.de]
> Sent: Wednesday, March 29, 2006 9:36 AM
> To: php-general
lists.php.net
> Subject: [PHP] one-liner with strtolower and array_walk()?
>
> Hello,
>
> is it possible to write a one-liner like this:
>
> $uppercase = array("ONE", "TWO");
> array_walk($uppercase, "strtolower");
> print_r($uppercase);
>
> I don't want to do a foreach-loop on each element, putting the
lowercase
> in a new array and returning this. Is there a nicer way?
>
> Regards
> Marten
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
It seems something is not working so well here:
$extra_curl_params = array ('CURLOPT_POST'=>TRUE);
foreach ($extra_curl_params as $curl_opt_name=>$curl_opt_value) {
curl_setopt ($curl_handle, $curl_opt_name, $curl_opt_value);
}
I use this "foreach" method to set up curl options and actually
curl_setopt function does not complaint about it. But some or all of the
options set seems not to be properly working when curl actually make the
connection.
Anyone could help?
attached mail follows:
Ave,
I¹ve run into a slight problem. We maintain a Guestbook for our company¹s
website. Lately we have been getting a lot of ³Spam² entries into the
Guestbook.
I added a snippet into the PHP Script & a field in the mySQL database to
record the IP Address of posters. However, for the SPAM posts, it records
³Null² instead of an IP Address. I¹m using $REMOTE_ADDR to records the IP.
It records IP Addresses of any genuine poster... But NULL for the spam
poster.
What else can I do to block the SPAM entry? Is there some other Unique
Identifier that I can record of the Spam poster and then block him?
Thanks,
Rahul S. Johari
Coordinator, Internet & Administration
Informed Marketing Services Inc.
500 Federal Street, Suite 201
Troy NY 12180
Tel: (518) 687-6700 x154
Fax: (518) 687-6799
Email: rahul
informed-sources.com
http://www.informed-sources.com
attached mail follows:
Message-ID: <FEE5CF83F4D3D511860100B0D02204BBD08B53
NRBEXCHANGE-NT>
From: Jim Moseby <JMoseby
nrbindustries.com>
To: "'Rahul S. Johari'" <rjohari
nycap.rr.com>, PHP
<php-general
lists.php.net>
Date: Wed, 29 Mar 2006 15:26:48 -0500
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [PHP] IP Address Filtering
> I¹ve run into a slight problem. We maintain a Guestbook for
> our company¹s
> website. Lately we have been getting a lot of ³Spam² entries into the
> Guestbook.
>
> I added a snippet into the PHP Script & a field in the mySQL
> database to
> record the IP Address of posters. However, for the SPAM
> posts, it records
> ³Null² instead of an IP Address. I¹m using $REMOTE_ADDR to
> records the IP.
> It records IP Addresses of any genuine poster... But NULL for the spam
> poster.
>
> What else can I do to block the SPAM entry? Is there some other Unique
> Identifier that I can record of the Spam poster and then block him?
How about block any poster that does not report a valid $REMOTE_ADDR?
JM
attached mail follows:
if you really want to mess with them.. only show the user with the
NULL IP address all the spam posts.. .make them think that they've
been successful
On 3/29/06, Rahul S. Johari <rjohari
nycap.rr.com> wrote:
>
> Ave,
>
> I¹ve run into a slight problem. We maintain a Guestbook for our company¹s
> website. Lately we have been getting a lot of ³Spam² entries into the
> Guestbook.
>
> I added a snippet into the PHP Script & a field in the mySQL database to
> record the IP Address of posters. However, for the SPAM posts, it records
> ³Null² instead of an IP Address. I¹m using $REMOTE_ADDR to records the IP.
> It records IP Addresses of any genuine poster... But NULL for the spam
> poster.
>
> What else can I do to block the SPAM entry? Is there some other Unique
> Identifier that I can record of the Spam poster and then block him?
>
> Thanks,
>
> Rahul S. Johari
> Coordinator, Internet & Administration
> Informed Marketing Services Inc.
> 500 Federal Street, Suite 201
> Troy NY 12180
>
> Tel: (518) 687-6700 x154
> Fax: (518) 687-6799
> Email: rahul
informed-sources.com
> http://www.informed-sources.com
>
>
>
--
Joe Harman
---------
* My programs never have bugs, they just develop random features.
attached mail follows:
Joe Harman wrote:
>if you really want to mess with them.. only show the user with the
>NULL IP address all the spam posts.. .make them think that they've
>been successful
>
>
Freaking hilarious idea!!
Remind me not to let my kids play with yours. :-D
Of course, there's probably not any Real People(tm)
behind these addys.
Kevin Kinsey
--
Sentient plasmoids are a gas.
attached mail follows:
Good thing I don't have kids!
On 3/29/06, Kevin Kinsey <kdk
daleco.biz> wrote:
> Joe Harman wrote:
>
> >if you really want to mess with them.. only show the user with the
> >NULL IP address all the spam posts.. .make them think that they've
> >been successful
> >
> >
> Freaking hilarious idea!!
>
> Remind me not to let my kids play with yours. :-D
>
>
> Of course, there's probably not any Real People(tm)
> behind these addys.
>
> Kevin Kinsey
>
> --
> Sentient plasmoids are a gas.
>
>
>
--
Joe Harman
---------
* My programs never have bugs, they just develop random features.
attached mail follows:
Let me try this again. I want to take an array that may look like this
array(2) {
[0]=>
array(8) {
["line"]=>
string(1) "1"
["ponbr"]=>
string(5) "TEST1"
["emt"]=>
string(3) "yes"
["qty"]=>
string(1) "5"
["price"]=>
string(2) "19"
["shipdate"]=>
string(8) "12/04/06"
["tracking"]=>
string(9) "123123123"
["approved"]=>
string(4) "true"
}
[1]=>
array(8) {
["line"]=>
string(1) "2"
["ponbr"]=>
string(5) "TEST1"
["emt"]=>
string(3) "yes"
["qty"]=>
string(1) "5"
["price"]=>
string(2) "12"
["shipdate"]=>
string(8) "12/04/06"
["tracking"]=>
string(12) "123123123123"
["approved"]=>
string(4) "true"
}
}
if array['ponbr'] has the same value for all the arrays I want to
merge then to get. Hope this make sense, I appreciate any input you
can give me to do this efficiently.
array(1) {
array(8) {
["line"]=>
string(1) "1"
["ponbr"]=>
string(5) "TEST1"
["emt"]=>
string(3) "yes"
["qty"]=>
string(1) "5"
["price"]=>
string(2) "19"
["shipdate"]=>
string(8) "12/04/06"
["tracking"]=>
string(9) "123123123"
["approved"]=>
string(4) "true"
["line"]=>
string(1) "2"
["emt"]=>
string(3) "yes"
["qty"]=>
string(1) "5"
["price"]=>
string(2) "12"
["shipdate"]=>
string(8) "12/04/06"
["tracking"]=>
string(12) "123123123123"
["approved"]=>
string(4) "true"
}
}
Thanks,
cybm
attached mail follows:
Message-ID: <001401c65307$7d655ff0$253656ca
mel.au.office.freshtel.net>
From: "Richard U" <richard.udovich
freshtel.net>
To: <php-general
lists.php.net>
Date: Wed, 29 Mar 2006 18:04:37 +1000
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0011_01C6535B.3DC3A880"
Subject: Object oriented design
------=_NextPart_000_0011_01C6535B.3DC3A880
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
from a design perspective... which class over here should have the sql to search, update, add and remove groups? source... http://www.codedemons.net/pb/?show=4920
------=_NextPart_000_0011_01C6535B.3DC3A880--
attached mail follows:
please consider that my comments could start some kind
of OO holywar, you have been warned ;-)
Richard U wrote:
> from a design perspective... which class over here should have the sql to search, update, add and remove groups? source... http://www.codedemons.net/pb/?show=4920
none of them - they are all abstract! once you get into writing SQL (or writing code that generates it) your in
implementation terratory - which means the code belongs in a subclass of GenericUser (or GenericGroup, depending on
whether your modelling a group or user)
with regard to the Manager object [concept] (I notice there wasn't one for Users) - I don't like them,
It feels like an unnatural split of responsibility, I feel the delete() and add() methods should
be non-static member funcs of the GenericGroup class (in the case of 'groups'), and that the rest of the
find/search/get/getAll type of functions should be static members of that class.
coming back to the delete() method; you can only delete an 'entity' exists ... so doing
something like:
GroupManager::delete( $groupId );
or
$gm = new GroupManager();
$gm->delete( $groupId );
is a bit wrong [IMHO] because the group with id $groupId may not even exist to begin with,
rather I would advocate something like (I'm assuming you understand Exceptions in order
to given the concept the necessary context - that is to say I don't feel you can make this
work cleanly with proper use of exceptions):
try {
Group::get( $groupId )->delete();
}
catch (UnknownObject $e) {
// group doesn't even exist (someone trying to hack our script?)
}
catch (FailedDeletion $f) {
// database didn't allow our deletion (some kind of constraint in place?)
}
catch (DBError $f) {
// general database problem
}
actually It seems that there is a good candidate for create a base abstract class that both
GenericUser and GenericGroup ... something like:
abstract class DataObject
{
abstract static public function get($keys);
abstract static public function getAll();
abstract static public function find($searchCriteria);
abstract public function add();
abstract public function update();
abstract public function delete();
}
---------
oh and if I were you I kep an eye on the ZendFramework, if only to see how they are
tackling these generic-data-object problems.
attached mail follows:
Can someone explain something to me:
<script language="php">
$string = "Bob's carwash's door";
echo 'addslashes(): ' . addslashes( $string ) . '<br>';
echo 'mysql_escape_string(): ' . mysql_escape_string( $string ) . '<br>';
</script>
Outputs:
addslashes(): Bob''s carwash''s door
mysql_escape_string(): Bob\'s carwash\'s door
According to the documentation
(http://us2.php.net/manual/en/function.addslashes.php), addslashes() should
be doing exactly what mysql_escape_string is doing above (namely, add
backslashes in front of each apostrophe). However, it's merely adding an
additional apostrophe. Why?
I'm running 4.3.11 on Windows NT 5.2 build 3790.
thnx,
Chris
attached mail follows:
From http://php.net/addslashes :
"Having the PHP directive magic_quotes_sybase set to on will mean ' is
instead escaped with another '."
Jasper
Chris Boget wrote:
> Can someone explain something to me:
>
> <script language="php">
> $string = "Bob's carwash's door";
> echo 'addslashes(): ' . addslashes( $string ) . '<br>';
> echo 'mysql_escape_string(): ' . mysql_escape_string( $string ) . '<br>';
> </script>
>
> Outputs:
>
> addslashes(): Bob''s carwash''s door
> mysql_escape_string(): Bob\'s carwash\'s door
>
> According to the documentation
> (http://us2.php.net/manual/en/function.addslashes.php), addslashes()
> should be doing exactly what mysql_escape_string is doing above (namely,
> add backslashes in front of each apostrophe). However, it's merely
> adding an additional apostrophe. Why?
>
> I'm running 4.3.11 on Windows NT 5.2 build 3790.
>
> thnx,
> Chris
attached mail follows:
I totally blew past that part with the sybase because we aren't using
sybase. I guess I should have paid more attention. I'm curious why that
directive affects general PHP code and not just the sybase functions.
Oh, well.
Thanks for the heads up.
thnx,
Chris
----- Original Message -----
From: "Jasper Bryant-Greene" <jasper
album.co.nz>
To: "Chris Boget" <chris.boget
wild.net>
Cc: "PHP General" <php-general
lists.php.net>
Sent: Wednesday, March 29, 2006 5:29 PM
Subject: Re: [PHP] addslashes()
> From http://php.net/addslashes :
>
> "Having the PHP directive magic_quotes_sybase set to on will mean ' is
> instead escaped with another '."
>
> Jasper
>
> Chris Boget wrote:
>> Can someone explain something to me:
>>
>> <script language="php">
>> $string = "Bob's carwash's door";
>> echo 'addslashes(): ' . addslashes( $string ) . '<br>';
>> echo 'mysql_escape_string(): ' . mysql_escape_string( $string ) .
>> '<br>';
>> </script>
>>
>> Outputs:
>>
>> addslashes(): Bob''s carwash''s door
>> mysql_escape_string(): Bob\'s carwash\'s door
>>
>> According to the documentation
>> (http://us2.php.net/manual/en/function.addslashes.php), addslashes()
>> should be doing exactly what mysql_escape_string is doing above (namely,
>> add backslashes in front of each apostrophe). However, it's merely
>> adding an additional apostrophe. Why?
>>
>> I'm running 4.3.11 on Windows NT 5.2 build 3790.
>>
>> thnx,
>> Chris
>
attached mail follows:
Hi all,
While testing with PHP 5.0.4 (old, but should be good enough for testing
purposes), I noticed that --enable-force-cgi-redirect did not do his job,
and several people responded to the documentation that it is not
supported anymore, however, if I look at the archives it is still very
well supported on first sight.
Is there anyone that can comment on this? I think the provided
mod_rewrite workaround is a bit of ... ya know. In the current
situation, the script starting the PHP interpreter, is interpreted
itself, and thus displaying it's source (or part of it).
It scares me to put this (with or without that workaround) in a
production area without knowing *WHAT* support on it is still being
done, to be honest, it scares me this very moment.
The system I'm testing on FreeBSD 6.0-RELEASE.
Please CC me as I'm not subscribed to the list.
Kind regards,
Jimmy Scott
--
People usually get what's coming to them ... unless it's been mailed.
attached mail follows:
Dear All:
----------------------------------------------------------------------------
----------------------------------------------------------------------------
-----------------
Àý×ÓA£¨Ê¹ÓÃHTML TAG£©
<Form Enctype="multipart/form-data" Action="_URL_" Method="POST">
<Input Type="hidden" Name="MAX_FILE_SIZE" Value="1000">
Send this file:
<Input Name="userfile" Type="file">
<Input Type="submit" Value="Send File">
</From>