|
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-help
lists.php.net
Date: Thu May 31 2007 - 16:51:18 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 31 May 2007 21:51:18 -0000 Issue 4822
Topics (messages 255898 through 255936):
Re: local v remote
255898 by: Darren Whitlen
255903 by: Robin Vickery
255904 by: Jared Farrish
255907 by: M. Sokolewicz
Re: uploading really big files
255899 by: Angelo Zanetti
255900 by: Angelo Zanetti
255901 by: Dimiter Ivanov
Removing PHPSESSID - CGI Install
255902 by: Shaun
Re: preg_match() returns false but no documentation why
255905 by: Jared Farrish
file_get_contents and https
255906 by: Bob Hanson
255908 by: Jay Blanchard
255909 by: Bob Hanson
255910 by: Stut
255911 by: David Giragosian
255915 by: Bob Hanson
Re: find (matching) person in other table
255912 by: Afan Pasalic
255913 by: David Giragosian
255914 by: Afan Pasalic
How do YOU initialize the form variables?
255916 by: info.phpyellow.com
255922 by: Robert Cummings
255936 by: Richard Lynch
500 server error
255917 by: blueboy
255926 by: Stut
255927 by: Daniel Brown
255935 by: Richard Lynch
Attempting to search a MySQL database from PHP not working
255918 by: Jason Pruim
255919 by: Davi
255920 by: Robert Cummings
255921 by: Dave Goodchild
255923 by: Jason Pruim
255925 by: Davi
255934 by: Richard Lynch
Re: ini_set() security question
255924 by: Samuel Vogel
255933 by: Richard Lynch
Error logging
255928 by: Clark Alexander
255929 by: Jochem Maas
255930 by: Clark Alexander
255931 by: Clark Alexander
255932 by: Richard Lynch
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:
blueboy wrote:
> On my localhost this works fine
>
> $result= mysql_query("SELECT date_format(date, '%d/%m/%Y') as date, title,
> id, display FROM NEWS");
> while ($row = mysql_fetch_assoc($result)) {
>
> but on my remote i get a mysql_fetch_assoc(): supplied argument is not a
> valid MySQL result resource
>
> Can someone expalin the problem? PHP version problem?
No. It's MySQL problem.
If it works fine locally, then make sure the table structure is the same
on your remote database as it is on your local database.
---
mysql_query("SELECT date_format(date, '%d/%m/%Y') as date, title,
id, display FROM NEWS") or die(mysql_error());
---
Using that die statement will also help while debugging your script as
it will print out any errors that are caused by your SQL statement.
Which you then ask some mysql people if that is the case.
Darren
attached mail follows:
On 31/05/07, blueboy <ross
aztechost.com> wrote:
> On my localhost this works fine
>
> $result= mysql_query("SELECT date_format(date, '%d/%m/%Y') as date, title, id, display FROM NEWS");
1. check return values, $result should not be false unless there's a problem.
2. if $result is false, check mysql_error() it'll tell you more about
what's gone wrong.
for example:
$result = mysql_query($query) or die(mysql_error());
-robin
attached mail follows:
> On my localhost this works fine
>
> $result= mysql_query("SELECT date_format(date, '%d/%m/%Y') as date, title,
> id, display FROM NEWS");
> while ($row = mysql_fetch_assoc($result)) {
>
> but on my remote i get a mysql_fetch_assoc(): supplied argument is not a
> valid MySQL result resource
>
> Can someone expalin the problem? PHP version problem?
Check your connection resource, as I think it's referring to the optional
second variable for mysql_query($sql, $resource).
How are you connecting? I assume if you're on your local machine, you're
probably connecting to a locally-hosted mysql installation.
Are you using the same connection string when you upload? Are you even
providing one (even a background, default connection)?
You should also always try to pass the resource to the mysql_query function
(in most but not all cases). By not passing it, you're telling PHP to use
any valid open connection it currently has associated with the script that
is running:
// Let's first get a connection to the database
$link_identifier = mysql_connect('localhost', 'mysql_user',
'mysql_password');
// Next, look at the second, *optional* $link_identifier
// This tells PHP which connection to use to perform the query
// And also tells it what connection to use to get the result
resource mysql_query ( string $query [, resource $link_identifier] )
If you don't provide the $link_identifier as a valid connection resource,
and there's none in the background already connected, you get an invalid
resource response like you received.
To test, you can
<code>
$result= mysql_query("SELECT date_format(date, '%d/%m/%Y') as date, title,
id, display FROM NEWS");
echo '<p>Test: before query</p>'
while ($row = mysql_fetch_assoc($result)) {
// Do stuff
}
</code>
Where you get the error output will clue you in to which function is causing
the error (_query() or _fetch())?
To check if a resource has connected, you can check the resource by type:
if (is_resource($link_identifier) === true) {
// Do database stuff that needs a connection
}
IMPORTANT: Do not use mysql_pconnect() without first reading about it:
- http://us2.php.net/manual/en/features.persistent-connections.php
- http://us2.php.net/manual/en/function.mysql-connect.php
- http://us2.php.net/manual/en/function.mysql-query.php
- http://us2.php.net/manual/en/function.is-resource.php
--
Jared Farrish
Intermediate Web Developer
Denton, Tx
Abraham Maslow: "If the only tool you have is a hammer, you tend to see
every problem as a nail." $$
attached mail follows:
Jared Farrish wrote:
Jared Farrish wrote:
>> On my localhost this works fine
>>
>> $result= mysql_query("SELECT date_format(date, '%d/%m/%Y') as date,
>> title,
>
>> id, display FROM NEWS");
>> while ($row = mysql_fetch_assoc($result)) {
>>
>> but on my remote i get a mysql_fetch_assoc(): supplied argument is not a
>> valid MySQL result resource
>>
>> Can someone expalin the problem? PHP version problem?
>
> Check your connection resource, as I think it's referring to the optional
> second variable for mysql_query($sql, $resource).
>
> How are you connecting? I assume if you're on your local machine, you're
> probably connecting to a locally-hosted mysql installation.
>
> Are you using the same connection string when you upload? Are you even
> providing one (even a background, default connection)?
>
> You should also always try to pass the resource to the mysql_query function
> (in most but not all cases). By not passing it, you're telling PHP to use
> any valid open connection it currently has associated with the script that
> is running:
>
> // Let's first get a connection to the database
> $link_identifier = mysql_connect('localhost', 'mysql_user',
> 'mysql_password');
>
> // Next, look at the second, *optional* $link_identifier
> // This tells PHP which connection to use to perform the query
> // And also tells it what connection to use to get the result
> resource mysql_query ( string $query [, resource $link_identifier] )
>
> If you don't provide the $link_identifier as a valid connection resource,
> and there's none in the background already connected, you get an invalid
> resource response like you received.
>
> To test, you can
>
> <code>
> $result= mysql_query("SELECT date_format(date, '%d/%m/%Y') as date, title,
> id, display FROM NEWS");
> echo '<p>Test: before query</p>'
> while ($row = mysql_fetch_assoc($result)) {
> // Do stuff
> }
> </code>
>
> Where you get the error output will clue you in to which function is
> causing
> the error (_query() or _fetch())?
>
> To check if a resource has connected, you can check the resource by type:
>
> if (is_resource($link_identifier) === true) {
> // Do database stuff that needs a connection
> }
>
> IMPORTANT: Do not use mysql_pconnect() without first reading about it:
>
> - http://us2.php.net/manual/en/features.persistent-connections.php
>
> - http://us2.php.net/manual/en/function.mysql-connect.php
> - http://us2.php.net/manual/en/function.mysql-query.php
> - http://us2.php.net/manual/en/function.is-resource.php
>
>> On my localhost this works fine
>>
>> $result= mysql_query("SELECT date_format(date, '%d/%m/%Y') as date,
>> title,
>
>> id, display FROM NEWS");
>> while ($row = mysql_fetch_assoc($result)) {
>>
>> but on my remote i get a mysql_fetch_assoc(): supplied argument is not a
>> valid MySQL result resource
>>
>> Can someone expalin the problem? PHP version problem?
>
> Check your connection resource, as I think it's referring to the optional
> second variable for mysql_query($sql, $resource).
huh? what?
It does say "not a valid _mysql result resource_" right? This is just
one of those cases where $result is not a _mysql result resource_ but
something else (usually the boolean false value). As many people already
pointed out, mysql_error() will explain why mysql_query returned false.
>
> How are you connecting? I assume if you're on your local machine, you're
> probably connecting to a locally-hosted mysql installation.
>
> Are you using the same connection string when you upload? Are you even
> providing one (even a background, default connection)?
>
> You should also always try to pass the resource to the mysql_query function
> (in most but not all cases). By not passing it, you're telling PHP to use
> any valid open connection it currently has associated with the script that
> is running:
>
> // Let's first get a connection to the database
> $link_identifier = mysql_connect('localhost', 'mysql_user',
> 'mysql_password');
>
> // Next, look at the second, *optional* $link_identifier
> // This tells PHP which connection to use to perform the query
> // And also tells it what connection to use to get the result
> resource mysql_query ( string $query [, resource $link_identifier] )
>
> If you don't provide the $link_identifier as a valid connection resource,
> and there's none in the background already connected, you get an invalid
> resource response like you received.
In case you didn't know, 99% of code on this planet using mysql_query
does not supply the secondary argument as most code-bases don't use > 1
connection in the same script.
>
> To test, you can
>
> <code>
> $result= mysql_query("SELECT date_format(date, '%d/%m/%Y') as date, title,
> id, display FROM NEWS");
> echo '<p>Test: before query</p>'
> while ($row = mysql_fetch_assoc($result)) {
> // Do stuff
> }
> </code>
>
> Where you get the error output will clue you in to which function is
> causing
> the error (_query() or _fetch())?
it's the mysql_fetch_assoc which spits out an error as per the error
message:
"mysql_fetch_assoc(): supplied argument is not a
valid MySQL result resource"
>
> To check if a resource has connected, you can check the resource by type:
>
> if (is_resource($link_identifier) === true) {
> // Do database stuff that needs a connection
> }
>
> IMPORTANT: Do not use mysql_pconnect() without first reading about it:
>
> - http://us2.php.net/manual/en/features.persistent-connections.php
>
> - http://us2.php.net/manual/en/function.mysql-connect.php
> - http://us2.php.net/manual/en/function.mysql-query.php
> - http://us2.php.net/manual/en/function.is-resource.php
Please, if you have little experience with the mysql functions, first
check if what you're saying actually holds true. Your advice is sound
and shows you have thought about it well, but your initial assesment of
the cause of the OP's problem is unfortunately incorrect.
Note to the OP: Jared has pointed out many good points in his long post,
though it won't help you resolve your problem, you would be wise to read
it as it will help you code better :)
- Tul
P.S. This is meant as a fyi, I did not mean to bitch on anyone.
attached mail follows:
Richard Lynch wrote:
> On Wed, May 30, 2007 8:47 am, Angelo Zanetti wrote:
>
>> We need to develop a system where we can upload really big files. IE
>> 15
>> - 25 Mb.
>>
>
> You're pushing the limit on user patience and browser timeouts...
>
>
>> So I know you can set the limit of the upload thats not a problem, I
>> know a problem that we might experience is that the browser might time
>> out. Is there any way around this?
>>
>
> Nope.
>
> The browser gets tired of waiting around for the upload to complete
> because your server is too slow/busy, and the user has a very bad
> experience.
>
> file upload was grafted onto HTTP rather late in the game, and shows
> the scars badly.
>
>
>> and also are there other problems I
>> might encounter?
>>
>
> Woof.
>
> Yes, there are many problems you might encounter :-)
>
> Users on slow/flaky connectionns will never have a good experience
> with HTTP file upload. Give them FTP or SCP or something that is more
> stable and will re-try.
>
> You also have to consider what users might choose to upload that is
> not what you wanted. There are all kinds of people out there looking
> to upload "interesting" content that you don't actually want, most
> likely.
>
> There is a Flikr book out there that might have some insight for you.
> They obviously dealt with this already, and wrote a whole book all
> about Flikr, so it's probably got something in there covering this.
>
>
thanks for the replies. But how does a site like:
http://www.yousendit.com/ do the upload of really huge files?
Normal upload?
thanks
--
------------------------------------------------------------------------
Angelo Zanetti
Systems developer
------------------------------------------------------------------------
*Telephone:* +27 (021) 469 1052
*Mobile:* +27 (0) 72 441 3355
*Fax:* +27 (0) 86 681 5885
*
Web:* http://www.zlogic.co.za
*E-Mail:* angelo
zlogic.co.za <mailto:angelo
zlogic.co.za>
attached mail follows:
Zoltán Németh wrote:
> 2007. 05. 30, szerda keltezéssel 15.47-kor Angelo Zanetti ezt Ãrta:
>
>> Dear all
>>
>> We need to develop a system where we can upload really big files. IE 15
>> - 25 Mb.
>> So I know you can set the limit of the upload thats not a problem, I
>> know a problem that we might experience is that the browser might time
>> out. Is there any way around this? and also are there other problems I
>> might encounter?
>>
>
> http://www.php.net/manual/en/ref.info.php#ini.max-execution-time
>
>
yes it does!
thanks
cheers
>
>
>
--
attached mail follows:
On 5/30/07, Angelo Zanetti <angelo
zlogic.co.za> wrote:
> Dear all
>
> We need to develop a system where we can upload really big files. IE 15
> - 25 Mb.
> So I know you can set the limit of the upload thats not a problem, I
> know a problem that we might experience is that the browser might time
> out. Is there any way around this? and also are there other problems I
> might encounter?
>
> Thanks in advance
>
> angelo
> --
I've recently followed this example, for a internal use only upload.
It is for ASP but you can easily modify it for PHP.
You may find it useful, but i can't recommend it over ftp:
http://www.codeproject.com/useritems/AJAXUpload.asp
The one of the limitations of this method is that its IE only. And
also you need to made some registry changes in the clients for it to
work, and then it gets ugly.
But hey, take a look ;)
attached mail follows:
Hi,
I have PHP installed as a CGI module on my server. I want to stop PHPSESSID
from appearing in the URL when a users cookies are turned for just one
account. My hosting company says that this is impossible - they would have
to change php.ini and that would affect every account on the server. Also if
PHP is changed to an Apache module then they won't support it. Is there no
other way around this? Removing PHPSESSID is very important for SEO
purposes...
Thanks for your advice.
attached mail follows:
> Well, sure. It often appears as .* meaning "none or any number of
> any characters." Use it when you honestly don't care what it matches.
This is what I thought it meant. Your example more than clears it up.
> Say you want to find out if the word "frog" occus in a text followed
> by the word "dog." You could match on:
>
> /\bfrog\b(.*\b)?dog\b/i
>
> / pattern delimiter
> \b word boundary
> frog 1st word
> \b word boundary
>
> ( begin subpattern
> .* zero or any characters
> \b word boundary
> ) end subpattern
> ? zero or one instance of the preceding subpattern
>
> dog 2nd word
> \b word boundary
> / pattern delimiter
> i case-insensitive
>
> This guarantees that both words are bounded by word boundaries and
> allows any number of any characters to occur between them. (There's
> sort of an implicit .* before and after the pattern. Because I
> haven't used ^ and $ to define the beginning and end of the text,
> regex looks for my pattern anywhere in the text.)
Very helpful! I still have questions, but a PHP mailing list probably isn't
the best place.
> >And why is it called full stop?
>
> That's what the 'period' is called in British English.
> http://google.ca/search?q=define%3Afull+stop
>
> In English syntax "period" and "full stop" are synonymous, and the
> RegEx manual is throwing "dot" into the same bag.
That's very confusing to call it 'Full Stop' when it doesn't seem to
actually correlate to the regex meaning it identifies, don't you think?
Maybe to a Brit or someone who understands Commonwealth English would know
(I was aware of what it meant in CE, I just woudn't have imagined to apply
it here, since it looks to be descriptive).
Kind've like an elephant trainer calling her elephant's trunk a boot.
--
Jared Farrish
Intermediate Web Developer
Denton, Tx
Abraham Maslow: "If the only tool you have is a hammer, you tend to see
every problem as a nail." $$
attached mail follows:
I am new to PHP; using Apache 2.2 and PHP 5/Windows. I'd like to do this:
$x = file_get_contents("https://user:pw
foo.org")
I get:
Warning: file_get_contents(https://...) [function.file-get-contents]:
failed to open stream: Invalid argument in ... on line...
I think I have the following correct:
1) I have php_openssl.dll present and indicated as an extension in the
ext directory
2) libeay32.dll is on the Windows path
What more do I need to do?
Thanks,
Bob Hanson
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
attached mail follows:
[snip]
I am new to PHP; using Apache 2.2 and PHP 5/Windows. I'd like to do
this:
$x = file_get_contents("https://user:pw
foo.org")
I get:
Warning: file_get_contents(https://...) [function.file-get-contents]:
failed to open stream: Invalid argument in ... on line...
[/snip]
The warning that you get is "Invalid argument..." Have you read
http://us2.php.net/file_get_contents to make sure that you are including
all needed arguments?
attached mail follows:
Thanks, Jay.
I tried it first with a simple "http://" call, and that worked fine. So
unless "https:..." requires something additional in the way of
arguments, that doesn't seem to be the issue.
I'm hoping someone who has done this remembers what special installation
issues there might be. When I look on the web I see lots of discussion,
but it's pretty hard to figure out how much of it is currently
applicable and how much of it is ancient history.
Bob
Jay Blanchard wrote:
>[snip]
>I am new to PHP; using Apache 2.2 and PHP 5/Windows. I'd like to do
>this:
>
>$x = file_get_contents("https://user:pw
foo.org")
>
>I get:
>
>Warning: file_get_contents(https://...) [function.file-get-contents]:
>failed to open stream: Invalid argument in ... on line...
>[/snip]
>
>The warning that you get is "Invalid argument..." Have you read
>http://us2.php.net/file_get_contents to make sure that you are including
>all needed arguments?
>
>
The URL for file_get_contents doesn't give many clues to its use with
https.
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
attached mail follows:
Bob Hanson wrote:
> Thanks, Jay.
>
> I tried it first with a simple "http://" call, and that worked fine. So
> unless "https:..." requires something additional in the way of
> arguments, that doesn't seem to be the issue.
>
> I'm hoping someone who has done this remembers what special installation
> issues there might be. When I look on the web I see lots of discussion,
> but it's pretty hard to figure out how much of it is currently
> applicable and how much of it is ancient history.
Was PHP built with openssl enabled? If not, that's ya problem.
-Stut
> Jay Blanchard wrote:
>
>> [snip]
>> I am new to PHP; using Apache 2.2 and PHP 5/Windows. I'd like to do
>> this:
>>
>> $x = file_get_contents("https://user:pw
foo.org")
>>
>> I get:
>>
>> Warning: file_get_contents(https://...) [function.file-get-contents]:
>> failed to open stream: Invalid argument in ... on line...
>> [/snip]
>>
>> The warning that you get is "Invalid argument..." Have you read
>> http://us2.php.net/file_get_contents to make sure that you are including
>> all needed arguments?
>>
>>
> The URL for file_get_contents doesn't give many clues to its use with
> https.
>
>
attached mail follows:
On 5/31/07, Stut <stuttle
gmail.com> wrote:
>
> Bob Hanson wrote:
> > Thanks, Jay.
> >
> > I tried it first with a simple "http://" call, and that worked fine. So
> > unless "https:..." requires something additional in the way of
> > arguments, that doesn't seem to be the issue.
> >
> > I'm hoping someone who has done this remembers what special installation
> > issues there might be. When I look on the web I see lots of discussion,
> > but it's pretty hard to figure out how much of it is currently
> > applicable and how much of it is ancient history.
>
> Was PHP built with openssl enabled? If not, that's ya problem.
phpinfo() is your friend.
-Stut
>
> > Jay Blanchard wrote:
> >
> >> [snip]
> >> I am new to PHP; using Apache 2.2 and PHP 5/Windows. I'd like to do
> >> this:
> >>
> >> $x = file_get_contents("https://user:pw
foo.org")
> >>
> >> I get:
> >>
> >> Warning: file_get_contents(https://...) [function.file-get-contents]:
> >> failed to open stream: Invalid argument in ... on line...
> >> [/snip]
> >>
> >> The warning that you get is "Invalid argument..." Have you read
> >> http://us2.php.net/file_get_contents to make sure that you are
> including
> >> all needed arguments?
> >>
> >>
> > The URL for file_get_contents doesn't give many clues to its use with
> > https.
David
attached mail follows:
Problem solved. Thank you all very much for such quick responses.
The solution was to get ssleay32.dll from the PHP 5 ZIP distribution and
put in my PHP directory.
For the record:
With Windows and PHP 5 all that is needed to use the https protocol in
file_get_contents is to make sure that both
libeay32.dll
ssleay32.dll
are on the Windows path, which in my case includes the path to my PHP
directory, so I just put them there.
Excellent! Many thanks.
Bob Hanson
attached mail follows:
Jared Farrish wrote:
> On 5/30/07, Afan Pasalic <afan
afan.net> wrote:
> email has to match "in total". sales
abc-comp.com and info
abc-comp.com
>> are NOT the same in my case.
>>
>> thanks jared,
>
> If you can match a person by their email, why not just SELECT by email
> only
> (and return the persons information)?
'cause some members can be added to database by administrator and maybe
they don't have email address at all. or several memebers can use the
same email address (sale
abc-company.com) and then macthing last name is
kind of "required". that's how it works now and can't change it.
> Consider, as well, that each time you're calling a database, you're
> slowing
> down the response of the page. So, while making a bunch of small calls
> might
> not seem like that much, consider:
>
> ||||||| x |||||||
> ||||||| a |||||||
> ||||||| b |||||||
>
> Versus
>
> ||||||| x, a, b |||||||
>
> The letters represent the request/response data (what you're giving to
> get,
> then get back), and the pipes (|) are the overhead to process, send,
> receive
> (on DB), process (on DB), send (on DB), receive, process, return to code.
>
> The overhead and latency used to complete one request makes it a quicker,
> less "heavy" operation. If you did the first a couple hundred or thousand
> times, I would bet your page would drag to a halt while it loads...
agree. now, I have to figure it out HOW? :-)
I was looking at levenshtein, though, I think the richard's solution is
just enough:
select member_id, first_name, last_name, email, ...,
(5*(first_name='$first_name) + 2*(first_name='$first_name')) as score
from members
where score > 0
though, I'm getting error: "Unknown column 'score' in where clause"?!?
thanks jared.
attached mail follows:
On 5/31/07, Afan Pasalic <afan
afan.net> wrote:
>
>
>
> Jared Farrish wrote:
> > On 5/30/07, Afan Pasalic <afan
afan.net> wrote:
> > email has to match "in total". sales
abc-comp.com and info
abc-comp.com
> >> are NOT the same in my case.
> >>
> >> thanks jared,
> >
> > If you can match a person by their email, why not just SELECT by email
> > only
> > (and return the persons information)?
> 'cause some members can be added to database by administrator and maybe
> they don't have email address at all. or several memebers can use the
> same email address (sale
abc-company.com) and then macthing last name is
> kind of "required". that's how it works now and can't change it.
>
> > Consider, as well, that each time you're calling a database, you're
> > slowing
> > down the response of the page. So, while making a bunch of small calls
> > might
> > not seem like that much, consider:
> >
> > ||||||| x |||||||
> > ||||||| a |||||||
> > ||||||| b |||||||
> >
> > Versus
> >
> > ||||||| x, a, b |||||||
> >
> > The letters represent the request/response data (what you're giving to
> > get,
> > then get back), and the pipes (|) are the overhead to process, send,
> > receive
> > (on DB), process (on DB), send (on DB), receive, process, return to
> code.
> >
> > The overhead and latency used to complete one request makes it a
> quicker,
> > less "heavy" operation. If you did the first a couple hundred or
> thousand
> > times, I would bet your page would drag to a halt while it loads...
> agree. now, I have to figure it out HOW? :-)
>
> I was looking at levenshtein, though, I think the richard's solution is
> just enough:
>
> select member_id, first_name, last_name, email, ...,
> (5*(first_name='$first_name) + 2*(first_name='$first_name')) as score
> from members
> where score > 0
>
> though, I'm getting error: "Unknown column 'score' in where clause"?!?
>
> thanks jared.
Try using the keyword 'having' rather than 'where'. You can't use an alias
in a where clause.
David
attached mail follows:
David Giragosian wrote:
> On 5/31/07, Afan Pasalic <afan
afan.net> wrote:
>>
>>
>>
>> Jared Farrish wrote:
>> > On 5/30/07, Afan Pasalic <afan
afan.net> wrote:
>> > email has to match "in total". sales
abc-comp.com and
>> info
abc-comp.com
>> >> are NOT the same in my case.
>> >>
>> >> thanks jared,
>> >
>> > If you can match a person by their email, why not just SELECT by email
>> > only
>> > (and return the persons information)?
>> 'cause some members can be added to database by administrator and maybe
>> they don't have email address at all. or several memebers can use the
>> same email address (sale
abc-company.com) and then macthing last name is
>> kind of "required". that's how it works now and can't change it.
>>
>> > Consider, as well, that each time you're calling a database, you're
>> > slowing
>> > down the response of the page. So, while making a bunch of small calls
>> > might
>> > not seem like that much, consider:
>> >
>> > ||||||| x |||||||
>> > ||||||| a |||||||
>> > ||||||| b |||||||
>> >
>> > Versus
>> >
>> > ||||||| x, a, b |||||||
>> >
>> > The letters represent the request/response data (what you're giving to
>> > get,
>> > then get back), and the pipes (|) are the overhead to process, send,
>> > receive
>> > (on DB), process (on DB), send (on DB), receive, process, return to
>> code.
>> >
>> > The overhead and latency used to complete one request makes it a
>> quicker,
>> > less "heavy" operation. If you did the first a couple hundred or
>> thousand
>> > times, I would bet your page would drag to a halt while it loads...
>> agree. now, I have to figure it out HOW? :-)
>>
>> I was looking at levenshtein, though, I think the richard's solution is
>> just enough:
>>
>> select member_id, first_name, last_name, email, ...,
>> (5*(first_name='$first_name) + 2*(first_name='$first_name')) as score
>> from members
>> where score > 0
>>
>> though, I'm getting error: "Unknown column 'score' in where clause"?!?
>>
>> thanks jared.
>
> Try using the keyword 'having' rather than 'where'. You can't use an
> alias
> in a where clause.
>
> David
Yup. that works! :-)
Thanks David
attached mail follows:
Hello,
If I have an HTML form with input, example:
username
lastname
mobile
.. and so on ...
Example simple initialization:
// POST
$username = $_POST['username'];
$lastname = $_POST['lastname'];
$mobile = $_POST['mobile'];
What is the most popular method for making PHP initialize the many variables on that form? I'm looking to get an understanding of 95% of the possible ways developers are initializing their php variables from a form post. How do YOU initialize the form variables?
If you prefer to post your reply direct to info
phpyellow.com instead of this list, or both, I am happy to receive your comment.
Sincerely,
Rob
http://phpyellow.com
attached mail follows:
On Thu, 2007-05-31 at 10:57 -0700, info
phpyellow.com wrote:
> Hello,
> If I have an HTML form with input, example:
>
> username
> lastname
> mobile
> .. and so on ...
>
> Example simple initialization:
> // POST
> $username = $_POST['username'];
> $lastname = $_POST['lastname'];
> $mobile = $_POST['mobile'];
>
> What is the most popular method for making PHP initialize the many variables on that form? I'm looking to get an understanding of 95% of the possible ways developers are initializing their php variables from a form post. How do YOU initialize the form variables?
I use a form engine. It accepts a default values configuration and does
all the grunt work for me... first time population of form values,
rendering of form elements, application of any registered
pre-process/validation/post-process/finalization handlers which can
apply to individual fields or the entire form itself, repopulation of
form data in the case of an error, etc etc.
The only low level form, work I do is when I add new widgets or extend
an existing widget for a specific project need.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
attached mail follows:
On Thu, May 31, 2007 12:57 pm, info
phpyellow.com wrote:
> username
> lastname
> mobile
> .. and so on ...
>
> Example simple initialization:
> // POST
> $username = $_POST['username'];
> $lastname = $_POST['lastname'];
> $mobile = $_POST['mobile'];
I personally go with:
<?php
$username = isset($_POST['username']) ? $_POST['username'] : '';
$username_html = htmlentities($username);
?>
<input name="username" value="<?php echo $username_html?>" />
I dunno that you want to go with what 95% of people go with -- There's
a LOT of bad scripts out there...
Maybe you should be looking at the best 5% of PHP coders, and see how
they do it instead. :-)
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
attached mail follows:
my .htacces file only contains 2 lines
allowoverride all
php_flag display_errors on
I get a 500 server error, any ideas?
attached mail follows:
blueboy wrote:
> my .htacces file only contains 2 lines
>
> allowoverride all
> php_flag display_errors on
>
> I get a 500 server error, any ideas?
Check the Apache error log - that usually has more information on what's
wrong.
-Stut
attached mail follows:
On 5/29/07, Stut <stuttle
gmail.com> wrote:
> blueboy wrote:
> > my .htacces file only contains 2 lines
> >
> > allowoverride all
> > php_flag display_errors on
> >
> > I get a 500 server error, any ideas?
>
> Check the Apache error log - that usually has more information on what's
> wrong.
>
> -Stut
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Sounds like you have the good ol' fashion "AllowOverride not
allowed here" problem. This is because it's a core directive, which
can only be used in httpd.conf. AllowOverride is actually the
directive used to allow .htaccess files to be read, and what options
can be set. If you were able to add that to the .htaccess file
itself, it would mean that the admin had no control over what could
and could not be done with the server as a whole.
--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107
attached mail follows:
On Thu, May 31, 2007 2:10 pm, blueboy wrote:
> my .htacces file only contains 2 lines
>
> allowoverride all
> php_flag display_errors on
>
>
> I get a 500 server error, any ideas?
Check Apache error_log to be sure, and ask on Apache mailing list...
But I will point out that:
The purpose of AllowOverride in httpd.conf is to define what is
allowed to be over-ridden in .htaccess
If AllowOverride worked in .htaccess, then that gives the power to
decide what to override in .htaccess to the people who can edit
.htaccess.
That makes the whole purpose of AllowOverride moot, as now the end
user can override what they are allowed to override and then override
what they weren't supposed to be able to overrirde in the first place.
Thus, I'm going to go out on a limb here, and without actually reading
Apache docs, nor your error_log file, I will predict that
AllowOverride is not allowed within .htaccess :-)
PS
I don't think AllowOverride has any bearing on php_value or php_flag
at all... But maybe it needs to be set in httpd.conf to have +Options
or somesuch...
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
attached mail follows:
Hi Everyone, I am attempting to setup a search field on a database
application I'm dinking around with and running into problems that
I'm hoping someone might be able to shed some light on.
Here is the code I am using to display the results of the search:
echo ('<table border="1">');
echo "<tr><th>First Name</th><th>Author</th><th>Pages</th></tr>";
$result_row[] = mysql_query($query) or die(mysql_error());
echo "Result_row dump: $result_row <BR>";
$num=mysql_numrows($result);
echo "Num dump: $num <BR>";
$i= 0;
while($i < $num) {
echo "<tr><td>";
echo $result_row[0] . '</td><td>';
echo $result_row[1] . '</td><td>';
echo $result_row[2] . '</td></tr>';
$i++;
}
echo ("</table>");
the problem is instead of printing out the actual results it prints
out 6 fields that say: "Resource id #5"
the query I'm using is: SELECT FName, LName, Add1, Add2 FROM current
WHERE FName like '%jason%' which works in MySQL
I can't find any errors in my log files to even give me a hint as to
what is going on.
If someone could take a look I would greatly appreciate it.
Jason Pruim
attached mail follows:
Em Quinta 31 Maio 2007 16:25, Jason Pruim escreveu:
> Hi Everyone, I am attempting to setup a search field on a database
> application I'm dinking around with and running into problems that
> I'm hoping someone might be able to shed some light on.
>
> Here is the code I am using to display the results of the search:
>
> echo ('<table border="1">');
> echo "<tr><th>First Name</th><th>Author</th><th>Pages</th></tr>";
>
> $result_row[] = mysql_query($query) or die(mysql_error());
> echo "Result_row dump: $result_row <BR>";
> $num=mysql_numrows($result);
> echo "Num dump: $num <BR>";
> $i= 0;
>
/*
> while($i < $num) {
*/
$result=$result_row[0];
while($result_row = mysql_fetch_array($result) {
> echo "<tr><td>";
> echo $result_row[0] . '</td><td>';
> echo $result_row[1] . '</td><td>';
> echo $result_row[2] . '</td></tr>';
> $i++;
> }
>
> echo ("</table>");
>
>
> the problem is instead of printing out the actual results it prints
> out 6 fields that say: "Resource id #5"
>
> the query I'm using is: SELECT FName, LName, Add1, Add2 FROM current
> WHERE FName like '%jason%' which works in MySQL
>
> I can't find any errors in my log files to even give me a hint as to
> what is going on.
>
> If someone could take a look I would greatly appreciate it.
>
HTH
--
Davi Vidal
davividal
siscompar.com.br
davividal
gmail.com
--
"Religion, ideology, resources, land,
spite, love or "just because"...
No matter how pathetic the reason,
it's enough to start a war. "
--------------------------------------------------------
Por favor não faça top-posting, coloque a sua resposta abaixo desta linha.
Please don't do top-posting, put your reply below the following line.
--------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQBGXyGT33UYOg0uzToRAtZwAKDIVc5q2oCCE6Zsf0/COT6ze3jeZgCcDo6o
hy49qkFVYlDrI0a6+UDioYI=
=jlaS
-----END PGP SIGNATURE-----
attached mail follows:
On Thu, 2007-05-31 at 15:25 -0400, Jason Pruim wrote:
> Hi Everyone, I am attempting to setup a search field on a database
> application I'm dinking around with and running into problems that
> I'm hoping someone might be able to shed some light on.
>
> Here is the code I am using to display the results of the search:
>
> echo ('<table border="1">');
> echo "<tr><th>First Name</th><th>Author</th><th>Pages</th></tr>";
>
> $result_row[] = mysql_query($query) or die(mysql_error());
mysql_query() doesn't return the rows. Go read the manual.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
attached mail follows:
Your problem is this:
>
> $result_row[] = mysql_query($query) or die(mysql_error());
...you are assigning a query to a variable. What you need to do is
something like this:
$result = mysql_query($query) or die(mysql_error());
while ($result_row = mysql_fetch_array($result)) {
.....
}
attached mail follows:
On May 31, 2007, at 3:27 PM, Davi wrote:
> Em Quinta 31 Maio 2007 16:25, Jason Pruim escreveu:
>> Hi Everyone, I am attempting to setup a search field on a database
>> application I'm dinking around with and running into problems that
>> I'm hoping someone might be able to shed some light on.
>>
>> Here is the code I am using to display the results of the search:
>>
>> echo ('<table border="1">');
>> echo "<tr><th>First Name</th><th>Author</th><th>Pages</th></tr>";
>>
>> $result_row[] = mysql_query($query) or die(mysql_error());
>> echo "Result_row dump: $result_row <BR>";
>> $num=mysql_numrows($result);
>> echo "Num dump: $num <BR>";
>> $i= 0;
>>
> /*
>> while($i < $num) {
> */
>
> $result=$result_row[0];
>
> while($result_row = mysql_fetch_array($result) {
Worked perfectly after adding a closing ) Thanks for the tip!
>
>> echo "<tr><td>";
>> echo $result_row[0] . '</td><td>';
>> echo $result_row[1] . '</td><td>';
>> echo $result_row[2] . '</td></tr>';
>> $i++;
>> }
>>
>> echo ("</table>");
>>
>>
>> the problem is instead of printing out the actual results it prints
>> out 6 fields that say: "Resource id #5"
>>
>> the query I'm using is: SELECT FName, LName, Add1, Add2 FROM current
>> WHERE FName like '%jason%' which works in MySQL
>>
>> I can't find any errors in my log files to even give me a hint as to
>> what is going on.
>>
>> If someone could take a look I would greatly appreciate it.
>>
>
> HTH
>
> --
> Davi Vidal
> davividal
siscompar.com.br
> davividal
gmail.com
> --
> "Religion, ideology, resources, land,
> spite, love or "just because"...
> No matter how pathetic the reason,
> it's enough to start a war. "
> --------------------------------------------------------
> Por favor não faça top-posting, coloque a sua resposta abaixo desta
> linha.
> Please don't do top-posting, put your reply below the following line.
> --------------------------------------------------------
attached mail follows:
Em Quinta 31 Maio 2007 16:38, Jason Pruim escreveu:
> >
> > while($result_row = mysql_fetch_array($result) {
>
> Worked perfectly after adding a closing ) Thanks for the tip!
>
Forgive me for that!!! #'_'#
I *always* forget the closing )... =P
--
Davi Vidal
davividal
siscompar.com.br
davividal
gmail.com
--
"Religion, ideology, resources, land,
spite, love or "just because"...
No matter how pathetic the reason,
it's enough to start a war. "
--------------------------------------------------------
Por favor não faça top-posting, coloque a sua resposta abaixo desta linha.
Please don't do top-posting, put your reply below the following line.
--------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQBGXybE33UYOg0uzToRAgZ9AKDRn/DzfnhptzepzB+Ft3t1jys2jQCgsi94
eCCqc1M4IkF/sLTABMPJBHc=
=eTxc
-----END PGP SIGNATURE-----
attached mail follows:
On Thu, May 31, 2007 2:25 pm, Jason Pruim wrote:
> Hi Everyone, I am attempting to setup a search field on a database
> application I'm dinking around with and running into problems that
> I'm hoping someone might be able to shed some light on.
>
> Here is the code I am using to display the results of the search:
>
> echo ('<table border="1">');
> echo "<tr><th>First Name</th><th>Author</th><th>Pages</th></tr>";
>
> $result_row[] = mysql_query($query) or die(mysql_error());
I also have to wonder why you are building an array of query result
resources...
You probably could do this with just one SQL query and some order by
clauses to get what you want, without hitting the DB so much.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
attached mail follows:
There is no bug filed for this. There is only one older bug (
http://bugs.php.net/bug.php?id=38804 ) which makes me think overwriting
with ini_set() shouldn't be possible!
Richard Lynch schrieb:
> On Wed, May 30, 2007 3:34 pm, Samuel Vogel wrote:
>
>>> And what happens if you try to allocate 3M of data?
>>>
>>> $foo = str_repeat('.', 3145728);
>>>
>>>
>> Nothing. It does it without any errors. I can allocate up to 20MB
>> (well
>> a little bit less of course).
>>
>
> Check http://bugs.php.net and see if it's a known issue or an
> exception to the php_admin_* rule or...
>
>
attached mail follows:
File a bug report then, and see what happens...
But you may want to test with most recent versions if you are not
already on current PHP versions.
On Thu, May 31, 2007 2:46 pm, Samuel Vogel wrote:
> There is no bug filed for this. There is only one older bug (
> http://bugs.php.net/bug.php?id=38804 ) which makes me think
> overwriting
> with ini_set() shouldn't be possible!
>
> Richard Lynch schrieb:
>> On Wed, May 30, 2007 3:34 pm, Samuel Vogel wrote:
>>
>>>> And what happens if you try to allocate 3M of data?
>>>>
>>>> $foo = str_repeat('.', 3145728);
>>>>
>>>>
>>> Nothing. It does it without any errors. I can allocate up to 20MB
>>> (well
>>> a little bit less of course).
>>>
>>
>> Check http://bugs.php.net and see if it's a known issue or an
>> exception to the php_admin_* rule or...
>>
>>
>
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
attached mail follows:
We have the following php.ini settings:
error_reporting = E_ALL
display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
on a SuSE 10.1 server and the errors are being logged to
/var/log/apache2/error_log
(although I can't seem to find a setting that is making that happen.)
parse errors ARE being logged to this file and that would be extremely
useful information for students to be able to have when trying to find
problems in their scripts. I can't just make that file readable to them.
So, I had students create a "logs" directory within their file area and set
the permissions so that the server can to it. I have them adding the
following to the script(s) that they wish to troubleshoot:
ini_set("log_errors", "On");
ini_set("error_reporting", E_ALL);
ini_set("error_log", "logs/error_log");
Parse errors are not being written to their personal log file, though. Why
not?? About the only going in there are NOTICE level entries.
Thanks.
Clark W. Alexander
attached mail follows:
Clark Alexander wrote:
> We have the following php.ini settings:
> error_reporting = E_ALL
> display_errors = Off
> display_startup_errors = Off
> log_errors = On
> log_errors_max_len = 1024
> ignore_repeated_errors = Off
> ignore_repeated_source = Off
> report_memleaks = On
> track_errors = Off
>
> on a SuSE 10.1 server and the errors are being logged to
> /var/log/apache2/error_log
> (although I can't seem to find a setting that is making that happen.)
>
> parse errors ARE being logged to this file and that would be extremely
> useful information for students to be able to have when trying to find
> problems in their scripts. I can't just make that file readable to them.
>
> So, I had students create a "logs" directory within their file area and set
> the permissions so that the server can to it. I have them adding the
> following to the script(s) that they wish to troubleshoot:
>
> ini_set("log_errors", "On");
> ini_set("error_reporting", E_ALL);
> ini_set("error_log", "logs/error_log");
>
>
> Parse errors are not being written to their personal log file, though. Why
> not?? About the only going in there are NOTICE level entries.
does log/error_log exist?
does the webserver have write permissions on that file?
>
> Thanks.
>
> Clark W. Alexander
>
attached mail follows:
Yes, it does write to the file, but the only things going in there are
notice type entries.
Also, for further information, it is php 5.1.2 using the Suse rpm.
On 5/31/07 5:14 PM, in article 465F3AC2.8060707
iamjochem.com, "Jochem Maas"
<jochem
iamjochem.com> wrote:
> Clark Alexander wrote:
>> We have the following php.ini settings:
>> error_reporting = E_ALL
>> display_errors = Off
>> display_startup_errors = Off
>> log_errors = On
>> log_errors_max_len = 1024
>> ignore_repeated_errors = Off
>> ignore_repeated_source = Off
>> report_memleaks = On
>> track_errors = Off
>>
>> on a SuSE 10.1 server and the errors are being logged to
>> /var/log/apache2/error_log
>> (although I can't seem to find a setting that is making that happen.)
>>
>> parse errors ARE being logged to this file and that would be extremely
>> useful information for students to be able to have when trying to find
>> problems in their scripts. I can't just make that file readable to them.
>>
>> So, I had students create a "logs" directory within their file area and set
>> the permissions so that the server can to it. I have them adding the
>> following to the script(s) that they wish to troubleshoot:
>>
>> ini_set("log_errors", "On");
>> ini_set("error_reporting", E_ALL);
>> ini_set("error_log", "logs/error_log");
>>
>>
>> Parse errors are not being written to their personal log file, though. Why
>> not?? About the only going in there are NOTICE level entries.
>
> does log/error_log exist?
> does the webserver have write permissions on that file?
>
>>
>> Thanks.
>>
>> Clark W. Alexander
>>
attached mail follows:
Upon review, I also discover that fatal error entries are being made as
well.
On 5/31/07 5:14 PM, in article 465F3AC2.8060707
iamjochem.com, "Jochem Maas"
<jochem
iamjochem.com> wrote:
> Clark Alexander wrote:
>> We have the following php.ini settings:
>> error_reporting = E_ALL
>> display_errors = Off
>> display_startup_errors = Off
>> log_errors = On
>> log_errors_max_len = 1024
>> ignore_repeated_errors = Off
>> ignore_repeated_source = Off
>> report_memleaks = On
>> track_errors = Off
>>
>> on a SuSE 10.1 server and the errors are being logged to
>> /var/log/apache2/error_log
>> (although I can't seem to find a setting that is making that happen.)
>>
>> parse errors ARE being logged to this file and that would be extremely
>> useful information for students to be able to have when trying to find
>> problems in their scripts. I can't just make that file readable to them.
>>
>> So, I had students create a "logs" directory within their file area and set
>> the permissions so that the server can to it. I have them adding the
>> following to the script(s) that they wish to troubleshoot:
>>
>> ini_set("log_errors", "On");
>> ini_set("error_reporting", E_ALL);
>> ini_set("error_log", "logs/error_log");
>>
>>
>> Parse errors are not being written to their personal log file, though. Why
>> not?? About the only going in there are NOTICE level entries.
>
> does log/error_log exist?
> does the webserver have write permissions on that file?
>
>>
>> Thanks.
>>
>> Clark W. Alexander
>>
attached mail follows:
On Thu, May 31, 2007 3:25 pm, Clark Alexander wrote:
> We have the following php.ini settings:
> error_reporting = E_ALL
> display_errors = Off
> display_startup_errors = Off
> log_errors = On
> log_errors_max_len = 1024
> ignore_repeated_errors = Off
> ignore_repeated_source = Off
> report_memleaks = On
> track_errors = Off
>
> on a SuSE 10.1 server and the errors are being logged to
> /var/log/apache2/error_log
> (although I can't seem to find a setting that is making that happen.)
>
> parse errors ARE being logged to this file and that would be extremely
> useful information for students to be able to have when trying to find
> problems in their scripts. I can't just make that file readable to
> them.
>
> So, I had students create a "logs" directory within their file area
> and set
> the permissions so that the server can to it. I have them adding the
> following to the script(s) that they wish to troubleshoot:
>
> ini_set("log_errors", "On");
> ini_set("error_reporting", E_ALL);
> ini_set("error_log", "logs/error_log");
>
>
> Parse errors are not being written to their personal log file, though.
> Why
> not?? About the only going in there are NOTICE level entries.
Step 1:
PHP reads and parses script. Errors are logged to the current php.ini
settings, the default Apache log.
Step 2:
PHP begins processing script. log is changed to student's individual
log.
Step 3:
Any script errors AFTER 2 end up in student logs.
As you can see, any parse errors will end up in Apache logs, because
the student's code has not begun to run.
PHP halts on a parse error, so it never even executes the ini_set
calls in that case.
If there are no parse errors, and if the ini_set happens at the TOP of
the script, then the remaining errors are logged to where ini_set has
changed the values.
If you have .htaccess turned on in httpd.conf, and if you can teach
the students to edit .htaccess correctly, they could use:
php_value error_log /full/path/to/student/directory/logs/error_log
Because this will be applied by Apache *before* it begins executing
the script (almost for sure) it should, I think, come much closer to
what you want to achieve.
There may still be some kind of PHP total failure error that could
occur before Apache runs through the .htaccess file, but I can't begin
to imagine what that would be, short of a PHP segfault of some kind,
with nasty grunge left over from a previous execution causing the real
problem...
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]