I wonder why my website runs smooth in PHP 4.1.1 but it does not in
4.3.7.
Without knowing any relevant details at all, I would suggest that the
settings are different between the two servers, particularly
register_globals and magic_quotes.
Larry
--
PHP General Mailing List (http://www.php.net/
On Jul 2, 2004, at 9:46 AM, Dannis Yang wrote:
Dear:
I wonder why my website runs smooth in PHP 4.1.1 but it does not in
4.3.7.
Dannis
Please go through and tell us more information! We can't help you
otherwise!
At least tell us what your site does and define what "smooth" is and is
not. And
Hello All,
I can built PHP 4.3.7 on 11.23 IPF IC71L. But I got
core dumped when I give gmake test.
I used the following steps to build:
$ ./configure --prefix=/opt/hpws/apache/php
--with-apxs2=/opt/hpws/apache/bin/apxs --with-gettext
--with-xml
$ gmake
$ gmake test
/bin/sh: 13218 Memory fault(
Justin Patrin wrote:
> It just depends on the vars that the code expects. If it expects them
> to come via get, it may be $_GET, post, it may be $_POST. Or either of
> those could be in $_REQUEST (which is populated according to a config
> var) in a certain order from $_GET, $_POST, and $_COOKIE.
--- Matt Palermo <[EMAIL PROTECTED]> wrote:
> Okay, I actually found out how to list the users,
> but you have the following
> line of code:
>
> define('SITE_ONLINE_EXPIRE', 900);
>
> What is the 900? Is that 900 seconds?
>
Yes time is in seconds.
zareef ahmed
=
Zareef Ahmed :: A PHP Dev
It just depends on the vars that the code expects. If it expects them
to come via get, it may be $_GET, post, it may be $_POST. Or either of
those could be in $_REQUEST (which is populated according to a config
var) in a certain order from $_GET, $_POST, and $_COOKIE. In addition,
$_GET can be in $
Dear:
I wonder why my website runs smooth in PHP 4.1.1 but it does not in 4.3.7.
Dannis
> I realize the key needs to be stored somewhere which is part of the
> problem of how to make it a bit more secure. I just don't feel safe if
> a password in a flat file in clear text. Ideally the database should
> support something like an ssh style public/private Key auth where the
> private K
Hi,
Saturday, July 3, 2004, 3:00:22 AM, you wrote:
AN> Tom Rogers wrote:
>>With call_user_function() you need to do this:
>>
>>call_user_func("fun", &$var);
>>
>>
AN> Tom, this won't work due to the Call-Time Pass-By-Reference deprecation.
AN> Does anyone know how to do this?
AN> The error me
Justin Patrin wrote:
> On Sat, 03 Jul 2004 03:02:07 +1000, Trejkaz Xaoza <[EMAIL PROTECTED]>
> wrote:
>>
>>
>> Is there some way to fake inclusion with a query string attached?
>>
>
> Yep. Set the $_GET, $_POST, or $_REQUEST vars you need before
> including. You could also store a backup copy
Hi Everyone,
I'm finally making the switch from Windows to Linux for development and
I've run into a problem. I've got Apache, MySql, and PHP (I think, all
the files look like there in the right places) installed. However I can
only get Apache and MySql up and running, I can't seem to figure ou
I don't think so. I would suggest using PEAR::Mail, which has support
for passwords through its SMTP backend.
On Fri, 02 Jul 2004 23:44:48 +0100, Olly <[EMAIL PROTECTED]> wrote:
>
> [mail function]
> ; For Win32 only.
> SMTP = smtp.mail.yahoo.co.uk ; for Win32 only
> sendmail_from= [EMAIL PROTECT
[mail function]
; For Win32 only.
SMTP = smtp.mail.yahoo.co.uk ; for Win32 only
sendmail_from= [EMAIL PROTECTED] ; for Win32 only
; For Win32 only.
;sendmail_from = [EMAIL PROTECTED]
is there anyway to set a password for the mail function in php.ini
thanks
--
Olly
Using Opera's revolutionary e-mail
On Fri, 2 Jul 2004 22:45:23 +
Curt Zirzow <[EMAIL PROTECTED]> wrote:
> * Thus wrote Torsten Roehr:
> > "Zilvinas Saltys" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > >
> > > The only thing i want to know is all the truth about IE (6?) and cookies
> > :)
> > >
> > > Heeel
* Thus wrote Jough P:
> Greetings, for anyone who is interested, I figured out what the problem
> was.
>
> After perusing my config options a few times I noticed one that was
> suspicious
> --with-pcre-regex=/usr
I had a feeling it was that.
>
> I then found out these was the perl compatibl
* Thus wrote Jough P:
> Hi all, I'm having trouble installing PHP 5 on a Fedora Core 2 box.
> I get through ./configure fine but during the make I get errors like
> this:
> ext/pcre/php_pcre.lo(.text+0x2e38):/home/jough/php-5.0.0RC3/ext/pcre/
> php_pcre.c:1482: undefined reference
Hello,
On 07/02/2004 07:18 PM, Shaun Fanning wrote:
Thanks Manuel, I will take a look at it. I do have complete control over the
box this is running on, so I can rebuild PHP with support for CURL and
OpenSSL if necessary. My main concern is having a robust approach that is
fast and efficient under
* Thus wrote Torsten Roehr:
> "Zilvinas Saltys" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> >
> > The only thing i want to know is all the truth about IE (6?) and cookies
> :)
> >
> > Heeelp :)
>
> Sorry to say that but just DO NOT use cookies. You will always have problems
> w
Found lots of stuff under google "PHP Obfuscate". Unless you have compiler,
php is source, and obfuscators seem to be directed at making things both
compact and hard to hack. On the other hand, if you have a compiler, ignore
this.
Warren Vail
-Original Message-
From: Curt Zirzow [mail
* Thus wrote Steve Douville:
> There used to be a way that stripped something from a PHP binary that
> drastically reduced the size of the cgi file. For the life of me, I can't
> remember and can't find it on google anywhere. Anyone know what it is?
You're looking for the 'strip' command
Curt
--
Thanks Manuel, I will take a look at it. I do have complete control over the
box this is running on, so I can rebuild PHP with support for CURL and
OpenSSL if necessary. My main concern is having a robust approach that is
fast and efficient under a high load.
On 7/2/04 5:55 PM, "Manuel Lemos" <[E
Hi,
I am completely new to PHP and would need some help.
I have just opened a site for my manufaturing business and would like to
create a section where each of my clients get their own account in which
they can login and check the status of their order.
For this I would need a script for account
Hello,
On 07/02/2004 01:40 PM, Shaun Fanning wrote:
I need to interface with a partner's XML API and they require that the XML
request be sent via HTTPS POST. I also need to parse the XML response that
the partner's server will send back. Is CURL the best way to handle the
transfer or something lik
There used to be a way that stripped something from a PHP binary that
drastically reduced the size of the cgi file. For the life of me, I can't
remember and can't find it on google anywhere. Anyone know what it is?
TIA,
Steve
Well that's a whole different thing, then.
-Original Message-
From: Anzak Wolf [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 1:40 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Password encyption
I do run my own server but I know for a fact that even if I hard
> No, this is exactly what I wanted to know. But it would contradict
> everything I experienced with sessions until now - and it does. I just
> tested your code (with session_start() also at the top of page2). It does
> not work because there is absolutely no relation between page1 and page2
> with
"Matthew Sims" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> >> The $_SESSION['sid'] will follow from page to page. As long as the user
> stays in the current session, all $_SESSION variables will follow from
> page to page as long as session_start() is used.
> >
> > OK, but HOW do
On Friday 02 July 2004 04:38 pm, Matthew Sims wrote:
> As long as the user keeps his browser pointing at your site, then they'll
> stay in the currect session. The moment they shut down the web browser,
> the session is lost.
>
The logic doesnt compute with me. I guess I'll have to try this mysel
>So host your own server. That way nobody but you has access to it.
>Then you could store the password wherever you want, unecrypted, and it
>wouldn't matter. If you're running an application that's that security
>conscious, you shouldn't be using a shared server anyway.
I do run my own server bu
> So host your own server. That way nobody but you has access to it.
> Then you could store the password wherever you want, unecrypted, and it
> wouldn't matter. If you're running an application that's that security
> conscious, you shouldn't be using a shared server anyway.
>
> -Original Mes
>> The $_SESSION['sid'] will follow from page to page. As long as the user
stays in the current session, all $_SESSION variables will follow from
page to page as long as session_start() is used.
>
> OK, but HOW do you manage that the user stays in the current session.
Usually this is made sure by p
So host your own server. That way nobody but you has access to it.
Then you could store the password wherever you want, unecrypted, and it
wouldn't matter. If you're running an application that's that security
conscious, you shouldn't be using a shared server anyway.
-Original Message-
F
>[snip]
>I realize the key needs to be stored somewhere which is part of the
>problem of how to make it a bit more secure. I just don't feel safe if
>a password in a flat file in clear text. Ideally the database should
>support something
>like an ssh style public/private Key auth where the privat
* Thus wrote Andrew Nagy:
> How do you use the call_user_func function with call-time
> pass-by-reference deprecation?
>
> For example:
>
> function fun(&$arg) {
> $arg++;
> }
> $var = 0;
> call_user_func("fun", $var);
> echo $var; //echoes 0 instead of 1
$func_call = 'fun';
$func_call($var);
First of all, you might want to put more than one % probably like %%%
Reason is, asp users <% %> like php uses .
Just a precaution.
You almost had the regex right.
/%[a-z]+%/i
Thans means, starts with a %, can match a-z, at least once (the +
part) but as many times (greedy), then another %
"Matthew Sims" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > "Matthew Sims" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >>
> >> >> Instead of passing the session_id through the URL ($_GET) just
assign
> > it
> >> >> to $_SESSION and pass that around. Then it'
[snip]
I realize the key needs to be stored somewhere which is part of the
problem of how to make it a bit more secure. I just don't feel safe if
a password in a flat file in clear text. Ideally the database should
support something
like an ssh style public/private Key auth where the private Key
I realize the key needs to be stored somewhere which is part of the problem
of how to make it a bit more secure. I just don't feel safe if a password
in a flat file in clear text. Ideally the database should support something
like an ssh style public/private Key auth where the private Key is s
> "Matthew Sims" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>>
>> >> Instead of passing the session_id through the URL ($_GET) just assign
> it
>> >> to $_SESSION and pass that around. Then it'll stay transparent to the
>> >> user.
>> >
>> > Could you describe the last paragraph
"Matthew Sims" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> >> Instead of passing the session_id through the URL ($_GET) just assign
it
> >> to $_SESSION and pass that around. Then it'll stay transparent to the
> >> user.
> >
> > Could you describe the last paragraph a bit more i
On Friday 02 July 2004 02:13 pm, Torsten Roehr wrote:
> Passing the session id via GET/POST may be ugly but makes you independent
> of the browser's cookie settings.
I would have to agree...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Anzak Wolf wrote:
Call me paranoid but I think I would rather play the little
bit in overhead to decypt the password to give myself a slightly safer
feel about my database password.
Paranoid.
And where do you plan on keeping the key to decrypt the password? In
another file? How are you going to
Greetings, for anyone who is interested, I figured out what the problem
was.
After perusing my config options a few times I noticed one that was
suspicious
--with-pcre-regex=/usr
I then found out these was the perl compatible regex stuff. I ended up
leaving that option out and built PHP 5.
[snip]
But has anyone done something like encypting that password rather than
leaving it in plan text.
[/snip]
Yes.
Happy Independence Day!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Could someone help me with a regular expression? I am not very good at
them. I want to find the following pattern inside a file:
[%string%]
Then extract the string portion to store in array. I would next like to
replace those patterns with html code. That's right you guessed it a
template eng
I have been looking at a number of scripts and they all seem to use
something like a config.php file where there is a var called something like
$dbpasswd but the password is still clear text. While I understand that the
file only sets vars and it can be put outside the document root so that it
Ok. It did not worked. I had to create an empy dir.
Well, one problem.
Since I have users with ftp access and they host php scripts that
handle "file uploads". The files are created with apache.apache and
are usually moved to the user's directory using move_uploaded_file.
Since the owner/gorup
>> Instead of passing the session_id through the URL ($_GET) just assign it
>> to $_SESSION and pass that around. Then it'll stay transparent to the
>> user.
>
> Could you describe the last paragraph a bit more in detail? Thanks in
> advance!
>
> Torsten
What if you used this?
session_start();
$
That *may* not work as it's a file, not a folder. You're welcome to
try, though. :-)
On Fri, 2 Jul 2004 14:19:25 -0400, robert mena <[EMAIL PROTECTED]> wrote:
>
> Ok. How about set the safe_mode_exec_dir to /dev/null then ?
>
>
> On Wed, 30 Jun 2004 21:55:17 -0700, Justin Patrin <[EMAIL PROTECT
"Matthew Sims" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>
>
> > "Zilvinas Saltys" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >> On Fri, 2 Jul 2004 12:21:34 -0400
> >> Gerard Samuel <[EMAIL PROTECTED]> wrote:
> >>
> >> > On Friday 02 July 2004 12:12 pm, Zi
> "Zilvinas Saltys" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> On Fri, 2 Jul 2004 12:21:34 -0400
>> Gerard Samuel <[EMAIL PROTECTED]> wrote:
>>
>> > On Friday 02 July 2004 12:12 pm, Zilvinas Saltys wrote:
>> > > I looked at server configurations but i couldn't find anything
Ok. How about set the safe_mode_exec_dir to /dev/null then ?
On Wed, 30 Jun 2004 21:55:17 -0700, Justin Patrin <[EMAIL PROTECTED]> wrote:
>
> YES. You need to set the safe_mode_exec_dir path to be some path
> without binaries. Such as: /etc, although that's a bad example. Make a
> directory with
Zilvinas Saltys wrote:
> The problem is as i understand IE is not accepting the cookie. So the
> session id allways regenerates. Everything works fine with mozilla.
[...]
> The only thing i want to know is all the truth about IE (6?) and
> cookies :)
Could it be a problem with IE6 and P3P (http://
Hi all, I'm having trouble installing PHP 5 on a Fedora Core 2 box. I
get through ./configure fine but during the make I get errors like
this:
ext/pcre/php_pcre.lo(.text+0x2e38):/home/jough/php-5.0.0RC3/ext/pcre/
php_pcre.c:1482: undefined reference to `php_pcre_exec'
collect2: ld returned 1
"Zilvinas Saltys" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Fri, 2 Jul 2004 12:21:34 -0400
> Gerard Samuel <[EMAIL PROTECTED]> wrote:
>
> > On Friday 02 July 2004 12:12 pm, Zilvinas Saltys wrote:
> > > I looked at server configurations but i couldn't find anything
usefull. I
Okay, I actually found out how to list the users, but you have the following
line of code:
define('SITE_ONLINE_EXPIRE', 900);
What is the 900? Is that 900 seconds?
Thanks,
Matt
http://sweetphp.com
"Matt Palermo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> This looks like a g
On Sat, 03 Jul 2004 03:02:07 +1000, Trejkaz Xaoza <[EMAIL PROTECTED]> wrote:
>
>
> Is there some way to fake inclusion with a query string attached?
>
Yep. Set the $_GET, $_POST, or $_REQUEST vars you need before
including. You could also store a backup copy before doing this and
put it back af
Is there some way to fake inclusion with a query string attached?
I am trying to add a feature to PHP-Mesh (don't know if anyone's heard of it
or using it in these parts), basically some user discovered that they can't
have portals with query strings attached to the URL.
Currently, portals are b
Brent Clark wrote:
I would like to know if these functions (for php 5)are already uploaded,
available on the php.net sites, in terms of research and or support.
http://zend.com/php5/whats-new.php
Yes.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The
On Fri, 02 Jul 2004 12:40:56 -0400, Shaun Fanning
<[EMAIL PROTECTED]> wrote:
>
> I need to interface with a partner's XML API and they require that the XML
> request be sent via HTTPS POST. I also need to parse the XML response that
> the partner's server will send back. Is CURL the best way to ha
On Fri, 2 Jul 2004 12:21:34 -0400
Gerard Samuel <[EMAIL PROTECTED]> wrote:
> On Friday 02 July 2004 12:12 pm, Zilvinas Saltys wrote:
> > I looked at server configurations but i couldn't find anything usefull. I
> > tried to change IE settings to accept all cookies but nothing changed.
> >
> > Mayb
Tom Rogers wrote:
With call_user_function() you need to do this:
call_user_func("fun", &$var);
Tom, this won't work due to the Call-Time Pass-By-Reference deprecation.
Does anyone know how to do this?
The error message says "If you would like to pass it by reference,
modify the declaration of c
Hi,
Saturday, July 3, 2004, 2:02:42 AM, you wrote:
AN> How do you use the call_user_func function with call-time
AN> pass-by-reference deprecation?
AN> For example:
AN> function fun(&$arg) {
AN>$arg++;
AN> }
AN> $var = 0;
AN> call_user_func("fun", $var);
AN> echo $var; //echoes 0 instead of
I need to interface with a partner's XML API and they require that the XML
request be sent via HTTPS POST. I also need to parse the XML response that
the partner's server will send back. Is CURL the best way to handle the
transfer or something like PEAR HTTP_Request? I'm looking for the approach
th
This looks like a good solution. What is the best way to list the current
users, since the sesssionData seems to be serialized in the db or something?
I just want to list out all the users from the db.
Thanks,
Matt
http://sweetphp.com
"Greg Donald" <[EMAIL PROTECTED]> wrote in message
news:[EM
"Gennaro losappio" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Dear All.
Hi.
>
> I ma trying to write a script that let the user choose
> how many languages to upload. Therefore the first
> script checks weather the user has choosed to add
> images, if not, he'll get a preview o
On Friday 02 July 2004 12:12 pm, Zilvinas Saltys wrote:
> I looked at server configurations but i couldn't find anything usefull. I
> tried to change IE settings to accept all cookies but nothing changed.
>
> Maybe someone knows where's the problem..
I dont know of all the specifics of your situat
How do you use the call_user_func function with call-time
pass-by-reference deprecation?
For example:
function fun(&$arg) {
$arg++;
}
$var = 0;
call_user_func("fun", $var);
echo $var; //echoes 0 instead of 1
Is their anyway to do this:
call_user_func("fun", &$var);
Thanks for any help with this
Dear All.
I ma trying to write a script that let the user choose
how many languages to upload. Therefore the first
script checks weather the user has choosed to add
images, if not, he'll get a preview of the web site;
otherwise array_padd will increment the array for the
number of images the user
On Friday 02 July 2004 09:16 am, Jordi Canals wrote:
> Andre Dubuc wrote:
> > I thought a simple re-direct page might do
> > the trick.
> >
> > I've tried three methods:
> >
> > the header approach
> > header("location: ../conn-up.php");
> >
> > an absolute header:
> > header("location: /vhome/conn
Andre Dubuc wrote:
Orginally when I designed my site, I put the db access file, conn.php, in the
webarea - where all files reside. After reading a recent thread, I realize
that this may not be too secure. Therefore, I would like to shove conn.php
one level above the webarea. However, I don't fee
Andre Dubuc wrote:
I thought a simple re-direct page might do
the trick.
I've tried three methods:
the header approach
header("location: ../conn-up.php");
an absolute header:
header("location: /vhome/conn-up.php");
and an include approach:
include("../conn-up.php");
Te header methods will
Hello,
I have a strange problem.
For example i have a script:
Once it started a session the session_id should never change. It works on my localhost
with default php configuration. I'm using mozilla firefox and IE.
I put this script on some other server on the net. It works just fine too wit
Jordi Canals wrote:
> the ISP changed a param in the PHP.INI, and they changed
> session.use_trans_sid setting it to 1.
[...]
> Now I should talk to the provider to not set this parameter to ON by
> default, because the security risk on it (As stated on the manuals).
If they allow you to use .htac
Glad to be of help. I'm sure there will be many more occasions when I'm badly in need
of assistance.
Cheers,
Michael
-Original Message-
From: Harlequin [mailto:[EMAIL PROTECTED]
Sent: 02 July 2004 13:55
To: [EMAIL PROTECTED]
Subject: Re: [PHP] MySQL QUERY Results Not Appearing[Scanned]
Michael
just wanted to thank you through the group for your time.
U R A Star...!
--
-
Michael Mason
Arras People
www.arraspeople.co.uk
-
"Michael Egan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Have a look at the mysql
Orginally when I designed my site, I put the db access file, conn.php, in the
webarea - where all files reside. After reading a recent thread, I realize
that this may not be too secure. Therefore, I would like to shove conn.php
one level above the webarea. However, I don't feel like re-writng 30
On Fri, 2 Jul 2004 01:13:14 -0400, Matt Palermo <[EMAIL PROTECTED]> wrote:
>
> Is it possible to make a table of all logged in users session ids and then
> check to see if the session still exists every couple minutes? So every
> minute or two, it would go through the table and for each record it
Ooops, sorry about the attempted fake URL!
"Shaun" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I have a config file which i include in every page:
>
>
> class object {};
>
> $CFG = new object;
>
> $CFG->dbhost = "localhost";
> $CFG->dbname = "x";
> $CFG->dbuser = "x";
>
Hi,
I have a config file which i include in every page:
class object {};
$CFG = new object;
$CFG->dbhost = "localhost";
$CFG->dbname = "x";
$CFG->dbuser = "x";
$CFG->dbpass = "x";
$connection = mysql_connect($CFG->dbhost, $CFG->dbuser, $CFG->dbpass);
@mysql_select_db($CFG->dbname) or die( "Un
"Jason Paschal" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Some things crop up while coding that I do not often use, so that I tend
to
> forget the proper way to handle them and end up researching it and going
> through the same inoperable code again and again until I end up with
"Alan McDonald" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > >I have files contained in a download directory (.doc, .xls etc files)
> > >so I can't request authentication on each download from insie the
files.
> > >I use authentication against a DB for the rest of the site and a
Lars Torben Wilson wrote:
About the cookie params (In PHP.INI) I checked them on the two
platforms with phpinfo() and are exactly the same.
Was your binary compiled with --enable-trans-sid? If so, I imagine the
explanation would be something along the lines that because the session
manager doesn
Hello all,
i have a question concerning the $_SESSION stuff.
i have a domain registered with online webspace on this webspace i have put a litte
bit of code that will send the visitor's of the website to my server using a frame. I
open one frame full-screen size and i let it open MY_IP/base/inde
Source: http://www.php.net/set_cookie
[snip]
Once the cookies have been set, they can be accessed on the next page
load with the $_COOKIE or $HTTP_COOKIE_VARS arrays.
[/snip]
Since PHP cannot access a cookie right after it has been set PHP cannot
be sure if the cookie has been accepted on client
You might as well add a reference of your db-object to global scope.
[code]
$GLOBALS['_db_object'] =& $db;
[/code]
Then you could access it anywhere in your code like this:
[code]
$GLOBALS['_db_object']->sumbitQuery($query);
[/code]
Daniel
Angelo Binc2 wrote:
Ok guys, I have fixed the problem and i
Jordi Canals wrote:
Angelo, thanks for your comments.
session_name must go before session_start.
I think register_globals has nothing to do with session cookies. I
always work with register_globals = off as recommended.
About the cookie params (In PHP.INI) I checked them on the two platforms
wi
Angelo, thanks for your comments.
session_name must go before session_start.
I think register_globals has nothing to do with session cookies. I
always work with register_globals = off as recommended.
About the cookie params (In PHP.INI) I checked them on the two platforms
with phpinfo() and are
Ok guys, I have fixed the problem and its a really easy fix. basically
the object was out of scope and therefore PHP treated my object name as
a new variable and therefore it obvioulsy was not set because it is a
new variable. SO the way I got it working was to just call the code
directly and not p
Jordi Canals wrote:
This problem only arises on my ISP hosting (Linux+Apache 1.3) and does
not show on my devel computer (Windows+Apache 2.0). I've been searching
the manual, but found no explanation about that.
Sorry forgot it: The two platforms run PHP 4.3.7
Thanks again,
Jordi.
--
PHP General
shouldn't session_start() come first?
also remember that your devel computer might have different settings in
the PHP.ini file to that of your ISP, probably register_globals is set
to off. I would check it.
HTH
Angelo
>>> Jordi Canals <[EMAIL PROTECTED]> 7/2/2004 11:14:28 AM >>>
Hi all,
I have
Hi all,
I have a PHP file. and when it loads it creates an object for my
database :
include("db_class.inc");
fine.
I make a couple of calls to the database class this is also working
fine. Then I post the page but to itself and then I go into a function
(lets call it xfunction) which is ONLY
Hi all,
I have an extrange problem with the session cookie:
In all my pages there I have this two lines to start the session:
session_name('jcwse');
session_start();
When I access my website, at any page, everytyhink works OK, and the
session cookie is set with no problem except for links.
In the
Just try this : $temp = $country_list[$country_symbol]['AU'] ;
Seems better :)
Pierre
-Message d'origine-
De : adwinwijaya [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 2 juillet 2004 05:01
À : [EMAIL PROTECTED]
Objet : [PHP] PHP Bug ?
Hi...
I found a bug (may be)
I tried to do like thi
Don't know that this will work but it might help isolate the problem:
/* MySQL Connection Variables */
$host="localhost";
$user="arras_WebMaster";
$password="qwerty";
$dbase="arras_Members";
/* MySQL Connection String */
if(!$dbConnect = @mysql_connect ("$host", "$user", "$password"))
{
Some things crop up while coding that I do not often use, so that I tend to
forget the proper way to handle them and end up researching it and going
through the same inoperable code again and again until I end up with
something that works.
Finally decided to host the code on my site and thought
Craig. Thanks for the response and sorry I've been delayed in getting back
to you.
I put a new page together and dropped all the peripheral code and this is
what I ended up with:
active members should appear here";
$query = mysql_query("SELECT * FROM RegisteredMembers") or die("could not
execute
Matt,
The most comprehensive example of this is provided by PhpBB (www.phpbb.com).
This application pretty much follows the logic you've set out.
HTH,
Michael Egan
-Original Message-
From: Matt Palermo [mailto:[EMAIL PROTECTED]
Sent: 02 July 2004 06:13
To: [EMAIL PROTECTED]
Subject: R
98 matches
Mail list logo