php-general Digest 21 Jan 2006 11:16:48 - Issue 3918
Topics (messages 228988 through 229007):
question about using $this as a method in a function argument
228988 by: jonathan
Str to Int
228989 by: Ron Eggler (Paykiosks)
228990 by: Ray Hauge
228991 by: Gerry
php-general Digest 22 Jan 2006 00:22:49 - Issue 3919
Topics (messages 229008 through 229015):
using sessions instead of cookie
229008 by: Ross
229010 by: tedd
229011 by: James Benson
anyone know a good php proxy
229009 by: Geoff
Re: question about using
Apart from using date(t, $month) you can also determine the last
day of a month by getting the 0th day of the following month.
Say I wanted to know the last day in Feb 2006:
$mnth = 2;
echo date(d,mktime(13,0,0,$mnth + 1, 0, 2006));
This is sometimes useful when you are calculating, or your
I have a cookie
setcookie(cookie[$food], $new $name);
I want to change to a session..
Is it..
session_register(cookie[$food], $new $name);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have never used sessions before. How do I change the follow from COOKIES
to SESSIONS in php (I do not know how to set a session)...
At present the script uses an iframe with cookies but I believe if I use
sessions I can leave out the iframe.
http://www.ecurry.net/menu.phps
Hi all,
Does anyone know of (or have sample code for) a decent PHP proxy?
All I need to do fetch webpages from a remote site, replace certain
trigger text, then return them to the browser.
However, the user's browser must only be aware of my proxy page - it
shouldn't know where the pages are
I have never used sessions before. How do I change the follow from COOKIES
to SESSIONS in php (I do not know how to set a session)...
?php session_start(); ?
tedd
--
http://sperling.com/
--
PHP General Mailing
http://php.net/manual/en/ref.session.php
Ross wrote:
I have never used sessions before. How do I change the follow from COOKIES
to SESSIONS in php (I do not know how to set a session)...
At present the script uses an iframe with cookies but I believe if I use
sessions I can leave out
I have a question about using $this as an argument in a method.
As I understand it, the only issue here is if you are passing $this
from constructor of your class from PHP 4. In short, when you do
$var = new MyClass();
you are actually storing a copy of what constructor was seeing as
Quoting [EMAIL PROTECTED]:
3. if ($cardID = '' || is_int($cardID))
As someone mentioned, $cardID = '' makes an assignment, doesn't
test for true/false. Change to $cardID == ''. And this statement
SHOULD come up true as a whole because $cardID = '' should always
be true (unless the
session_register(cookie[$food], $new $name);
$_SESSION['cookie'][$food] = $new $name;
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm using PHP 5.1.1 on Apache 2.0.54 on Gentoo Linux. I've been trying
to write a program to pass information to a program using proc_open,
however when I do, it only passes the first 65536 bytes of the stream
and then cuts off the rest. To make sure its not the program I'm trying
to send to,
this is a test
Can PHP interact with GoogleTalk like this bot built in ASP I think:
- add the following user to your GTalk: [EMAIL PROTECTED]
- send it a msg
Try:
?php
mysql_query(INSERT INTO table VALUES ('$variable_1', '$variable_2'););
$auto_increment_variable = mysql_insert_id();
?
-TG
= = = Original message = = =
I have various tables where a column is set to auto_increment in my
table structure. I have been using the following INSERT
what is the best way to prevent malicious code from being uploaded
via a .gif file? A friend showed me how php could be embedded within
the .gif file. Does this problem also exist for .jpeg's?
thanks,
jon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
That is the function I was looking for. Thanks. Ron
On Sat, 2006-01-21 at 23:47 -0500, [EMAIL PROTECTED] wrote:
Try:
?php
mysql_query(INSERT INTO table VALUES ('$variable_1', '$variable_2'););
$auto_increment_variable = mysql_insert_id();
?
-TG
= = = Original message =
18 matches
Mail list logo