ahkay, makes perfect sense now :)
thanks
- Original Message -
From: Don Read [EMAIL PROTECTED]
To: skate [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, March 30, 2003 2:19 PM
Subject: Re: [PHP] question
On 30-Mar-2003 skate wrote:
excuse me for being dumb, but can you explain
You need to split() the variable ($mboxs) on newlines \n
Jim
- Original Message -
From: Jim Greene [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 8:22 AM
Subject: [PHP] Question about a text file and foreach
Hi All,
I have a text file that has entries like the
Jim Greene wrote:
Hi All,
I have a text file that has entries like the following:
user1:mbox1:
user1:mbox2:
I basically do: $mboxs = `cat file | grep user1 | cut -d: -f2';
I then want to print out the data in the $mboxs variable (array)
I am trying to use foreach but it does not work..
Jim --
Please don't hijack threads. This message has nothing to do with calling
a function in a page via GET. When you wish to ask a fewsh and unrelated
question, please send a fresh and unrelated message. [I keep hearing
good things about Evolution. Doesn't it have decent threading?]
...and
if($recordcount % 4 == 0)
{
echo '/tdtd';
}
mh.
On Mon, 10 Mar 2003, Clint Tredway wrote:
I have a display of images that every fourth image I want to start a new
column. In ColdFusion I would use the MOD operator like this:
if query.recordcount MOD 4 eq 0
/td
td
/if
I
something like:
print table;
while ( statement )
{
$i++;
if ($i==1) print tr;
print td;
your image code;
print /td;
if ($i==4)
{
print /tr;
unset($i);
}
}
if ($i==1) print td/tdtd/tdtd/td/tr;
if ($i==2) print td/tdtd/td/tr;
if
just wondering... does smarty have to be installed on the server where the
web site or php scripts it makes are going to be ran... or do you
just make
the stuff and put on the server like normal php files...
No, the Smarty classes and plugins will have to be installed/accessible on
the target
k then that wont be able to be a choice for me then... will try maguma
studio then..
- Original Message -
From: Rich Gray [EMAIL PROTECTED]
To: Sunfire [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 5:58 AM
Subject: RE: [PHP] question about smarty
just wondering
Sunfire [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
k then that wont be able to be a choice for me then... will try maguma
studio then..
I think you have misunderstood the posting, since Smarty can be used in most
web hosting environments. Anyway if you would like to evaluate
PROTECTED]
Sent: Tuesday, March 04, 2003 9:35 AM
Subject: Re: [PHP] question about smarty
Sunfire [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
k then that wont be able to be a choice for me then... will try maguma
studio then..
I think you have misunderstood the posting, since
--- David Banning [EMAIL PROTECTED] wrote:
The company I am working with is using an old database, which
doesn't even support memo field beyond 256 characters, so it is probably
too difficult, and not worth trying to interface the database with php.
I was wondering how easy it would be to
On Wed, Feb 26, 2003 at 08:58:43AM -0800, Chris Shiflett wrote:
--- David Banning [EMAIL PROTECTED] wrote:
The company I am working with is using an old database, which
doesn't even support memo field beyond 256 characters, so it is probably
too difficult, and not worth trying to interface
At 22:15 22.02.2003, Al said:
[snip]
I spent hours trying every User Notes in the PHP Manual for this simple
operation. e.g.,
$txt= preg_replace(\r\n, br, $words);
and this version
$txt = preg_replace(/(\015\012)|(\015)|(\012)/,br /, $txt);
I can
From: Al [EMAIL PROTECTED]
I can't find a way to replace \r\n codes with br in a text file.
I'm reading a text file that was prepared with windows notepad
The hex code shows OD OA for CR/LF as I expect.
I'd like to replace the OD/LF with brs.
I spent hours trying every User Notes in
--- Al [EMAIL PROTECTED] wrote:
Why does the absolute path work and not document_root?
include ($DOCUMENT_ROOT/root_functionsT.php);
//error message says function undefined
include (/www/r/myID/htdocs/root_functions.php);
// Works just fine
Try $_SERVER['DOCUMENT_ROOT'] and see if that
Thanks for the feedback
That works if I leave off the quotes from around DOCUMENT_ROOT. Simply
$_SERVER[DOCUMENT_ROOT]
I'd really like to get this working in the htaccess file.
php_value include_dir .:/www/r/myID/htdocs/
I redoing a site with several php files in assorted directories and
I figured it was along those lines... i know that perl also caught
me a few times becuase perl differentiates between == and eq
for numerical or string comparisions.
I'll probaly end up using the ===, becuase i've got a severe
aversion to using functions for comparisions. :-)
--
Scott Hurring
Karl:
Your question appears to be completely off-topic but perhaps this might
help you.
http://www.gotquestions.com/xs/seeDocument.asp?topicID=14documentID=696
On Saturday, February 1, 2003, at 03:56 PM, Karl James wrote:
image.tiff
on 02/02/03 7:56 AM, Karl James ([EMAIL PROTECTED]) wrote:
what is a winmail.dat file?
PLEASE don't post in rich text / HTML -- you've been asked more than once
PLEASE ask php-specific questions
Justin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Karl,
what is a winmail.dat file?
Is it too much to ask that you do some of this sort of thing for
yourself?
Here, I'll help you...
1. Connect to the Internet (if necessary)
2. Load a web browser
3. Navigate to http://www.google.com/
4. Type what is a winmail.dat file into the search box
On Saturday 01 February 2003 19:08, Denis L. Menezes wrote:
Hello friends.
I have a listbox which I populate from a query with the database. It is
working fine. But additinally, I want the first item to be Select
category. Can someone please help me how to modify by below written code
to do
- Original Message -
From: Denis L. Menezes [EMAIL PROTECTED]
To: PHP general list [EMAIL PROTECTED]
Sent: Saturday, February 01, 2003 6:08 AM
Subject: [PHP] question on listbox.
Hello friends.
I have a listbox which I populate from a query with the database. It is
working fine. But
Thanks Jason.
Looks like I am too dumb. I still cannot do it. can u please help me
further?
Thanks
Denis
- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, February 01, 2003 8:21 PM
Subject: Re: [PHP] question on listbox.
On Saturday 01
On Saturday 01 February 2003 20:40, Denis L. Menezes wrote:
Please don't top-post.
Looks like I am too dumb. I still cannot do it. can u please help me
further?
I could write out the complete code for you -- but then I'll have to charge
you for it :-)
OTOH I can walk you through the process
Might this be better?
print select name=category_selection\n;
print option value=0Select Category/option\n
//Query
$sql=SELECT DISTINCT CategoryName From Categories ORDER BY CategoryName;
$result=mysql_query($sql);
if ($result)
{
While($Category=mysql_fetch_array($result))
{
[snip]
I understand most of what is going on here except for this line:
printf (TD%s/TD\n, htmlspecialchars ($row[$i]));
Can someone explain to me what the %s is?
www.php.net/sprintf
sprintf() and printf() have the same type of syntax and all of the %s, etc,
are explained on the sprintf()
You've got it right... look at the man page for parse_str() for more info
on the QUERY_STRING stuff as well as the register_globals configuration
option.
Looking at the script below, there is nothing special about setting
$addjoke to 1. It's just important that it is set to *something* (because
Hi
I have the same Problem with the bundeled libary.
I hade no time to fill in a bug report at bugs.php.net.
Probably you could?
regards
Sebastian
-Original Message-
From: Jean-François Marseaut [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 5:16 PM
To: [EMAIL
]
Sent: Monday, January 27, 2003 5:48 PM
Subject: RE: [PHP] question about GD and colors
Hi
I have the same Problem with the bundeled libary.
I hade no time to fill in a bug report at bugs.php.net.
Probably you could?
regards
Sebastian
-Original Message-
From: Jean-François Marseaut
Hi experienced the same problem with the new
bundled version of GD.
regards,
philipp
- Original Message -
From: Jean-François Marseaut [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 27, 2003 5:15 PM
Subject: [PHP] question about GD and colors
With this script under, I
try imagecreatetruecolor() instead of imagecreate()
- Original Message -
From: Philipp [EMAIL PROTECTED]
To: Jean-François Marseaut [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Monday, January 27, 2003 4:21 PM
Subject: Re: [PHP] question about GD and colors
Hi experienced the same
On Mon, 27 Jan 2003, Wei Weng wrote:
Is there any environment/Global variable in PHP that indicates whether the
server port you connect to is SSL port?
$_SERVER['HTTPS']
Regards,
Philip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, January 27, 2003 12:19 PM
Subject: Re: [PHP] Question about SSL/php globals
On Mon, 27 Jan 2003, Wei Weng wrote:
Is there any environment/Global variable in PHP that indicates whether the
server port you connect to is SSL port?
$_SERVER['HTTPS
: [PHP] question about GD and colors
try imagecreatetruecolor() instead of imagecreate()
- Original Message -
From: Philipp [EMAIL PROTECTED]
To: Jean-François Marseaut [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Monday, January 27, 2003 4:21 PM
Subject: Re: [PHP] question about GD
Try
$query = SELECT Newsheadline, News, Contact FROM news WHERE Newsid =
{$_GET['id']};
HTH
Danny.
- Original Message -
From: Frank Keessen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 10:50 AM
Subject: [PHP] Question about $_GET
Hi All,
Can you please
SELECT Newsheadline, News, Contact FROM news WHERE Newsid = $_GET[id];
- removed single quotes
Frank Keessen wrote:
Hi All,
Can you please help me with the following problem? I've had code wich was running fine with php till i've upgraded to PHP version 4.2.3.
The original code line was:
= mysql_query($query) or die (Error in query: $query. .
mysql_error());
Regards,
Frank
- Original Message -
From: Danny Shepherd [EMAIL PROTECTED]
To: Frank Keessen [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 11:54 AM
Subject: Re: [PHP] Question about $_GET
Try
-
From: Danny Shepherd
To: Frank Keessen ;
Sent: Wednesday, January 15, 2003 11:54 AM
Subject: Re: [PHP] Question about $_GET
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;
Sent: Wednesday, January 15, 2003 11:54 AM
Subject: Re: [PHP] Question about $_GET
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 11:57 15-1-03, Marek Kilimajer wrote:
SELECT Newsheadline, News, Contact FROM news WHERE Newsid = $_GET[id];
- removed single quotes
I think that that is a really bad advice.
Let me explain.
For one, the single quotes are not in the way here because the query is
written between double
Chris Hayes wrote:
Let me explain.
For one, the single quotes are not in the way here because the query
is written between double quotes.
Then, leaving out the single quotes like Marek suggests will only work
because PHP is too programmer-friendly.
But the indexes of such arrays should
- Original Message -
From: Danny Shepherd [EMAIL PROTECTED]
To: Frank Keessen [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 11:54 AM
Subject: Re: [PHP] Question about $_GET
Try
$query = SELECT Newsheadline, News, Contact FROM news WHERE Newsid =
{$_GET['id
On Wednesday 15 January 2003 18:57, Frank Keessen wrote:
Thanks, but not working:
The error message:
Error in query: SELECT Newsheadline, News, Contact FROM news WHERE Newsid =
. You have an error in your SQL syntax near '' at line 1
Here are both lines:
$query = SELECT Newsheadline,
Make life easy for yourself:
$query = SELECT Newsheadline, News, Contact FROM news WHERE Newsid = .$_GET['id'];
- Original Message -
From: Frank Keessen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 15, 2003 4:50 AM
Subject: [PHP] Question about $_GET
Hi All,
Can you
--- Frank Keessen [EMAIL PROTECTED] wrote:
So the code looks like this:
$query = SELECT Newsheadline, News, Contact FROM news
WHERE Newsid = $_GET['id'];
But all i'm getting in my browser is:
parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING'
I could not tell if your
I agree with Chris, the quote should stay there to prevent confusion.
Nevertheless, I often run in the same problem. Sometimes, the only way to
fix it is by removing the quotes ($_GET[id]).
I know PHP documents goes against this, but it dosn't always work with the
quotes.
Perhaps the dev
On Thursday 16 January 2003 04:35, [-^-!-%- wrote:
I agree with Chris, the quote should stay there to prevent confusion.
Nevertheless, I often run in the same problem. Sometimes, the only way to
fix it is by removing the quotes ($_GET[id]).
I know PHP documents goes against this, but it
: Wednesday, January 15, 2003 1:22 PM
Subject: Re: [PHP] Question about $_GET
Make life easy for yourself:
$query = SELECT Newsheadline, News, Contact FROM news WHERE Newsid =
.$_GET['id'];
- Original Message -
From: Frank Keessen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday
Don wrote:
I'm using I.E. 6.
Its not a browser thing, but a PHP thing.
I noticed that register_globals was set ON in my php.ini file so I changed it to OFF in as per the security warning. I've noticed a side effect. When I submit a form via POST and then go back from the results page, my
Don wrote:
I'm using I.E. 6.
Its not a browser thing, but a PHP thing.
I noticed that register_globals was set ON in my php.ini file so I
changed it to OFF in as per the security warning. I've noticed a side
effect. When I submit a form via POST and then go back from the results
Don wrote:
Thanks for your response but I don't think this is what I was asking; could
be wrong though.
I re-read your post and, of course, you are right. I mis-read it! I have
heard of this Back button and data missing and I'm sure its come up
before, but I don't remember the answer. I can
On Tuesday 14 January 2003 03:33, Don wrote:
When I use --- header(Location: http://www.somepage.com), it redirects to
my page no problem. My question is, is there a PHP trick I can use to make
it open in a new browser window?
No.
I'm adverse to using JavaScript as some users may not have
No, I am afraid not. It will only send a redirection header to the same
page that you are on.
- Original Message -
From: Don [EMAIL PROTECTED]
To: php list [EMAIL PROTECTED]
Sent: Monday, January 13, 2003 1:33 PM
Subject: [PHP] question on Header(location
When I use ---
Thanks for your response but I don't think this is what I was asking; could
be wrong though.
I re-read your post and, of course, you are right. I mis-read it! I have
heard of this Back button and data missing and I'm sure its come up
before, but I don't remember the answer. I can only
I'm using I.E. 6. I noticed that register_globals was set ON in my
php.ini file so I changed it to OFF in as per the security warning.
I've noticed a side effect. When I submit a form via POST and then go
back from the results page, my form has been cleared, i.e.., as if the
page has been
How about:
if (!$conn = mysql_connect($host, $user, $pass)) {
include 'static_html.inc';
exit;
}
print Welcome, yes the database is connected;
exit ends the script, nothing after its use is executed.
Regards,
Philip Olson
On Thu, 19 Dec 2002, Beauford.2002 wrote:
Hi,
On Thursday 19 December 2002 04:45 pm, Beauford.2002 wrote:
I want to be able to exit out of a PHP webpage and
return to the calling page if certain conditions are not met.
It appears using exit() will do this, but I am unclear exactly how to use
it.
exit won't do what you want. exit does
19, 2002 4:55 PM
Subject: Re: [PHP] Question about the exit() command
How about:
if (!$conn = mysql_connect($host, $user, $pass)) {
include 'static_html.inc';
exit;
}
print Welcome, yes the database is connected;
exit ends the script, nothing after its use is executed
What do you mean return to the calling page?
The exit() command simply ceases processing of PHP and HTML.
I believe what you're saying is that if the user clicks on a PHP hyperlink on the first
page, then goes to another page. If there is something wrong there, you nwant to
return
to the page
[EMAIL PROTECTED]
Cc: PHP General [EMAIL PROTECTED]
Sent: Thursday, December 19, 2002 4:55 PM
Subject: Re: [PHP] Question about the exit() command
How about:
if (!$conn = mysql_connect($host, $user, $pass)) {
include 'static_html.inc';
exit;
}
print Welcome, yes the database
Have a look at suexec
HTH
gamin
Tom Ray [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Are PHP script supposed to run as the user or as the web server?
Currently I'm running Red Hat 7.3 with apache 1.3.x and all my PHP
scripts run as apache, not as the user.
I've got a question about the echo function. If I have a variable (string)
with a ` in it, and I use echo, the output is \` instead. This I use this
in a form (if people fill in the form incorrectly, they get the form
again, with the values they entered filled in) and it looks rather weird
I assume you know that running PHP on Apache 2 is NOT RECOMMENDED YET, or at
the very least, listed as experimental??
Justin
on 15/12/02 11:13 AM, r.vellinga ([EMAIL PROTECTED]) wrote:
Hello,
still trying to get PHP 4 support on Apache 2. (Windows ME)
Mysql is working Fine, Apache also.
Yes, that is indeed true.
On Sun, 15 Dec 2002, Justin French wrote:
I assume you know that running PHP on Apache 2 is NOT RECOMMENDED YET, or at
the very least, listed as experimental??
Justin
on 15/12/02 11:13 AM, r.vellinga ([EMAIL PROTECTED]) wrote:
Hello,
still trying to get
I think this is happening because you're comparing apples to oranges.
Your first comparison causes an integer to be compared to a string.
Because the string string evaluates to the integer value 0, the
comparison succeeds. The manual recommends the use of the identical
comparison operator (===)
University
- Original Message -
From: Rick Emery [EMAIL PROTECTED]
To: KANM MD [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, December 10, 2002 10:39 PM
Subject: Re: [PHP] Question Regarding Cookies, Sent Headers, and Functions
That Return Values
Hey Aggie,
Show us the rst
Forgive if this is not the answer to the problem. I think he means a
blank line at the beginning of the file before the ?
If you have anything before the ? it gets sent to the browser, and thus
headers have already been sent (This is the same for print statements, etc).
--Joseph Guhlin -
-Original Message-
From: KANM MD [mailto:[EMAIL PROTECTED]]
Sent: 11 December 2002 08:55
Here is the code in a readable form (alterations for
security, simplicity
...)
if
((stristr($HTTP_SERVER_VARS[remote_address],XXX.YYY.ZZZ))|
|($pwprotect==
'password')) {
PROTECTED]
To: Rick Emery [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, December 11, 2002 2:54 AM
Subject: Re: [PHP] Question Regarding Cookies, Sent Headers, and Functions That Return
Values
Here is the code in a readable form (alterations for security, simplicity
...)
if
((stristr
Hey Aggie,
Show us the rst of the code. stristr() should not be a problem. Chances are there's a
blank line elsewhere that's being sent.
- Original Message -
From: KANM MD [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 10, 2002 2:34 PM
Subject: [PHP] Question Regarding
Is your question about dynamically listing the contents of all directories
and/or files below the /members/ dir, or is your question about unzipping
zipped files?
I *think* it's the former, in which case, you should play around with some
of the code examples on zend.com
To convert \n's to br /\n's on any string, use nl2br().
To trim excess white space (\n, \r, [space] \t, etc) from both the beginning
and end of a string, use trim().
Eg:
?
$str = this is a string with an\nenter in the middle, and two at the
end\n\n;
$str = trim($str);
$str = nl2br($str);
echo
this is the first file continut.php
html
head
titleContinut/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-2
style
.spanstyle {
position:absolute;
visibility:visible;
top:-50px;
font-size:10pt;
font-family:Verdana;
font-weight:bold;
color:yellow;
}
/style
script
That's impossible to answer!! My guess is that the few letters you change
affect the way the script runs, so it's probably causing an error.
Without seeing *WHAT* you change, I can only guess.
Justin
on 27/10/02 10:31 AM, Trasca Ion-Catalin ([EMAIL PROTECTED]) wrote:
If I have a php file
Sure you can, however,
1) u prob. want $_SESSION['name'] = $_POST['name'];
2) remember that if you are calling this within the scope of a function you
will have to use $GLOBALS to declare $name as a global before you utilise
session_register.
Todd.
-Original Message-
From: Randy
You need to turn register_globals off in your php.ini
file. This is default in php 4.2+
Try this article for a great overview:
http://www.webmasterbase.com/article/758/8
olinux
--- swade [EMAIL PROTECTED] wrote:
On my laptop i still have 4.11 apache,linux on it
but its just for
pass the message as a variable
header:location.php?message=$message
- Original Message -
From: Meltem Demirkus [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 11, 2002 2:31 PM
Subject: [PHP] question
Hi,
I am working on a process which turn to the previous page
]
Sent: Wednesday, September 11, 2002 4:36 PM
Subject: Re: [PHP] question
pass the message as a variable
header:location.php?message=$message
- Original Message -
From: Meltem Demirkus [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 11, 2002 2:31 PM
Subject: [PHP
Julie Meloni to the rescue again - http://www.thickbookcom, you'll find a
tutorial on custom error messages.
In fact, after working on that you may rethink your approach.
Miles Thompson
At 04:31 PM 9/11/2002 +0300, Meltem Demirkus wrote:
Hi,
I am working on a process which turn to the previous
Subject: [PHP] Re:[PHP]question
Thanks ...But I know this way about carrying data from one page to
another..
I want this message to be seen on the page without my doing
anythingand
I cant do that?..
- Original Message -
From: John Wards [EMAIL PROTECTED]
To: Meltem Demirkus
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 11, 2002 4:40 PM
Subject: [PHP] Re:[PHP]question
Thanks ...But I know this way about carrying data from one page to
another..
I want this message to be seen on the page without my doing
anythingand
I cant do
?
- Original Message -
From: John Wards [EMAIL PROTECTED]
To: Meltem Demirkus [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, September 11, 2002 5:09 PM
Subject: Re: [PHP] Re:[PHP]question
right...
?
function your_form_html($var_1=null, $var_2=null){
global
Meltem,
Your english is very good but you have lost me :) could you explain more
slowly
John
- Original Message -
From: Meltem Demirkus [EMAIL PROTECTED]
To: John Wards [EMAIL PROTECTED]
Sent: Wednesday, September 11, 2002 3:32 PM
Subject: Re: [PHP] Re:[PHP]question
I just wanted to chime in here and say that Julie Meloni's books are
awesome. I have PHP Essentials and her Teach yourself PHP in 24 hours
book. I plan to buy her PHP Fast and Easy 2nd edition very soon.
Adam
On Wed, 11 Sep 2002, Miles Thompson wrote:
Julie Meloni to
Hi Meltem,
the second one was a better description of your problem.
Attached is the most convenient approach can come up with for
this problem. It is not optimized, but should be easy to
understand.
Timo
?php
$submitted = isset($_REQUEST['a']); // submitting data or just
retrieving
Somewhere in an article or the manual it *strongly* advises using in {} not
[] for access of a certain character in a string.
Justin
on 07/09/02 5:34 AM, Robert Cummings ([EMAIL PROTECTED]) wrote:
Some time ago i wrote some code where I used the now deprecated
form of accessing characters
a form with two buttons:
---
form action=script.php method=post
input type=submit name=button value=option 1 /
input type=submit name=button value=option 2 /
/form
---
script.php
---
if($_POST['button'] == option 1)
{
echo option 1 was clicked;
}
elseif($_POST['button'] == option 2)
]
To: Meltem Demirkus [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 12:36 PM
Subject: Re: [PHP] question about Location
Not quite sure what you are getting at here? A hyper link would direct
the user to another page :-)
If you mean after a timeout/auto-magically perhaps you
header I wrote ? header(Location: yournewpage.php);
?
- Original Message -
From: Marek Kilimajer [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 12:55 PM
Subject: Re: [PHP] question about Location
? ? doesn't mean output unless you use echo or print or
; charset=windows-1254
/HEAD
BODY
and line 37 is the header I wrote ? header(Location: yournewpage.php);
?
- Original Message -
From: Marek Kilimajer [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 12:55 PM
Subject: Re: [PHP] question about Location
Can you provide a bit more info??? Maybe a real life example of what
you're trying to accomplish???
Richy
==
Richard Black
Senior Developer, DataVisibility Ltd - http://www.datavisibility.com
Tel: 0141 951 3481
Email: [EMAIL PROTECTED]
-Original
Maybe try somthing like this, write a function containing all your like
statements.
function likeStatements( ){
//write your statements in this function if they are always the same.
}
//then have an if structure like the following that calls that function in a
while loop.
if ( isset($a)
I'm not sure what do you want to do, but maybe this can help you:
if($a == $value $b == $value)
{
//do something
}
elseif($a == $value $b != $value)
{
//...
}
elseif($a != $value $b == $value)
{
//...
}
else
{
//...
}
I hope this help
Peace Love
skitum
- Original Message -
From:
Developer, DataVisibility Ltd - http://www.datavisibility.com
Tel: 0141 951 3481
Email: [EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 04 September 2002 15:41
To: Richard Black
Subject: Betr: RE: [PHP] question
if ($gevonden = 1
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 04, 2002 7:32 AM
To: [EMAIL PROTECTED]; Php-General
Subject: RE: [PHP] question
Can you provide a bit more info??? Maybe a real life example of what
you're trying to accomplish???
Richy
==
Richard Black
Step 1, please limit your lines in your emails to mailing lists to 78
chars or less in width. Your entire message shows up as 2 lines for me.
Step 2, you need to install the php-mysql rpm. Then everything should
work.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To
Kelly Meeks wrote:
Hi folks,
I'm learning shell scripting via linux, and have written a script that creates the
core files necessary for a users website from a master set of files.
Works from the shell just fine (bash makethesite.sh username pathtoputfiles
pathtogetfiles)
Trying to
try something like:
$bashoutput=shell_exec('/usr/bin/bash makethesite.sh username pathtoputfiles
pathtogetfiles');
if that doesn't work can you use the system() function instead?
James
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
param2 param3');
echo $bashresult;
Doesn't execute the script, nothing in $bashresult
Kelly
- Original Message -
From: Robert Cummings [EMAIL PROTECTED]
To: Kelly Meeks [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, August 16, 2002 4:44 PM
Subject: Re: [PHP] question about executing
execute the script, nothing in $bashresult
Kelly
- Original Message -
From: Robert Cummings [EMAIL PROTECTED]
To: Kelly Meeks [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, August 16, 2002 4:44 PM
Subject: Re: [PHP] question about executing a bash shell script...
Kelly Meeks
801 - 900 of 1077 matches
Mail list logo