string basename (string path [, string suffix])
i recommend you read the manual before posting
-Original Message-
From: Sharat Hegde [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 1:49 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Getting just the filename
Hello,
Is there a
?php
if($action == Submit my entry){
if (!empty($name)){
$enter = insert into entry (id, user_name) values (NULL,$name);
mysql_query($enter) or die(mysql_error());
}
exit;
}
$query=SELECT name FROM users WHERE uid=.$session[uid];
$ret = mysql_query($query) or
require() is used when you want the file included regardless of whether any
information is used from it. include() may be conditional.
-Original Message-
From: javier [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 4:44 PM
To: [EMAIL PROTECTED]
Subject: [PHP] require or
Why?
-Original Message-
From: Peter Clarke [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 6:03 AM
To: [EMAIL PROTECTED]
Subject: [PHP] how to close an http connection BUT carry on processing
I'm looking for a way to close the connection with the browser yet have the
script
Note that vars[1] is created with ' ' so that the $-names are not
interpreted. I assume that when the text is read from the file, it comes
with the $s and the ending semi-colon (;).
?php
$vars[1] =
'$scar=\3\;$anrede=\Herr\;$pf_name=\wert\;$pf_kontem=\tzrtzetrz\;$pf
$row = mysql_fetch_row($result);
$val1 = $row[0];
$val2= $row[1];
$val3 = $row[2];
-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 10:51 AM
To: [EMAIL PROTECTED]
Subject: [PHP] accessing a mysql column by number
Is there a way to
why did you re-post this?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 9:33 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Question on eval()
Hi Folks,
I save an ascii-sentence, representing my vars and their values in the db
after I
mysql_field_name()
mysql_list_fields()
-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 10:55 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Copying Column names into a row
Is there a way to copy the column names in a MySQL table into a row
Objects which are instantiated from classes on one page are not available on
the next page. You have to use session functionality.
-Original Message-
From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 8:17 PM
To: Php-General-List (E-mail)
Subject: [PHP]
$field2 = .$$field;
-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 12:33 PM
To: [EMAIL PROTECTED]
Subject: [PHP] variables within variables - question
Im having a VERY hard time trying to explain this
Here is a bit of my
$message .= Some text here;
-Original Message-
From: David Johansen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 1:03 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Adding stuff to the end of strings
I was just wondering if there was a way to add new text to the end of
strings.
PHP is weakly typed. Therefore, definitions are not needed. A variable may
assume any guise depending upon its context.
-Original Message-
From: Kjell Hansen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 2:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Require variable
There has been some discussion at zend.com to add this to PHP5/engine 2.0.
However, the idea was rejected.
-Original Message-
From: Kjell Hansen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 2:54 PM
To: Rick Emery; [EMAIL PROTECTED]
Subject: Re: [PHP] Require variable
place these statements in your include file, which is standard for PHP
development:
$link=mysql_connect(localhost,user,12345) or die(Error: cannot
connect.mysql(error());
mysql_select_db(mydatabase) or die(Error: cannot select db:
.mysql_error());
-Original Message-
From: Denis L.
in the vi editor, type:
:1,$s/ctrl-vctrl-m//
:w!
replace ctrl-v with the control-V character and ctrl-m with the
control-M character.
-Original Message-
From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 6:16 AM
To: Php-General
Subject: [PHP] How to remove ^M
$connect = mysql_connect(localhost,user,password) or die(mysql_error);
-Original Message-
From: Omland Christopher m [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 7:55 PM
To: Cameron Just
Cc: [EMAIL PROTECTED]
Subject: [PHP] Database connection problem
Hi, can anyone help me
Julie Meloni's PHP book provides basic PHP instruction and a tutorial to
create a shopping cart.
-Original Message-
From: Septic Flesh [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 8:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] which php book 2 buy ?
I wanna buy a book from
how can you take a size of a function: $len = sizeof($this-query);
and WTF (query is a function, not an array): $tq = $this-query[$q_id];
-Original Message-
From: Anzak Wolf [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 9:09 AM
To: [EMAIL PROTECTED]
Subject: [PHP] MySQL
CHANGE:
$len = sizeof($this-query_id);
$len++;
$this-query_id = array($len=$q);
mysql_free_result($q);
return $len;
TO:
$this-query_id[] = $q;
return sizeof($this-query_id);
second:
$q is a resource, that is, a pointer variable.
All that you've accomplished in your example is to store the size of the
queries; you've stored no data.
Second, per my previous email: DO NOT RELEASE THE RESULT RESOURCE UNTIL YOU
ARE DONE WITH THE PAGE.
If you want to re-use a result record set, you can with the mysql_seek()
function. You do
Direct answer: No, you cannot read a cookie on the same page that creates
it.
The question is: why would you want to?
After all, you already have the data available to you that you would read
from the cookie because you had to use it to create the cookie on that page.
-Original
Amazon says it's not published yet.
So when
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 12:52 PM
To: Ralph Friedman
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: which php book 2 buy ?
Or, of course, if you want to be cool like
?php
$old = xyz abc def;
$newstr = ereg_replace( ,,$old);
?
-Original Message-
From: Chuck Barnett [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 03, 2002 2:01 PM
To: PHP General List
Subject: [PHP] strip spaces from inside string
Say I have a string xyz abc def and I want to
you can extract and sort on the last name:
mysql select substring(myname,locate( ,myname)+1) as lname from mytable
order by lname;
this assumes names are stored as john doe, that is with a space separator
-Original Message-
From: Chuck Barnett [mailto:[EMAIL PROTECTED]]
Sent: Sunday,
1. Just pass uzeriz to the function, not session(uzeriz);
2. FYI: you don't need this construct: while($row =
mysql_fetch_row($result)){
Based upon the previous tests, there is ONLY 1 entry. Therefore, go with:
$row = mysql_fetch_row($result);
-Original Message-
From: Mantas
I'm ex-USAF.
FUBAR means Fucked-Up Beyond All Repair
-Original Message-
From: Liam [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 9:02 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re:[PHP] Why?
25/03/2002 3:01:36 PM
FBAR was a term used in the second world war.
It turned into
In PHP, you look at the date() function.
If retrieving this from a mysql database, mysql will do it for you:
SELECT DATE( mydate, %W, %M %d, %Y) AS thedate FROM mytable;
-Original Message-
From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 8:55 AM
To: [EMAIL
if ($this-private==FALSE) // Undefined variable
this
return;
}
$this is relevant ONLY within the scope of the class definition.
The above snippet is located OUTSIDE of the class definition.
You must use an object pointer. That is:
$newobj = new
PROTECTED]
Subject: Re: [PHP] Confused About Classes
No, the only thing I supplied is the class. The startElementHandler IS a
function in the class.
Rick Emery [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
if ($this-privat
where are they being displayed?
-Original Message-
From: David Orn Johannsson [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 10:17 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Login displays the pass and user in url
Can I some how prevent the browser from displayin
change to:
list( $policy_num, $policy_year, $application_reference ) = explode( --,
$policy );
-Original Message-
From: Chris Boget [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 11:22 AM
To: PHP General
Subject: [PHP] list(), each()
Ok, I've got to be doing something wrong
it means you've already output some HTML or a blank line
-Original Message-
From: Chad Gilmer [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 12:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Session Variables
Hi There,
I am a beginner to PHP and I am tring to use session
With there be a specifc number of variables returne? Or can the number of
variables vary?
-Original Message-
From: Walker, Roy [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 1:26 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] Regular Expressions? Help!
I am trying to do a match
running is a C program on the command line of a
Linux box. I can't capture the output, it just gets output onto the screen.
I just echo'd $output after the command was run and it was empty. Any
ideas?
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25
PROTECTED]]
Sent: Monday, March 25, 2002 2:27 PM
To: 'Rick Emery'; '[EMAIL PROTECTED]'
Subject: RE: [PHP] Regular Expressions? Help!
Perhaps it is how I am calling the $lines in a while loop.? I have tried
`$cmd`, exec(), exec($cmd, $ouput) (to capture the output as an array),
system(), shell_exec
Again, I ask:
Does $mycmd contain the command you expect to see
$mycmd = $prog $cmdline $trimline ;
print $mycmd;
$output = exec($mycmd);
-Original Message-
From: Walker, Roy [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 2:56 PM
To: 'Rick Emery'; '[EMAIL PROTECTED
?
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 1:54 PM
To: 'Walker, Roy'
Subject:RE: [PHP] Regular Expressions? Help!
well, ya might try:
$my_array = explode( \ ,$output);
this would set:
$my_vars[0] = variable1:\some text info
: Monday, March 25, 2002 3:09 PM
To: 'Rick Emery'; '[EMAIL PROTECTED]'
Subject: RE: [PHP] Regular Expressions? Help!
No. I think there is a carriage return (\n), but there is not a blank line
at the end.
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25
The following is directed to the PHP development team.
I would like to suggest a capability be added to PHP's class implementation.
Specifically, provide the capability to segregate class data and methods
into private methods and data from those that are available for direct
invocation from the
exec() can capture ALL output from a command if you supply an array as the
second argument to it
-Original Message-
From: Darren Gamble [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 3:58 PM
To: 'Walker, Roy'; '[EMAIL PROTECTED]'
Subject: RE: [PHP] Regular Expressions? Help!
Andrey, you are incorrect.
From the manual on strpos():
int strpos (string haystack, string needle [, int offset])
If needle is not found, returns FALSE.
-Original Message-
From: Andrey Hristov [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 7:47 AM
To: Rick Emery
Cc: [EMAIL
ahhhinteresting.
thank you for the clarification
I stand humbled, head bowed...
rick
-Original Message-
From: Andrey Hristov [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 8:03 AM
To: Rick Emery
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] comparisons
From the docs :
Note
__([a-z0-9][a-z0-9_]+)__
-Original Message-
From: Sharat Hegde [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 4:22 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Regular Expression Problem
Hello,
In PHP3, I am using code which using the regular expression capability of
PHP. The
First what would be the best solution to take the records from the
database and display like 10 results per page?
Check the list archives and php.net. There are many examples of this
functionality
Another question, the same records from the database, but say I want to
sort them by
yes, you can run PHP as a stand-alone interpreter
-Original Message-
From: Paul Roberts [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 1:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP] cron with php as apache module
I want to run a php script via a crontab, (i can set up the
I think PHP's uniqid() will suit your purposes. Look in the Miscellaneous
Functions section of the manual.
-Original Message-
From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 11:38 AM
To: PHP-General List
Subject: [PHP] Maillist
I need to send out
How is possible to click on an image and run a php function?
A href=./thescript.phpIMG src=image.jpg/A
Also how is possible to pass some php vars to javascript vars?
Can't do it directly. JavaScript is client-side. PHP is server-side. As
you execute a PHP script, it will create the values
show your code
-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 5:18 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Variable problem
I have a variable name in a print END and then some text after it. The
thing is, php thinks that the text is
${varable}ABC
-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 5:21 PM
To: Rick Emery
Subject: Re: [PHP] Variable problem
on 3/22/02 6:18 PM, Rick Emery at [EMAIL PROTECTED] wrote:
show your code
-Original Message-
From
$result = mysql_query(.)'
mysql_num_rows($result)
-Original Message-
From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 5:28 PM
To: PHP-General List
Subject: [PHP] MySQL query results
How can I tell whether anything was matched and changed after a
if (mysql_num_rows($sql_result) 0) {
FYI: thank you for providing full code and what the algorithm is supposed
to accomplish. Most posters do not.
-Original Message-
From: Philip J. Newman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 6:37 PM
To: [EMAIL PROTECTED]
if ( ! ISSET($img_url) )
-Original Message-
From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 8:18 AM
To: [EMAIL PROTECTED]
Subject: [PHP] testing for blank var
if $img_url has a value, then I'd like to show the image, if it doesn't,
then I'd like
As you read each line into a variable, $chrText, apply this test:
ereg(Visibility: ([0-9]*.*), $chrText,$regs);
EXAMPLE:
?php
$chrText = Visibility: 30 mile(s):0;
ereg(Visibility: ([0-9]*.*), $chrText,$regs);
print #.$regs[0].#.$regs[1].#\n;
$regs= NULL;
$chrText = Wind: from the NE (050
You're welcome. we aims to please...
-Original Message-
From: Gerard [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 9:22 AM
To: Rick Emery
Subject: Re: [PHP] Parse from a Text file
Many thanks Rick !
Much apreciated very fast :-)
Gerard
- Original Message -
From
you just have to double check your code, as you did
-Original Message-
From: Joshua E Minnie [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 11:07 AM
To: Rick Emery
Subject: Re: [PHP] T_STRING, T_VARIABLE, and T_NUM_STRING
I had already fixed the error, I just wondered what
you still need to declare the values as GLOBAL
-Original Message-
From: Dr. Shim [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 11:12 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Function Not Accepting Variable Values From a Form
I will try $_POST[] first. I do that under the
$interest = $HTTP_POST_VARS['interest'];
or (if using PHP 4.1)
$interest = $_POST['interest'];
then reference $interest[0], $interest[1], $interest[2],...
-Original Message-
From: Joshua E Minnie [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 11:54 AM
To: [EMAIL PROTECTED]
I use this construct constantly. Assume name of script is thisform.php3:
?php
if( isset($submit) )
{
print $myname;
exit;
}
?
HTML
HEAD
/HEAD
BODY
FORM method=post action=./thisform.php3
INPUT type=text name=myname value=BR
INPUT type=submit name=submit value=Submit
/FORM
/BODY
/HTML
We can't read your mind.
What kind of error do you get?
Second, I recommend that you ALWAYS add the die() clause to your mysql
function calls
-Original Message-
From: Manu Verhaegen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 7:16 AM
To: 'Php-General (E-mail)
Subject:
if( $line[1]='$bruker' and $line[2]='$passord') {echo hei
$bruker.;}
else {echo FEIL;}
-Original Message-
From: chris [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 8:15 AM
To: [EMAIL PROTECTED]
Subject: [PHP] why doesnt this work???
this script receives
To: [EMAIL PROTECTED]
Subject: Re: [PHP] why doesnt this work???
nope... that did not do the trick...
-Chris
Rick Emery [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
if( $line[1]='$bruker' and $line[2]='$passord') {echo hei
$bruker.;}
This works; I just tried it.
?php
$line = bruker;
$bruker = bruker;
$linex = passwordx;
$password = password;
if( !strcmp($line,$bruker) !strcmp($line,$password) ) {echo hei
$bruker.;}
else {echo FEIL;}
?
-Original Message-
From: chris [mailto:[EMAIL PROTECTED]]
Sent: Wednesday,
if ($postaction==edit)
-Original Message-
From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 11:44 AM
To: [EMAIL PROTECTED]
Subject: [PHP] mysql update help needed
Can somebody straighten this out for me?
I can't get the update to work. I'm sure the
What do you mean All other browsers either do not submit form data?
show your code.
What kind of user authentication are you using? If none, they'll vote and
vote often.
-Original Message-
From: James Arthur [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 1:39 PM
To:
?php
$a = 20020211150245;
$b =
ereg_replace(([0-9]{4,4})([0-9]{2,2})([0-9]{2,2})([0-9]{2,2})([0-9]{2,2})([
0-9]{2,2}),\\1-\\2-\\3 \\4:\\5:\\6,$a);
print $b;
?
-Original Message-
From: Sven Jacobs [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 5:03 AM
To: [EMAIL PROTECTED]
The greater question: Why does irow order matter? What are you REALLY
trying to do?
==
In article 000701c1cb06$3b54f3b0$0101a8c0@nightengale,
[EMAIL PROTECTED] says...
Hello,
How can I get the number of the current row, something like this:
?
$sql = mysql_query(SELECT *
I use qmail with PHP on a RH v 7.0 system. Works like a charm.
I compiled/installed qmail from source. Installed RH, Apache, PHP from
RPMs.
I'm not at my home-office, where I have this set-up, so I cannot provide you
with my set-up info. I dod not use vpopmail yet, but I will soon instll it
Can't read your mind, bud.
Show us your code...
-Original Message-
From: David McInnis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 2:25 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Cookies not expiring
I understand that if an expiration time is not set, the cookie should
Form elements are passed to the following page as variable names. For
instance, the text value in subject 1 input element:
INPUT type=text name=subject1
is passed to the following page as: $subject1
-Original Message-
From: PHPList [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13,
index.html
FORM method=post action=adduser.php
INPUT type=text name=pwBR
INPUT type=text name=pw2BR
INPUT type=submit name=submit valuye=submit
/FORM
adduser.php -
?php
...write $pw and $pw2 to database
?
did you try to do this yourself yet? what were the results?
krsort(array)
then grab first key.
-Original Message-
From: Alex Elderson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 8:47 AM
To: [EMAIL PROTECTED]
Subject: [PHP] get the greatest key of an array???
Hi,
How can i get the greatest key of an array??
$array[1] = ...;
: Thursday, March 14, 2002 9:04 AM
To: 'Rick Emery'; [EMAIL PROTECTED]
Subject: RE: [PHP] Cookies not expiring
Here is what I am using to set my cookie.
$cp_sessionid = $CP_partnerid . _ .
uniqid(str_pad(getenv(REMOTE_ADDR), 15, 0));
setcookie('cp_sessionid', $cp_sessionid);
David McInnis
stripslahses($variable)
-Original Message-
From: Vlad Kulchitski [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 9:26 AM
To: [EMAIL PROTECTED]
Subject: [PHP] textarea/textarea
Hi,
I have the following probably very simple problem.
Basically what I need to do is to collect
I mean:
stripslashes($variable)
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 9:24 AM
To: 'Vlad Kulchitski'; [EMAIL PROTECTED]
Subject: RE: [PHP] textarea/textarea
stripslahses($variable)
-Original Message-
From: Vlad Kulchitski
the best you can do is:
?php
$a = this has php in the string;
if( ! ereg(php, $a ) )
{ print a: not in string; }
$a = this has in the string;
if( ! ereg(php, $a ) )
{ print b: not in string; }
?
-Original Message-
From: Ando Saabas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14,
?php
echo '
input name=inp type=hidden value='. $_POST['inp']. '
';
?
-Original Message-
From: John Gurley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 6:55 AM
To: [EMAIL PROTECTED]
Subject: [PHP] input
hello,
Someone was kind enough to give me this code for sending a
Nope, that's not the problem. the $_POST[] is NOT inside single-quotes.
The problem is he used commas before and after the $_POST[].
-Original Message-
From: Edward van Bilderbeek - Bean IT [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 7:02 AM
To: PHP-General
Subject: Re:
He IS setting cookie before sending HTML block. Note, that he is storing
the beginning of HTL block in a HEREDOC, which he prints after setting
cookie.
Somewhere, he may be printing a blank line prior to setting cookie...that
problem has bitten me more than once, so now I'm on the look-out for
John,
Post your code. We're all operating in the dark here and we want to help
you.
-Original Message-
From: John Gurley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 8:07 AM
To: [EMAIL PROTECTED]
Subject: [PHP] RE: passing values
Ray,
I am using the post method, and
your query is: DELETE FROM mytable;
-Original Message-
From: Claudiu [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 5:09 AM
To: [EMAIL PROTECTED]
Subject: [PHP] reset auto_increment field mysql
I have a mysql table which contains an id field which is set to
auto_increment.
...
On Tue, 12 Mar 2002, Rick Emery wrote:
your query is: DELETE FROM mytable;
-Original Message-
From: Claudiu [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 5:09 AM
To: [EMAIL PROTECTED]
Subject: [PHP] reset auto_increment field mysql
I have a mysql table which contains an id
TRTDINPUT type=text name=mytext/TR
-Original Message-
From: Balaji Ankem [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 12:12 AM
To: Php-General
Subject: [PHP] Hi can we write a form inside td element of a table?
Hi,
can we give a form element as td inside table
What do you mean it doesn't work? What results are you getting?
Specifics...we need specifics...
-Original Message-
From: Anthony Rodriguez [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 6:44 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Help w/ join syntax
When I call the
$result = mysql_query(SELECT * FROM sms where email LIKE \%@%\ ORDER BY
ID DESC,$db);
-Original Message-
From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 12:18 PM
To: RIVES Sergio
Cc: [EMAIL PROTECTED]
Subject: [PHP] Check @ in Record show Error in mail()
First: change -
if(file_exists($info[5]){
to -
if(file_exists($info[5])){
Second: ensure the file permissions are set to rwxrwxr-x for bank.php
-Original Message-
From: David [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 3:03 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Unknown
function foo($arg1_required, $arg2_optional=)
if ($arg2_optional==) {
print not passed;
}
else {
print explicit;
}
}
-Original Message-
From: Rodent of Unusual Size [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 3:17 PM
To: [EMAIL PROTECTED]
What do you mean it doesn't like the LIKE
Please provide the query statement you used and the response from the
application
-Original Message-
From: Chuck PUP Payne [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 4:22 PM
To: liljim
Cc: PHP General
Subject: Re: [PHP] Re: A
didn't like about your query
-Original Message-
From: Chuck PUP Payne [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 4:31 PM
To: Rick Emery; 'Chuck PUP Payne'; liljim
Cc: PHP General
Subject: RE: [PHP] Re: A stupid question...
$result =mysql_query(SELECT * FROM emply_info WHERE
I just noticed your WHERE clause is incomplete.
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 4:33 PM
To: 'Chuck PUP Payne'
Cc: PHP General
Subject: RE: [PHP] Re: A stupid question...
To help you diagnose the problem, I suggest:
$query
Terry: I forwarded this to php-general list. Perhaps they can answer your
question
-Original Message-
From: Terry Romine [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 10:01 AM
To:
Subject: php email question
I am trying to set up a MIME email that would include an HTML and
The warning means the query failed in mysql. Perhaps it failed in the
connect. You do not need the number of rows.
To determine what the problem is, ALWAYS include a die() clause:
$db = mysql_connect(localhost, , ) or die(Error: .mysql_error());
mysql_select_db(employee,$db) or die(Error:
Go with QMAIL
Lots of support (mailing lists, web-sites). Several books written on it.
Easier to set-up than sendmail. Very configurable.
Written by same gent that wrote ezmlm mailing list application (ezmlm
handles the PHP mailing lists).
goto: http://cr.yp.to/qmail.html
-Original
Do you need to use an include path? Why not just use the include()
function?
Also, what are the contents of constant.inc? Perhaps the problem lies
there.
-Original Message-
From: Jack [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 2:03 AM
To: [EMAIL PROTECTED]
Subject:
change:
a href=welcome.php3?dbcnxid=?php echo($dbcnx); ?test link/a
to:
a href=?php print \welcome.php3?dbcnxid=$dbcnx\; ?test link/a
-Original Message-
From: WG4- Cook, Janet [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 5:30 PM
To: PHP List
Subject: [PHP] Help for
Is it possible for function1() to access the variables that were defined
in the function2() namespace?
Must be defined with global construct, as you did in function1()
-Original Message-
From: Chris Boget [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 9:52 AM
To: PHP
This isn't exactly what you want, but it is close:
list($user_id,$field2,$field3,$field4) = $row;
where $row was retrieved via mysql_fetch_array()
Just list each of the variable names in the list() function; include ALL
fields' names included in $row
-Original Message-
From: Baloo :0)
An XML DTD would not work here; XML describes content, HTML describes
presentation.
You might consider translating to PDF via Adobe Acrobat. Acrobat supports
hyperlinks and PDF is a standard plugin for the IE and NN
-Original Message-
From: Kevin Old [mailto:[EMAIL PROTECTED]]
Sent:
look in the manual under predefined variables:
language.variables.predefined.html
-Original Message-
From: Chris Boget [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 4:00 PM
To: PHP General
Subject: [PHP] argv and argc
The other day, I was reading the docs and I just
What do I need to do to allow the readline functions to work?
The following short program fails when run from the command line:
?php
$line = readline(Input data: );
print $line;
?
Execution command and error message:
C:\php -q myscript.php
br
bFatal error/b: Call to undefined function:
Please show your exact code, because your code snippet looks right.
Then, again, maybe it's because it's an Aggie machine...GRIN
-Original Message-
From: Niklas Lampén [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 8:11 AM
To: Php-General
Subject: RE: [PHP] Mysql_num_rows
301 - 400 of 528 matches
Mail list logo