Re: [PHP] session data vs cookie data

2002-01-30 Thread Arpad Tamas
Do you null the user if the IP changes? IPs can change during a user's session, so I wouldn't base the validity of the session solely based on IP. When that happens a user has to relogin. No data will be lost. Relogin? Huh, I'd never visit a site where I have to login on every twice

[PHP] register_shutdown_function vs require

2002-02-19 Thread Arpad Tamas
Hi, I'm trying to make some kind of caching system that first delivers the old page, and then regenerate the new one in the background. I achieved this with register_shutdown_function(). The registered function starts the real work, the normal php script just delivers the old page (of course

Re: [PHP] register_shutdown_function vs require (with pseudocode example)

2002-02-20 Thread Arpad Tamas
Hi, No one has any idea on this topic? Or the question wasn't clear? Thanks, Arpi Hi again, I read my email back and found a little hard to understand :)), so I thought a code exmplae might help. It's just pseudo code for explaining how my cache works: //simplified main code if

[PHP] some kind of library loader

2002-04-03 Thread Arpad Tamas
Hi Everyone! I have an idea, but I don't know how to realise it, if it can be at all. We have a relatively big system, with 52k lines of php code without much html, and many classes (1138) that depend on each other. And I think I don't need to say that php parses the code somewhat slow.

Re: [PHP] Re: some kind of library loader - Thanks

2002-04-04 Thread Arpad Tamas
Ok, Thank you for your help Miguel and Maxim, I'm trying to do it by the help of your suggestions. Arpi Also, you can find out if a class was defined by calling 'class_exists()'. In this way you might save something. The best way thought is what Miguel was saying: load the files

[PHP] Re: some kind of library loader

2002-04-08 Thread Arpad Tamas
Hi Eric (and others who might help), Actually I haven't tried the custom error handler for function or class definiton not found errors because I read in the manual that the processing is continued after the statement where the error raised. I also thought of a little hacking in php's source,

Re: [PHP] Sessions just don't work on my machine. (Trying this ag ain)

2001-09-24 Thread Arpad Tamas
Then I will reload the first page again by erasing index2.php and hitting enter and it will display a new sess id number and show the first page, as normal but that sessid number is equal t the new session created on the server and the value of it is: var3; var1; var2 This is stranger

[PHP] Can I rely on session.gc_maxlifetime?

2001-09-25 Thread Arpad Tamas
Hi, I don't know if I understand right the manual at the session.gc_maxlifetime setting. As I read, php won't use sessions that are older than that time. It means that when a user logs in, and does his/her work for more than (for example) 15 minutes, than he/she will be kicked off immediately,

Re: [PHP] Should I convert special characters before writing them to a table?

2001-10-04 Thread Arpad Tamas
Try addslashes() before executing the query and stripslashes() when retrieving data from the db. See the online manual for more details. I think stripslashes() isn't needed when retrieving data from the db, it is needed only in the query string to protect special chars from interpretting

Re: [PHP] domxml

2001-10-18 Thread Arpad Tamas
On Wednesday 17 October 2001 19:47, php wrote: Hello, Warning: Unknown list entry type in request shutdown (0) in Unknown on line 0 appears on the bottom of every script I call that uses domxml. I have no idea was causes it... Any tips? try to use (and compile php with) another version of

Re: [PHP] Delivering NAMED pdf files

2001-10-19 Thread Arpad Tamas
On Friday 19 October 2001 11:52, George Pitcher wrote: Hi all, I am delivering my PDF files from a non-internet directory. The file gets delivered but the filename is always changed to the name of the php script. Can anyone tell me how to get the file delivered so that the name stays as

Re: [PHP] How to protect MySQL password

2001-10-24 Thread Arpad Tamas
On Wednesday 24 October 2001 16:42, Kurt Lieber wrote: On Wednesday 24 October 2001 00:30, you wrote: What we really need is an expert here to give us the low-down on the best way to accomplish the best security given regular tools. There isn't a way to solve it within the constraints

Re: [PHP] how do i give optional arguments to functions??

2001-10-24 Thread Arpad Tamas
On Wednesday 24 October 2001 19:14, Richard S. Crawford wrote: The default value for $image parameter was missing: function top ($image=defaultvalue) { if ($image==defaultvalue) echo blah blah blah; else echo blah blah $image blah; } Arpi -- PHP General Mailing

Re: [PHP] disable_functions not working in httpd.conf

2001-10-25 Thread Arpad Tamas
On Thursday 25 October 2001 09:47, Joseph Blythe wrote: Hi, bad news disable_functions doesn't work for me either in apache's config file I tried it with php_value, and php_admin_value, also in .htaccess with php_value without any luck php4.0.5, Apache/1.3.14 bye, Arpi Hey All, Was

Re: [PHP] configure problem: --with-mysql=/what exactly?

2001-11-20 Thread Arpad Tamas
Hi, Do you have msyql-dev (or similar) package installed? Arpi I have tried the following, each time removing config.cache beforehand: --with-mysql=/usr --with-mysql=/usr/include --with-mysql=/usr/include/mysql --with-mysql=/usr/lib According to a friend with mysql Debs