On Thursday, June 13, 2002 at 6:30:11 PM, you wrote:
So basically, to keep the address away from bots, keep it away from
normal users. Okay, so something like this would be more effective:
Have a form with a hidden input of the user's alias, and an input of E-
mail me!, that form posts to an
I have a example.html
---
script
function add()
{
var res=0;
for(x=0;x3;x++)res=res+parseFloat(example.text[x].value);
example.result.value=res;
}
/script
html
form name=example action=show.php
input type=text name=text value=1br
input type=text name=text
On Thursday, June 13, 2002 at 6:38:10 PM, you wrote:
I have a example.html
---
script
function add()
{
var res=0;
for(x=0;x3;x++)res=res+parseFloat(example.text[x].value);
example.result.value=res;
}
/script
html
form name=example action=show.php
input
On Thu, 13 Jun 2002, John Holmes wrote:
In other words.. Can PHP serve as the Web Server or is another web
server required to handle the socket connections, etc.?
You can run PHP on the command line without a web server, but it doesn't
do much good. For anyone else to see your PHP
On Thu, 13 Jun 2002, Angelo Marcos Rigo wrote:
Anybody knows a good printer friendly version php script
thank´s in advance
Well, it's entirely dependent on your particular HTML; there's no
general-purpose solution.
?
$P = ($_GET['printerfriendly'] == 'yes') ? 1 : 0;
?htmlbody?
Hi,
I've been creating forms that use hidden inputs to retain variables and
values from one instance of the form to the next (by calling itself in the
FORM ACTION).
Are there other ways to retain *global* variables and values between
instances of loading a page?
I apologize for the newbie
On Thu, 13 Jun 2002, Leston Drake wrote:
I've been creating forms that use hidden inputs to retain variables and
values from one instance of the form to the next (by calling itself in the
FORM ACTION).
Are there other ways to retain *global* variables and values between
instances of
Hello All,
I am having a problem, mostly concept wise of how, or if I can use client
side Javascript in a server side php statement.
I have a JavaScript function that onChange of a list box, takes the value of
an option and grabs data from a MySQL table. My problem is how do I use the
1) Yes, I'm using MySQL
2) You're right. This is not a PHP question. My apologies to the list!
Thanks for the feedback! I'll give it a try (and the other one in the other
email).
Jeff
-Original Message-
From: John Holmes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002
*This message was transferred with a trial version of CommuniGate(tm) Pro*
I think the only solution is to convert it to PDF. In theory, CSS2 provides
with the possibility to configure the print format, but no browser supports
it.
Pedro.
On Thursday 13 June 2002 19:56, Miguel Cruz wrote:
Hi thanks for the reply,
I do believe I understand what client side and server side really mean
although I have much to learn, but is there a way to accomplish what I'm
trying to do? Maybe some kind of work around a person has found when doing
this kind of thing?
Thanks again,
Steve
Yes, here is the checkout code I used...
function chout(){
session_destroy();
unset ($mycart);
unset ($cart_items);
echo pThank you for shopping!/p;
}
Any suggestions?
-Original Message-
On Thursday, June 13, 2002 at 7:44:39 PM, you wrote:
Yes, here is the checkout code I used...
function chout(){
session_destroy();
unset ($mycart);
unset ($cart_items);
echo pThank you for shopping!/p;
I remember a how to on this from linuxsecurity about 6 months ago-- try
a search there. justin
-Original Message-
From: Stuart Dallas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 10:24 AM
To: Jason Soza
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Spam Bots/E-mail Addys
On
So I'm thinking about setting up a little php/mysql web server here at
work and want to use Windows as my platform instead of Linux and have a
couple questions...
I know that PHP on Windows has some limitations as compared to Linux.
What are these limitations?
Which version of Windows would
Thank you but that didn't work. I still have to refresh the page.
-Original Message-
From: Stuart Dallas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 2:53 PM
To: Phillip Perry
Cc: Tim Ward; Martin Towell; Tom Rogers; Php
Subject: Re[2]: [PHP] beginner in PHP
On Thursday,
On Thursday, June 13, 2002 at 7:54:30 PM, Phil Schwarzmann wrote:
I know that PHP on Windows has some limitations as compared to Linux.
What are these limitations?
There are limitations? Where did you hear this? If there are any I haven't come
across them yet.
Which version of Windows would
Hi guys,
Although any editor should be fine when coding PHP, I find that the standard
Notepad it's a real pain in the ass. Especially when the script gives you an
error at line 222 ! Each time I have to scroll and count each single line!
Can anyone suggest me a different editor ?
Cheers
At 09:18 PM 6/13/2002 +0200, Daniele Baroncelli wrote:
allaire homesite hands down
~kurth
Hi guys,
Although any editor should be fine when coding PHP, I find that the standard
Notepad it's a real pain in the ass. Especially when the script gives you an
error at line 222 ! Each time I have to
Actually it is macromedia now. And it is windows based, what about us linux
or unix or xbsd guys.
Ray Hunter
- Original Message -
From: Kurth Bemis (List Monkey) [EMAIL PROTECTED]
To: Daniele Baroncelli [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, June 13, 2002 1:24 PM
The php directive register_globals = on is what
creates $HTTP_USER_AGENT and all vars from various
places, such as GET, POST, COOKIE, SERVER, etc.
If register_globals = off, $HTTP_USER_AGENT won't
automagically exist. See this faqt for related
information:
At 01:23 PM 6/13/2002 -0600, Ray Hunter wrote:
emacs with phpmode.lisp (do a google search for it)
and on apple - pre os X we like bbedit and on X we like emacs :-)
~kurth
Actually it is macromedia now. And it is windows based, what about us linux
or unix or xbsd guys.
Ray Hunter
-
vi !!
Ray Hunter [EMAIL PROTECTED] wrote in message
008d01c2130f$bb7e29c0$[EMAIL PROTECTED]">news:008d01c2130f$bb7e29c0$[EMAIL PROTECTED]...
Actually it is macromedia now. And it is windows based, what about us
linux
or unix or xbsd guys.
Ray Hunter
- Original Message -
From:
If color is all you want then try using vim.
Ray Hunter
- Original Message -
From: Kurth Bemis (List Monkey) [EMAIL PROTECTED]
To: Ray Hunter [EMAIL PROTECTED]
Cc: Daniele Baroncelli [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Thursday, June 13, 2002 1:29 PM
Subject: Re: [PHP] Editor
Some popular editors that meet your OS requirements (win32),
all have PHP syntax capabilities (in no particular order):
- ultraedit
- editplus
- textpad
- zend ide
- homesite
Download and try them all :)
Regards,
Philip Olson
On Thu, 13 Jun 2002, Daniele Baroncelli wrote:
Hi guys,
I'm very new to PHP/mySQL so please forgive me if this is a silly
question. I'm mostly trying to understand the concepts involved in
tracking user activity with sessions, and despite hours of reading I'm
still confused.
I have a membership site with users authenticated by a mySQL database. I
[snip]
Can anyone suggest me a different editor ?
[/snip]
PHPEdit (http://www.phpedit.com)
HTH!
Jay
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You shouldn't have to store the sessionID. It's going to be new each time
someone comes to the site, anyhow. Once the log in, you should know who they
are. Save the tracking information you want in your database and pull it
out based on their username.
You have to use a database or a file to
V Here's the question: If a member logs out (session_destroy()) or closes
V the browser, the session data is gone, right?
yes
V How, then, would I go about storing information about the member's activity on the
site?
By adding into your site, any of those custom tracking things. For
example,
Ditto on all that for me. use apache. the instructions on how to get them
working together are good as long as you are diligent about reading *every*
word. no half-ass instruction following will do. mysql is just as easy to
set up, and you have to do *zero* configuration of php to get it
is it possible that the server/browser caches the output and the code
changes in php are not reflected. I am having wierd problems with fixing
the code, and it often not responding for a while. When I cause a parse
error, the php engine does inform me, however it seems to act up on bug
fixes
I love emacs with php-mode.el.
He's small, reliable, customizable and if you've ever worked with Komodo or
Zend IDE you'll find out that he's damn fast.
yours Philipp
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
www.phpbuilder.com has an excellent article on creating a results page that
incorporates NEXT and PREVIOUS links/buttons so that one can navigate
through the results.. i'll try to find an exact link.
Wilbert Enserink [EMAIL PROTECTED] wrote in message
EditPlus
Small, fast and very very effective.
www.editplus.com
- Original Message -
From: Daniele Baroncelli [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 14, 2002 5:18 AM
Subject: [PHP] Editor
Hi guys,
Although any editor should be fine when coding PHP, I find that
In notepad there is an option for 'goto' if you are not using wordwrap it
is under the edit menu. then type in the line number and it will take you
to the line you need
Robin
- Original Message -
From: Daniele Baroncelli [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June
Yes it is possible. A good suggestion is to tell the browser not to cache
PHP output by sending the following headers..
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');
header('Expires: 0');
You can also set these headers via META tags in your HTML. You'll have
If you are using XP, notepad can take you right to the line you need.
Select Edit...Go to... and enter the line number you want to go to. Also,
Ctrl+G works. I don't know if the XP version of notepad will work in any
prior windows or not.
Lee
maybe switch() would be of some use? Your could save the values for $type
in an array and look them up to get a numbe to use with switch(). You can
also have a case else with switch.
Stephen Brewster [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I am wirting
Win98, Apache, PHP 4.0.6 and MySQL with a whole bunch of other apps has been
running fine at our school for ages - never crashed yet! (Doesn't get heavy
usage though either!)
We use the apache extension thingy, not the CGI version of PHP which helps a
lot.
Phil Schwarzmann [EMAIL PROTECTED]
Greetings fellow PHPers.
I am learning basic GD functionality and I have a few YES/NO questions to ask.
This should only take a few seconds of your time. PLEASE HELP!
So far I have seen several tutorials on creating graphics on the fly.
In each example the either send the image (by itself) to a
I have been using Home Site since it came out in the 90's. Currently
Macromedia Home Site 5.0. It is my number one choice because I have to
often switch between PHP and ASP at our show during our conversion over to
LAMP.
We bought Zend Studio and I have been using more at times, but miss
Shane, absolutely you can mix HTML and dynamically generated images. You'll
actually call the image in passively via an img tag like this...
img src=getimage.php
getimage.php will echo the appropriate image header (Content-type: image/png
or whatever) plus your image grabbing/generating code
On Thu, 13 Jun 2002, Daniele Baroncelli wrote:
Can anyone suggest me a different editor ?
Depending on my OS I amd sitting in front of:
vim - www.vim.org
editplus - www.editplus.com
--
---
Greg Donald
Thank you, thank you, thank you, thank you! I never could figure it out, so
I just had them save the files and they were recreated each time over the
old ones.. Thank you thank you thank you!
Rick
Don't dismiss a good idea simply because you don't like the source. -
Unknown
From: Kevin Stone
Thanks for both of your comments. I don't know why I was getting all
tangled up in sessions, but now I feel MUCH more confident about how to
proceed.
Best regards,
Vicki
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi again. Thanks to Miguel and Matt for pointing me to sessions for
retaining variables.
I've got the register_globals directive set to Off. I want to store a value
in a session variable.
I've set up two documents (one that sets a session variable, and one that
retrieves it), with the
Hello,
On 06/13/2002 02:17 AM, Manisha wrote:
If it is aurica.com then it is wrong as this is the name of Live server.
No, the query is to figure what is the address of the SMTP server to
which your machine sendmail program should deliver the messages and it
is failing.
But currently I
Hi Steve,
What you're asking isn't possible. Javascript runs client-side. PHP runs
server-side. You can't directly mix the two.
For example, you can use Javascript to respond when people choose menu
options, but you can't have Javascript communicate with PHP and pull
additional information
On Thursday, June 13, 2002 at 9:46:10 PM, you wrote:
First, I load Doc 1 (to set the session variable).
Then I load Doc 2 to retrieve the variable. When doc 2 runs, I get the
following:
Helllo,
On 06/13/2002 11:04 AM, David Russell wrote:
Hi all
I am busy developing a PHP DB application. I obviously want this to be
as portable as possible - and then went to the Zend pages.
I have looked at the DB abstraction Applications. There are five or so
which have all been
Hello,
On 06/13/2002 02:10 PM, Jason Soza wrote:
Just curious...
If I have a site that stores information about people in a database,
including e-mail addresses, and that information is only viewable when
called via a user-specific variable, i.e. their alias, can spambots
still harvest
Kevin... YOU RULE!!!
A million billion Humble thanks!
So simple, yet was such a pain to get past. I was racking my brain on that one!
Man, if I could just buy you a beer online, I would.
THANK YOU THANK YOU THANK YOU!
- NorthBayShane
BUT...Does this mean I will need a
Hello,
On 06/13/2002 03:09 AM, [EMAIL PROTECTED] wrote:
Hey,
Does anyone know why I can't use the mail() function for my email addresses
[EMAIL PROTECTED]? It works fine on my Hotmail account, but I would rather use my cox
account.
What happens? Probably it is being refused because it is
I just tried adding session_start() to the beginning of both files. When I
load Doc 1, I get this warning twice(!):
Warning: Cannot send session cache limiter - headers already sent (output
started at c:\program files\apache group\apache\htdocs\wan\sessions.php:7)
in c:\program files\apache
I've been using jEdit (www.jedit.org) for months under Linux - very
effective for PHP (as well as Java and many other languages). Perhaps
comparable to TextEdit in the Windows universe, complete with 'snippet'
insertion. Many plugins available, very extensible, very capable editor.
..michael..
select ID, Title from Books where ID='500';
That will give you the current set of data to display. Getting the previous
and next record will depend on your sort order. Assuming ID as the sort
order, store the value of ID and query for the next record:
select ID from Books where ID '$ID'
LD I just tried adding session_start() to the beginning of both files. When I
LD load Doc 1, I get this warning twice(!):
LD Warning: Cannot send session cache limiter - headers already sent (output
LD started at c:\program files\apache group\apache\htdocs\wan\sessions.php:7)
LD in c:\program
On Thursday, June 13, 2002 at 10:04:05 PM, you wrote:
I just tried adding session_start() to the beginning of both files. When I
load Doc 1, I get this warning twice(!):
Warning: Cannot send session cache limiter - headers already sent (output
started at c:\program files\apache
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi everyone,
I'm making an idiot proof news database for a client and do not want to
include a 'description' field. I had thought to return a truncated
version of the actual stories as a description.
It has just occured to me though that if I'm to
It's the 1st line after ?php in both files.
At 03:09 PM 6/13/2002, you wrote:
LD I just tried adding session_start() to the beginning of both files.
When I
LD load Doc 1, I get this warning twice(!):
LD Warning: Cannot send session cache limiter - headers already sent (output
LD started at
NW It has just occured to me though that if I'm to list maybe 100 news
NW items with descriptions it means alot of memory right because i have 100
NW items containing:
NW date
NW title
NW text (could be any length)
NW I will use
My personal preference is towards cooledit (http://cooledit.sourceforge.net).
There is one minor modification you must make, which is to edit
~/.cedit/Syntax and change:
file ..\*\\.php[0-9]$ PHP\sProgram
include php.syntax
to:
file ..\*\\.php$ PHP\sProgram
include php.syntax
(The syntax file
LD It's the 1st line after ?php in both files.
LD At 03:09 PM 6/13/2002, you wrote:
LD I just tried adding session_start() to the beginning of both files.
When I
LD load Doc 1, I get this warning twice(!):
LD Warning: Cannot send session cache limiter - headers already sent (output
LD started
Why not just put a Subject field? Most people use that to put a brief
description of the article. Make the form field small and they'll keep
their input small. Plus, you can set the maxlength value of the input field
to limit things.
http://www.htmlreference.com/htmlref95.html
-Original
Thanks to Julie and Stuart for helping me.
With your direction, I got rid of the warning about the headers by putting
the session_start() at the beginning of the file.
Now I get a different sort of error when I try to retrive the session variable:
---
Warning:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Julie Meloni declared
You could use the substring() function in MySQL (or a similar function
in your db of choice) to make the db do the work instead of PHP.
Nice, I'll look it up. Cheers Julie.
- --
Nick Wilson //
Hello All
I run the simple code to display data from the database. There are around
5000 records and 50 fields. It takes around 1 1/2 min to retrieve the
data to the browser. I'd like to know if we can improve my code. So, I
can retrieve the data in a shorter period of time. I have codes as
What you have below is the usual way to do it... if you want to get a bit
fancier you can have your getimage.php script do something like this
(pseudo code):
---
figure out what image to display via the $id
if
At 03:32 PM 6/13/2002, you wrote:
Thanks to Julie and Stuart for helping me.
With your direction, I got rid of the warning about the headers by putting
the session_start() at the beginning of the file.
Now I get a different sort of error when I try to retrive the session
variable:
I would like to have a column returned in a query that tells
you which record I'm looking at? Sort of like an
auto_increment? IOW, the query results would look like:
record first last
1 johndoe
2 joe blow
3 carol fisher
The table
Your problem is here..
return ($_SESSION['node'] = $node_id);
I do not believe that you can both set and return a varaible on the same
line. FYI, the variable which you're returning in this function is global..
so there's no reason to return it anyway. Just fill the index and
On Thursday, June 13, 2002 at 10:32:25 PM, you wrote:
Thanks to Julie and Stuart for helping me.
With your direction, I got rid of the warning about the headers by putting
the session_start() at the beginning of the file.
Now I get a different sort of error when I try to retrive the
On Thursday, June 13, 2002 at 10:39:51 PM, you wrote:
if /path/to/image/cache/$id exists then
just spit that file back to the browser and exit
If you're gonna do this, be sure to check that $id doesn't contain something
dangerous such as
Why display all 5000 records and 50 fields at once? Typically, you display
a sub-set of the row data and page through it to improve performance. Also,
you typically display a sub-set of fields and then view individual records
for full detail.
-Original Message-
From: Pong-TC
most definitely... I was assuming $id would be a number which would be
looked up in a DB somewhere... in any event the realpath() function is
your friend here :)
On Thu, 13 Jun 2002, Stuart Dallas wrote:
On Thursday, June 13, 2002 at 10:39:51 PM, you wrote:
if /path/to/image/cache/$id exists
Though your code isn't the cleanest I've seen I don't think there is
anything inherently wrong with your proceedure. You're just displaying a
LOT of information. And more importantly you're displaying this in a
browser with HTML tables. I'd put a timer on your code to see how much time
the
Anyone know of a script that will allow a user to change their system/email
password form the web on a UNIX system. wither PHP or Perl based?
-B
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've stripped the code down to barest bones to try to figure this out:
[getglobal.php]
...
echo Node is {$_SESSION['node']}.;
...
[session.php]
...
$_SESSION['node'] = 10.2;
...
Other than the standard html, head, title, body tags and the
session_start(), there is no other code.
I'm still
I've been using Homesite - I really like it.
Bruce Karstedt
President
Technology Consulting Associates, Ltd.
Tel: 847-735-9488
Fax: 847-735-9474
-Original Message-
From: Daniele Baroncelli [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 2:19 PM
To: [EMAIL PROTECTED]
Subject:
Hmm. Okay. Replace $_SESSION with $HTTP_SESSION_VARS and see if that
works.
-Kevin
- Original Message -
From: Leston Drake [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 13, 2002 4:07 PM
Subject: Re[3]: [PHP] sessions help
I've stripped the code down to barest bones to
Yeah, I thought of that too. Same result, though.
At 04:16 PM 6/13/2002, you wrote:
Hmm. Okay. Replace $_SESSION with $HTTP_SESSION_VARS and see if that
works.
-Kevin
- Original Message -
From: Leston Drake [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 13, 2002 4:07 PM
On Thursday, June 13, 2002 at 11:07:16 PM, you wrote:
I've stripped the code down to barest bones to try to figure this out:
[getglobal.php]
...
echo Node is {$_SESSION['node']}.;
...
[session.php]
...
$_SESSION['node'] = 10.2;
...
Other than the standard html, head, title, body tags
Have you tried this on a separate web page to make sure it's not something
server specific?
Here's a script that worked from my computer with register_globals set to on
and off (restarted server between tests for confirmation).
If this works from your computer, could you resend the code on your
At 04:35 PM 6/13/2002, you wrote:
Have you tried this on a separate web page to make sure it's not something
server specific?
No, but that's a good idea. I will try it.
Here's a script that worked from my computer with register_globals set to on
and off (restarted server between tests for
It has just occured to me though that if I'm to list maybe
100 news items with descriptions it means alot of memory
right because i have 100 items containing:
date
title
text (could be any length)
I will use substr()
I have a JavaScript function that onChange of a list box,
takes the value of an option and grabs data from a MySQL
table. My problem is how do I use the JavaScript var in my
sql statement?
Javascript is client-side, php is server-side. The only way to get
something that happens in
I have a string something like 10.2.3
I want to be able to use the . as a delimiter to reference
the elements (10, 2, and 3).
My thought was to create an array, using . as the
delimiter. Is there a function that will create an array out
of a string, using a delimiter you specify?
echo i = $ibr;
for($c=1;$c=$i;$c++){
echo team_number $team_number_$cbr;
echo sub1_$c = $sub1_$cbr;
echo sub2_$c = $sub2_$cbr;
echo sub3_$c = $sub3_$cbr;
echo sub4_$c = $sub4_$cbr;
echo sub5_$c = $sub5_$cbr;
}
}
Perhaps this:
Echo sub1_$c
Hey, it worked on another server!
I've been working on my local machine's server (localhost), but when I run
it from a different web server, it worked fine.
Any ideas about which setting(s) may be causing the problem?
From my php.ini file:
session.save_handler=files
session.save_path=
Hey, it worked on another server!
I've been working on my local machine's server (localhost),
but when I run it from a different web server, it worked fine.
Any ideas about which setting(s) may be causing the problem?
Nope, but I'm including a copy of my local php.ini for ya to compare
Hi,
I tried to shut down my server with exex(/sbin/poweroff) but nothing
happened!
Can someone tell me how I could make shut down the server ?
Is it possible ?
Thanks,
Rosen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
That all depends on what kind of server you're referring to.
-Original Message-
Hi,
I tried to shut down my server with exex(/sbin/poweroff) but nothing
happened!
Can someone tell me how I could make shut down the server ?
Is it possible ?
Thanks,
Rosen
Hi,
I tried to shut down my server with exex(/sbin/poweroff) but nothing
happened!
Can someone tell me how I could make shut down the server ?
Is it possible ?
The server is Linux Red Hat 7.2.
Thanks,
Rosen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
The server is Linux Red Hat 7.2
Ed Lazor [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
That all depends on what kind of server you're referring to.
-Original Message-
Hi,
I tried to shut down my server with exex(/sbin/poweroff) but nothing
On Thu, Jun 13, 2002 at 03:49:00PM +0100, Brian McGarvie wrote:
$string = '[b]Test[/b]';
$bbcode_string = str_replace(, [, str_replace(, ], $string));
or look into regular expressions...
It's probably better to do as Brian suggests: use regular expressions so
that you can avoid cases like
This has serious security implications. Research how to create a script on
your system. Set it's sticky bit to run as a standard user that has
authorization to run the shutdown command using SUDO. Make sure the script
works from within UNIX and then call the script from PHP using exec.
I am
I have a rather longer query which I would like to get all records past todays date.
Here is my query
$ttwo = date(YmdGi);
$dbq = select(select detail.*, type.type_name, status.status_name, staff.staff_name,
source.source_long,
source.source_short from detail, type, status, staff,
source
This is a MySQL question and best directed to the MySQL mailing lists
available at:
http://www.mysql.com/documentation/lists.html
-Original Message-
From: Chris Kay [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 4:33 PM
To: PHP General List
Subject: [PHP] MySQL Query
ps... from a PHP perspective, you may find troubleshooting things like this
easier by using formatting like this:
$sql =
select
detail.*,
type.type_name,
status.status_name,
staff.staff_name,
the arrays below have dates like
dateA= array( 0= 03, 1= 22, 2= 02)
for 22march2002.
why does this work:
$retval= ($dateA[2] != $dateB[2])
? strcmp($dateA[2], $dateB[2])
: (($dateA[0] != $dateB[0])
? strcmp($dateA[0], $dateB[0])
:
101 - 200 of 249 matches
Mail list logo