On 08 August 2004 14:20, Josh Acecool M wrote:
Try adding
if (!function_exists(function_name)) {
function function_name ($blah) {
// Function Code
}
}
for each function.
As I understand it, that will *not* work in PHP 5 as it still parses the entire file,
barfing on the
Robby,
I just enabled log_errors locally. No errors (as I thought).
Since I am hacking a previously written site, the problem seems to arise
most
when accessing his pre-built functions across pages. For instance, he uses
a
'cards.php' to store all display functions -- showleft() --
Thanks for the idea, Josh.
I will do this, but still this hack doesn't answer the question: Why does it
work locally without hitch, yet totally barfs on a very similar configuration
on the net?
As I mentioned, this is a re-write. I've learned my lesson: never try to patch
another's code --
On Sunday 08 August 2004 01:51 am, Jason Wong wrote:
On Sunday 08 August 2004 09:38, Andre Dubuc wrote:
That's what I thought. But the differences are glaring. Seems like none
of the code wants to work. Navigation is a nightmare:
header(location:...); usually brings an error message:
Andre Dubuc wrote:
Thought I'd drop a note -- turning register_globals=off on the server in
question magically made everything work.
Now I'll rasie the question that IP manager has asked: Having
register_globals=of/on should not amke any difference to your site if you are
using $_POST,
Glad to hear turning reg globals off made it work :-)
I had suspected that because people often use the same variables for
different things and with globals on, well it can overwrite other vars.
Josh Acecool M [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
That might be something,
Hi,
I have re-written a very basic website to use sessions (switching to https)
for login to special areas of a site. After testing the site thoroughly
locally, I uploaded the whole shebang to a unix server that runs Apache 1.3.x
+ PHP 4.3.4 + mysql.
Almost all code broke - sessions would
On Sat, 2004-08-07 at 17:55, Andre Dubuc wrote:
Hi,
I have re-written a very basic website to use sessions (switching to https)
for login to special areas of a site. After testing the site thoroughly
locally, I uploaded the whole shebang to a unix server that runs Apache 1.3.x
+ PHP
On Sat, 7 Aug 2004 20:55:44 -0400, Andre Dubuc [EMAIL PROTECTED] wrote:
Hi,
I have re-written a very basic website to use sessions (switching to https)
for login to special areas of a site. After testing the site thoroughly
locally, I uploaded the whole shebang to a unix server that runs
On Saturday 07 August 2004 09:10 pm, you wrote:
On Sat, 2004-08-07 at 17:55, Andre Dubuc wrote:
Hi,
I have re-written a very basic website to use sessions (switching to
https) for login to special areas of a site. After testing the site
thoroughly locally, I uploaded the whole shebang
It could be that you have local error reporting set to none. It could also
be that you're using full paths when referencing files which then breaks
when moving files to a new server. Basically, there's a lot of
possibilities and I'm not going to have much luck helping unless you include
error
On Sat, 2004-08-07 at 19:00, Ed Lazor wrote:
It could be that you have local error reporting set to none. It could also
be that you're using full paths when referencing files which then breaks
when moving files to a new server. Basically, there's a lot of
possibilities and I'm not going to
On Saturday 07 August 2004 10:11 pm, Robby Russell wrote:
On Sat, 2004-08-07 at 19:00, Ed Lazor wrote:
It could be that you have local error reporting set to none. It could
also be that you're using full paths when referencing files which then
breaks when moving files to a new server.
Try adding
if (!function_exists(function_name)) {
function function_name ($blah) {
// Function Code
}
}
for each function.
That will fix the redeclare problem which happens if you call your cards.php
file in more than 1 file..
Andre Dubuc [EMAIL PROTECTED] wrote in message
On Sunday 08 August 2004 09:38, Andre Dubuc wrote:
That's what I thought. But the differences are glaring. Seems like none of
the code wants to work. Navigation is a nightmare: header(location:...);
usually brings an error message: function so and so -- include(xxx.php);
has already been
15 matches
Mail list logo