[PHP] sessions problems

2005-04-30 Thread Anasta
Anyone know how to update a record on logout, heres what i am using for login, however there iare no variables for the logout page. ? session_start(); // Start Session include(connect.php); $username = $_POST['username']; $password = $_POST['password']; // Register some session variables

Re: [PHP] sessions problems

2005-04-30 Thread Deep
Hi, When someone hit the logout page say logout.php. You can write the code in that page itself to update the record. Since the username of that particular user is stored as a session as long as the user closes the browser window. So in the logout page you can add like this.

Re: [PHP] Regular expressions problem

2005-04-30 Thread Khorosh Irani
For example I want to math this stream: 123 mm 334 What is the pattern that math with this stream? Thanks On 4/29/05, Malcolm Mill [EMAIL PROTECTED] wrote: What is it you want to do? On 4/29/05, Khorosh Irani [EMAIL PROTECTED] wrote: Hello I have a question: What is in the role of

Re: [PHP] Regular expressions problem

2005-04-30 Thread Rasmus Lerdorf
Khorosh Irani wrote: For example I want to math this stream: 123 mm 334 What is the pattern that math with this stream? Thanks 123[[:space:]]+mm[[:space:]]+334 -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to know if php CAN write files on server and WHERE it can?

2005-04-30 Thread Giulio
Thanks Richard for your answer Il giorno 29/apr/05, alle 10:07 PM, Richard Lynch ha scritto: If you're just going to delete the files after your script is done, why copy them somewhere else at all? Your best bet is to try and use the /tmp dir, or, more properly, what PHP thinks is a good place

Fwd: [PHP] Re: Can this code go faster?

2005-04-30 Thread Rory Browne
I sent this about a week ago, but I forgot to 'reply to all', and send it to the list. Thanks Rolf for pointing that out to me. I'm not totally sure, but this might work. I'm too tired to understand rolf's masks, but: ?php function bin2int($bin){ $a = bindec($bin); return ($a 128) ? ($a) :

Re: [PHP] Regular expressions problem

2005-04-30 Thread Matthew Weier O'Phinney
* Khorosh Irani [EMAIL PROTECTED]: For example I want to math this stream: 123 mm 334 What is the pattern that math with this stream? Depends on what regexp function you use, what exactly you want to match, and whether or not you want to know, after you match, any of the segments. Rasmus has

Re: [PHP] only allowing php_flag register_globals off

2005-04-30 Thread Jochem Maas
Karin van den Berg wrote: Hi, I am on a quest for a new good webhost and I am currently using a trail account at a host that seems pretty good, but has one problem. I cannot turn register_globals off. They don't allow php_flag/php_value in .htaccess for security reasons but in this case it's

Re: [PHP] inserting an auto incemented column in table already created

2005-04-30 Thread Marek Kilimajer
Ross Hulford wrote: Hi, I have a table with 15 columns or so that has been inherited from an older db and am trying to insert an auto increment column (in mysql) without having to number it manually. This is fine when I add new colums via a form but the old entries have a null value

Re: [PHP] Re: Templating engines

2005-04-30 Thread rush
You also need to recognize that you are going to need presentation-layer logic. You simply can't get around that and you shouldn't confuse presentation-level logic, which can be quite complex, with the business logic behind your application. I often see people make the mistake of trying to

[PHP] Extending Element class in a dom tree?

2005-04-30 Thread =?ISO-8859-1?Q?Erik_Franz=E9n?=
The DOM implementation i PHP5 allows classes to be extended. Extending the Document class is no problem, but how can I extend the Element class and use it in a DOM tree? DOMDocument::createElement returns a DOMElement object which you cannot extend. Could this be a solution? class MyElement

Re: [PHP] About the mail().

2005-04-30 Thread BAO RuiXian
Hello, Penghui Wang wrote: Hi lists: I am new here. And i know little about php. Sorry ask so stupid question. snipped ... $headers .= Content-Transfer-Encoding: UTF-8\n; $headers .= Content-Type: text/plain; charset=utf-8\n; snipped ... head title/title meta http-equiv=Content-Type

[PHP] making php go faster

2005-04-30 Thread Sebastian
i've been doing some reading on optimizing php for fastest performance. are there any benifts to configure php with: --enable-inline-optimization also running eAccelerator. these are my current options: --with-apache=../apache_1.3.33 \ --with-mysql=/usr/local/mysql \ --with-xml \ --with-gd \

Re: [PHP] making php go faster

2005-04-30 Thread Rasmus Lerdorf
Sebastian wrote: i've been doing some reading on optimizing php for fastest performance. are there any benifts to configure php with: --enable-inline-optimization That's the default now, so no, you don't need that. also running eAccelerator. these are my current options:

Re: [PHP] Extending Element class in a dom tree?

2005-04-30 Thread Christian Stocker
On 4/30/05, Erik Franzén [EMAIL PROTECTED] wrote: The DOM implementation i PHP5 allows classes to be extended. Extending the Document class is no problem, but how can I extend the Element class and use it in a DOM tree? DOMDocument::createElement returns a DOMElement object which you cannot

[PHP] Problem query (0T)

2005-04-30 Thread Ryan A
Hey, I know this belongs more on the mysql list, but I'm not a member there and I dont often have problems queries plus dont have time to join then ask just this one q and then unsub...so if possible please help :-) I have these two tables: jappz_guestbook(owner_cno, sent_datetime, is_secret,

Re: [PHP] Extending Element class in a dom tree?

2005-04-30 Thread Christian Stocker
Hi again On 4/30/05, Christian Stocker [EMAIL PROTECTED] wrote: On 4/30/05, Erik Franzén [EMAIL PROTECTED] wrote: The DOM implementation i PHP5 allows classes to be extended. Extending the Document class is no problem, but how can I extend the Element class and use it in a DOM tree?

RE: [PHP] Problem query (0T)

2005-04-30 Thread Ryan A
Hi Pablo, Thanks for replying. The problem is the images are not coming properly go here :http://www.jappz.com/prob.gif and you will see the results i am getting when i should be getting the images according to the red arrows there. Thanks, Ryan On 5/1/2005 1:56:23 AM, Pablo Gosse ([EMAIL

Re: [PHP] Splitting Vars from MySQL in PHP

2005-04-30 Thread Richard Lynch
On Fri, April 29, 2005 4:36 pm, Philip Olson said: I remember in Perl I used to extract vars from a single fetchrow by adding each var name to the beginning (like this). Only this ain'ta workin :)... Anyone know the right syntax to do this? ($var1, $var2, $var3)=

Re: [PHP] Splitting Vars from MySQL in PHP

2005-04-30 Thread Rasmus Lerdorf
Richard Lynch wrote: On Fri, April 29, 2005 4:36 pm, Philip Olson said: I remember in Perl I used to extract vars from a single fetchrow by adding each var name to the beginning (like this). Only this ain'ta workin :)... Anyone know the right syntax to do this? ($var1, $var2, $var3)=

Re: [PHP] Extending Element class in a dom tree?

2005-04-30 Thread =?ISO-8859-1?Q?Erik_Franz=E9n?=
Christian Stocker wrote: Does not work, will never work, just forget about it ;) Ok, that was not the really right answer ;) Of course it does work. You can even do stuff on that element, if you use the variable, resp. reference ($oMyElement) for doing this. What doesn't work (and I referred to