In that case you could use the /e trailing option to use strtolower on the
subpattern.
Chris wrote:
If nobody provides information then try the -internals list, they'll
probably be able to help a bit more.
Thanks a lot! I've done so, because it's very urgent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dear all,
I use php version 4.4.2. When i use mssql and sybase extention, they are
conflict together. I don't know how to using them together.
Please help me...
Thanks & Best Regard
This is getting too philosophical for my taste. There are many reasons to
justify different ways of programming and each user, according to his/her
requirements, experience and circumstances weights them differently and may
decide in a different way. I am not about argue in favor of any one me
Well, I've only just fallen out of bed, but I'd say you'd be able to
access it via $var[0][0][0] as in $var["1.2"]["code"][0] to change 111
to something else and $var["1.2"]["status"][0] to set/change "new".
I must say this looks like an overly complicated array for what it
serves. A little OOP co
Hi Richard,
Hi all,
The include path is correct. That was one of the first things I played around
with. At the moment, it's include_path = ".". I also tried renaming the
php.ini file to php.ini.off so that it wasn't found and took all the
defaults, but with no success.
Last night I built
On Thursday 30 November 2006 19:04, Richard Lynch wrote:
[snip...]
And of course I forgot to put in the configure arguments
'./configure' \
'--without-pear' \
'--with-apxs2=/usr/local/apache2/bin/apxs' \
'--enable-mm=shared' \
'--with-mysql=/usr/local/MySQL/mysql-standard-5.0.27-solaris10-spar
Dear Paul,
Many thanks for replaying my message, It was very helpful and now I really
understood why I so negative for templating systems...
I haven't got programer background or education. I'm self learner.
Many of php programmers have other programming experiences, and if I
understand correc
Youri LACAN-BARTLEY wrote:
> Well, I've only just fallen out of bed, but I'd say you'd be able to
> access it via $var[0][0][0] as in $var["1.2"]["code"][0] to change 111
> to something else and $var["1.2"]["status"][0] to set/change "new".
>
> I must say this looks like an overly complicated arra
> [EMAIL PROTECTED] wrote:
>> hi,
>> I had to move my osComerce store to new hosting company. new server runs
>> on php5/mysql5.
>>
>> got this error:
>> FATAL ERROR: register_globals is disabled in php.ini, please enable it!
>>
>> since evenon old server globals was Off I was adding
>>
>> php_val
That seems right to me too - but everything I try returns NULL. I set
$try=$var[0], and $try ends up being null; print_r($try) gives blank.
I even tried $try=$var[1] and it was the same result. Am I in the
Twilight Zone?
On Dec 1, 2006, at 12:26 AM, Youri LACAN-BARTLEY wrote:
-BEGIN
Try
$try = $var["1.2"];
If your array looks like the one below then there is no $var[0] and
therefore you get NULL
/Thunis
Brian Dunning skrev:
That seems right to me too - but everything I try returns NULL. I set
$try=$var[0], and $try ends up being null; print_r($try) gives blank.
I even
Hi Jochem,
I meant "overly-complicated" in this specific context.
If each key of this array is going to contain only one value why not
reduce the array to something like this :
array(1) {
["1.2"]=>
array(2) {
["code"]=> string(3) "111"
["status"]=> string(3) "new"
}
}
That's all I
That works, but the value 1.2 is unknown, I can't hardcode it.
On Dec 1, 2006, at 6:52 AM, Fredrik Thunberg wrote:
Try
$try = $var["1.2"];
If your array looks like the one below then there is no $var[0] and
therefore you get NULL
/Thunis
Brian Dunning skrev:
That seems right to me too -
http://www.php.net/manual/en/language.types.array.php
If you check out the documentation on arrays, you will see the second
code example shows the expected behavior of arrays in this case.
$arr = array("foo" => "bar", 12 => true);
echo $arr["foo"]; // bar
echo $arr[12];// 1
Now, since each
I forgot to mention that you won't be able to use "0", "1", etc. as PHP
will convert those to integers. If you do use them, then they will
replace [0] with whatever you put in there, and if you are using the
references, it will replace both instances with your new ["0"]
HTH
--
Ray Hauge
Applicat
Well if the key of your array is unknown, you could always gather the
key names with array_keys() and fiddle something from there or just
change the structure of you array to be more adapted to you needed or
use what Ray just proposed in another post concerning references and the
creation of a nume
> > The strange thing is that even the fifth parameter solution doesn't work.
> > I use Postfix as MTA by the way.
>
> Strange - I use postfix on my dev server and it works fine. Are you
> running anything non-default in postfix (eg chroot) ?
>
> --
> Postgresql & php tutorials
> http://www.design
[EMAIL PROTECTED] wrote:
> yup! that was the problem.
> btw, any free cart that is well supported in php5/mysql5/apache2 and
> register globals off etc. to recomend?
>
> thanks.
>
> -afan
Well I would really be tempted to say, MINE ! Although it's still in a
sick state alpha version right now ...
Hi Jordan,
Thank you for your offer. As you know, I've signed up a couple of days
ago. I ran a scan yesterday and have gotten a big PDF file out of it.
I've quickly scanned through the results and it appears there are a lot of
times when I use one of my own functions (sometimes even without an
arg
Hi there Chantal,
Hi all,
have you ever thought of using phpMailer or swiftmailer?
That has solved me a lot of hassle with time, especially as far as
correctly setting the Return-Path is concerned.
Good luck !
Chantal Rosmuller wrote:
>>> The strange thing is that even the fifth parameter soluti
On Nov 30, 2006, at 7:50 PM, Jonesy wrote:
On Thu, 30 Nov 2006 14:16:16 -0800, Kevin Murphy wrote:
I have some text that comes out of a database all in uppercase (old
IBM Mainframe that only supports uppercase characters).
I see via other followups that you have your kludge working. *But*
On Thu, November 30, 2006 12:29 pm, Edwin Barrios wrote:
> This is not triue because a shell vars declered on a shell is only
> exposed
> to its subshells, that means that only exec's and system functions
> calls
> into the php itself resive those vars declared into the php !
>
> You can see this a
If you did use ENV to set the username and password, you could always unset it
using the same method after you ran the mysql command. So it'd only be exposed
for a very brief period of time and slightly less accessible than just running
a process list.
It still falls under the category of "sec
Hi all,
I've been searching around for a while, but cannot find a solution. For
a project of mine, I need to keep the connection information to a MySQL
server database on another server.
Example remote file:
Example local file:
http://www.remoteserver.com/remote_file.php";;
// Use variabl
Hello DC,
Am 2006-11-27 02:43:41, schrieb Dotan Cohen:
> Exactly for that reason I don't recommend that you use it. Just use
> as it's portable and doesn't add that much
> typing- certainly not enough to justify the headache.
Thanks for this info.
This is new for me and since I rewrite many of
Am 2006-11-27 03:28:08, schrieb Dotan Cohen:
> Actually, it does. He can global replace "http://counter.li.org/
# Debian GNU/Linux Consultant #
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxM
i suggest you:
database.conf (the file on another server)
host=localhost
user=test
pass=test
anothervar=anothervalue
on your script:
$temp = file(http://../database.conf);
foreach($temp as $val) {
$temp2 = explode("=",$val);
$$temp2[0] = $temp[1];
}
after that, you`ll have:
$host = 'loc
- Original Message -
From: "Satyam" <[EMAIL PROTECTED]>
The Wikipedia article of the day provides some interesting facts about
when if became naughty:
http://en.wikipedia.org/wiki/History_of_erotic_depictions
--
May I add something that came to my mind related to this. As the Wi
On Fri, 2006-12-01 at 20:41 +0100, Satyam wrote:
> - Original Message -
> From: "Satyam" <[EMAIL PROTECTED]>
>
>
> > The Wikipedia article of the day provides some interesting facts about
> > when if became naughty:
> >
> > http://en.wikipedia.org/wiki/History_of_erotic_depictions
> >
>
On Fri, 1 Dec 2006, Kevin Murphy wrote:
> On Nov 30, 2006, at 7:50 PM, Jonesy wrote:
>> On Thu, 30 Nov 2006 14:16:16 -0800, Kevin Murphy wrote:
>>>
>>> I have some text that comes out of a database all in uppercase (old
>>> IBM Mainframe that only supports uppercase characters).
>>
>> I see via oth
That seems like it wouldn't be very secure at all. Maybe it's just
because I don't understand the reason for *having* to do it that way.
My first suggestion would be to see if there's any way you don't have to
do that. If you have to do it, I would suggest maybe having it on an
NFS share, or mayb
At 12/1/2006 10:17 AM, Scott wrote:
For a project of mine, I need to keep the connection information to
a MySQL server database on another server.
I'm sure there are more efficient ways to do this, but here's a fall-back:
Write a PHP program (web service) to run on the server where the
datab
cajbecu wrote:
i suggest you:
database.conf (the file on another server)
host=localhost
user=test
pass=test
anothervar=anothervalue
have you thought of the security implications of this, a text file with
user names/passwords, thats rather insecure I would say,
on your script:
$temp = f
Scott wrote:
Hi all,
I've been searching around for a while, but cannot find a solution. For
a project of mine, I need to keep the connection information to a MySQL
server database on another server.
http://www.remoteserver.com/remote_file.php";;
// Use variables $user and $pass somehow...
?
Hello,
without trying to embarrass myself, but
Here the "smart quoting" function off php.net
|function quote_smart($value)
{
// Stripslashes
if (get_magic_quotes_gpc()) {
$value = stripslashes($value);
}
// Quote if not a number or a numeric string
if (!is_numeric($value)) {
On 12/1/06, Johannes Lindenbaum <[EMAIL PROTECTED]> wrote:
Hello,
without trying to embarrass myself, but
Here the "smart quoting" function off php.net
|function quote_smart($value)
{
// Stripslashes
if (get_magic_quotes_gpc()) {
$value = stripslashes($value);
}
// Quote
Eric Butera schrieb:
You almost have it. What you need to do is if magic quotes is on,
then stripslashes and apply mysql_real_escape_string. If magic quotes
is off only apply mysql_real_escape_string since php didn't escape
values for you.
Also in your mysql_real_escape_string I would sugge
On 12/1/06, Johannes Lindenbaum <[EMAIL PROTECTED]> wrote:
Eric Butera schrieb:
>
> You almost have it. What you need to do is if magic quotes is on,
> then stripslashes and apply mysql_real_escape_string. If magic quotes
> is off only apply mysql_real_escape_string since php didn't escape
>
On Fri, December 1, 2006 12:17 pm, Scott wrote:
> I've been searching around for a while, but cannot find a solution.
> For
> a project of mine, I need to keep the connection information to a
> MySQL
> server database on another server.
>
> Example remote file:
>
> $user = "joe";
> $pass = "1234";
Try running it under some kind of debugger and see if you can figure
out what directories it's even checking when it doesn't find the
file...
I dunno if Zend IDE (or whatever it's called now) or Komodo or XDebug
or whatnot will do that, but it's definitely sounding very odd if your
include_path ha
On Fri, December 1, 2006 2:28 am, Le Phuoc Canh wrote:
> I use php version 4.4.2. When i use mssql and sybase extention, they
> are
> conflict together. I don't know how to using them together.
It might be easiest to dump mssql and use sybase exclusively.
Last I heard, Microsoft hasn't actually c
There is no $var[0];
It's $var['1.2];
There is no $var[0][0];
It's $var['1.2']['code'];
The remainder of this email composition is left as an exercise for the
reader.
On Fri, December 1, 2006 8:46 am, Brian Dunning wrote:
> That seems right to me too - but everything I try returns NULL. I set
On Thu, November 30, 2006 5:04 pm, Kevin Murphy wrote:
> Well the problem would be then that the entire string would be lower
> case, and I only can have the link as lower case. Is there a way to
> apply strtolower into the preg_match?
Why not use lower(link) in SQL to get the link out in the firs
On Fri, December 1, 2006 9:28 am, Ray Hauge wrote:
> I forgot to mention that you won't be able to use "0", "1", etc. as
> PHP
> will convert those to integers. If you do use them, then they will
> replace [0] with whatever you put in there, and if you are using the
> references, it will replace b
Is there some trick to getting PHP GD to properly convert a 24bit PNG
[with alpha] into a JPEG without garbling the image output?
The below will output the jpg image, but it appears that the alpha
channel from the original png is garbling the jpeg a bit
To no avail, I tried setting imageAlph
On Thu, November 30, 2006 6:47 pm, Paul Novitski wrote:
> A templating system requires the processor to merge content with
> template. An inline markup assembly system requires the processor to
> build the markup from function calls. Where is the technique that
> doesn't take machine cycles?
You
On Fri, December 1, 2006 2:32 pm, Johannes Lindenbaum wrote:
> Here the "smart quoting" function off php.net
>
> |function quote_smart($value)
> {
>// Stripslashes
>if (get_magic_quotes_gpc()) {
>$value = stripslashes($value);
>}
>// Quote if not a number or a numeric strin
On Dec 1, 2006, at 1:56 PM, Richard Lynch wrote:
On Thu, November 30, 2006 5:04 pm, Kevin Murphy wrote:
Well the problem would be then that the entire string would be lower
case, and I only can have the link as lower case. Is there a way to
apply strtolower into the preg_match?
Why not use lo
Blah sorry, I saw your second example not your final code. Some
scripts I use have different database connections and because of that
it is very important to always make sure I am using the correct link
identifier.
The php best practice example checks the string to see if it is a
number. If it
Hello
Despite all of my results to succeed, i can not make this work. What i want
to do is to write a simple socket server in PHP. My current example just
prints the same character, you send to server from keyboard. It is
successfull in forking, and generates child as people connect. However in
an
At 12/1/2006 02:22 PM, Richard Lynch wrote:
On Thu, November 30, 2006 6:47 pm, Paul Novitski wrote:
> A templating system requires the processor to merge content with
> template. An inline markup assembly system requires the processor to
> build the markup from function calls. Where is the tech
On Fri, 2006-12-01 at 17:51 -0800, Paul Novitski wrote:
> > At 12/1/2006 02:22 PM, Richard Lynch wrote:
> >
> > Try 10 X as many for most templating solutions.
>
> Ten times as many templates as there are pages on the site? Wow,
> that's a lot. Fortunately I don't use any of those templating
>
Thanks for the help. :)
I posted to the freeBSD list and was given the answer there. in case
anyone is interested and for the sake of the archive, I needed a path
specified in the shell script. The following URL provides the necessary
info for fixing the script. http://linux.dbw.org/shellscript_how
54 matches
Mail list logo