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://w
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 ca
"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
> ju
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 s
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
Apache2
PHP 4.4.n
Suse Linux 10
PHP_AUTH_USER is not getting set in the $_SERVER array. Thoughts?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[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
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
--
PHP General Mailing L
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?.
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
[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
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 disal
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
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 be
[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 = pr
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('/^
[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 "hm
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
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_
[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 th
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 sho
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,
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.
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:07
[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
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);
It arrives in processing as $_POST['psFirstName']
Now, I have one of these for each form item, each with a di
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 yo
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.bl
PHP and ASP both have built in session handling. The only problem
is, they instantiate the sessions themselves. Therefore, whenever
you hit a page in ASP you'll start one session, but if you
immediately hit a PHP page on the same server in the same browser
from the same machine, you sta
Hi!
On Fri, 17 Mar 2006 10:58:12 -0500
John Hinton wrote:
> - Edwin - wrote:
> > Hi!
> >
> > On Thu, 16 Mar 2006 14:31:38 -0500
> > John Hinton <[EMAIL PROTECTED]> wrote:
> >
> >
> >> Simon M. Campden-Main wrote:
> >>
> >>> Well, there's the meat of it, isn't it? I wonder how Paint
> >>>
[snip]
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
Thank you very much. That was the problem, I didn't noticed that I don't use
the server path.
On 3/17/06, Barry <[EMAIL PROTECTED]> wrote:
>
> Karl-Heinz Christian Zeck wrote:
> > Thank you for your quick reply.
> >
> > I tried to modify the file. I removed all it's content and wrote only a
> >
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.ban
Good morning, Edwin.
Thank you very much for taking the time to respond to my
query.
E> See if you have ImageMagick installed.
I didn't, but do now.
E> You could probably use the "identify" command to find
the info you need. For more information:
$ man identify
It works, Edwin. A tad slow (
Well on another note I see that you are trying to point to a local file
on a windows machine (i.e. c:\path\to\php-script), that won't work but
if you place the php script on the server it may. i am unfamiliar with
the organization you are refering to.
Karl-Heinz Christian Zeck wrote:
I canno
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
I cannot use such a code, because the file I'm using is added to the
element in the html page.
The guys from Horde, that created the files say this should work without any
problems, but it doesn't. If you have any other suggestions, please let me
know.
Thank you!
On 3/17/06, Jason Gerfen <[EMA
- Edwin - wrote:
Hi!
On Thu, 16 Mar 2006 14:31:38 -0500
John Hinton <[EMAIL PROTECTED]> wrote:
Simon M. Campden-Main wrote:
Well, there's the meat of it, isn't it? I wonder how Paint
Shop Pro comes up with PPI (Image - Image information).
I have several thousand scanned images with
Karl-Heinz Christian Zeck wrote:
Thank you for your quick reply.
I tried to modify the file. I removed all it's content and wrote only a
single line:
alert("test");
When I refresh the main page, I get the alert message - this means the file
was loaded successfuly.
Then I tried this code: alert
Hi!
On Fri, 17 Mar 2006 17:42:51 +0200
Karl-Heinz Christian Zeck wrote:
> Thank you for your quick reply.
>
> I tried to modify the file. I removed all it's content and wrote
> only a single line:
> alert("test");
>
> When I refresh the main page, I get the alert message - this
> means the file
You will want to write PHP code to output the java-script. Because the
java-script (client side scripting) gets executed without communicating
with the server there is no PHP engine that java-script can push the PHP
through on the client machine.
So you would want to do something like:
alert
Thank you for your quick reply.
I tried to modify the file. I removed all it's content and wrote only a
single line:
alert("test");
When I refresh the main page, I get the alert message - this means the file
was loaded successfuly.
Then I tried this code: alert("");
This way it doesn't work, no
Karl-Heinz Christian Zeck wrote:
Hi everybody,
Are you allowed to do this? I mean, is the php file parsed by the PHP engine
first and a js code is generated that will be used
by the script element?
Yes
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)
--
PHP
Hi everybody,
Does anybody know if it's possible to specify a php file as the src
attribute of an script element in a html page.
For example:
I've installed the HORDE framework (www.horde.org) and I'm trying to make
their AJAX web client work. It seems that
this line of code causes problems. T
On Friday 17 March 2006 15:10, Kevin Davies - Bonhurst Consulting wrote:
> I just picked up this thread, so excuse me if I'm repeating or have totally
> missed the point.
>
> Another concern I picked up from a PHP security book is using '--' - which
> simply comments out the remainder of the line (
The value doesn't show up in the URL as you are redirecting the user back to
the referring URL... so only the referrer will be shown (unless the
redirecting script breaks :) )
Dan
-
Dan Parry
Senior Developer
Virtua Webtech Ltd
http://www.virtua
(Comments inline)
tedd wrote:
[···]
From what I've read (PHP Cookbook by Sklar and other sources) the
reason why you don't want to use $_REQUEST is because it holds all the
variables from six global arrays, namely $_GET, $_POST, $_FILES,
$_COOKIE, $_SERVER, and $_ENV.
Actually, the
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
I just picked up this thread, so excuse me if I'm repeating or have totally
missed the point.
Another concern I picked up from a PHP security book is using '--' - which
simply comments out the remainder of the line (with MySQL anyway). Therefore
if your SQL is "SELECT * FROM table WHERE user = '$u
Hi!
On Fri, 17 Mar 2006 08:24:51 -0400
Miles Thompson wrote:
>
> Thanks Edwin. I guess it was too late and I couldn't formulate
> a proper search expression.
>
> I'd like to hear Chris Shiflet's opinion on the security advantages
> of running PHP5 as CGI.
That'd be nice. But as somebody pointe
Rafael wrote:
A tipical example would be a login script that uses the data
as it arrives, for example:
$login = $_POST['login'];
$passw = $_POST['passw'];
$sql = "SELECT * FROM user\n"
."WHERE( login = '$login' AND passw = '$passw' )";
In this case, what happens if I send so
Anyone know of a good AJAX mailing list? TIA
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Rafael wrote:
Actually, you receive $set via GET, so you should use $_GET
instead of $_POST. A lot of people use $_REQUEST (wich is a
combination of $_POST, $_GET and $_COOKIE -check the manual), but I
read somewhere that this isn't a good practice, though I don't
recall why :p
From what
Rafael:
Actually, you receive $set via GET, so you should use $_GET
instead of $_POST.
Yes, you are correct.
In my example --
http://www.sperling.com/examples/styleswitch/
-- the value doesn't look like it is being added to the url and thus
I mistakenly thought it was a POST. I wonder
[snip]
Yes. I don't get any values
[/snip]
Then it is not possible using that method. Have you tried writing
session info to a file and then reading it from ASP?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yes. I don't get any values
""Jay Blanchard"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
[snip]
is it possible to get a Sessionvariable set in php read in an asp-file
with
the tag <%= Session(php) %>?
[/snip]
Have you tried it?
--
PHP General Mailing List (http://www.php
[snip]
is it possible to get a Sessionvariable set in php read in an asp-file
with
the tag <%= Session(php) %>?
[/snip]
Have you tried it?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi!
On Fri, 17 Mar 2006 13:12:21 -
Ford, Mike wrote:
> On 17 March 2006 11:15, - Edwin - wrote:
>
> > A 15-inch monitor at 800x600 will have around 53ppi x 40ppi
> > (800 pixels divided by 15 inches, etc.) and *the same* monitor
> > at 1024x768 will have around 68ppi x 51ppi.
>
> Er, no. T
on the fly:
use date_format function in select statement, format should be a string
like %d%m%y not sure about it check on manual.
hth
adriano
2006/3/17, Tom Chubb <[EMAIL PROTECTED]>:
>
> Please can you help me. I've created a page where problems are posted into
> a
> database and I am usin
Thanks guys.
On 17/03/06, João Cândido de Souza Neto <[EMAIL PROTECTED]> wrote:
>
> select date_format(date,"%d/%m/%y") as date from table
>
> It'll show in 17/03/06 format
>
> select date_format(date,"%d/%m/%Y") as date from table
>
> It'll show in 17/03/2006 format
>
>
> Tom Chubb wrote:
>
> > P
select date_format(date,"%d/%m/%y") as date from table
It'll show in 17/03/06 format
select date_format(date,"%d/%m/%Y") as date from table
It'll show in 17/03/2006 format
Tom Chubb wrote:
> Please can you help me. I've created a page where problems are posted into
> a database and I am using
Hi
How about doing this in the query string you send to mysql:
DATE_FORMAT(fieldname, '%d %m %y')
this way you wont have to mess around with the array stuff. for more info look
here
http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html
Regards
Pure Web Solution
http://www.purewe
On 17 March 2006 11:15, - Edwin - wrote:
> A 15-inch monitor at 800x600 will have around 53ppi x 40ppi
> (800 pixels divided by 15 inches, etc.) and *the same* monitor
> at 1024x768 will have around 68ppi x 51ppi.
Er, no. The 15inches is a diagonal measure, so the screen is actually about
12"x9
Please can you help me. I've created a page where problems are posted into a
database and I am using the datetime format in MySQL and trying to find the
best way to display it in the 17/03/06 format.
I've found a way of doing it (so you don't think I haven't googled, RTFM)
but don't think it's the
> > > >Is there a drawback to running php5 as CGI?
> > >
> > > Anthony,
> > >
> > > I really don't know, because computers are much faster, so
> > > there may not be the time lags there were 10 years ago.
> > >
> > > As I understand CGI, the web server sees that the page is of
> > > type .php, star
At 01:39 AM 3/17/2006, - Edwin - wrote:
Hi!
On Thu, 16 Mar 2006 20:45:29 -0400
Miles Thompson <[EMAIL PROTECTED]> wrote:
> At 06:23 PM 3/16/2006, Anthony Ettinger wrote:
>
> >[...]
> >Is there a drawback to running php5 as CGI?
>
> Anthony,
>
> I really don't know, because computers are much f
Hi NG
is it possible to get a Sessionvariable set in php read in an asp-file with
the tag <%= Session(php) %>?
Thanks in advance
Stefan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- Edwin - wrote:
Reading the surrounding sentences, I think I can see where
you're coming from. But, the above statement is a bit
confusing.
There is a reason why it's called "pixel per INCH". And it
definitely have something to do whether your monitor
is set to 800x600, 1024x768, etc.
It's co
clive wrote:
Does the html add in \r.
Normally not.
But the mailing function might do.
Replace every \n with and every \r with with
str_replace
And probably you see where the problem is
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)
--
PHP General Maili
On 17 March 2006 07:39, Gustav Wiberg wrote:
> - Original Message -
> From: "John Taylor-Johnston" <[EMAIL PROTECTED]>
> To: "PHP-General"
> Sent: Friday, March 17, 2006 7:51 AM
> Subject: [PHP] making a tutorial
>
>
> > I'm making a tutorial and don't really understand how to do this
>
Hi!
On Fri, 17 Mar 2006 09:46:16 +0100
Barry wrote:
> Simon M. Campden-Main wrote:
> > Good morning, folks.
> >
> > Can any one direct me to a snippet or suggest an approach
> > to obtaining the resolution of an image [file] with PHP.
> > [ . . . ]
>
> There is no way you can do it.
> To have o
Thanks
Ive tried it and waiting for feed back from the client on my pc it shows
correctly ,Im using thunder bird on his computer he uses outlook, but
Ive sent it to other people who have outlook and its fine on there PC.
Does the html add in \r.
clive
Barry wrote:
clive wrote:
Hi
Im us
The only two ways I can think this could work is you must either write the
output to a file with a php extension and then include that file, or you
must set up the apache server to parse html files in the same way as it does
php files. Just doing a normal output on a standard server won't recognise
Hi!
On Fri, 17 Mar 2006 12:07:42 +0200
Schalk wrote:
> Greetings All,
>
> I pull the following snippet of code directly from a MySQL
> database:
> [ . . . ]
> title="Intermodal">Intermodal
> [ . . . ]
>
> As you can see in line three, I use the following PHP code
> there:
>
> Unfortunate
Greetings All,
I pull the following snippet of code directly from a MySQL database:
Highway & Toll
Facilities
Mass Transit
title="Intermodal">Intermodal
Public Policy
Mega-Projects
Infrastructure
Renewal
International
Design-Build
Workouts
Advanced
Revenue Co
George Pitcher wrote:
Which of the following pets do have at home:
dog
cat
snake
snake
none of
these
[snip]
I don't know if this works in PHP as well.
It is a "checkbox" so it won't work without "[]" in PHP.
It will work without []. It will just not be an array.
For checkboxes you coul
clive wrote:
Hi
Im using the phpmailer class to send text emails (not html), it works 100%.
So emails sent from a php script look correct in the mail client,
however when I first load/show the message in a and then send
it to the same script which then sends the email, on some mail clients
suresh kumar wrote:
I searched php.net/session and weberdev website and
implemented session_cache_limiter() and
session_cache_expire() function.but i am not getting
the output what i want.i spend whole day on
searching.any one give the solution for my problem
in windows,if user idle for 1 minut
Simon M. Campden-Main wrote:
Good morning, folks.
Can any one direct me to a snippet or suggest an approach to obtaining the
resolution of an image [file] with PHP. exif_read_data() is great if the
image
was taken with a camera that is exif compliant, but is no help with my
scanned
images.
> >>> Which of the following pets do have at home:
> >>> dog
> >>> cat
> >>> snake
> >>> snake
> >>> none of
> >>> these
> >>>
> > [snip]
> >> I don't know if this works in PHP as well.
> > It is a "checkbox" so it won't work without "[]" in PHP.
> >
>
> It will work without []. It will just not b
Hi
Im using the phpmailer class to send text emails (not html), it works 100%.
So emails sent from a php script look correct in the mail client,
however when I first load/show the message in a and then send
it to the same script which then sends the email, on some mail clients
there are doub
Sameer N Ingole said:
> Gustav Wiberg wrote:
>>
>> - Original Message - From: "John Taylor-Johnston"
>> <[EMAIL PROTECTED]>
>> To: "PHP-General"
>> Sent: Friday, March 17, 2006 7:51 AM
>> Subject: [PHP] making a tutorial
>>
>>
>>> I'm making a tutorial and don't really understand how to do
Gustav Wiberg wrote:
- Original Message - From: "John Taylor-Johnston"
<[EMAIL PROTECTED]>
To: "PHP-General"
Sent: Friday, March 17, 2006 7:51 AM
Subject: [PHP] making a tutorial
I'm making a tutorial and don't really understand how to do this
myself :)
Which of the following pet
Arnaldo Gandol wrote:
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 u
84 matches
Mail list logo