How can I use exec() to create user account?
I try to use exec("useradd testusr");
but nothing happens,
I have set the permission of useradd to (chmod useradd) but still
can't do the desired operation!!
Zenith
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
I wrote a PHP script which perfrom
a query on a MysQl databasis. i want
the result to be displayed by 10 records
in each page with hyperlinks to move to the
next or previous page and to each page.
Something like this:
XX records were found
Display 1-10 results
1-
2
.
NextP
Nice post!
""Ovidiu EFTIMIE"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> For those working with ultradev :
> http://www.udzone.com/showDetail.asp?TypeId=4&NewsId=488
>
>
> Ovidiu
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-
And don't forget that there are several very good PHP related
sites out there that have been out there for many years now.
Many people find it more convenient to simply post the problems
and solutions on that kind of a platform rather than send it to
tens of thousands of people on the list that
There was a mailing list
[EMAIL PROTECTED]
I subscribed and received a confirmation but nothing more - is the list still
alive?
Chris
Jason Lotito wrote:
> > -Original Message-
> > From: Ian Harris [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, March 28, 2001 10:36 PM
> > To: [EMAIL
Dear Sir,
Consider the following attached example.
Hope it helps.
Best regards,
-Elias bachaalany.
""M. A. Ould-Beddi"" <[EMAIL PROTECTED]> wrote in message
Pine.LNX.3.96.1010329091827.2931A-10@localhost">news:Pine.LNX.3.96.1010329091827.2931A-10@localhost...
>
> I wrote a PHP script whi
Timely post for me. I am considering upgrading Dreamweaver and Fireworks.
How and why do you like Ultradev?
Why PHP user should use it?
--
Yasuo Ohgaki
""Ovidiu EFTIMIE"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> For those working with ultradev :
> ht
Hi people
If I have value like [EMAIL PROTECTED] stored in a variable. How do I break it up to be
take only the foo.com bit to use that to redirect user back to that URL?
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for yourself"
I have a form that edits the text on a web page by putting the data into a
db and then outputting to the webpage when it is called. When I enter my
text into my form I use the return key to start new lines, but when the text
appears on my webpage it has no line breaks so the text just wraps to
Hi,
I have a excellent library for doing just that but it is very complicated
and integrated into the other libraries.
Perhaps check out http://www.phpbuilder.com/columns/rod2221.php3 which
is an article on what you are trying to do.
Good luck,
Matt Stone
-Original Message-
From: eli
Anyway, session_unset() only unset session vars in memory, but session_destroy()
deletes session vars from storage.
i.e. You can free storage with session_destroy() without waiting garbage
collection.
Unless programmer discards session id, session data will be created with the
same session id, tho
For those of you interested,
We have a new phorum called Web Graphic Design. The phorum manager is
a graphic designer named Nina ([EMAIL PROTECTED]). She is an artist and
sculptress. Nina currently works in "Nina Web Development" , a small
design company she started a few years back. Nina crea
I think nl2br() is what you're looking for.
RenzE
Matt Davis wrote:
>
> I have a form that edits the text on a web page by putting the data into a
> db and then outputting to the webpage when it is called. When I enter my
> text into my form I use the return key to start new lines, but when
check out the nl2br() function.
HTML does not recognize the line breaks, it needs for that.
Sincerely
berber
Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.
-Original Message-
From: Matt Davis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March
what's the difference between them, i mean for effectiveness and performance
?
-toto-
Imagination is more important than knowledge.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the li
nl2br
(PHP 3, PHP 4 )
nl2br -- Inserts HTML line breaks before all newlines in a string
Description
string nl2br (string string)
Returns string with '' inserted before all newlines
***
RTM. Som
Hi again
have to try again after I have not recieved any advice, I have a vairable that stores
email address value. I need to break it so that I will only get the dmain name bit to
store in another variable so that I can redirect user to that domain, like if user
email is [EMAIL PROTECTED] then
Swap your indexes round
i.e. $list[$r]["priority"] changes to $list["priority"][$r];
This,
$list = array_multisort($list["priority"], SORT_NUMERIC, SORT_DESC);
should work ok now.
-Stewart.
-Original Message-
From: phpman [mailto:[EMAIL PROTECTED]]
Sent: 28 March 2001 03:33
To: [EMAIL
Use split('@',$email_address)
http://www.php.net/manual/en/function.split.php
--
Yasuo Ohgaki
""Jacky"" <[EMAIL PROTECTED]> wrote in message
005a01c0b8a0$453ede00$[EMAIL PROTECTED]">news:005a01c0b8a0$453ede00$[EMAIL PROTECTED]...
Hi people
If I have value like [EMAIL PROTECTED] stored in a vari
Javascript has this very neat control structure that makes it easy to
iterate over the properties of an object. It would be nice to see something
similiar in PHP. I often use Objects as a way of "packing" data in a more
orderly fashion, and sometimes I need to do stuff to all the properties of
an
Try to use explode and keep the second element of the array
Just a quick thought ..
- Original Message -
From: Jacky <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 30, 2001 12:52 AM
Subject: [PHP] split string value again
Hi again
have to try again after I have not
"try again" after 20 minutes...give people some time to
respond!...anyways, you can explode the variable...
list($junk,$domain) = explode("@",$email);
checkout http://www.php.net/explode
you'll use it a lot
-jack
- Original Message -
From: "Jacky" <[EMAIL PROTECTED]>
Date: Thursd
On Wednesday 28 March 2001 23:59, you wrote:
> This is where I implement a reversal of quotes depending on what kind
> of quotes I'll be using in it - the draw back is hitting the . key a
> lot to concat with variables, but it makes the my code more readable
> (IMO - no \'s all over the place.
>
>
I would use filesystem if I need performance and if I don't worry about
management.
I would use database if I need to manage lots of them and if images have
attributes.
Some older databases have really poor performance when LOB is used. If it is the
case, you might want to use combination of thes
$addr = "[EMAIL PROTECTED]";
$splitaddr = explode("@",$addr);
resulting in $splitaddr[0] = "test";
$splitaddr[1] = "foo.com";
-Stewart
-Original Message-
From: Jacky [mailto:[EMAIL PROTECTED]]
Sent: 29 March 2001 23:52
To: [EMAIL PROTECTED]
Subject: [PHP] split string v
On Wednesday 28 March 2001 18:34, you wrote:
> I've tried everything :
> rawurlencode, urldecode, htmlentities,
> htmlspecialchars - nothing is working. and come 2
> think of it - it seems like such a basic problem...
well, then I'd say you do something else wrong. Difficult to say without
seein
try this snippet:
""Jacky"" <[EMAIL PROTECTED]> wrote in message
009301c0b8a2$e856f6c0$[EMAIL PROTECTED]">news:009301c0b8a2$e856f6c0$[EMAIL PROTECTED]...
Hi again
have to try again after I have not recieved any advice, I have a vairable
that stores email address value. I need to break it so tha
thank you everone, sorry about the rush though. I was kind of in urgent
need. Anyway, thanks again.:-)
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"
- Original Message -
From: Stewart Taylor <[EMAIL PROTECTED]>
To: 'Jacky' <[EMAIL PROT
On Wednesday 28 March 2001 20:01, you wrote:
> Hi
>
> I'm triying to connect from windows to linux...
> do i have to manipulate grant tables on mysql...
> what should I do??
read the mysql documentation.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Pretty cool, the kind of po
You can use get_class_vars() or get_object_vars()
http://www.php.net/manual/en/function.get-object-vars.php
http://www.php.net/manual/en/function.get-class-vars.php
You also need to use Variable variables (i.e. $$var) to iterate object
properties.
v1 = ".$bar->$name."\n");
}
?>
Regards,
--
Ya
I thought more examples might be useful someone.
$name = ".$obj->$name."\n");
}
while (list($k,$v) = each($obj)) {
print("foo->$k = ".$v."\n");
}
foreach ($obj as $k => $v) {
print("foo->$k = ".$v."\n");
}
foreach ($obj as $k => $v) {
print("foo->$k = ".$obj->$k."\n");
}
?>
Regards,
--
Y
How can I create Session Varables, the docs I have read only provide funtions
for PHP4.
Sean Weissensee
Ion Solutions.
PHP Documentation:
"Note: Session handling was added in PHP 4.0."
RenzE
Sean Weissensee wrote:
>
> How can I create Session Varables, the docs I have read only provide funtions
> for PHP4.
>
> Sean Weissensee
>
> Ion Solutions.
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
Hi people
I have written a website to manage our LDAP directory, but there is one
outstanding
problem that I can find any solution to. What I need to do is to delete a
single value
from a multivalued attribute. I can't figure out the correct arguments to do
this
Attribute X
Values Y
Hello,
how do I get a whole paragraph written in pdf using pdflib function
PDF-show-xy? Or is there another function or method to manage this? I
appreciate any hint. Thank you.
Ali
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
See http://phplib.netuse.de
regarding sessions in php3
HTH
M@
> -Original Message-
> From: Sean Weissensee [mailto:[EMAIL PROTECTED]]
> Sent: 29 March 2001 11:38
> To: [EMAIL PROTECTED]
> Subject: [PHP] Session Varables with PHP3
>
>
> How can I create Session Varables, the docs I h
wez Thu Mar 29 01:37:09 2001 EDT
Modified files:
/php4/ext/iconv iconv.c
Log:
Fixed leak in php_iconv_string. Also returns FAILURE on failure,
rather than -1
Index: php4/ext/iconv/iconv.c
diff -u php4/ext/iconv/iconv.c:1.9 php4/ext/iconv/iconv.c:1.
Re:1 Yes, PHP should be the right tool to use to build
your system. It is likely much more powerful (has more
functions) than any other web related language you can
find.
Re:2 CodeCharge is the best PHP generator (or code
generator in general) I seen, except for its own UI,
which can be confusing.
Hi
Does anyone know how many keywords does PHP have.And where can I find
them ?
I would appretiate if anyone can send a list of them if possible
bye and thanx in advance
Nilesh
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional c
When I use set cookie with an expire value it does not retain the value ?
setcookie ("TestCookie2", "test", $value,time()+3600);
I am using echo $TestCookie2; or
echo $HTTP_COOKIE_VARS["TestCookie2"];
in another page to view the value
Sean Weissensee
Ion Solutions
chregu Thu Mar 29 02:13:50 2001 EDT
Modified files:
/php4/pear/Experimental/XML fo2pdf.php
Log:
MSIE needs a Content-Length: Header to display pdfs correctly. so here it
is..
Index: php4/pear/Experimental/XML/fo2pdf.php
diff -u php4/pear/Experimental/XML
ab Thu Mar 29 02:35:33 2001 EDT
Modified files:
/php4/ext/midgard config.m4 config.m4.session
Log:
- Typo fixed
- config.m4.session updated to config.m4
Index: php4/ext/midgard/config.m4
diff -u php4/ext/midgard/config.m4:1.21 php4/ext/midgard/confi
I have been trying to get a new column added to a table (vips) via a PHP
script, but having exhausted all the things I can find, I'm still
struggling. I've referred to TFM for all those who just can't wait to tell
me
to do so, and I believe my SQL statement is correct:
$NewCol = $Prod_Code;
$defa
> abThu Mar 29 02:35:33 2001 EDT
>
> Modified files:
> /php4/ext/midgard config.m4 config.m4.session
> Log:
> - Typo fixed
> - config.m4.session updated to config.m4
What does this fix do?? does it need to be included in 4.0.5?? or will ming
work without it??
James
--
On Thu, Mar 29, 2001 at 11:50:29AM +0100, James Moore wrote:
>
> > ab Thu Mar 29 02:35:33 2001 EDT
> >
> > Modified files:
> > /php4/ext/midgard config.m4 config.m4.session
> > Log:
> > - Typo fixed
> > - config.m4.session updated to config.m4
>
> What does this fix do
Nilesh Parmar wrote:
>
> Hi
>Does anyone know how many keywords does PHP have.And where can I find
> them ?
>
You can find them here:
http://www.php.net/manual/en/reserved.php
--
Pavel a.k.a. Papi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTE
> On Thu, Mar 29, 2001 at 11:50:29AM +0100, James Moore wrote:
> >
> > > abThu Mar 29 02:35:33 2001 EDT
> > >
> > > Modified files:
> > > /php4/ext/midgard config.m4 config.m4.session
> > > Log:
> > > - Typo fixed
> > > - config.m4.session updated to config.m4
> >
Gurus,
I am a relative newbie to sessions in php.
Question: How can I get the loginname of the user . Can session and
session variables get this??. Another way I have tried(but
unsuccessfully !!) is to have a .htaccess file in the directory . Once
the user logs in I use the following code to
jmoore Thu Mar 29 04:07:38 2001 EDT
Modified files:
/php4 run-tests.php
Log:
Output php version at end of tests.
Index: php4/run-tests.php
diff -u php4/run-tests.php:1.21 php4/run-tests.php:1.22
--- php4/run-tests.php:1.21 Wed Mar 21 08:01:52 2001
++
Can anyone please tell me why I get the following message: Fatal error: Call
to unsupported or undefined function session_start() in
/www/richel/authent/index.php3 on line 22
Thank you,
Theo Richel
what version of PHP are you using?
- Original Message -
From: "Theo Richel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 29, 2001 8:08 AM
Subject: [PHP] fatal error
> Can anyone please tell me why I get the following message: Fatal error:
Call
> to unsupported or u
Well, try this:
$REMOTE_USER
or
$PHP_AUTH_USER
or
$HTTP_SERVER_VARS["REMOTE_USER"]
or
$HTTP_SERVER_VARS["PHP_AUTH_USER"]
or
$HTTP_SERVER_VARS{"PHP_AUTH_USER"}
or
$HTTP_SERVER_VARS{"REMOTE_USER"}
...make your choice...
RenzE
Rahul Bhide wrote:
>
PHP3 doesn't support sessions
RenzE
Theo Richel wrote:
>
> Can anyone please tell me why I get the following message: Fatal error: Call
> to unsupported or undefined function session_start() in
> /www/richel/authent/index.php3 on line 22
>
> Thank you,
>
> Theo Richel
--
PHP General M
How do I rewrite 1 line in a file? I got the filename and the linenumber. i
was playing around with fwrite but to find the line I had to do all sorts
of gymnastics, I'm sure there must be a more elegant way...
thanks for any hints!
Peter
~~
http://liga1.co
Typically I would never respond to this type of thread discussion, but it's
one that gives me a great amount of frustration from time to time. I think
this level of frustration stems from the fact that a lot of these 'newbie'
questions are even more basic than a PHP newbie should be asking. T
Hi,
Ok I have a real tough one here (well to me it is :-)
If I telnet into my server I can add a user by running the following
command...
/usr/sbin/cadduser -d www.domain.com -f users full name -u username -p
password -w emailaddress for forwarding
Which is great, but as I`m offering fre
To get this done I would use an Expect script, driven through CGI.
Mike
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 9:22 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Tough One
Hi,
Ok I have a real tough one here (well to me it is :-
I good solution for this kind of stuff is to just build a queue, either file
or database. WHen you need to do a system type function you add that command
to the queue, then have a cron job that runs (which can more safely run as a
provolidged user), verifies that the function is ok and processe
In a message dated 29/03/2001 15:27:27 GMT Daylight Time, [EMAIL PROTECTED]
writes:
<< To get this done I would use an Expect script, driven through CGI.
Mike
>>
Problem is I don`t program in CGI so have no idea what you mean :-)
Ade
--
PHP General Mailing List (http://www.php.net/)
To
On Thu, Mar 29, 2001 at 03:05:09PM +0100, Peter Van Dijck wrote:
> How do I rewrite 1 line in a file? I got the filename and the linenumber. i
> was playing around with fwrite but to find the line I had to do all sorts
> of gymnastics, I'm sure there must be a more elegant way...
> thanks for an
> Yann Larrivée wrote:
>
> Thanks for the answer but it is a bit more complexe, i actually
> creates these sample table for the example. Here is an attachement of
> the structure dump.
>
> Hummm you got me to think more about my database structure withc is
> really good. The idea you bourght u
String functions like explode, strpos or str_replace seem to fail when
asked to work with "\n".
What can i do to tokenize or explode a string by linefeeds?
i replaced "\n" by another expression and it seems to work, but i'm
curious if there's a mor elegant solution...
cu
Jens
--
Grüße aus dem
Hi!
I'm using PHP4, iODBC & OpenLink for the database connection and
communication. After installing the iODBC (driver manager) & OpenLink
(driver), fix up the odbc.ini (part of iODBC or OpenLink) and did the
odbctest. The test passed and it connect the linux to the MS-SQL Server and
I was a
Yeah that would work if I knew how to do that? Any suggestions on how to go
about doing that?
Thanks,
Jay
-Original Message-
From: Tim Ward [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 1:59 AM
To: 'Fabian Raygosa'; Paulson, Joseph V. "Jay";
[EMAIL PROTECTED]
Subject: RE: [P
function ImgClick(imgName)
{ ThisImage = document.all[imgName];
document.form1.fred.value = ThisImage.value;
}
I'm pretty sure the event will fire before the submission but you'll need to
experiment a bit (and treat this as pseudo code)
True, but you have to remember that a lot of 'newbies' are actually superb
graphic designers with a lot of experience developing static websites. They
are grappling with new demands from their customers for more dynamic
features. If they don't quite grasp the difficulty of what they are trying
to
This is the only viable solutions because most
system admin will banned all system calls coming from the web.
As it should be, I think.
py
At 08:34 AM 3/29/01 -0600, you wrote:
>I good solution for this kind of stuff is to just build a queue, either file
>or database. WHen you need to do a syste
I wouldn't expect a programmer to walk in off the street and try to do
graphic design without having any concept of graphic design. I wouldn't
expect a mechanic to walk into the kitchen and expect to build a
souffle. I wouldn't expect a gardner to walk in and perform brain
surgery. And I wo
You are a God! :) It works great! Is there any chance I could get you to
make some suggestions on some good javascript books or web sites?
Jay
-Original Message-
From: Tim Ward [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 9:28 AM
To: Paulson, Joseph V. "Jay"; Tim Ward; 'Fab
On Thursday 29 March 2001 13:00, you wrote:
> Hi,
> i was just wondering what you guys do to check if a wquery suceeded or
> not? I know about mysql_num_rows() and mysql_affected_rows(), just
> wondered what you guys do?
Check the return code of mysql_query(). The only safe method.
--
Christian
> I wouldn't expect a programmer to walk in off the street and try to do
> graphic design without having any concept of graphic design.
ack! i do this very thing! one reason i rely on css and tables rather
then graphics, that and it means less hits on my server :-)
regarding this thread, t
Hi,
I am finalizing a new web site that needs to be live this week-end
and I still have a problem to receive HTML email send from a web page
using implode in php. Help to fix the problem will be VERY much
appreciated...
Please reply directly to [EMAIL PROTECTED] ... thanks
Here is the php s
that is not true... I for one would hang out on more than one list. And IF no
one did answer the question, what do newbies do they get the answer
themselves.
they spend energy on solving the problem and they learn how to learn.
We can exhaust this topic to death.
I just created [EMAIL PR
You are doing a string compare not date, convert them to a unix time stamp
and then compare
$d1 = explode("-",$date1);
$d2 = explode("-",$date2);
$ts1 = mktime(0,0,0,$d1[1],$d1[2],$d1[0]);
$ts2 = mktime(0,0,0,$d2[1],$d2[2],$d2[0]);
if( $ts1 > $ts2 ):
echo "Date 1 is greater than date2";
> -Original Message-
> From: Matt Davis [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 29, 2001 1:29 AM
> To: Php Mailing List
> Subject: [PHP] Line breaks in PHP
>
>
> I have a form that edits the text on a web page by putting the
> data into a
> db and then outputting to the webp
uw Thu Mar 29 07:01:16 2001 EDT
Added files:
/php4/pear Cache.xml
Log:
- package XML for the Cache
I'm not sure how to use the package.dtd to document packages and if at all the Cache
can be it's own package, but one has to start with it... Sterling
Hi,
I am using Apache 1.3.19 for Win32 and PHP 4.04 as a module. I would like to
retrieve, as a variable, the user name loged in the W2000 domain. Running
PHPINFO() function e it does not display USERNAME variable so I do not know
how to accomplish this task
Thanks
--
PHP General Mailing Lis
Hi,
I've installed freetype2 from source into the default locations, and
modified the Makefile for GD to include TTF support. Added
/usr/local/include/freetype2/ to the INCLUDE var.
When I try to make, lots of files compile fine but gdttf.c complains
it can't find freetype.h.
If I add /usr/loca
");
Header("WWW-Authenticate: Basic realm=\"My Realm\"");
Header("HTTP/1.0 401 Unauthorized");
}
// Header("WWW-Authenticate: Basic realm=\"My Realm\"");
if (!isset($PHP_AUTH_USER)) {
// echo "USER: $PHP_AUTH_USER";
auth_user();
} else
echo "else";
?>
M
When getting the data out of a mySQL table with PHP, use:
$TextArea = nl2br($TextField);
If you are opening it into a form you shouldn't need any formatting as it
will detect the new lines and if using a TEXTAREA the lines will be as you
typed them initially.
If you want to save s when saving t
Yup...That's what happened to me too. I got around it by installing Freetype
as a shared library and compiling GD without Freetype. Then I linked on both
Freetype and GD during PHP compile and this seems to work. I have had no
problems creating images with TTF.
Dean
-Original Message-
Fr
Hello,
I am trying to make a script that can add users and multiple things to a
linux box. I have all teh programming issues solved except I need to make
this script root, or make it able to run anyhting it want to. Is there a
way to make my php script liek a super user?
INFO: Redhat 7 Apache1
Since I was not satisfied with the "official" Wordfiles provided by
UltraEdit.com I started to create my own one, which can be found in an
initial version in the "Projects" section of my homepage (URL see
below).
My wordfile uses the funclist.txt from cvs.php.net, so it includes ALL
function
I just noticed that my domain provider has some problems, so
www.sebastian-bergmann.de is currently unreachable.
Please use http://sb.rc5.de/ for the time beeing.
Thanks for your patience,
Sebastian :-(
--
sebastian bergmann[EMAIL PROTECTED]
Hello People,
I want to configure the version php-4.0.4pl1 on to a RS/6000 with AIX4.3.3.
IBM HTTP Server 1.3.12.0, IBM JDK 1.2.2, IBM DB2 UDB 6.1, IBM C-Compiler
3.6.4, LDAP-Server 3.2.0.
After unpacking the php-4.0.4pl1.tar-file under /usr/, parallel to the
HTTPServer, I used the configure-sc
I have had this problem with exec, passthru with that configuration
aswell...
To read the files into an array, do this:
(http://www.php.net/manual/en/function.opendir.php)
";
}
?>
// Tobias
"SHAWN" <[EMAIL PROTECTED]> wrote in message
D1FF6C0809A9D411815D0050DA841BCC3EE5@ONSITESERVER">news:D1F
Paul Godard wrote:
>
> Hi,
>
> I am finalizing a new web site that needs to be live this week-end
> and I still have a problem to receive HTML email send from a web page
> using implode in php. Help to fix the problem will be VERY much
> appreciated...
>
> Please reply directly to [EMAIL PROTE
I have tried the online documentation and it either errors out on me or cannot
find anything when I search on case. Can someone tell me if PHP supports case
statements (or do I just need to do a series of ifs?) and if so where I can
find them detailed in the online docs?
Thnaks,
Allan
--
P
> I have tried the online documentation and it either errors
> out on me or cannot find anything when I search on case.
> Can someone tell me if PHP supports case statements (or
> do I just need to do a series of ifs?) and if so where I can
> find them detailed in the online docs?
You want:
Hi,
I have two database`s with one table in each. (MySQL)
Is there a way that I can select data from one table and then match it with
the data in another and discard the results so all I am left with is the
original data from the first table which never matched up.
Database1
EmailAddress
Yes...
switch ($my_variable_to_case) {
case "value_1":
php-code-here;
break;
case "value_2":
php-code-here;
break;
default:
php-code-here;
}
It works exactly like c.
-Original Message-
From: acle
acleave wrote:
>
> I have tried the online documentation and it either errors out on me or cannot
> find anything when I search on case. Can someone tell me if PHP supports case
> statements (or do I just need to do a series of ifs?) and if so where I can
> find them detailed in the online docs?
on 3/29/01 12:14 PM, [EMAIL PROTECTED] splat open and thusly melted:
> if so where I can
> find them detailed in the online docs?
look under switch, in control structures.
--
:: Andrew Rush :: Lead Systems Developer :: MaineToday.com ::
*
Hi,
I currently have sessions working nicely on my site, but I want to add a
timeout feature. What would be the best method, grabbing the server time and
setting it using the session_register, and then running a time check so if
the session time is more than one hour old destroy it??
Ade
--
PHP will do this for you. See the setting "session.gc_maxlifetime" in the
php.ini file. This sets the session lifetime.
Kirk
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 29, 2001 10:37 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Sessio
Hi,
SELECT a.list FROM db1 a, db2 b WHERE a.email!=b.email;
this shoulds work
Johannes
<[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I have two database`s with one table in each. (MySQL)
>
> Is there a way that I can select data from one tabl
Why I can get this to work?
I don't understand... I made another simple script that the only thing it
did was the "build array/serialize it/register the session var/ => next
page load unserialize it into array/update array/serialize it again".. and
it worked like a charm...
I'm doing the exact
Hi,
We are developing a shopping cart application are wondering if there are
any modules available to integrate with the different shipping
companies. An help would be greatly appreciated.
Thanks,
Craig
Hello,
Is there anyway I can have my script turn super user at the beginning when
it runs?
Brandon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
On Thu, 29 Mar 2001 19:58:51 +0200, Johannes Janson
([EMAIL PROTECTED]) wrote:
>Hi,
>
>SELECT a.list FROM db1 a, db2 b WHERE a.email!=b.email;
>
>this shoulds work
no, this isn't even close. you need a left join, there's an example
in the mysql docs under left join that shows you how to do what y
1 - 100 of 226 matches
Mail list logo