php-general Digest 18 Mar 2006 08:32:55 -0000 Issue 4022
Topics (messages 232146 through 232176):
Re: CPanel, PHP5 as CGI (was Re: [PHP] php 5 installation problem)
232146 by: Myk OLeary
Re: IE quirk
232147 by: Myk OLeary
232164 by: PHP
Converting a string
232148 by: Jay Blanchard
232149 by: Jay Blanchard
232151 by: Shaunak Kashyap
232152 by: Shaunak Kashyap
232153 by: Rafael
232154 by: Jay Blanchard
232155 by: Myk OLeary
232157 by: Jay Blanchard
232158 by: Rafael
232159 by: Jay Blanchard
232160 by: Rafael
232162 by: Jay Blanchard
Re: Best practice to set up register_globals
232150 by: Nicolas Verhaeghe
232156 by: Chuck Anderson
232161 by: Nicolas Verhaeghe
232172 by: chris smith
Alright, how do you unsubscribe?
232163 by: Mike McGonagle
232165 by: Jay Blanchard
Re: print page from php
232166 by: Miles Thompson
Strangers characters and UTF-8 encoding
232167 by: Arnaldo Gandol
Newbie question
232168 by: Alexander Bauza
232169 by: Jay Blanchard
$_SERVER['PHP_AUTH_USER'] not set
232170 by: Jay Blanchard
232175 by: chris smith
set_time_limit(90*60) and still timing out after 5 minutes on Windows
232171 by: Dan Baker
232173 by: Dan Baker
PHP, SQL, AJAX, JS and populating a SelectBox?
232174 by: Daevid Vincent
232176 by: David Dorward
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
php-general@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Ask them to install PHP5 to work with only .php5 extensioned files.
They have no interoperability issues - you have access to PHP 5.
PHP4 and PHP5 can safely coexist on the same server like this, as
they aren't serving up the same files...
-Myk OLeary
[EMAIL PROTECTED]
BLOG: http://www.blueneedle.com/wordpress/?bnphplists
On Mar 17, 2006, at 7:17 AM, tedd wrote:
Edwin wrote:
I really have no idea (read: lazy to check now ;-) ) what
"CPanel" is. If it is a program written in PHP (4?), they could
just "fix" it to work with PHP5 -- CGI mode or not.
I sure would like to know because two of my host can't install PHP
5 due to problems they have with CPanel and PHP 5 working together.
tedd
--
----------------------------------------------------------------------
----------
http://sperling.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
In this case it is very likely a feature. It sounds like the
Security settings are set at default in IE, which is to disallow
third party cookies without P3P privacy policies. I bet that if you
add a P3P privacy policy header, that IE will like you just fine.
This started with IE6, so you can try testing in IE5 to see if it
works there right now. If it does, continue on by reading the below
URL..
http://www.w3.org/P3P/
-Myk OLeary
[EMAIL PROTECTED]
BLOG: http://www.blueneedle.com/wordpress/?bnphplists
On Mar 17, 2006, at 8:30 AM, Joe Henry wrote:
With IE, it's not a quirk. It's a feature.
On Thursday 16 March 2006 3:31 pm, Jay Blanchard wrote:
[snip]
I created a small bannering program. It works great in Firefox. But I
have a problem with IE.
If I place the banner on a different domain than the bannering
program,
Ex:
www.bannerserver.com
www.otherserver.com has img tag calling from www.bannerserver.com
I use a session to keep track of the banner that is displayed,
have even
tried using cookies directly.
Works great in firefox, problem with IE is first time vising
www.otherserver.com, clicking on the img does not work,
apparently, the
session was never start/recorded when retrieving the image.
However, if
--- End Message ---
--- Begin Message ---
If this were the case then it should never work, however, all I have to do
is press the back button to go back to the page and it starts keeping the
sessions just fine.
In this case it is very likely a feature. It sounds like the Security
settings are set at default in IE, which is to disallow third party
cookies without P3P privacy policies. I bet that if you add a P3P
privacy policy header, that IE will like you just fine. This started
with IE6, so you can try testing in IE5 to see if it works there right
now. If it does, continue on by reading the below URL..
http://www.w3.org/P3P/
-Myk OLeary
[EMAIL PROTECTED]
BLOG: http://www.blueneedle.com/wordpress/?bnphplists
On Mar 17, 2006, at 8:30 AM, Joe Henry wrote:
With IE, it's not a quirk. It's a feature.
On Thursday 16 March 2006 3:31 pm, Jay Blanchard wrote:
[snip]
I created a small bannering program. It works great in Firefox. But I
have a problem with IE.
If I place the banner on a different domain than the bannering program,
Ex:
www.bannerserver.com
www.otherserver.com has img tag calling from www.bannerserver.com
I use a session to keep track of the banner that is displayed, have
even
tried using cookies directly.
Works great in firefox, problem with IE is first time vising
www.otherserver.com, clicking on the img does not work, apparently, the
session was never start/recorded when retrieving the image. However, if
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I think that we did this before, but I cannot find my notes or in the
archive because I am not sure what we called it.
Let us say that that I have a form item (I'll leave out clutter);
<input name="psFirstName">
It arrives in processing as $_POST['psFirstName']
Now, I have one of these for each form item, each with a different name.
In my error script I want to say
"Cannot leave First Name blank"
I need to convert psFirstName to First Name. I tried preg_split, but it
cuts away the capital letters. Can someone point me in the right
direction again? Thanks!
--- End Message ---
--- Begin Message ---
[snip]
If you have similar element names in $_POST, comething like:
$human_friendly = array("psFirstName" => "First Name");
foreach ($_POST as $ key => value) {
echo "Cannot leave {$human_friendly[$key]} blank";
}
[/snip]
But I don't want to create another array, and should'nt have to
--- End Message ---
--- Begin Message ---
Try using preg_match_all with this pattern:
"/([A-Z].*[^A-Z])/U"
While this pattern does not get you exactly what you want, I think it
serves as a starting point. I am not too good with regular expressions
so I'll let the more accomplished regex people on the list jump in at
this point.
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: Jay Blanchard [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 17, 2006 10:24 AM
> To: Dave Goodchild
> Cc: php-general@lists.php.net
> Subject: RE: [PHP] Converting a string
>
> [snip]
>
> If you have similar element names in $_POST, comething like:
>
> $human_friendly = array("psFirstName" => "First Name");
>
> foreach ($_POST as $ key => value) {
>
> echo "Cannot leave {$human_friendly[$key]} blank";
>
> }
>
> [/snip]
>
> But I don't want to create another array, and should'nt have to
--- End Message ---
--- Begin Message ---
I think I got the correct regex pattern:
"/[A-Z].*.[^A-Z]/U"
Again, I am not too good with regex so I can't explain why that pattern
works and also if it will work in all cases.
HTH,
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: Shaunak Kashyap [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 17, 2006 10:49 AM
> To: Jay Blanchard; Dave Goodchild
> Cc: php-general@lists.php.net
> Subject: RE: [PHP] Converting a string
>
> Try using preg_match_all with this pattern:
>
> "/([A-Z].*[^A-Z])/U"
>
> While this pattern does not get you exactly what you want, I think it
> serves as a starting point. I am not too good with regular expressions
> so I'll let the more accomplished regex people on the list jump in at
> this point.
>
> 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: Jay Blanchard [mailto:[EMAIL PROTECTED]
> > Sent: Friday, March 17, 2006 10:24 AM
> > To: Dave Goodchild
> > Cc: php-general@lists.php.net
> > Subject: RE: [PHP] Converting a string
> >
> > [snip]
> >
> > If you have similar element names in $_POST, comething like:
> >
> > $human_friendly = array("psFirstName" => "First Name");
> >
> > foreach ($_POST as $ key => value) {
> >
> > echo "Cannot leave {$human_friendly[$key]} blank";
> >
> > }
> >
> > [/snip]
> >
> > But I don't want to create another array, and should'nt have to
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Jay Blanchard wrote:
[snip]
If you have similar element names in $_POST, comething like:
$human_friendly = array("psFirstName" => "First Name");
foreach ($_POST as $ key => value) {
echo "Cannot leave {$human_friendly[$key]} blank";
}
[/snip]
But I don't want to create another array, and should'nt have to
Then you should change the name of the field. Seriously, what do you
expect the script to do, exactly? and once you know the answer, what
would you do to achieve that? Put that (emphasis to the second
question) in words and someone might be able to help you.
--
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
--- End Message ---
--- Begin Message ---
[snip]
Then you should change the name of the field. Seriously, what
do you
expect the script to do, exactly? and once you know the answer, what
would you do to achieve that? Put that (emphasis to the second
question) in words and someone might be able to help you.
[/snip]
I expect that I can take a string, like 'psFirstName' and change it to
'First Name'. that way I don't have to worry about what some web
designer named his fields, I can turn them into human readable strings
without having to manually create a new array.
So far I have this
$newKey = preg_split("/([A-Z])/", substr($key, 2), -1,
PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
Which returns;
Array
(
[0] => F
[1] => irst
[2] => N
[3] => ame
)
--- End Message ---
--- Begin Message ---
You're best off using an array that matches human readable form to
field name as someone else suggested earlier. Form names for basic
fields like this should be standardized such that auto form fillers
(aka Google toolbar) are able to work. They won't know that your
field named "hmnrdble_F-irst_N-ame" equates to a first name field.
Skip the dastardly regexp and keep it simple.
On the posted to page populate the array with boolean values as you
do you boundary checking. If you fail, then save it to session,
redirect back to the form, read the array from session, and you have
access to ALL fields that failed, so you can not only have a message
at top, but the ability to mark each field with a style or some such
to visually draw the user to what they need to fix.
-Myk OLeary
[EMAIL PROTECTED]
BLOG: http://www.blueneedle.com/wordpress/?bnphplists
On Mar 17, 2006, at 11:21 AM, Jay Blanchard wrote:
[snip]
Then you should change the name of the field. Seriously, what
do you
expect the script to do, exactly? and once you know the answer, what
would you do to achieve that? Put that (emphasis to the second
question) in words and someone might be able to help you.
[/snip]
I expect that I can take a string, like 'psFirstName' and change it to
'First Name'. that way I don't have to worry about what some web
designer named his fields, I can turn them into human readable strings
without having to manually create a new array.
So far I have this
$newKey = preg_split("/([A-Z])/", substr($key, 2), -1,
PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
Which returns;
Array
(
[0] => F
[1] => irst
[2] => N
[3] => ame
)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
[snip]
You're best off using an array that matches human readable form to
field name as someone else suggested earlier. Form names for basic
fields like this should be standardized such that auto form fillers
(aka Google toolbar) are able to work. They won't know that your
field named "hmnrdble_F-irst_N-ame" equates to a first name field.
Skip the dastardly regexp and keep it simple.
[/snip]
Scared of regex? Since this is an Intranet application we do not care
about auto form fillers and actually discourage reliance on them in
these cases. You're suggesting that I make the programmers do more work
when there is a solution that will work regardless of what the web
designers name form fields as long as the web designers stick to a
naming convention policy (studly caps) for form fields. I suppose I
could make them change to underscore delimited field names and it would
solve my current problem.
--- End Message ---
--- Begin Message ---
Well, you didn't answer the second question, how would you do it? So
far I see a pattern: "ignore the lowercase letters at the beginnig and
add a space before an uppercase" (this won't apply to all field names,
and I hope you're aware of that), so try something like
$text = preg_replace('/^[a-z]+\s*/X', '',
preg_replace('/(?=[A-Z])/X', ' ', $name) );
Now, a better way, IMHO, would be to use "_" as spaces and write the
name of the field as you want it to appear (e.g. "First_Name"), so you
just need to
$text = str_replace('_', ' ', $name);
--pretty much simplier, isn't?
And... if you want to add a prefix (such as "ps") then make it
configurable, so it can be changed anytime without effort.
Last comment: you should think about the question you didn't answer, and
that might give you the solution to your problem.
Jay Blanchard wrote:
[snip]
Then you should change the name of the field. Seriously, what
do you
expect the script to do, exactly? and once you know the answer, what
would you do to achieve that? Put that (emphasis to the second
question) in words and someone might be able to help you.
[/snip]
I expect that I can take a string, like 'psFirstName' and change it to
'First Name'. that way I don't have to worry about what some web
designer named his fields, I can turn them into human readable strings
without having to manually create a new array.
So far I have this
$newKey = preg_split("/([A-Z])/", substr($key, 2), -1,
PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
Which returns;
Array
(
[0] => F
[1] => irst
[2] => N
[3] => ame
)
--
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
--- End Message ---
--- Begin Message ---
[snip]
Well, you didn't answer the second question, how would you do
it? So
far I see a pattern: "ignore the lowercase letters at the beginnig and
add a space before an uppercase" (this won't apply to all field names,
and I hope you're aware of that), so try something like
$text = preg_replace('/^[a-z]+\s*/X', '',
preg_replace('/(?=[A-Z])/X', ' ', $name) );
Now, a better way, IMHO, would be to use "_" as spaces and write
the
name of the field as you want it to appear (e.g. "First_Name"), so you
just need to
$text = str_replace('_', ' ', $name);
--pretty much simplier, isn't?
And... if you want to add a prefix (such as "ps") then make it
configurable, so it can be changed anytime without effort.
Last comment: you should think about the question you didn't answer, and
that might give you the solution to your problem.
[/snip]
I was just headed in the wrong direction with preg_split(), and I had it
stuck in my head.
If I had delimiters, such as underscores, this question would have never
come up. I am not in a position to tell the designers that we need them
to change their naming conventions in forms at this unfortunately, so I
need to work with what we have as efficiently as possible.
Thank you for an elegant solution, but I am curious....why would it not
work with all field names if they were named using the conventions
(studly caps)? I can see a problem perhaps with a field named fooMyURL,
it would come out as My U R L. Do you feel as if there are any other
gotcha's?
--- End Message ---
--- Begin Message ---
IMHO, you do are in position to tell the designers how the fields
should be named, after all they won't give any use to them, it's you (or
the developer in turn) who will deal with them. Besides, using
underscores (or any other space-replacement) anyone knows beforehand
what the text displayed will be, and any special combination of
lower/upper-case letters it's preserved.
Anyway, right now it seems this is something we can't depend on, so
let's refine the expression a little. Oh, and I was refering to the
same "problem" with fields such as "MyURL".
I've changed a little the pattern, now it would say "ignore the initial
lower-case letters and spaces (if any of those) and add a space before
any upper-case wich is not preceeded by an upper-case, and also those
upper-case followed by a lower-case", so it now would look like
$rex_initial = '/^[a-z]*\s*/X';
$rex_upper = '/(?<![A-Z])(?=[A-Z])|(?=[A-Z][^A-Z])/X';
$text = preg_replace($rex_initial, '',
preg_replace($rex_upper, ' ', $name) );
I think that solves the problem with the previous one. But I'd also
like to point out that most of us (you included, if I understood right)
seem to agree that this shouldn't be the first option, but something
simplier --this is more like a patch than a feature ;)
Good luck with the designers :)
Jay Blanchard wrote:
[···]
I was just headed in the wrong direction with preg_split(), and I had it
stuck in my head.
If I had delimiters, such as underscores, this question would have never
come up. I am not in a position to tell the designers that we need them
to change their naming conventions in forms at this unfortunately, so I
need to work with what we have as efficiently as possible.
Thank you for an elegant solution, but I am curious....why would it not
work with all field names if they were named using the conventions
(studly caps)? I can see a problem perhaps with a field named fooMyURL,
it would come out as My U R L. Do you feel as if there are any other
gotcha's?
--
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
--- End Message ---
--- Begin Message ---
[snip]
IMHO, you do are in position to tell the designers how the
fields
should be named, after all they won't give any use to them, it's you (or
the developer in turn) who will deal with them. Besides, using
underscores (or any other space-replacement) anyone knows beforehand
what the text displayed will be, and any special combination of
lower/upper-case letters it's preserved.
Anyway, right now it seems this is something we can't depend on,
so
let's refine the expression a little. Oh, and I was refering to the
same "problem" with fields such as "MyURL".
I've changed a little the pattern, now it would say "ignore the
initial
lower-case letters and spaces (if any of those) and add a space before
any upper-case wich is not preceeded by an upper-case, and also those
upper-case followed by a lower-case", so it now would look like
$rex_initial = '/^[a-z]*\s*/X';
$rex_upper = '/(?<![A-Z])(?=[A-Z])|(?=[A-Z][^A-Z])/X';
$text = preg_replace($rex_initial, '',
preg_replace($rex_upper, ' ', $name) );
I think that solves the problem with the previous one. But I'd
also
like to point out that most of us (you included, if I understood right)
seem to agree that this shouldn't be the first option, but something
simplier --this is more like a patch than a feature ;)
Good luck with the designers :)
[/snip]
You're correct, this shouldn't be the first option.
Right now the designers are not under my control as they are outsourced
and working with a set of specs created by someone who is/was no longer
here when I got here (for good reason and this kind of thing is but one
of those reasons). I am working to get designers on staff (and they will
work for me), but until that point I have to work with what I have as
the business is approaching launch and we really don't have time to go
back and rework existing forms, etc.
So, being the good systems guy that I am, I try to get it where everyone
can work together with as little hassle as possible. We had worked this
same problem on this same list about a year ago, so I knew that there
was an answer, I just couldn't find it. Thanks to your truly elegant
solution I have made developer world much happier this afternoon.
--- End Message ---
--- Begin Message ---
Would this be set in the apache.conf file or the php.ini file?
-----Original Message-----
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 16, 2006 9:19 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Best practice to set up register_globals
On Thu, Mar 16, 2006 at 08:46:07PM -0700, Nicolas Verhaeghe wrote:
> One of my clients has an os commerce install which requires
> register_globals to be set to on, for some reason.
>
> It is set up to off in php.ini, as it should, but I'd like to know
> what the best fashion would be for me to set it on locally for this
> domain only.
Assuming you have apache as your webserver..
If you must set it, you can set it per any apache directive, like a
<VirtualHost>, <Directory> or the like or even a .htaccess (if enabled).
Curt.
--
cat .signature: No such file or directory
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Curt Zirzow wrote:
On Thu, Mar 16, 2006 at 08:46:07PM -0700, Nicolas Verhaeghe wrote:
One of my clients has an os commerce install which requires
register_globals to be set to on, for some reason.
It is set up to off in php.ini, as it should, but I'd like to know what
the best fashion would be for me to set it on locally for this domain
only.
Assuming you have apache as your webserver..
If you must set it, you can set it per any apache directive, like
a <VirtualHost>, <Directory> or the like or even a .htaccess (if
enabled).
Curt.
I'm not sure how they set it up, but at my web host I can put individual
php.ini files in the directory the php script files are in.
That means that I can create a php.ini file and add 'register_globals
on' in any directory where I need it.
Does anyone know how to configure that?
--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*****************************
--- End Message ---
--- Begin Message ---
Curt Zirzow wrote:
>On Thu, Mar 16, 2006 at 08:46:07PM -0700, Nicolas Verhaeghe wrote:
>
>
>>One of my clients has an os commerce install which requires
>>register_globals to be set to on, for some reason.
>>
>>It is set up to off in php.ini, as it should, but I'd like to know
>>what the best fashion would be for me to set it on locally for this
>>domain only.
>>
>>
>
>Assuming you have apache as your webserver..
>
>If you must set it, you can set it per any apache directive, like a
><VirtualHost>, <Directory> or the like or even a .htaccess (if
>enabled).
>
>
>Curt.
>
>
I'm not sure how they set it up, but at my web host I can put individual
php.ini files in the directory the php script files are in.
That means that I can create a php.ini file and add 'register_globals
on' in any directory where I need it.
Does anyone know how to configure that?
-------------
Well that's what I always wondered. The php_info() shows the value as
set globally and locally. How do you override for a site or domain?
--- End Message ---
--- Begin Message ---
On 3/18/06, Nicolas Verhaeghe <[EMAIL PROTECTED]> wrote:
>
>
>
> Curt Zirzow wrote:
>
> >On Thu, Mar 16, 2006 at 08:46:07PM -0700, Nicolas Verhaeghe wrote:
> >
> >
> >>One of my clients has an os commerce install which requires
> >>register_globals to be set to on, for some reason.
> >>
> >>It is set up to off in php.ini, as it should, but I'd like to know
> >>what the best fashion would be for me to set it on locally for this
> >>domain only.
> >>
> >>
> >
> >Assuming you have apache as your webserver..
> >
> >If you must set it, you can set it per any apache directive, like a
> ><VirtualHost>, <Directory> or the like or even a .htaccess (if
> >enabled).
> >
> >
> >Curt.
> >
> >
> I'm not sure how they set it up, but at my web host I can put individual
>
> php.ini files in the directory the php script files are in.
>
> That means that I can create a php.ini file and add 'register_globals
> on' in any directory where I need it.
>
> Does anyone know how to configure that?
>
> -------------
>
> Well that's what I always wondered. The php_info() shows the value as
> set globally and locally. How do you override for a site or domain?
With a htaccess file:
php_flag register_globals on
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
I went through the instructions about how to remove my address from
the mailing list, but nothing happens. I sent this message almost 6
hours ago, and I am still getting traffic from the list.
Is there someone who could remove my address? Or do I need to keep
sending the unsubscribe message until it works?
Thanks,
Mike
--- End Message ---
--- Begin Message ---
[snip]
I went through the instructions about how to remove my address from
the mailing list, but nothing happens. I sent this message almost 6
hours ago, and I am still getting traffic from the list.
Is there someone who could remove my address? Or do I need to keep
sending the unsubscribe message until it works?
[/snip]
You sure you don't have more than one address subscribed? If not, it'll
probably take a little while for it to filter through...but you're
welcome to try again, this is an unmoderated list, so there is no one
minding the asylum....so to speak.
--- End Message ---
--- Begin Message ---
At 09:57 AM 3/17/2006, Reinhart Viane wrote:
All,
I have a web page with the results from several database queries.
Now this page has an undefined horizontal and vertical size.
Does anyone know if there is a php script available that will automatically
split the webpage into parts that can fit on an A4 page?
Or do I have to set boundaries on the size of the tables the queried data
will be shown in.
Hope this makes any sense,
Thanks in advance,
Reinhart Viane
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
CSS is probably the best solution
http://www.w3.org/TR/REC-CSS2/page.html#q16
found whle googling
http://www.google.ca/search?hl=en&q=printing+CSS+media&btnG=Google+Search
This is a good article: http://css-discuss.incutio.com/?page=PrintStylesheets
and as always, A List Apart has CSS Design: going to Print at
http://www.alistapart.com/stories/goingtoprint/
I have seen examples of two-column pages, but do not know if the pages
broke correctly when the matter was longer than one page.
Alternately, display in tables and make certain you have a <TH> so your
header can repeat.
Hope this steers you in the right direction - Miles.
--
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 268.2.1/279 - Release Date: 3/10/2006
--- End Message ---
--- Begin Message ---
hi, I have troubles with strangers characters in my html pages, I've fixed
them by using mb_convert_encoding() function with UTF-8 encoding but I've
hear that mbstring library is unstable in some linux distributions. Does any
body knows how to solve this problem without using mbstring library?. I'm
working with php-5.
Thank you beforehand.
--- End Message ---
--- Begin Message ---
Hi there,
I'm on WinXP, I got IIS installed, I downloaded and installed PHP 5.1.2
installer, I edited the php.ini file, I got documentation, I've been red and
I'm kind of FRUSTATED!!! because I can't run PHP code.
I need help please!!!
Thanks for any help
Alexander
--- End Message ---
--- Begin Message ---
[snip]
I'm on WinXP, I got IIS installed, I downloaded and installed PHP 5.1.2
installer, I edited the php.ini file, I got documentation, I've been red
and
I'm kind of FRUSTATED!!! because I can't run PHP code.
[/snip]
Uninstall what you have and then go to
http://www.devside.net/web/server/free/download and download
setup1.16.exe and install that.
--- End Message ---
--- Begin Message ---
Apache2
PHP 4.4.n
Suse Linux 10
PHP_AUTH_USER is not getting set in the $_SERVER array. Thoughts?
--- End Message ---
--- Begin Message ---
On 3/18/06, Jay Blanchard <[EMAIL PROTECTED]> wrote:
> Apache2
> PHP 4.4.n
> Suse Linux 10
>
> PHP_AUTH_USER is not getting set in the $_SERVER array. Thoughts?
It only gets set once you get to a page behind a htpasswd'ed area -
it's not in there by default.
--
Postgresql & php tutorials
http://www.designmagick.com/
--- End Message ---
--- Begin Message ---
I have a Windows server (IIS) with PHP and MySQL installed on it.
I have a script that is automatically ran every evening. This script has a
"set_time_limit(90*60)" (90 minutes) at the top, but the script seems to
just stop functioning after 5 minutes. I do *not* get the line about
"execution time exceeded".
Hmmm ... Maybe this is an IIS setting?
Any ideas?
DanB
--- End Message ---
--- Begin Message ---
"Dan Baker" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>I have a Windows server (IIS) with PHP and MySQL installed on it.
> I have a script that is automatically ran every evening. This script has
> a "set_time_limit(90*60)" (90 minutes) at the top, but the script seems to
> just stop functioning after 5 minutes. I do *not* get the line about
> "execution time exceeded".
>
> Hmmm ... Maybe this is an IIS setting?
It WAS an IIS setting (buried very deep).
MetaEdit is a utility needed to alter a setting "LM -> W3SVC -> CGITimeout"
DanB
--- End Message ---
--- Begin Message ---
I need to dynamically update a select box
with results from a SQL database using AJAX,
but I can't find a single example of how to do this.
Basically I have a text input field, and a select box.
As someone types in the input field,
I want the select box to fill in the results of matches.
I can fill in a <DIV> (as per the ten million examples out there)
and that's all fine and dandy, but way too simplistic for what I need.
--- End Message ---
--- Begin Message ---
Daevid Vincent wrote:
> I need to dynamically update a select box
> with results from a SQL database using AJAX,
> but I can't find a single example of how to do this.
Break it down in to stages.
1. Make the request to the server
2. Have the PHP gather the data from the database
3. Return the data to the client (I'd use JSON for this)
4. Populate the select
> I can fill in a <DIV> (as per the ten million examples out there)
> and that's all fine and dandy,
So you can already do the first three stanges then? That just leaves stage
4.
One quick google later:
http://www.google.com/search?q=JavaScript+dynamically+populate+select
And the first hit is:
http://www.petenelson.com/aspwatch/ASPWatch%20%20Using%20Javascript%20to%20Dynamically%20Populate%20Select%20Lists.htm
Which tells you how to do it (ignore the ASP mention, the article is all
JavaScript).
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
--- End Message ---