On Friday 10 September 2004 06:59, Ed Lazor wrote:
Is there a way to get the size of an image created using the imagecreate
function?
Size as in ... ?
You do realise that *you* specify the size when using imagecreate()?
The PHP manual section on image functions mentions getimagesize, but
Hi,
Friday, September 10, 2004, 8:59:30 AM, you wrote:
EL Is there a way to get the size of an image created using the imagecreate
EL function?
EL The PHP manual section on image functions mentions getimagesize, but that
EL only works on remote or local files.
EL Thanks,
EL Ed
Something like
hello,
i work with imap and php to make a webmail. it works fine but i have a
big problem with some mails, those who contains a multipart into a
multipart. it happends with outlook express who puts into a mutlipart
the text and html version of the text into the first part of the mail.
an other
Warning: main(): open_basedir restriction in effect.
File(/home/mainwww/www/sysfolder/pear/Pager/Pager.php) is not within
the allowed path(s):
(/home/axishift/:/usr/lib/php:/usr/local/lib/php:/tmp) in
/home/axishift/public_html/pageApps/viewMessage.php on line 11
Hi, what is open_basedir? my host
Louie Miranda wrote:
Warning: main(): open_basedir restriction in effect.
File(/home/mainwww/www/sysfolder/pear/Pager/Pager.php) is not within
the allowed path(s):
(/home/axishift/:/usr/lib/php:/usr/local/lib/php:/tmp) in
/home/axishift/public_html/pageApps/viewMessage.php on line 11
Hi, what is
hi all
i would like to fetch the content of a url.
and then would like to put in my page... dynamically
refreshing it once in a day...
is it possible to do this in php.
i have used perl get url option and then parse the
file, with the date and time function...to do this.
pls help.
thanks in
Howdy,
Thanks for the answers on my previous question, though it hasn't
resulted in a quicker dirparsing.. Anyway, here's a next one.
For my own reasons (can explain, would take long, won't till sbody
asks) I want to match a quoted string within a string. That is somehow
kind of easy, I know ...
On Fri, 10 Sep 2004 03:07:35 +0530, Mulley, Nikhil
[EMAIL PROTECTED] wrote:
You can create user from mysql prompt by connecting it through first
cmdmysql -h host -u userid -p instance
password : **
then type
GRANT ALL PRIVILGES ON *.* TO 'newuser'@'host'
IDENTIFIED BY 'password' with
On Wed, 08 Sep 2004 16:41:38 +0200, Daniel Kullik [EMAIL PROTECTED] wrote:
Anthony Ritter wrote:
I get a:
Warning: Invalid argument supplied for foreach() in
c:\apache\htdocs\or_6.4.php on line 15
after submitting the form.
Hello Anthony!
As long as you don't submit the form
Hi
I have used
Header (Location:PATH) function for redirection.
it is giving some errors.
is there any other method other than HEADER() funtion for redirecting ?
Bharadwaj
CBharadwaj wrote:
Hi
I have used
Header (Location:PATH) function for redirection.
it is giving some errors.
is there any other method other than HEADER() funtion for redirecting ?
Bharadwaj
What type of errors have you?
Heber D'Alberto
--
PHP General Mailing List (http://www.php.net/)
To
Vijayaraj Nagarajan [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
hi all
i would like to fetch the content of a url.
and then would like to put in my page... dynamically
refreshing it once in a day...
is it possible to do this in php.
i have used perl get url option and then
What errors is it giving? It should work fine. However, remember that
since it is part of the HTTP header information it has to come before
any of the main output of the script. Do you have a code sample and
the error message?
Abdul-Wahid
On Fri, 13 Aug 2004 16:03:29 -0700, CBharadwaj
[EMAIL
Hi all,
I was wondering if any classes/functions could help me with this little
challenge, (im hopeless at regex ;-)
input type=hidden name=id value=593 /
I want to extract the value of 'id' from a webpage. Any simple way to do
this or am I down to sweating of the regex functions?
Much
Cbharadwaj [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi
I have used
Header (Location:PATH) function for redirection.
it is giving some errors.
is there any other method other than HEADER() funtion for redirecting ?
Bharadwaj
It will work if you specify a *full* URI:
No easy way of doing it, regex somthing like:
$id = preg_replace(/.*input.*name=\id\ value=\[0-9]+\ \//, $1, $string);
where $string is a line from your input'd HTML page
Abdul-Wahid
On Fri, 10 Sep 2004 12:54:37 +0200, Nick Wilson [EMAIL PROTECTED] wrote:
Hi all,
I was wondering if any
* and then Abdul-Wahid Paterson declared
No easy way of doing it, regex somthing like:
$id = preg_replace(/.*input.*name=\id\ value=\[0-9]+\ \//, $1, $string);
where $string is a line from your input'd HTML page
OK, thanks abdul, much appreciated..
--
Nick W
--
PHP General
Lester Caine wrote:
Anybody got php_printer running?
If I give printer_open an invalid printer name, error. Give it a valid
(shared) printer name, not error, but using the $handle in
printer_set_option gives an 'invalid printer handle error'
What do I need to do next to check this out?
OK
--- blah.pl:
#!/usr/bin/perl
print Content-type: text/plain\r\n\r\n;
print blah;
exit;
--- test.php:
ob_start();
virtual(blah.pl);
$tmp = ob_get_contents();
echo \n[ TMP: $tmp ];
ob_end_clean();
--- test.php (output):
blah
[ TMP: ]
Looks like vertual() gets past the output buffer. How can I keep
I have some paths, for example:
\\192.168.0.254\C\Windows\SomeDir\ or
ftp://myhost.com/folder/ (login and password I also know)
How I can check writable this dirs or no? - I can try to write temporary
file or use touch() funktion. But how I can get free space of this remote
catalogue?
Hi Benkovich,
Le 04-09-10, à 07:23, Benkovich Mishail a écrit :
I have some paths, for example:
\\192.168.0.254\C\Windows\SomeDir\ or
ftp://myhost.com/folder/ (login and password I also know)
How I can check writable this dirs or no? - I can try to write
temporary
file or use touch() funktion.
From: vijayaraj nagarajan [EMAIL PROTECTED]
i would like to fetch the content of a url.
and then would like to put in my page... dynamically
refreshing it once in a day...
is it possible to do this in php.
i have used perl get url option and then parse the
file, with the date and time
From: Ivik Injerd [EMAIL PROTECTED]
--- test.php:
ob_start();
virtual(blah.pl);
$tmp = ob_get_contents();
echo \n[ TMP: $tmp ];
ob_end_clean();
--- test.php (output):
blah
[ TMP: ]
Looks like vertual() gets past the output buffer. How can I keep it in the
buffer?
I believe a RTFM is in order
(Don't write to me telling me to use linux, i dont want to, this is my home
machine not a production server, thank you, now if you really want to help
keep on reading)
I got a most recent copy of PHP 5.01 extracted into C:\php and everything
seems to be working fine as long as i dont ask to load
CBharadwaj wrote:
Hi
I have used
Header (Location:PATH) function for redirection.
it is giving some errors.
is there any other method other than HEADER() funtion for redirecting ?
Bharadwaj
What are the errors? Output already started?
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
Just curious if anyone on the list was headed to Toronto on Sep 22-24
for php|works. I live about two hours from Toronto, and my company is
sending me.
I wonder what kind of reception this conference will get...
--
Aaron Gould
Parts Canada - Web Developer
--
PHP General Mailing List
On Fri, 10 Sep 2004 11:43:54 +0200, Wouter van Vliet
[EMAIL PROTECTED] wrote:
For my own reasons (can explain, would take long, won't till sbody
asks) I want to match a quoted string within a string. That is somehow
kind of easy, I know ... if it weren't for the slashing of quotes.
The
Ok, thanks!
John Holmes wrote:
From: Ivik Injerd [EMAIL PROTECTED]
--- test.php:
ob_start();
virtual(blah.pl);
$tmp = ob_get_contents();
echo \n[ TMP: $tmp ];
ob_end_clean();
--- test.php (output):
blah
[ TMP: ]
Looks like vertual() gets past the output buffer. How can I keep it in
the buffer?
Ok, first of all: really, do use linux. It's not THAT bad for a home machine ;)
Now, the solution is quite simple as it is documented. Just copy the
file 'libmysql.dll' to your %WINDIR% folder and all should work. If it
doesn't, take libmysqli.dll as well. While you're at it, you might as
well
Aaron Gould wrote:
Just curious if anyone on the list was headed to Toronto on Sep 22-24
for php|works. I live about two hours from Toronto, and my company is
sending me.
I wonder what kind of reception this conference will get...
My company was going to send me, but backed out (money). I'm
On Fri, 10 Sep 2004 16:41:56 +0300, Robin Vickery [EMAIL PROTECTED] wrote:
On Fri, 10 Sep 2004 11:43:54 +0200, Wouter van Vliet
[EMAIL PROTECTED] wrote:
For my own reasons (can explain, would take long, won't till sbody
asks) I want to match a quoted string within a string. That is somehow
On Fri, 10 Sep 2004 09:24:06 -0400, John Holmes
[EMAIL PROTECTED] wrote:
From: Ivik Injerd [EMAIL PROTECTED]
--- test.php:
ob_start();
virtual(blah.pl);
$tmp = ob_get_contents();
echo \n[ TMP: $tmp ];
ob_end_clean();
--- test.php (output):
blah
[ TMP: ]
Looks like
From: Wouter van Vliet [EMAIL PROTECTED]
Ok, first of all: really, do use linux. It's not THAT bad for a home
machine ;)
Now, the solution is quite simple as it is documented. Just copy the
file 'libmysql.dll' to your %WINDIR% folder and all should work. If it
doesn't, take libmysqli.dll as
From: Wouter van Vliet [EMAIL PROTECTED]
I think I must add something here - besides the fact that a function
like vertual() doesn't exist - I believe Ivik asked how he could get
around this, still doing something like the virtual but keep buffering
the output.
I don't think you can... virtual()
Hello,
I need to load extensions with dl() within PHP running as CGI. But as
this is a shared hosting environment, I don't have access to the
extension_dir. Anyway, dl() prepends install-dir/lib/php/extensions/
debug-or-not-zts-or-not-ZEND_MODULE_API_NO if I'm calling
dl(myext.so); even if I'm
From: John Nichel [EMAIL PROTECTED]
My company was going to send me, but backed out (money). I'm in Buffalo,
so it's right up the road...I may still go and just pay for it out of my
own pocket.
Put an alias on your name tag otherwise people will be hunting you down! ;)
Have fun guys... wish I
John Holmes wrote:
From: John Nichel [EMAIL PROTECTED]
My company was going to send me, but backed out (money). I'm in
Buffalo, so it's right up the road...I may still go and just pay for
it out of my own pocket.
Put an alias on your name tag otherwise people will be hunting you down! ;)
Yeah,
Hi,
I 2 use winxp pro at home, actually linux + windowoze and i have
encountered the same problem with mysql extension.
Some extensions, such as iconv, openssl depend on external libraries.
btw! it's not a good idea to mess with windows\system32 folder. If you
want
you can
On Fri, 10 Sep 2004 10:16:28 -0400, John Holmes
[EMAIL PROTECTED] wrote:
From: Wouter van Vliet [EMAIL PROTECTED]
Ok, first of all: really, do use linux. It's not THAT bad for a home
machine ;)
Now, the solution is quite simple as it is documented. Just copy the
file 'libmysql.dll' to
Maxime Thonon wrote:
hello,
i work with imap and php to make a webmail. it works fine but i have a
big problem with some mails, those who contains a multipart into a
multipart. it happends with outlook express who puts into a mutlipart
the text and html version of the text into the first part of
John Holmes wrote:
From: John Nichel [EMAIL PROTECTED]
My company was going to send me, but backed out (money). I'm in
Buffalo, so it's right up the road...I may still go and just pay for
it out of my own pocket.
Put an alias on your name tag otherwise people will be hunting you down! ;)
Have
I have a requirement where in i have to access shared
memory allocated by some C process. Can i do this in
PHP?
I am trying out some thing like this.
I want to access the existing shared memory.
$shm_id = ftok(/tmp/, 'm');
echo $shm_id. br;
$shmid = shmop_open($shm_id, c, 0644, 164);
$shm_data
Hi List,
Anyone have any pointers to examples of Code 39 barcode generation using php
please.
Thanks for any help
Dave Carrera
--
UK Web Hosting @ http://www.ephgroup.com
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.754
Hi,
Google Search: Code 39 Barcode Generation PHP
Found this here:
http://www.hotscripts.com/Detailed/9608.html
Justin
-Original Message-
From: Dave Carrera [mailto:[EMAIL PROTECTED]
Sent: Friday, September 10, 2004 9:48 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Barcodes ?
Hi List,
[snip]
Hi List,
Anyone have any pointers to examples of Code 39 barcode generation using
php please.
Thanks for any help
Dave Carrera
[/snip]
STFW
http://www.aditus.nu/jpgraph/jpg_barcodes.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
-Original Message-
On Friday 10 September 2004 06:59, Ed Lazor wrote:
Is there a way to get the size of an image created using the imagecreate
function?
Size as in ... ?
I was looking for the size of the image in bytes.
-Ed
--
PHP General Mailing List (http://www.php.net/)
To
Hi all,
I've run into a bit of a doozy that I can't seem to figure out.
I'm using the PEAR Date class to deal with some time/date requirements
for some code, and everything has been working (to the best of my
knowledge) really well, up until now.
I decided to extend my code test suite (using
On Friday 10 September 2004 19:23, Benkovich Mishail wrote:
I have some paths, for example:
\\192.168.0.254\C\Windows\SomeDir\ or
ftp://myhost.com/folder/ (login and password I also know)
How I can check writable this dirs or no? - I can try to write temporary
file or use touch() funktion.
You got it right, except you're going to have it blow up on you if
someone doesn't select something
Try these changes:
$a1 = $_POST['ch1'];
$a2 = $_POST['ch2'];
$a3 = $_POST['ch3'];
# Add this bit
If (isset($_POST['ch1')) {
$collist .= ,$a1;
}
If (isset($_POST['ch2')) {
if ($collist == ) {
Hello everybody,
can anyone explain to me, why I can't resize an array inside a class?
Sample Code:
?php
class Liste {
var $input = array (1,2,3);
var $input2 = array_pad ($input,10, 1);
}
?
Output:
Parse error: parse error, unexpected '(', expecting ',' or ';' in
Try something along these lines:
...
Date: input type=checkbox name=columns[] value=date /
Time: input type=checkbox name=columns[] value=time /
Cost: input type=checkbox name=columns[] value=cost /
Colour: input type=checkbox name=columns[] value=colour /
...
?php
...
mysql_query(SELECT .
On Fri, 10 Sep 2004 20:09:55 +0200, dirk [EMAIL PROTECTED] wrote:
can anyone explain to me, why I can't resize an array inside a class?
Sample Code:
?php
class Liste {
var $input = array (1,2,3);
var $input2 = array_pad ($input,10, 1);
}
?
Output:
Parse error: parse error,
From the manual:
In PHP 4, only constant initializers for var variables are allowed. To
initialize variables with non-constant values, you need an
initialization function which is called automatically when an object
is being constructed from the class. Such a function is called a
constructor
From: dirk [EMAIL PROTECTED]
can anyone explain to me, why I can't resize an array inside a class?
Sample Code:
?php
class Liste {
var $input = array (1,2,3);
var $input2 = array_pad ($input,10, 1);
}
?
Output:
Parse error: parse error, unexpected '(', expecting ',' or ';' in
For reference:
http://www.blueshoes.org/en/developer/php_cheat_sheet/
-Original Message-
From: Al [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 06, 2004 7:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] A follow up on my question about good coding
practice [isset]
I could use one
Well, doesn't work either:
Parse error: parse error, unexpected T_VARIABLE, expecting T_FUNCTION
in /srv/www/htdocs/stundenplan/stpoo.php on line 5
I forgot to mention that I'm using php-5.0.1 before
Dirk
On Fri, 10 Sep 2004 14:26:22 -0400, John Holmes
[EMAIL PROTECTED] wrote:
From: dirk
From: dirk [EMAIL PROTECTED]
Try this:
var $input = array(1,2,3);
var $input2 = array();
$this-input2 = array_pad($this-input,10,1);
Well, doesn't work either:
Parse error: parse error, unexpected T_VARIABLE, expecting T_FUNCTION
in /srv/www/htdocs/stundenplan/stpoo.php on line 5
The array_pad
Works fine within the constructor, thanks.
Dirk
On Fri, 10 Sep 2004 14:38:45 -0400, John Holmes
[EMAIL PROTECTED] wrote:
From: dirk [EMAIL PROTECTED]
Try this:
var $input = array(1,2,3);
var $input2 = array();
$this-input2 = array_pad($this-input,10,1);
Well, doesn't work either:
On Fri, 10 Sep 2004 14:26:22 -0400, John Holmes
[EMAIL PROTECTED] wrote:
From: dirk [EMAIL PROTECTED]
can anyone explain to me, why I can't resize an array inside a class?
Sample Code:
?php
class Liste {
var $input = array (1,2,3);
var $input2 = array_pad ($input,10, 1);
}
?
You probably need this to set the Content-length: header, don't you?
I'd go into:
ob_start()
imagegif($imageResource);
// or whatever type of image you're writing
$blob = ob_get_clean();
unset($imageResource); // free the memory once you're not using the image
// size in bytes = strlen()+1, due
Check into the Javascript events onfocus and onblur (forgive my syntax). Focus
is when a window becomes 'active' and Blur is when it becomes 'non active'.
-TG
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 15, 2004 10:07 PM
To: PHP
One simple way to do it would be:
List($username,$domain) = explode(@,$emailaddress);
$newemailaddress = [EMAIL PROTECTED];
Maybe I just use list/explode too much. :)
-TG
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 22, 2004 6:09 AM
To:
I have heard of php modules and to the sound of it it allows me to
create php functions that I don't have to have include files to have
access to those functions. I have been searching for any information on
this and have not had any success. I am basically trying to write an
API that others
I disagree on the strtotime recommendations that everyone else gave.
The mktime() function itself will compensate for leap years, day = 36
type stuff and all of that.
?php
$curdate = date(Y-m-d);
$plus7 = date(Y-m-d,mktime(0,0,0,date(m),date(d)+7,date(Y)));
Echo Current Date: $curdatebr;
Echo +7
This is not a sales post. I also posted this on the MySQL board. I have
been struggling with JOINed SELECT statements in MySQL for a while now. The
syntax just seems to elude me. However, I just found a Win Dreamweaver
extension that rocks. The Advanced Query Wizard allows me to very quickly
Where can I find the docs for Constructor, Properties and Methods for the
SQLite extension? I search PHP.NET website but I can´t found it. I found
this information for mysqli only...
Thanks,
Rics
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Fri, 10 Sep 2004 11:57:03 -0700, Benjamin Bostow
[EMAIL PROTECTED] wrote:
I have heard of php modules and to the sound of it it allows me to
create php functions that I don't have to have include files to have
access to those functions. I have been searching for any information on
this and
On Fri, 10 Sep 2004 14:00:47 -0500, Robb Kerr
[EMAIL PROTECTED] wrote:
This is not a sales post.
It sure sounds like one, not that I care or anything.
Curious.. did they have a non-windows version? Something for the vim
crowd perhaps? What about for Postgres? I'm using MySQL less and
less
Wouter Van Vliet wrote:
On Fri, 10 Sep 2004 14:26:22 -0400, John Holmes
[EMAIL PROTECTED] wrote:
From: dirk [EMAIL PROTECTED]
can anyone explain to me, why I can't resize an array inside a class?
Sample Code:
?php
class Liste {
var $input = array (1,2,3);
var $input2 = array_pad ($input,10, 1);
http://ro.php.net/manual/en/zend.php
This might be a good start.
Cheers,
Catalin
Benjamin Bostow [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I have heard of php modules and to the sound of it it allows me to create
php functions that I don't have to have include files to have
Why would you do such strange things? It's a lot more simple :P
$now = time();
$plus7 = $now+(7*24*60*60); // 7 days, containing 24 hours each,
containing 60 minutes each, containing 60 seconds each.
echo 'Current Date: '.date('Y-m-d', $now);
echo 'Date in 7 days: '.date('Y-m-d', $plus7);
now
On Fri, 10 Sep 2004 14:57:29 -0500, Greg Donald wrote:
On Fri, 10 Sep 2004 14:00:47 -0500, Robb Kerr
[EMAIL PROTECTED] wrote:
This is not a sales post.
It sure sounds like one, not that I care or anything.
Curious.. did they have a non-windows version? Something for the vim
crowd
On Fri, 10 Sep 2004 16:20:21 -0300, Ricardo Cezar [EMAIL PROTECTED] wrote:
Where can I find the docs for Constructor, Properties and Methods for the
SQLite extension? I search PHP.NET website but I can´t found it. I found
this information for mysqli only...
http://www.php.net/sqlite
--
I told:
I search php.net website
This page don´t have the docs for constructor, methods and properties. It
doesn´t have docs for OO programing with SQLite. Only procedural programing.
I´m looking for the OO docs...
Greg Donald [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
On
What is the best way to access one class from another? What I have is a
couple of core classes that are loaded into instances at the start of
each page. I then load instances of page specific classes. How would I
access the already loaded instances of the core classes from inside one
of the
M. Sokolewicz wrote:
To summarize:
?php
class Liste {
var $input2;
var $input;
function Liste() { /* or, if you're using php5: public function
__construct() { */
$this-input = array(1,2,3);
$this-input2 = array_pad($this-input,10,1);
}
}
The reason being, for this, that
I believe that would be the correct term for what I need.
Here is what I have been trying to do.
I have orders and customers. Customers are required to do a few things before we can
process the
order. Some times they are very slow in doing so. So I wanted to write a little
reminder script
* Brent Baisley [EMAIL PROTECTED]:
What is the best way to access one class from another? What I have is a
couple of core classes that are loaded into instances at the start of
each page. I then load instances of page specific classes. How would I
access the already loaded instances of the
Brent Baisley [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
What is the best way to access one class from another? What I have is a
couple of core classes that are loaded into instances at the start of
each page. I then load instances of page specific classes. How would I
access
I believe this one will be off by an hour on leap day.
Warren Vail
-Original Message-
From: M. Sokolewicz [mailto:[EMAIL PROTECTED]
Sent: Friday, September 10, 2004 1:08 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Adding +7 more days on date() value problem
Why would you do such
So if this is run on the 30th of the month, you are saying this handles a
month with day 37 correctly?
Warren Vail
-Original Message-
From: Gryffyn, Trevor [mailto:[EMAIL PROTECTED]
Sent: Friday, September 10, 2004 11:58 AM
To: [EMAIL PROTECTED]
Cc: Louie Miranda
Subject: RE: [PHP]
--- CBharadwaj [EMAIL PROTECTED] wrote:
In conection.php I have written.
SESSION_ START();
on successful login I am registering a session variable.
SESSION_REGISTER(userId);
Do this instead:
session_start();
$_SESSION['userid'] = 'myuser';
Header(Location: home.php);
Use
Actually, I stand corrected on this one, it will be off by an hour on
daylight savings change date (either one).
Warren Vail
-Original Message-
From: M. Sokolewicz [mailto:[EMAIL PROTECTED]
Sent: Friday, September 10, 2004 1:08 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Adding +7 more
--- Aaron Gould [EMAIL PROTECTED] wrote:
Just curious if anyone on the list was headed to Toronto on Sep 22-24
for php|works. I live about two hours from Toronto, and my company
is sending me.
I wonder what kind of reception this conference will get...
I'm giving a talk on PHP session
Because $now+(7*24*60*60) isn't very intuitive to a human.
Why would you do it that way instead of:
$days = 24*60*60;
$now = time();
$plus7 = $now+(7*$days);
echo 'Current Date: '.date('Y-m-d', $now);
echo 'Date in 7 days: '.date('Y-m-d', $plus7);
Maybe you think like a machine, but the way I
Dan McCullough [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I believe that would be the correct term for what I need.
Here is what I have been trying to do.
I have orders and customers. Customers are required to do a few things
before we can process the
order. Some times they
Yes, it does! That's why I find it so useful. :)
http://www.php.he.net/manual/en/function.mktime.php
Quoted:
mktime() is useful for doing date arithmetic and validation, as it will
automatically calculate the correct value for out-of-range
* Thus wrote Chidanand:
I have a requirement where in i have to access shared
memory allocated by some C process. Can i do this in
PHP?
I am trying out some thing like this.
I want to access the existing shared memory.
$shm_id = ftok(/tmp/, 'm');
echo $shm_id. br;
$shmid =
On Fri, 10 Sep 2004 13:33:37 -0700 (PDT), Dan McCullough
[EMAIL PROTECTED] wrote:
So I have orders and customers. I need to go through and list out the orders and
then I need to
use the customer to grab all the order associated with them, then list out their
contact
information. Anythough
Chris Shiflett [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
--- Aaron Gould [EMAIL PROTECTED] wrote:
Just curious if anyone on the list was headed to Toronto on Sep 22-24
for php|works. I live about two hours from Toronto, and my company
is sending me.
I wonder what kind
Hi,
I've encountered a problem I can't seem to find much reference to on the web, so I
was wondering if anyone here could help me...
Fisrt a brief background:
I am building a fairly simple PHP/MySQL chat system with multiple rooms. Each room is
loaded from the main chat page by clicking
I have a MySQL db with a datetime field containing the date and time of
the sale. I want to query for a simple report that shows total sales by
month.
I thought this would be quick easy but it's NOT! I can't figure out
how to query for it.
If this question would be better posed to a SQL
Any recommendations on the best PHP5 OOP book to get? I have Advanced PHP
Programming by George Schlossnagle. It's turning out to be a great book,
but I'd like to read more on PHP5 OOP. The first chapter recommends two
books, but both deal with OOP from the perspective of C++, C#, and Perl.
Hi John,
I would recommend making $_SESSION['prevtime'] an array
$roomname = 'sampleroom';
if (!isset($_SESSION['prevtime'])) {
$_SESSION['prevtime'] = array();
}
$_SESSION['prevtime'][$roomname] = time();
Then, you can
if (isset($_SESSION['prevtime'][$roomname])) {
// update the session
Hi,
I've encountered a situation where I need to have two or more SEPARATE sessions
running in separate windows. The reasons are complicated, so I'll keep things simple
by just explaining the problem!
Unfortunately my understanding of sessions is a little sketchy at best so please stick
with
On Fri, 10 Sep 2004 11:58:58 +0100, in php.general
[EMAIL PROTECTED] (Abdul-Wahid Paterson) wrote:
I was wondering if any classes/functions could help me with this little
challenge, (im hopeless at regex ;-)
input type=hidden name=id value=593 /
No easy way of doing it, regex somthing like:
Thanks Pablo - but it's more complicated than that. I'm trying to
return totals for all calendar months, not all records within the past
month. I'll word my question better and post it to one of your
suggested lists. :)
On Sep 10, 2004, at 4:27 PM, Pablo Gosse wrote:
Brian Dunning wrote:
I
Hi,
I will be getting input from a textarea and then I am
using explode to break the text into an array when
it encounters a space.
eg:
one two three four ninty
would be broken into 5 parts of an array.
** The array would then be put into a session **
now I need to display the last part (which
On Fri, 10 Sep 2004 15:09:57 -0700, Ed Lazor [EMAIL PROTECTED] wrote:
Any recommendations on the best PHP5 OOP book to get? I have Advanced PHP
Programming by George Schlossnagle. It's turning out to be a great book,
but I'd like to read more on PHP5 OOP. The first chapter recommends two
I have no experience with PHP5 so far but this subject was asked
before often enough with PHP4 - so the advice should still be valid...
I generally didn't put any files in the %SYSTEMROOT% folder (which
usually translates to C:\WINDOWS on a default installed WinXP machine)
but instead I put the
1 - 100 of 112 matches
Mail list logo