On 31 Oct 2007, at 16:16, Jochem Maas wrote:
are you using session_register()? (dont)
also are you setting the value in $_SESSION by reference?
No and no. The only time I'm writing to $_SESSION["basket"] is by
setting $_SESSION["basket"][] = "foo", I'm never touching the actual
$_SESSION[
Charlene wrote:
> I have the GD Library installed, but I don't see any of the fonts. What
> is the preferred location to download fonts (standard fonts like Arial,
> Verdana, etc.) and which directory should they be stored in?
'standard fonts' is not. and any directory you want. upload any legal
David Christopher Zentgraf wrote:
> On 31 Oct 2007, at 15:32, Jochem Maas wrote:
>
>> aside from this error (my guess is your not allowed to override it) I
>> can't
>> see the problem of serialization .. don't put the object in $_SESSION?
> ...
>> what are you doing? show us the code?
>
> I'm not
On 31 Oct 2007, at 15:32, Jochem Maas wrote:
aside from this error (my guess is your not allowed to override it)
I can't
see the problem of serialization .. don't put the object in $_SESSION?
...
what are you doing? show us the code?
I'm not putting the object in $_SESSION, but PHP apparen
David Christopher Zentgraf wrote:
> Hi,
>
> I'm trying to set up my PHP app at my host, but am stumbling over the
> PHP configuration there. register_globals is enabled, which seems to
> auto-serialize my objects into $_SESSION, which in some cases overwrites
> variables in there. I'm not sure if
On 31 Oct 2007, at 13:50, Larry Garfield wrote:
Try:
php_value register_globals Off
Same Apache misconfiguration error. Even though the host actually
requires me to enable PHP processing via an "AddHandler" .htaccess
directive, php_flag/value directives are throwing an error. Weird.
..
Try:
php_value register_globals Off
That should not have any impact on the $_SESSION array, but turning register
globals off anyway is a good thing.
On Tuesday 30 October 2007, David Christopher Zentgraf wrote:
> Hi,
>
> I'm trying to set up my PHP app at my host, but am stumbling over the
> PH
Hi,
I'm trying to set up my PHP app at my host, but am stumbling over the
PHP configuration there. register_globals is enabled, which seems to
auto-serialize my objects into $_SESSION, which in some cases
overwrites variables in there. I'm not sure if register_globals is
where the auto-se
I have the GD Library installed, but I don't see any of the fonts. What
is the preferred location to download fonts (standard fonts like Arial,
Verdana, etc.) and which directory should they be stored in?
Charlene
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
It was a symfony thing.
For anyone else's future reference, if you are integrating with some big
monolith of an app and you find that your sessions are "disconnected"
when going from the big app to your little script... check out
session_name().
K bye!
--
PHP General Mailing List (http://www.
session_module_name() returns 'files' for both.
Altering the session.cookie_path (to set it to /) and
session.cookie_domain (to set it to '') did not help.
Moving the files to DOCUMENT_ROOT where the Ajax scripts are didn't
help; the main app still has the session, the Ajax script still doesn't.
Nevermind... I don't know what the problem is yet but it's not the
folder.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Howdy all,
I have a login app that runs at:
DOCUMENT_ROOT/admin/index.php
and an AJAX action at:
DOCUMENT_ROOT/somefile.php
The login app and all the scripts based under the admin/ folder have no
problems, but the AJAX scripts don't know jack about any stinkin
$_SESSION var.
I can only pre
On Monday 29 October 2007 16:26:13 Jim Lucas wrote:
> Børge Holen wrote:
> > On Sunday 28 October 2007 07:27:53 you wrote:
> >> Børge Holen wrote:
> >>> I found this code at php.net witch needs very little modifications and
> >>> can do so much, but I can't figure out how to make it read alphabetic
Richard Heyes wrote:
> OK so now I'm back to compiling PHP after the ridiculous nightmare of
> rpms. I checked /lib and have the following:
>
> [EMAIL PROTECTED] php-5.2.4]# ls -l /lib/libz.so.1.2.3
> -rwxr-xr-x 1 root root 71744 Sep 21 19:23 /lib/libz.so.1.2.3
>
> Is PHP looking for a different
Larry Garfield wrote:
> The sooner you convince new PHP programmers to do things in a
> naturally more secure way, the fewer bugs they will accidentally
> introduce later.
And how do you go about convincing them? That's still the key question.
/Per Jessen, Zürich
--
PHP General Mailing List
In the works:
http://phpcompiler.org/
The guys working on it are still actively developing and answering the
support list. It does not compile to executable yet (I understand it mostly
does except for some tricky parts of the language) but it helps development
with other tools that you will
this may already have been asked before, but i'll ask anyway.
is there any way to do C-style macros in PHP? i heard a rumor that
PHP6 is gonna support this--can anyone confirm to what degree?
thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un
"Nathan Nobbe" wrote:
On 10/29/07, Crayon Shin Chan <[EMAIL PROTECTED]> wrote:
On Sunday 28 October 2007, magoo wrote:
I have switched to using single quotes, and found out that newline
(\n) only works in double quotes. It looks kind of stupid using
'someString'."\n"; and it`s kind of inconsi
On 10/30/07, Richard Heyes <[EMAIL PROTECTED]> wrote:
>
> Wolf wrote:
> > Anyone use compilers (linux based or Windoze) and which do you use?
> >
> > Looking for something free (best) or low cost as we are doing some
> > investigation on what methods are best for some of the stuff we have,
> > and
Richard Heyes wrote:
Wolf wrote:
Anyone use compilers (linux based or Windoze) and which do you use?
Looking for something free (best) or low cost as we are doing some
> investigation on what methods are best for some of the stuff we have,
and I'm thinking a compiled PHP app should run faster
Wolf wrote:
Anyone use compilers (linux based or Windoze) and which do you use?
Looking for something free (best) or low cost as we are doing some
> investigation on what methods are best for some of the stuff we have,
and I'm thinking a compiled PHP app should run faster.
There's the free e
Anyone use compilers (linux based or Windoze) and which do you use?
Looking for something free (best) or low cost as we are doing some
investigation on what methods are best for some of the stuff we have, and I'm
thinking a compiled PHP app should run faster.
Thanks!
Wolf
--
PHP General Maili
2007. 10. 30, kedd keltezéssel 10.21-kor Daniel Brown ezt írta:
> On 10/30/07, Zoltán Németh <[EMAIL PROTECTED]> wrote:
> > 2007. 10. 29, hétfő keltezéssel 11.17-kor Daniel Brown ezt írta:
> > > On 10/29/07, Zoltán Németh <[EMAIL PROTECTED]> wrote:
> > > > hi list,
> > > >
> > > > I have this code:
On Tue, 2007-10-30 at 09:10 -0500, Larry Garfield wrote:
> On Tuesday 30 October 2007, Per Jessen wrote:
> > Larry Garfield wrote:
> > > Here's a bigger question: When will people stop using mysql_ as their
> > > example API, when PDO is more standard in PHP 5 and more secure, and
> > > mysqli is a
Robin Vickery wrote:
On 30/10/2007, Per Jessen <[EMAIL PROTECTED]> wrote:
Larry Garfield wrote:
On Monday 29 October 2007, Per Jessen wrote:
Cristian Vrabie wrote:
Hmm 117,223 hosts with php4 only support. Did you actually checked
how many have php5 support? Many more
On 10/30/07, Zoltán Németh <[EMAIL PROTECTED]> wrote:
> 2007. 10. 29, hétfő keltezéssel 11.17-kor Daniel Brown ezt írta:
> > On 10/29/07, Zoltán Németh <[EMAIL PROTECTED]> wrote:
> > > hi list,
> > >
> > > I have this code:
> > [snip!]
> > > Parse error: syntax error, unexpected '@'
> > > in /home/
On Tuesday 30 October 2007, Per Jessen wrote:
> Larry Garfield wrote:
> > Here's a bigger question: When will people stop using mysql_ as their
> > example API, when PDO is more standard in PHP 5 and more secure, and
> > mysqli is available as well?
>
> As always, the key question must be - what's
Robin Vickery schreef:
[snip]
Because each of your subpatterns can match an empty string, the
lefthand subpattern always matches and the righthand subpattern might
as well not be there.
Indeed they do, i did not realise that.
The simplest solution, if you don't want to completely rethink yo
On 30/10/2007, Per Jessen <[EMAIL PROTECTED]> wrote:
> Larry Garfield wrote:
>
> > On Monday 29 October 2007, Per Jessen wrote:
> >> Cristian Vrabie wrote:
> >> > Hmm 117,223 hosts with php4 only support. Did you actually checked
> >> > how many have php5 support? Many more.
> >>
> >> There are 178
On 30 October 2007 11:07, Stijn Verholen wrote:
> Hey list,
>
> I'm having problems with grouped alternative patterns.
> The regex I would like to use, is the following:
>
> /\s*(`?.+`?)\s*int\s*(\(([0-9]+)\))?\s*(unsigned)?\s*(((auto_i
> ncrement)?\s*(primary\s*key)?)|((not\s*null)?\s*(default\
On 30/10/2007, Stijn Verholen <[EMAIL PROTECTED]> wrote:
> Hey list,
>
> I'm having problems with grouped alternative patterns.
> The regex I would like to use, is the following:
>
> /\s*(`?.+`?)\s*int\s*(\(([0-9]+)\))?\s*(unsigned)?\s*(((auto_increment)?\s*(primary\s*key)?)|((not\s*null)?\s*(defau
At 9:32 AM + 10/30/07, Hulf wrote:
Hi,
Is there a built in function in PHP5 to determine if an integer is even or
odd?
Ross
Try:
echo($integer & 1);
1 = odd, 0 = even.
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mail
Richard Heyes wrote:
Per Jessen wrote:
Richard Heyes wrote:
The following is in config.log:
configure:20028: checking whether libxml build works
configure:20055: gcc -o conftest -g -O2 conftest.c
-lresolv -lm -ldl -lnsl -lxml2 -lz -lm 1>&5
/usr/bin/ld: cannot find -lz
Looks li
Per Jessen wrote:
Richard Heyes wrote:
The following is in config.log:
configure:20028: checking whether libxml build works
configure:20055: gcc -o conftest -g -O2 conftest.c
-lresolv -lm -ldl -lnsl -lxml2 -lz -lm 1>&5
/usr/bin/ld: cannot find -lz
Looks like you need to install
Hey list,
I'm having problems with grouped alternative patterns.
The regex I would like to use, is the following:
/\s*(`?.+`?)\s*int\s*(\(([0-9]+)\))?\s*(unsigned)?\s*(((auto_increment)?\s*(primary\s*key)?)|((not\s*null)?\s*(default\s*(`.*`|[0-9]*)?)?))\s*/i
It matches this statement:
`id` INT
Richard Heyes wrote:
> The following is in config.log:
>
> configure:20028: checking whether libxml build works
> configure:20055: gcc -o conftest -g -O2 conftest.c
>
> -lresolv -lm -ldl -lnsl -lxml2 -lz -lm 1>&5
> /usr/bin/ld: cannot find -lz
Looks like you need to install libz.
Hi,
Trying to install PHP, however it's failing with the following:
Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /usr/lib64
checking for xml2-config path... /usr/bin/xml2-config
checking whether libxml build works... no
configure: error:
At 09:32 30/10/2007, Hulf wrote:
Hi,
Is there a built in function in PHP5 to determine if an integer is even or
odd?
How about :
if ($IntegerValue % 2) {
// odd
} else {
// even
}
HTH
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php
Hi,
Is there a built in function in PHP5 to determine if an integer is even or
odd?
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Larry Garfield wrote:
> On Monday 29 October 2007, Per Jessen wrote:
>> Cristian Vrabie wrote:
>> > Hmm 117,223 hosts with php4 only support. Did you actually checked
>> > how many have php5 support? Many more.
>>
>> There are 178.112 hosters that have PHP5 support. I checked.
>
> Where and how
Larry Garfield wrote:
> Here's a bigger question: When will people stop using mysql_ as their
> example API, when PDO is more standard in PHP 5 and more secure, and
> mysqli is available as well?
As always, the key question must be - what's the advantage of moving?
When the developer benefits fr
2007. 10. 29, hétfő keltezéssel 09.17-kor Jim Lucas ezt írta:
> Daniel Brown wrote:
> > On 10/29/07, Zoltán Németh <[EMAIL PROTECTED]> wrote:
> >> hi list,
> >>
> >> I have this code:
> > [snip!]
> >> Parse error: syntax error, unexpected '@'
> >> in /home/znemeth/public_html/test/pregreplacetest1.
43 matches
Mail list logo