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
Wow, OK... Can you get this same error reducing a copy of the the script
down to just core PHP, and that scenario?
If so, what version of PHP on what OS is giving you this error?
I have seen PHP give some incredibly wonky errors and sometimes they had
nothing at all to do with the part of the cod
http://www.qmailrocks.com/
I am mailserver-challenged and I changed my VPS from exim to qmail with
only one practice run using their guides, patch-kits, and add-on
bundles.
On Tue, 2007-10-23 at 10:52 -0400, Jeff Mckeon wrote:
> > -Original Message-
> > From: Daniel Brown [mailto:[EMAIL
Note: empty() only checks variables as anything else will result in a
parse error. In other words, the following will not work:
empty(trim($name)).
http://www.php.net/manual/en/function.empty.php
On Tue, 2007-10-23 at 13:20 -0400, Dan Shirah wrote:
> I am having some issues with empty().
>
Also, AFAIK, PHP has always thrown a warning or notice if you use
foreach() on a non-associative array. That doesn't mean it won't work,
but the strict standard is apparently:
foreach ($assoc as $key => $val)
not
foreach ($indexed as $item)
However, as we all know, the latter still works fine.
Possibly... I've never read about MySQL views, so I can't refute it :)
The problem at hand is solved, but thanks. Might have to give views a
glance in TFM.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Nevermind. Just because they can't afford a database redesign doesn't
mean they can't afford a new index table containing date-indexed links
to both tables entities.
On Sat, 2007-10-20 at 21:39 -0400, Nathan Hawks wrote:
> I'm doing a project where the database was desi
Are you running a multi-user hosting service?
If so you can create include files on a per-user or per-domain basis.
Use the Apache config directive php_value to set your include_path and
open_basedir appropriately for each account; and other options as
desired.
I don't know of a particular site,
I'm doing a project where the database was designed before me and they
don't have a budget for a database re-design. There are two entity
tables which /should/ have been the same model with some meta-fields
keyed off a type field, but it's not. It's two tables, which should be
displayed intermixe
I have only done this when I am building the function name using a
string expression, so my advice might not be necessary in your case but
it has worked for me:
{$function}($var);
In that case, the curly braces equate to the eval() function in
Javascript.
Jay Blanchard wrote:
> I don't think you
If by "creates a web page" you just mean it echos output to the browser,
and you want to do something else after that, then:
After you have sent your and have no more output for the
browser, just use the include() function to run your extra process.
e.g
On Thu, 2007-10-18 at 20:19 -040
10/13/07, Nathan Hawks <[EMAIL PROTECTED]> wrote:
> Ps: I have 4 other apps installed in this project and they
> all work
> fine :\ Believe me, in a file as short as a symfony front
> controller,
> and after checking about 40 times, I'm pr
I don't use lists regularly, sorry for the double-reply to Nathan.
Sadly:
- no ssh on the client box
- can't 100% mimic because I have a different Apache
However, I did use symfony freeze to move all the Pear modules etc that
it needs, into the local site.
An additional clue might be: the
Hey all,
I wrote a symfony app this week for a client, and I'm trying to install
it on their server today. I am getting a Fatal that I can only assume
is either an Apache 1.3.37 bug, or a PHP 5.2.4 bug. It's madness. PHP
is reporting an undefined function, but it's undefined because it's only
a
Hey all. This is my first post, 'coz it's the first time I've ever had
such a confusing problem with PHP.
I recently got a VPS and compiled PHP 5.2.1 with the following options:
--prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs
--with-config-file-path=/etc/php5 --with-curl
--with
18 matches
Mail list logo