[EMAIL PROTECTED] wrote:
Hi ,
The user have to choose 2 date ($date_begin $date_last) and i want
to know howcan i make to find field in mysql where field included
between ($date_begin $date_last)
SELECT * FROM `news` WHERE `date` included in ($date_begin
$date_last)
php-general Digest 15 Aug 2003 06:16:45 - Issue 2237
Topics (messages 159608 through 159642):
Re: project management php system
159608 by: Michael A Smith
Re: email confirmation script
159609 by: Anthony Ritter
159626 by: Anthony Ritter
159638 by: olinux
Dennis Lee wrote:
Why it is wrong when I run php as module under apache 2.0.46 ?
PHP and Apache 2 are currently unstable together.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
PHP
Matt Babineau wrote:
Anyone have a good place to help with this... Google was seeming a bit
light on good help. I tried to get it going but there seemed to be some
dependant libraries tha tI could not build myself, they were erroring
out..blah blah. Is there any easier way to do this?
Thanks,
Matt
Ok ... so I can do it this way (below), but there must be a more intelligent way? This
is like something I did with my Vic20, 19 years ago. (If you ever had a Vic20 ... :)
you might sympathise)
while ($mydata = mysql_fetch_object($news))
{
if ($mydata-StudentId = $StudentId)
{$found
What about (just a slight change...)?
$found = 0;
while ($mydata = mysql_fetch_object($news))
{
if ($mydata-StudentId == $StudentId)
{$found = 1; break;}
}
if ($found==1){do this}else{do that}
at least this way you
echo $HTTP_HOST;
did the job perfectly
thanks Justin
Viraj
Quoting Justin French [EMAIL PROTECTED]:
pre
?print_r($_SERVER);?
/pre
Have a look at the output, find the variable you need, then manipulate
it if needed.
Justin French
On Friday, August 15, 2003, at 01:32 PM,
Do you know any?
--- -
Thanks,
Louie Miranda
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How can I get the last day for the current month?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Do you want to provide a web interface to your local file system? well
the easiest would then be to just exec locate, which will make use of
the slocate db. Alternatively you can try to exec find. These can be
done painlessly and you don't have to install any software.
If you need a more
Might want to take a look at:
http://www.htdig.org/
Using the PHP wrapper class:
http://sourceforge.net/projects/htphp/
-Original Message-
From: Louie Miranda [mailto:[EMAIL PROTECTED]
Sent: Friday, August 15, 2003 12:42 AM
To: [EMAIL PROTECTED]
Subject: [PHP] php, search engine that
Hi,
I am going to use Turck MMCache with Encoder. Anyone on the list have
used it on Linux, MacOS X, Windows?
Any caveats and/or side effect?
Your feedback will be greatly appreciated. Thanks in advance.
*
* Best Regards --- Andrei Verovski
*
? print date(t) ?
rgds.
Quoting Ralph Guzman [EMAIL PROTECTED]:
How can I get the last day for the current month?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
---
Sign
wow. I missed that one in the manual. I guess it's time for me to call
it a night.
Thanks.
-Original Message-
From: Sn!per [mailto:[EMAIL PROTECTED]
Sent: Friday, August 15, 2003 1:21 AM
To: Ralph Guzman
Cc: PHP General Mailing List
Subject: Re: [PHP] LAST DAY OF MONTH
? print date(t)
I just noticed, this will give me total days for current month. But
let's say I want to look up the total days for another month?
-Original Message-
From: Sn!per [mailto:[EMAIL PROTECTED]
Sent: Friday, August 15, 2003 1:21 AM
To: Ralph Guzman
Cc: PHP General Mailing List
Subject: Re:
Greetings learned PHP(eople);
Is there a way to calculate the size of directory in PHP ?
I searched php.net and only found ways of opening directories and
reading file sizes
One suggestion on there was to do the following :
$mstrng = shell_exec('du -sc /backup/');
echo 'pre' . $mstrng .
John Taylor-Johnston wrote:
Ok, this is a basic MySQL question, but I don't know how to code it in PHP. I want to
check in StudentId. If it exists, ...
Anyone good humoured who would help me fill in the blank. Like I should know this, but
haven't even thought of coding SQL in a while :)
play with mktime to get the months that you want. the code snippet below is for July
2003:
--- start code ---
?
$xMonths = mktime (0,0,0, date(m)-1,1,date(Y));
print total days in .date(M,$xMonths). = .date(t,$xMonths).BR;
print and that WAS on .date(D,$xMonths);
?
--- end code ---
rgds.
i am using Horde's IMP.
i am playing with the idea of saving mail attachment(s) into another server.
the mail server is like mail.example.com on server-A and the 2nd server is like
photos.example.com on server-B.
is this _normally_ done with cURL and/or snoopy ?
appreciate some guidelines.
I *think* if you feed it the unix timestamp for the 1st day of the
month, it will give you the last day, *untested* though.
?
$firstDay = strtotime('2003-05-01');
$lastDay = date('t',$firstDay);
?
Justin
On Friday, August 15, 2003, at 06:40 PM, Ralph Guzman wrote:
I just noticed, this will
Hi there,
I want to create images with GD and freetype ttf which are good enough for
printing .. about 150 dpi.
Does anybody know how to output the jpg with a higher resolution and a
determined output size?
Thanx in advance,
merlin
--
PHP General Mailing List (http://www.php.net/)
To
Dear Friends,
When we click a combo box, in a perticular file, the output from the
database should display in the same screen, in a text box or a combo box (We
want this to happen without pressing the submit button).
Any clue please
Subodh
-Original Message-
From: [EMAIL PROTECTED]
Are you sure it hangs? It might take a long time to get occupied size.
This also depends on the filesystem used, I heard reserfs is best at this.
Chris Blake wrote:
Greetings learned PHP(eople);
Is there a way to calculate the size of directory in PHP ?
I searched php.net and only found ways
$news = mysql_query(select StudentId FROM $table);
if($mydata=mysql_fetch_object($news))
{
//got it
} else {
// no such StudentId
}
John Taylor-Johnston wrote:
Ok, this is a basic MySQL question, but I don't know how to code it in PHP. I want to
check in StudentId. If it exists,
On Fri, 2003-08-15 at 12:36, Marek Kilimajer wrote:
Are you sure it hangs? It might take a long time to get occupied size.
This also depends on the filesystem used, I heard reserfs is best at this.
Well, I thought it was hanging cuz 15 mins went past without any
return...then I figured it had
Hi there,
I have a regex problem.
Basicly I do not want to match:
/dir/test/contact.html
But I do want to match:
/test/contact.html
I tryed this one:
^[!dir]/(.*)/contact(.*).html$
but it does not work and I tryed thousands of other ways plus read
tutorials.
Can anybody please help?
Thanx
[snip]
$found = 0;
while ($mydata = mysql_fetch_object($news))
{
if ($mydata-StudentId == $StudentId)
{$found = 1; break;}
}
if ($found==1){do this}else{do that}
[/snip]
Why two if's? Isn't if the student is found
Merlin wrote:
Hi there,
I have a regex problem.
Basicly I do not want to match:
/dir/test/contact.html
But I do want to match:
/test/contact.html
I tryed this one:
^[!dir]/(.*)/contact(.*).html$
but it does not work and I tryed thousands of other ways plus read
tutorials.
Can anybody please
Merlin wrote:
Hi there,
I want to create images with GD and freetype ttf which are good enough for
printing .. about 150 dpi.
Does anybody know how to output the jpg with a higher resolution and a
determined output size?
Thanx in advance,
merlin
output an image with dimensions, say, 320x200, but
[snip]
When we click a combo box, in a perticular file, the output from the
database should display in the same screen, in a text box or a combo box
(We
want this to happen without pressing the submit button).
Any clue please
[/snip]
You appear to be looking for something called Javascript.
^\/test\/contact.html$
does not work. I am sorry, I just found that
it has to be:
test/contact.html
and not
dir/test/contact.html
there is no leading slash.
Do you have any other suggestion?
--
lt;IFRAME
SRC=http://saratoga.globosapiens/associates/report_member.php?u=3color=EEE
EEE
Hi there.
I have been trying to log some data to an xml file. Whta my problem is now
is that the /root tag needs to be either replaced (overwritten) or i need to
get the data in before EOF-1. I have spend some time on the manual, but
could not find out hoe exactly i should get the last row and
Merlin wrote:
^\/test\/contact.html$
does not work. I am sorry, I just found that
it has to be:
test/contact.html
and not
dir/test/contact.html
there is no leading slash.
Do you have any other suggestion?
Are you making this too hard?
if($string = 'test/contact.html')
{ echo 'good'; } else {
Hi,
$found =3D 0;
while ($mydata =3D mysql_fetch_object($news))
{
if ($mydata-StudentId =3D=3D $StudentId)
{$found =3D 1; break;}
}
if ($found=3D=3D1){do this}else{do that}
Why not re-oganise your SQL statement so it
[snip]
I have been trying to log some data to an xml file. Whta my problem is
now
is that the /root tag needs to be either replaced (overwritten) or i
need to
get the data in before EOF-1. I have spend some time on the manual, but
could not find out hoe exactly i should get the last row and then
Hi all!
Is it possible to have PHP creates an image that graduates 1 color to
another, such as create and images 100 pixels wide and in height which
fades red to green top to bottom?
Any help or suggestions would be really helpful.
Thanks
Adrian
[EMAIL PROTECTED]
[snip]
Is it possible to have PHP creates an image that graduates 1 color to
another, such as create and images 100 pixels wide and in height which
fades red to green top to bottom?
[/snip]
http://us3.php.net/image
You could set the color index and the loop through (while incrementing)
each new
Merlin wrote:
^\/test\/contact.html$
does not work. I am sorry, I just found that
it has to be:
test/contact.html
and not
dir/test/contact.html
there is no leading slash.
Do you have any other suggestion?
*sigh*
^test\/contact.html$
Kae
--
PHP General Mailing List (http://www.php.net/)
To
John W. Holmes wrote:
Merlin wrote:
^\/test\/contact.html$
does not work. I am sorry, I just found that
it has to be:
test/contact.html
and not
dir/test/contact.html
there is no leading slash.
Do you have any other suggestion?
Are you making this too hard?
if($string = 'test/contact.html')
[snip]
if($string = 'test/contact.html')
That's
if($string == 'test/contact.html')
of course... :)
[/snip]
it could be
if($string == test/contact.html)
couldn't resist :)
Jay
P.S. John, nothing on that thing yet.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On 15 August 2003 12:02, Merlin wrote:
Hi there,
I have a regex problem.
Basicly I do not want to match:
/dir/test/contact.html
But I do want to match:
/test/contact.html
I tryed this one:
^[!dir]/(.*)/contact(.*).html$
Well, that's not going to work because the construct
select * from 'news' where 'date' between '$date_begin' and '$date_last';
i hope this code is ok?
my english is very poor !
- Original Message -
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 14, 2003 5:36 PM
Subject: [PHP] searching date
Hi
ufff.. sorry guys, but I have to explain that better. I appreciate your
help, maybe I did not give enough info.
I am trying to redirect with apache modrewrite. To do this you have to use
regex (not if functions:-)
My problem is, that there are member accounts which look like that:
Jay Blanchard wrote:
if($string == 'test/contact.html')
it could be
if($string == test/contact.html)
not to start a flame war or anything, but isn't the apostrophe version
quicker, as it doesn't ask the server to parse the string?
Kae
--
PHP General Mailing List (http://www.php.net/)
To
Hello Andrei,
I've been using Turck MMCache for over 6 months now. I use it on
several severs including FreeBSD (2), Windows (1) and Linux (3). I've
been very happy with Turck MMCache and as of the last few releases it is
actually faster than Zend's product though not by very much (granted
Merlin wrote:
ufff.. sorry guys, but I have to explain that better. I appreciate your
help, maybe I did not give enough info.
I am trying to redirect with apache modrewrite. To do this you have to use
regex (not if functions:-)
My problem is, that there are member accounts which look like that:
So
^[^/]+/[^/]*
or
^!(partner/)
Merlin wrote:
ufff.. sorry guys, but I have to explain that better. I appreciate your
help, maybe I did not give enough info.
I am trying to redirect with apache modrewrite. To do this you have to use
regex (not if functions:-)
My problem is, that there are
Howdy Fellas,
I've got this problem .. not really a problem but still some thing to my
disliking. For a project I wrote some database handling class, no big deal.
When a function from this module is called with a query containing an error,
or some other error occurs inside this class it reports
I'm trying to get a handle on this algorithm as well. If you add
additional children to a parent record, doesn't that require
renumbering all the rgt and lft values in the lineage? For example
(table shamelessly stolen from a website):
Personnel
emp lft rgt
==
does not work. Is there not a way to exclude the word partner like you
triede with !(partner) ?
merlin
Marek Kilimajer [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
So
^[^/]+/[^/]*
or
^!(partner/)
Merlin wrote:
ufff.. sorry guys, but I have to explain that better.
Good idea,
but does not work either - surprisingly! -
There should be a clean way with regex for this task.
Andy regex expert in here?
Merlin
Kae Verens [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Merlin wrote:
ufff.. sorry guys, but I have to explain that better. I
* Thus wrote Merlin ([EMAIL PROTECTED]):
ufff.. sorry guys, but I have to explain that better. I appreciate your
help, maybe I did not give enough info.
I am trying to redirect with apache modrewrite. To do this you have to use
regex (not if functions:-)
I'm not sure what you expect since
* Thus wrote Kae Verens ([EMAIL PROTECTED]):
Jay Blanchard wrote:
if($string == 'test/contact.html')
it could be
if($string == test/contact.html)
not to start a flame war or anything, but isn't the apostrophe version
quicker, as it doesn't ask the server to parse the string?
heh,
--- Jackson Miller [EMAIL PROTECTED] wrote:
It looks like sendmail_from should be an smtp server, not an email
address.
Try setting it to your outgoing mail server that you use with your
email
client (i.e. Outlook). If you can send email from your email
client then the
firewall will
Thanks David,
I noticed the __LINE__ and __FUNCTION__ magic constants too, but they don't
really contain the values I was looking for, as they have the current
function and line in it. But what I want my Logging class (I have one too
:D) to display is what I am about to illustrate with an
At 2003-08-15 08:14 -0400, Adrian wrote:
Is it possible to have PHP creates an image that graduates 1 color to
another, such as create and images 100 pixels wide and in height which
fades red to green top to bottom?
It's possible. I have just been experimenting with
it using
[EMAIL PROTECTED]
Leif K-Brooks:
Dennis Lee wrote:
Why it is wrong when I run php as module under apache 2.0.46 ?
PHP and Apache 2 are currently unstable together.
They might crash on any high traffic, but they start fine, at least when
I've tried it.
--
PHP General Mailing List
So, what you want is to pretty much use this regex
/^(.*)([^\/]+)\/([^\/]+)$/
when matched on this URI, the backreferences will contain
\\1 partner/
\\2 name
\\3 contact.html
\\4 .html
partner/name/contact.html
I have not tested it, but I just guess it will work ;) Wanna
I use preg_match to validate the Middle Initial field of a form and so far
it works, except yesterday a user submitted a 0 (zero) as a middle
initial! My regexp is:
if (!empty($_POST[MI]) (preg_match('/^[[:alpha:]]{1,1}$/', $_POST[MI]) == 0))
I tested it with 0-9 and my regexp catches every
Use debug_backtrace():
if($error=mysql_error()) {
$bt=debug_backtrace();
echo $bt[0]['file'].':'.$bt[0]['line'].'br'
.$error.'br'.$query;
}
hope i got everything right
Wouter van Vliet wrote:
Thanks David,
I noticed the __LINE__ and __FUNCTION__ magic constants
At 2003-08-15 16:35 +0200, Wouter van Vliet wrote:
I noticed the __LINE__ and __FUNCTION__ magic constants too, but they don't
really contain the values I was looking for, as they have the current
function and line in it. But what I want my Logging class (I have one too
:D) to display is what I am
- Original Message -
From: [EMAIL PROTECTED]
I use preg_match to validate the Middle Initial field of a form and so far
it works, except yesterday a user submitted a 0 (zero) as a middle
initial! My regexp is:
if (!empty($_POST[MI]) (preg_match('/^[[:alpha:]]{1,1}$/', $_POST[MI])
From: Mark [EMAIL PROTECTED]
I'm trying to get a handle on this algorithm as well. If you add
additional children to a parent record, doesn't that require
renumbering all the rgt and lft values in the lineage? For example
(table shamelessly stolen from a website):
Personnel
emp
* Thus wrote Jay Blanchard ([EMAIL PROTECTED]):
A couple of things occured to me, but I am not sure that they're
desirable...
With /root being the last tag (does it occupy its own line?) you could
(pseudo-code, not tested and certain to be incomplete)...
while(!feof($theXMLLogFile)){
Not an answer but
'/^[[:alpha:]]{1,1}$/'
could be writen as
'/^[[:alpha:]]$/'
[EMAIL PROTECTED] wrote:
I use preg_match to validate the Middle Initial field of a form and so far
it works, except yesterday a user submitted a 0 (zero) as a middle
initial! My regexp is:
if (!empty($_POST[MI])
From: [EMAIL PROTECTED]
I use preg_match to validate the Middle Initial field of a form and so far
it works, except yesterday a user submitted a 0 (zero) as a middle
initial! My regexp is:
if (!empty($_POST[MI]) (preg_match('/^[[:alpha:]]{1,1}$/', $_POST[MI])
== 0))
I tested it with 0-9
Nope .. I hadn't studiet the ref.errorfunc.php in this search.. I did some
other time and the backtrace function didn't stick around in my head.
Thank you all for helping me .. of course, debug_backtrace() was what I
needed ;) .. what a magnificent new function in PHP4.3 that is.. Only too
bad my
WHOW .. what a great new function in PHP4.3 .. I now have my errorlog
populated with stuff like:
[Fri 15 Aug 2003 17:34] [error] [database] You have an error in your SQL
syntax near 'DELETESBLAH' at line 1
-- - database-execute() @ HTML/tmp/test.php line 3
-
is there any syntax difference between
ereg() and preg() except preg needs / and /?
--
- Eddy Wong
__
inframatrix internet solutions
http://www.inframatrix.com/
¥¿¤KEddy
Regular Octa-Eddy
[EMAIL PROTECTED]@
[EMAIL PROTECTED]@¡½¢ª¢©
[EMAIL PROTECTED]@[EMAIL
Hi Group,
I have a question on overloaded function.
What is the best way to pass the arguments so it is
easy to maintain in future if function behaviour
changes by adding/removing one or more arguments?
Currently i am passing arguments in array. But i think
it is not the clean way to do it and
Hello,
If you are worried about this issue your best option is to switch to an
object oriented approach.
all the best
Hardik Doshi wrote:
Hi Group,
I have a question on overloaded function.
What is the best way to pass the arguments so it is
easy to maintain in future if function behaviour
Hi,
setting locale with setlocale() to subsequently get localized time strings
e.g. works fine. But this way the setlocale function gets executed every
time. How can i set the locale only once?
Can i specify the locale in the config file php.ini?
I'm using php as apache module on a linux debian
Wouldn¹t it just be easier to do a relationship table as in
Personnel
emp ID parent
'Albert' 1 0
'Bert'2 1
'Chuck' 3 1
'Donna' 4 0
'Eddie' 5 4
'Fred'6 0
'Joe' 7 6
This way you know the
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]):
I use preg_match to validate the Middle Initial field of a form and so far
it works, except yesterday a user submitted a 0 (zero) as a middle
initial! My regexp is:
if (!empty($_POST[MI]) (preg_match('/^[[:alpha:]]{1,1}$/', $_POST[MI])
* Thus wrote Eddy-Das ([EMAIL PROTECTED]):
is there any syntax difference between
ereg() and preg() except preg needs / and /?
There are a lot of differences in syntax.
Curt
--
I used to think I was indecisive, but now I'm not so sure.
--
PHP General Mailing List (http://www.php.net/)
To
* Thus wrote Subodh Gupta ([EMAIL PROTECTED]):
Dear Friends,
When we click a combo box, in a perticular file, the output from the
database should display in the same screen, in a text box or a combo box (We
want this to happen without pressing the submit button).
Any clue please
--- CPT John W. Holmes [EMAIL PROTECTED] wrote:
From: Mark [EMAIL PROTECTED]
I'm trying to get a handle on this algorithm as well. If you add
additional children to a parent record, doesn't that require
renumbering all the rgt and lft values in the lineage? For
example
(table
Hello eveyone.
I want to upgrade my php install from 4.2.2 to 4.3.2. I'm pretty new to
linux so I don't know how to install from source and I haven't been able
to find any Redhat 8 rpm's.
Can someone please give me instructions as to what I should do? (Maybe
links to a site where I can find the
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]):
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]):
I use preg_match to validate the Middle Initial field of a form and so far
it works, except yesterday a user submitted a 0 (zero) as a middle
initial! My regexp is:
if
I just started using sessions and am having some trouble understanding how
to pull values out of sessions to use in another page.
I set the values as:
session_start();
session_register{'magazine');
session_register('company');
The data is saved as a session because I can read the file located
Ok, I have changed my code so the headers are sent as:
header(HTTP/1.0 302 Redirect);
header(Location: index2.php);
header(Set-Cookie: USER_COOKIE=$sUser);
I have changed the file name to nph-unsecure.php
It successfully sends me to the index2.php page, but no cookie... any ideas
Joaco [EMAIL
Not specific to PHP really, but it all started with a simple PHP script I
was automating...
I've used cron/crontab on a zillion machines, and it always worked
flawlessly.
Well, once I'd get the actual shell commands and permissions right anyway.
But this time...
The cron jobs just aren't
I have a quick simple question. I am using PHP 4.2.3 on Linux. I am trying to turn
register_globals from off to on. Is all that I need to do change it from off to on in
the php.ini file? Do you I need to reboot to have the changes go into effect? Sorry
for a simple question but I am new at
never reboot !!
is not necessary !
- Original Message -
From: Ben C. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 15, 2003 2:14 PM
Subject: [PHP] PHP.ini file and register_globals
I have a quick simple question. I am using PHP 4.2.3 on Linux. I am
trying to turn
[snip]
never reboot !!
is not necessary !
[/snip]
But you might want to restart your web server.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is the change in the php.ini file the only thing that I need to change to turn on
register_globals?
From: Jonatan Pugliese. [EMAIL PROTECTED]
Date: 2003/08/15 Fri PM 01:18:01 EDT
To: Ben C. [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] PHP.ini file and register_globals
never
Is the change in the php.ini file the only thing that I need to change to turn on
register_globals?
From: Jonatan Pugliese. [EMAIL PROTECTED]
Date: 2003/08/15 Fri PM 01:18:01 EDT
To: Ben C. [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] PHP.ini file and register_globals
never
yes you must to restart your webserver !!
type /etc/init.d/httpd restart
- Original Message -
From: Jay Blanchard [EMAIL PROTECTED]
To: Jonatan Pugliese. [EMAIL PROTECTED]; Ben C.
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, August 15, 2003 2:18 PM
Subject: RE: [PHP] PHP.ini file
[snip]
Is the change in the php.ini file the only thing that I need to change
to turn on register_globals?
[/snip]
Yes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
From: Ed Curtis [EMAIL PROTECTED]
I just started using sessions and am having some trouble understanding
how
to pull values out of sessions to use in another page.
I set the values as:
session_start();
session_register{'magazine');
session_register('company');
The data is saved as a
From: Richard Baskett [EMAIL PROTECTED]
Wouldn¹t it just be easier to do a relationship table as in
Personnel
emp ID parent
'Albert' 1 0
'Bert'2 1
'Chuck' 3 1
'Donna' 4 0
'Eddie' 5 4
'Fred'6
I have a function that checks the syntax of a string using preg_match. This
function is used in a loop and always hangs on the same string (7 out of
many more).
However, the function acts as expected when used individually on that string
(ie when the array of strings to loop on is reduced to just
You can use apachetoolbox.com to install apache and php...
Chris W. Parker wrote:
I want to upgrade my php install from 4.2.2 to 4.3.2. I'm pretty new to
linux so I don't know how to install from source and I haven't been able
to find any Redhat 8 rpm's.
--
PHP General Mailing List
It seems to me that this used to work but I guess something has changed
somewhere between PHP 4.2 and 4.3?
I am running PHP 4.3.2 as an Apache DSO on an FBSD box. If it is not
obvious, I am trying to parse checkbox form POST results as seen below:
$colors=;
foreach($HTTP_POST_VARS as
Hi there,
I am wondering how to prevent that users can post html through a form. I
process the form with php and save the date to a db.
There are a couple of sites I have already seen such thing. No matter what
you do, it is not possible to submit html commands.
Thats exacly what I want to do for
[snip]
I am wondering how to prevent that users can post html through a form. I
process the form with php and save the date to a db.
There are a couple of sites I have already seen such thing. No matter
what
you do, it is not possible to submit html commands.
Thats exacly what I want to do for my
Cesar Cordovez mailto:[EMAIL PROTECTED]
on Friday, August 15, 2003 11:01 AM said:
You can use apachetoolbox.com to install apache and php...
Does this require that I uninstall everything I've already got?
Chris.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I am running a PHP script from the command line that is returning
Segmentation Fault. I run a lot of script from the command line and have
never seen this before. I don't even know where to begin.
I know that PHP is set up to run scripts from the command line and plent of
other scripts run.
Merlin wrote:
I am wondering how to prevent that users can post html through a form. I
process the form with php and save the date to a db.
There are a couple of sites I have already seen such thing. No matter what
you do, it is not possible to submit html commands.
Thats exacly what I want to do
What is the best way to pass the arguments so it is easy to maintain in
future if function behaviour changes by adding/removing one or more
arguments?
Currently i am passing arguments in array. But i think it is not the
clean way to do it and another approach i am using is functionName(arg1,
1 - 100 of 142 matches
Mail list logo