Erik:
If I could paraphrase your question, it'd be, is it better to leave info in session
vars or use db calls - if that's right, I'd say db call for your particular need is
faster/easier, as you'll be accessing the db anyway (getting their personal info).
Just add a style sheet preference
I need to help makeing a script that will ps aux | grep and file to see if
it is running -- if not start it up
i have a pl file running in the back ground and i wanted to check it ..
Thanks
Alan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
I know, the base install installs 4.0.6-7. but my problem comes when i try
upgrading to mysql 4.0.1.
When I try installing 4.0.1 of mysql it has to uninstall the 3.23.41-1
version and then install 4.0.1
I get a conflict that says that libmysqlclient.so.10 is needed by php.mysql
and a few other
perhaps $[connit.$i] would to it?
- Original Message -
From: Larry Brown [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 18, 2002 20:24
Subject: [PHP] looking for newbie help in solving logic problem
The following is an over simplified description. With additional
hello again! =)
I.m using fwrite() to write to the file. What I want is a new row i a
textdocument after each strung I insert..
I've been told that \n should be the solution to the problem whith new
rows i a text-document. But I am not sure that's want I wanted... =) I'll
try to be more
So sprach »Mårten Andersson« am 2002-01-23 um 19:27:04 + :
hello again! =)
I.m using fwrite() to write to the file. What I want is a new row i a
textdocument after each strung I insert..
I've been told that \n should be the solution to the problem whith new
rows i a text-document.
Sorry to re-post this, but I'm really stuck with this one - does *anyone*
out there use iPlanet on Windows? Have you encountered a problem like mine?
Thanks,
James
-Original Message-
From: James Hallam [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 22, 2002 2:48 PM
To: [EMAIL
Nick, thanks for taking a moment to respond --
What I'm wondering is, what should I store in session variables?
Whatever you need to.
Thanks.
for the user, to influence the way the site behaves. But I was
thinking
of adding ten pre-set style sheets (diff't colors, fonts, etc), and the
A client of mine wants me to increase the accuracy of the daylight savings
mechanism in his web application. It currently checks using the date()
function and the I switch. Is there anything out there that takes into
account the many special cases involved with daylight savings? I'm looking
for
I'm pretty new to PHP, and I need to re-format some date data, but I
can't figure out how to do it. This may be a doh! question, but I've
looked through the manual, and I can't seem to find what I'm looking for.
I have some dates formatted as mm/dd/yy that I need to convert to
mmdd so I
http://www.php.net/manual/en/ref.datetime.php
Valentin Petruchek (aki Zliy Pes)
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
--
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
Well, I was having problems getting sessions working at all on my FreeBSD
box, but they are now working...
But that leads me to more problems...
For any others that might have a problem w/ FreeBSD, try setting the
referer_check to 0
'session.referer_check = 0'
Once I changed that things seem to
You only need to register the variable once when you initiate the session.
Also as of php 4.1 I believe you do not have to register your session vars
you can just acccess them like $_SESSION['counter']:
http://www.php.net/manual/en/ref.session.php
Basically what I see you're doing is
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Scott Fletcher blurted
For example, replacing the line feed with a br, etc. The only
problem is I can not tell what characters are in there because it is not
readable by the web browser. I hope I explained it clear enough.
Hi all,
How can I get the whole string after submitting with Form? I don't see any
variables and valuables in the address bar of the browser unless I manually
create the link with ? and in form action column. Please help and explain.
thanks,
Wee
--
PHP General Mailing List
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Wee Chua blurted
Hi all,
How can I get the whole string after submitting with Form? I don't see any
variables and valuables in the address bar of the browser unless I manually
create the link with ? and in form action column.
You'll see all the variables if you post the form using GET instead of POST,
but using POST it automatically sends those variables to the target page and
you can access them directly using their same names.
For example on your form you have a variable called $Name and it posts to
form2.php
you
This one work pretty well, so I'm using this one in addition to the recent
posting!
nl2br(htmlentities($ch));
Thanks,
Scott
Nick Wilson [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Scott Fletcher
Thanks, everyone for responding... after much headache I seem to have got it
working. (not fixed, but working.) I was running php 4.0.6 on linux where
the code worked. I just installed php 4.0.4pl1 on the freebsd box and now
everything works great. It was probably not the best solution, but
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Scott Fletcher blurted
nl2br(htmlentities($ch));
Neat!
- --
Nick Wilson
Tel:+45 3325 0688
Fax:+45 3325 0677
Web:www.explodingnet.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Rudi Ahlers blurted
User Method=GET, and not METHOD=POST
I think maybe I missunderstood her mail!
- --
Nick Wilson
Tel:+45 3325 0688
Fax:+45 3325 0677
Web:www.explodingnet.com
-BEGIN PGP SIGNATURE-
Version:
?
$var = this.that;
list( $thisVal, $thatVal ) = each( explode( ., $var ));
echo $thisVal, $thatVal
?
What is getting echo'd out is:
0, this
Why? What am I missing here?
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
change to:
?
$var = this.that;
list( $thisVal, $thatVal ) = explode( ., $var );
echo $thisVal, $thatVal
?
-Original Message-
From: Chris Boget [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 3:43 PM
To: PHP-General
Subject: [PHP] What is going on here? list() = each()
Hi!
How do I make a line feed in HTML from LF?? The data I got on each
line is not evenly spread out.
Thnaks,
Scott
--
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
change to:
?
$var = this.that;
list( $thisVal, $thatVal ) = explode( ., $var );
echo $thisVal, $thatVal
?
Silly me.
Chris
-all embarrassed now... :p
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Thanks Garth,
- I put it aside until I could find enough clear time to spend reading it through. It
makes for good reading -
and your comment about caching being 'funny'/suiting different situations in different
ways is definitely
correct. I think you've helped me understand/clarify some
$newlines = nl2br($oldline);
print $newlines;
The $oldline would contain text which contains newline characters.
-Original Message-
From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 3:57 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Correction
I mean how to
and I think, also, if it's the last command then you don't need to
semi-colon (I put it in anyway for completeness, etc) found that out by
accident...
-Original Message-
From: val petruchek [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 1:02 AM
To: PHP
Subject: Re: [PHP] Re:
Hello,
Tomas V.V.Cox wrote:
El mar, 22-01-2002 a las 19:02, Manuel Lemos escribió:
Hello Lukas,
Lukas Smith wrote:
FYI: there has been a lot of discussion about this project in the last
couple months (especially december irrc) on the pear-dev mailinglist. So
some questions
It means you are trying to insert 22 values into 20 fields
-Original Message-
From: Matthew Darcy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 4:11 PM
To: PHP developers
Subject: [PHP] can anyone explain this error ?
I am doing an insert into a EMPTY mysql table.
1
So you want to know how to justify text? This is not a PHP question.
HTML documentation: http://www.idocs.com/tags/
--
Ben Sinclair
[EMAIL PROTECTED]
- Original Message -
From: Scott Fletcher [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 23, 2002 4:11 PM
Subject:
Basically you're trying to add more values into the table than columns
specified. You have 22 values and only 20 columns specified in your $query.
Rick
Finish each day and be done with it. You have done what you could; some
blunders and absurdities have crept in; forget them as soon as you
gents,
thanks. I have been working hard on this php thing for a couple of days now
from setup to starting development. Today a couple of glitches have
slipped past me. I think I am tired and been working on this for too long
with out a break.
thanks for pointing out the errors.
Out of interest
What do you mean? There is a php function that can clean up the carriage
return and line feed. There's a php function somewhere that will fix up the
amount of spaces for each lines to make the end of each line to be all
aligned. So, what would it be?
Thank,
Scott
--
PHP General Mailing
Yes, there is a function that cleans up carriage returns and line feeds by
changing them to BR's. There is no function to magically justifty text. Find
some HTML documentation and output the HTML to justify your text.
--
Ben Sinclair
[EMAIL PROTECTED]
- Original Message -
From: Scott
First, no such PHP function exists which will fix up the amount of spaces
for each lines to make the end of each line to be all aligned.
Second, you could verify that in section LXXXIII. String functions of the
PHP manual before asking.
Third, please keep the same subject line. It makes
check out the foreach control structure it may be exactly waht you need.
http://www.php.net/manual/en/control-structures.foreach.php
On Wed, 2002-01-23 at 10:17, Joe Rice wrote:
Hello,
I would like to know how i can know when i'm at the
end of an array during a while loop?
At 09:35 AM 1/23/2002 +0100, Nick Wilson wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Jason G. blurted
If cookies do not work, then you must have a session_id appended to the
URL. HTTP is a stateless protocol. So every time you make a request
via
HTTP, you must
What is your question ?
bvr.
On Wed, 23 Jan 2002 11:30:58 -0500, Alan Todd wrote:
I need to help makeing a script that will ps aux | grep and file to see if
it is running -- if not start it up
i have a pl file running in the back ground and i wanted to check it ..
Thanks
Alan
--
PHP
[EMAIL PROTECTED] (Scott Fletcher) wrote in
[EMAIL PROTECTED]:">news:[EMAIL PROTECTED]:
What do you mean? There is a php function that can clean up the
carriage return and line feed. There's a php function somewhere that
will fix up the amount of spaces for each lines to make the end of
as far as i've been able to figure, you don't _have_ to give session call
a session name to regain the session data. if you don't supply a name, it
looks for the previous session for that computer. or you could pass it one
through your forms or what have you. regardless, you can compile your php
Hi,
Today I met a very strange problem.
My system had been working perfect since long time back when
I setup mysql/php/apache on RH 7.1, until today I found that php
could not connect mysql with the user from 'localhost'. But actually
user@localhost can login to mysql from terminal. 'Locahost'
Hello,
I'm using PHP 4.0.4pl1 with Apache 1.3.14.
I have a PHP script that accumulates data for insertion into a database.
This script runs in peices and unset()'s variables that contain the data
periodically in hopes of freeing memory for the next batch of records.
Apparently it's not working
The idea of building a website is largely to accommodate as large a
portion of your visitors as possible. I'm not worried about people
bookmarking sessionID's, but what if someone copy/pastes the URL to a
friend and they use the section. My friend gave me an excellent idea,
and that is to check
With apache, you can easily match up a L/P to an htpasswd file. With
IIS, the user has to be created as the windows level. I'm moving a site
from an apache server to an IIS server, and need to figure out an easy
way to do basic authentication. I guess putting a chunk of code at the
top of every
Yeah basically on an IIS server you have a default www group that you can
use because it has read only permissions, if you need to add a user just go
to administrative tools on the server and then computer management if not in
a domain or active directory users and groups if the server is a
Geoff Caplan wrote:
Michael
the Why PHP on zend.com is a great place to go for this sort of
stuff...
Honestly, it doesn't seem all that professional a resource paper...
I would tend to agree - not something you could show to a hard-headed
corporate purchasing committee with any confidence.
Jeff Sheltren wrote:
What happens if you set register_globals=Off and use
$_SESSION?
Thanks for the reply. I will try changing register_globals to Off. I am
not quite sure I know what you mean by using $_SESSION though, could someone
please explain how that is uesd?
Session manaul pages
David Orn Johannsson wrote:
I'm Trying to make a simple authentication for a news-system.
I have a encrypted passwd in a db that i fetch and compare to the user
input and if it compares ok then the user sees the catagories that he
can select from.
The thing is I'm not quite getting the
- Original Message -
From: hugh danaher [EMAIL PROTECTED]
To: David Drewa [EMAIL PROTECTED]
Sent: Wednesday, January 23, 2002 4:36 PM
Subject: Re: [PHP] PHP Equivalent of REXX x2c and c2x Functions
RTFN
http://www.php.net/manual-lookup.php?pattern=Hex
- Original Message -
Hi All
Can I emulate the first request of a browser when it tries to connect to a
distant server using a domain name and parse the answer from the remote
server to know if there is a website located there or if there is no hosting
(or even some kind of forwarding) configured for this domain name
* and then Mikusch, Rita blurted
Thank you for the reply. I'm trying to roll my own template system,
but
don't really know how to go about some of the details. My best bet would
probably be to install phplib and dissect itsee how the experts did
it!
At the very least it should
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Sorry for bothering you, but I really didn't find answeres on dejanews and
in the tutorial, or better, I did not see them.
I need the following variables:
$width1
$width2
$width3
.
.
.
$widthn
Because it is not shure, how many they are, I need
try changing:
echo $$temp\n;
to
echo $$temp.\n;
or even
echo ${$temp}.\n;
does that work?
-Original Message-
From: Thorsten Wandersmann [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 12:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] to evaluate ...
At 01:45 AM 1/24/2002 +0100, Frank Benady wrote:
Hi All
Can I emulate the first request of a browser when it tries to connect to a
distant server using a domain name and parse the answer from the remote
server to know if there is a website located there or if there is no hosting
(or even some
Unfortunately I have to change and meddle with dates and times, so I can't.
Siggy
Format:
The code is basically:
$everything [ $date ] = array(10, 20, 30, 40);
where $date is simply a text string like 01/01/2001;
Eg:
array(4) {
[07/01/2002]= array(3) {
[6]= int(7200)
[5]=
i want to have php process .shtml files. i tried
appending the following to .htaccess, but to no avail:
AddType application/x-httpd-php .shtml
is it because php is running as a cgi program? how
would i go about getting this to work. its php 4.0.6
running on a sparc, if that matters.
Hi there,
I have a problem here regarding the form table name variable (i.e input
name=Process type text), when i used Href tags to send the variable in the
next script it does'nt recognized the $Process variable. I've tried the the
submit type but but im having problem with other $variable
I've tried several versions of this:
$command = su root;
$id = whoami;
passthru($command, $result);
passthru($id, $result2);
echo $result;
echo $result2;
Jon Farmer [EMAIL PROTECTED] wrote in message
news:00de01c1a42c$9401d970$[EMAIL PROTECTED]...
Along this line, I have attempted to run a
somewhere in the form put:
input type=\hidden\ name=\Dno\ value=\$Dno\
-Original Message-
From: Michael P. Carel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 1:48 PM
To: php
Subject: [PHP] Form Problem
Hi there,
I have a problem here regarding the form table name
On Thursday 24 January 2002 10:47, Michael P. Carel wrote:
Hi there,
I have a problem here regarding the form table name variable (i.e input
name=Process type text), when i used Href tags to send the variable in the
next script it does'nt recognized the $Process variable. I've tried the
Hello,
Dl Neil wrote:
One other dimension, the institutions can only offer classes in the languages (and
techniques/technologies) that
the trainers know and than they have the resources (hardware,
compilers/interpreters) to cover.
Maybe therein lies an answer to the 'marketing' side too.
Greetings!
I have released PHP-GTK version 0.5.0, also known as monday starts on
saturday. The version number was bumped from 0.1.1 to this one to
indicate that PHP-GTK is now a fairly mature and stable extension and
can be used for a variety of applications (just look on Freshmeat).
I would
I am embarrassed to say that I lost the anser to my question on the
syntax to get a list of all of the files in a specified directory
matching a sertain criteria.
Anyone willing to give me another chance?
Todd
--
Todd Cary
Ariste Software
[EMAIL PROTECTED]
--
PHP General Mailing List
Hi,
Really simple, but can't see which funtion to use in the manual.
I want to take a user-inputted string $text, and IF it's length is more
than $limit, trim it to the limited length, and then tack on some kind
of ... text cut (too long) thing on the end.
I'm only missing one bit (line4):
1
$result = `ls foo*`; // :) :#
???
Martin
-Original Message-
From: Todd Cary [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 3:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP] I lost the message...
I am embarrassed to say that I lost the anser to my question on the
syntax
1 $limit = 5000;
2 if(strlen($text) $limit)
3{
4cut $text down to $limit length
5$text .= ...sorry, text was too long;
6}
4$text = substr($text, 0, $limit);
5$text .= ... (More);
:)
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
$limit = 5000;
if(strlen($text) $limit)
{
$text = substr($text, 0, $limit);
$text .= ...sorry, text was too long;
}
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 3:34 PM
To: php
Subject: [PHP] seems easy...
Hi,
Really
Ive tried Reading The Fine Manual on this, and cant find an easy
answer.
Heres the headers for a message from the script, and the error Im
getting on some mail it sends
Return-Path: wwwrun
Received: (from wwwrun@localhost)
by arsenic.mth.com (8.11.6/8.11.3) id g0O4UCQ27546;
hi,
I can't the UPDATE command in MySQL to work properly. Here is my
query
$query = update table set lastname=$lastname, firstname=$firstname
^
replace table with table name
where username=$username;
Hello
I am creating images with ImageJPEG using information from a form.
The image displays well in IE (Mac OS X), and IE and Netscape on
Windows. However, when printing from IE / Windows all I get is a
small red X. The image can be saved to disk, imported in MS Word and
printed OK. It also
As I recall, I need to use the file function e.g. fopen().
Todd
--
Todd Cary
Ariste Software
[EMAIL PROTECTED]
--
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,
This seems to work. Is there a better way?
chdir(/home/docvault);
$dir = dir(.);
$dir-rewind();
while ($file=$dir-read()) {
if (($file != .) ($file != ..)) {
$Filelist[] = $file;
}
}
$dir-close();
Todd
--
Todd Cary
Ariste Software
[EMAIL PROTECTED]
--
PHP
What is the syntax to give the surfer an opportunity to download a file?
Todd
--
Todd Cary
Ariste Software
[EMAIL PROTECTED]
--
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
On Thursday 24 January 2002 13:27, Todd Cary wrote:
What is the syntax to give the surfer an opportunity to download a file?
Please elaborate.
--
Jason Wong - Gremlins Associates - www.gremlins.com.hk
/*
Kitchen activity is highlighted. Butter up a friend.
*/
--
PHP General Mailing List
If your heart is set upon using $width1... then write your variable like in
the following:
for ($i=1;$i=$some_end_number;$i++)
{
${width.$i}=something width;
}
hugh
- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: Thorsten Wandersmann [EMAIL PROTECTED]; [EMAIL
Hi there,
I have another problem out here. Im using the for loop to display an array
of element in the checkbox form.
My problem is how could i set the this if to an error message if their are a
NULL selection. By default this will display blank for no selection which i
whant to be avoided. I
Hi and thaks for your answer.
...
Making any sense?
Year, so I have to do it manually (thought someone could preveting me from reinvent
the wheel... ;-)
What are you really trying to achieve?
I'm trying to split a large binary file (2 GB) into peaces of 700 MB to burn it on a
cd. It's a
On Thursday 24 January 2002 15:34, Martin Thoma wrote:
Hi and thaks for your answer.
...
Making any sense?
Year, so I have to do it manually (thought someone could preveting me from
reinvent the wheel... ;-)
What are you really trying to achieve?
I'm trying to split a large binary
Wanted to download PHP 4.1.1 RPM.
What's the difference between i586 RPM and SRC.RPM?
What sites provide non-FTP download for PHP4.1.1 RPM?
Thanx ppl!
_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
Hello,
I was wondering if I could save the result of a query in a pdf document. I
looked for any functions that might help, but I got confused because I
could not see how/where exactly to insert the necessary .dll's. I'd like
to do this (saving the output of a query) by using mysql installed on
81 matches
Mail list logo