On Sat, 5 May 2001, Thomas Edison Jr. wrote:
> Latest version of PWS is 4.0! If u're looking for something esy & fast
> to get running, PWS is it.
It is not something as easy as apache to install. If you install any Linux
or BSD distribution, you get can apache to run out of the box without any
What about
wget foo.bar.com/script.php
Anuradha
On Thu, 3 May 2001, Noah Spitzer-Williams wrote:
> is there a service on the web that can do this for you? i once found a site
> that would accept a url and an interval and would retrieve that url
> (therefore running any code you had in there)
Is there a function to check of the existance of character x in
string y which returns true or false only?
Thanks.
--
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
> Is there a function to check of the existance of character x in
> string y which returns true or false only?
Yes, strstr().
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the lis
Yes, true...
it's a Client side problem, and i only can think of scripting solution like
JavaScript or VbScript...
you can via javascript get the time when the page is opened
and on the OnLoad event of the take the time again and make the
difference...
Also you can install a progress-bar too befo
when you reference a property of a class you don't need to say it's a
variable,
so use $this->item[] instead of $this->$items[$id] and it works okay. I
haven't quite worked out why it went wrong in the way it did ... and that'll
worry me until I do.
Tim Ward
Senior Systems Engine
Hi, Folks...
I have this little snippet of code:
Orario:
It should print a little table with the string "MY STRING"...
... unfortunately, it doesn't.
Any suggestion
BTW: I run this code on the following configuration:
PHP Version: 4.0
hello,
I'm writing to files with php. How do I include a carriage return, i.e.
write strings to different lines in a text file?
Thanks,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the l
Magnus Lawrie wrote:
>
> hello,
> I'm writing to files with php. How do I include a carriage return, i.e.
> write strings to different lines in a text file?
> Thanks,
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-
Already added, nothing changed at all...
> -Messaggio originale-
> Da: Jason Murray [mailto:[EMAIL PROTECTED]]
> Inviato: mercoledì 9 maggio 2001 9.56
> A: 'Gabriele Biondo'
> Oggetto: RE: [PHP] Little question
>
>
> >
> This needs to have a ?> after it...
>
> Jason
--
PHP General Ma
On Tue, May 08, 2001 at 03:01:58PM -0700, Robert Mena wrote:
> Hi, I am accessing an oracle database from PHP using
> stored procedures available.
>
> I'd like to detect when a problem occurs in order to
> stop trying to fetch results. In mysql I check for
> rc=0 as an error. The php doc does n
This snippet should be used as an example of badly written and presented
code. It tries too hard to do a simple job and in the result fails dismally.
I suggest Gabrielle, that you try to be a little more careful in your coding
and not so smart. I can find no less than four errors that I put dow
When I set and a
user uploads a file bigger than 50 my script prints a warning.
How can I use MAX_FILE_SIZE and avoid that warning so that I can print my
own error message to the user ?
:) Jacob
--
[ www.eksperten.dk ] Scandinavias biggest IT forum.
--
PHP General Mailing List (http://w
I know it's off topic, but I've struggled to find a more responsive stream
of help than this list - and note that several other ODBC questions have
been answered.
Why is myODBC so hard to get working on different computers?
I just had to reinstall Win 95 & Office 97 on one of our test computers
this :
if ... $myOra="" ...
should be more like :
if ... $myOra == "" ...
essentially you're setting $myOra as blank everytime which evaluates to
true, then it ends up printing the blank, which is not good. regarding
typos, this is a common one and since it reveals no error ... it can be
f
A good approach to prevent this is to always put your constants on the
lefthand side of the condition. This causes a parser error if you accidently
try and assign instead of compare. It takes a bit of getting used to, but
once you get into the swing of it you'll find it a useful tool in your
arsen
> this :
>
> if ... $myOra="" ...
>
> should be more like :
>
> if ... $myOra == "" ...
>
> essentially you're setting $myOra as blank everytime which evaluates to
> true, then it ends up printing the blank, which is not good. regarding
> typos, this is a common one and since it reveals no
Hi all,
I am querying the categories field in my database to rurn the various
categories that can be clicked on.
Problem is, if I have 5 items in a category, my categories query lists the
category 5 times..
I am trying to work out how to say:
while($qry = mysql_fetch_array($res)){
print $res["
You can try to modify your SQL query and add the "DISTINCT" statement !! It
will return each distinct row only once.
example "SELECT DISTINCT cat_id, cat_name FROM categories"
Regards,
Nicolas
-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi 9 mai
Jacob,
When you upload a file, it appends a few of its own variables. One of them
is size - assuming the file is a variable called $file:
if ($file_size > $max_size) {
echo $file_name . " was too big!";
}
Also, you could check for Mime types.
if ($file_type != "image/jpeg" || $file_type !
Thanks very much Nicholas,
Sean.
""Nicolas Guilhot"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You can try to modify your SQL query and add the "DISTINCT" statement !!
It
> will return each distinct row only once.
>
> example "SELECT DISTINCT cat_id, ca
Hi all,
I have a web form in which users can type their comments into a text area
field.
This is ok apart from when the users hit a return.
As this creates a new line...
Is there anyway in which I can get rid of this:-
Hi
My name is
Sam Rose
into this:
Hi my name is Sam Rose
I have tried
nl
Here is how i do it, and it works:
$tmp_desc = str_replace("\t", " ", str_replace("\n", " ", str_replace("\r",
" ", $desc)));
$desc = $tmp_desc;
\t for stipping TABs also
- Original Message -
From: "Sam" <[EMAIL PROTECTED]>
Subject: [PHP] Textarea returns causing havoc
> Hi all,
> int
Try using this :
works excellent on any browser, apache server with PHP
module.
T. Edison jr.
--- gary <[EMAIL PROTECTED]> wrote:
> Im having a problem with Authentication uisng
> $PHP_AUTH_USER and
> $PHP_AUTH_PASSWORD works fine connecting via
> netscape but automatically
> set to false w
hello,
i have a problem with sessions. on the host where i want to install
the prog i developed on my laptop the sessions doesn't seem to work
investigating on the laptop where the system works, i allready have some
understanding problems with how sessions work.
i suppose that at th
Hello,
I need some help (newbie).
I have some variable names with the form:
$name_1
$name_2
$name_3
$name_4...
I want to access them by doing something like this:
$i=0
$name_$i
This doesn't work, how do I include another variable in the name of a
variable?.
Cheers
John
--
PHP General M
Maybe an array would be more appropriate.
e.g.
$name[$i] =
.
.
-Stewart
-Original Message-
From: seriousj [mailto:[EMAIL PROTECTED]]
Sent: 09 May 2001 12:09
To: [EMAIL PROTECTED]
Subject: [PHP] Variables in variable names
Hello,
I need some help (newbie).
I have some variable na
Thanks :)
--
[ www.eksperten.dk ] Scandinavias biggest IT forum.
""James Holloway"" <[EMAIL PROTECTED]> wrote in message
9db61u$7d9$[EMAIL PROTECTED]">news:9db61u$7d9$[EMAIL PROTECTED]...
> Jacob,
>
> When you upload a file, it appends a few of its own variables. One of
them
> is size - assuming
The info is stored in the variables intitally by information entered by a
user on a webpage, can you have the browser store the info in an array and
have it passed by a form "post" command?
""Taylor, Stewart"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Ma
As an alternative you can use associative arrays
$i = 0;
$i = 1;
$i = 2;
$i = 3;
$name[$i];
-Original Message-
From: seriousj [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 4:09 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Variables in variable names
Hello,
I need some help (n
hi,
my tips for include remote PHP files.
first :
allow_url_fopen in php.ini,
at last:
note that neither include nor require for remote file does not work inder Windows.
best,
Papp Gyozo
- [EMAIL PROTECTED]
- Original Message -
From: "Robert Covell" <[EMAIL PROTECTED]>
To: "
hi,
note that this is also workin in PHP:
class A {
function aa(){}
function bb($x){}
}
class B extends A
{
function bb($x)
{
A::bb(); // inherited method called!!!
$this->aa();
}
}
Nice and perfect.
- Original Message -
From: "py" <[E
put the array indices in single quote like :
echo "[a href=\"myscript.php?username={$userdata['username']}\"]Goto
MyScript.php[/a]";
- Original Message -
From: "Jason Stechschulte" <[EMAIL PROTECTED]>
To: "King, Justin" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]
Hello,
Joe Celko's 'SQL for Smarties'. Is it a book ( to buy :( )
or is it available on the web (download :) )?
If the latter stands please can you give me a link to it?
- Original Message -
From: "Philip Hallstrom" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 2001. május 8.
There are some scripts in the postgres contrib directory which make such thing.
Some users are currently developping this scripts and put it in big one which do the
whole job.
check the postgres mailing lists and the archives.
- Original Message -
From: "Jason Beebe" <[EMAIL PROTECTED
Hello Chris,
to this seems to me an XML-stylish tag.
are you sure there is nothing else in the background?
- Original Message -
From: "Chris Anderson" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: 2001. május 6. 18:00
Subject: [PHP] Weirdest error I've ever had
> Alrig
Yes!
Add '[]' to the end of the name.
This will inform php that all fields with that name should be put into an
array after submission.
e.g.
...
After submit php will have created an array called $name with 3 entries.
-Stewart
-Original Message-
From: seriousj [mailto:[EMAIL PRO
Thanks, that worked great!
John
--
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: [EMAIL PROTECTED]
When PHP does a require or an include on a remote file via http, it sends a
GET request to the http server that the file is on,
Therefore, if this server has PHP installed on it, then the web server will
parse the file before it spits it out. Thus, all of the PHP tags are stripped
fom the file
Hi,
I am trying to write a php and javascript that will pick up data from a
table and display and scroll it. I seem to have run out of ideas how to
make the script work. I don't get any display on the screen.
I use rand() limit 1 so only one row is selected.
Can some one tell me where I went
At 09.05.01 23:08, you wrote:
>Hello,
> I need some help (newbie).
>I have some variable names with the form:
>$name_1
>$name_2
>$name_3
>$name_4...
>I want to access them by doing something like this:
>$i=0
>$name_$i
>This doesn't work, how do I include another variable in the name of a
>variab
Hi Romulo Roberto Pereira,
Wednesday, May 09, 2001, 7:11:38 AM, you wrote:
Romulo> Hello!
Romulo> Just a quick ot question:
Romulo> From a php script I open a frameset this divides the browser window in two
Romulo> rows. How do I do to get rid of the frameset without closing the window?
try a li
Hi...
I have a text and, some words of the text have the tags between them.
What i'm trying to do is to replace the word between that tags for a url, wich I'll
search them in a database and convert to a url.
It's working fine when I have only one , but when there are more than one,
the script
Hi Scott Mebberson,
Wednesday, May 09, 2001, 7:43:16 AM, you wrote:
Scott> Does anybody have any scripts or tips on hosting multiple domains on the one
Scott> account ie. if the domain being requested is this, go here in my account if
Scott> not go here in my account?
Well, I hope I understood
Well, is the XHTML-compliant version of .
In XHTML (the current W3C recommendation for web pages), you *have* to
explicitly close all tags (i.e. you have to use things like ). Single
tags - , , , etc - have to be closed as well, and that's how
you do it.
This doesn't help to explain why yo
The problem is that it matches the first foo with the first /foo and the
second foo witht eh /foo ( andmatches those properly) but it also matches
the first foo with the second /foo (thisnk of the logic of the regex).
What you need to do is rather than specify any character (.*) specify any
charac
Hi Jorge Amaya,
Wednesday, May 09, 2001, 11:39:36 AM, you wrote:
Jorge> THANK YOU FOR YOUR CONCEPTS, HELPED ME ENOUGH, YOU ARE VERY KIND, I HAVE
Jorge> A QUESTION MORE, APACHE IT| ALREADY WORKS ME, IT LOADS ME PHP4, BUT THE
Jorge> NAVIGATOR DOESN'T BEGIN..
Jorge> IT DOESN'T LOAD THE NAVIGAT
Hi seriousj,
Wednesday, May 09, 2001, 1:19:55 PM, you wrote:
seriousj> The info is stored in the variables intitally by information entered by a
seriousj> user on a webpage, can you have the browser store the info in an array and
seriousj> have it passed by a form "post" command?
Try
...
o
Good morning/afternoon/evening.. whatever timezone you live in :)
Small question: we all know how to pass parameter using question marks in an URL
ofcourse..
but I was wondering whether it was also possible to pass parameters in the URL using
forward slashes instead of those question marks, so
The Wise Man Said:
Subject:
RE: [PHP3] URL without a classic php filename like php, php3,
phtml?
Date:
Tue, 11 Apr 2000 12:54:35 MST
From:
[EMAIL PROTECTED]
To:
"Michael Simcich" <[EMAIL PROTECTED]>,
[EMAIL PROTECTED]
Addressed to: "Michae
i have tried both PWS and Apache on a windows98 machine, and franckly Apache is much
much better
just grab a binary distribution install it and go through the httpd.conf to configure
it (that's the trikiest part but the file is very well commented )
voila!
best combination: php, apache, Mysql
r
.* in your patten will match everything It's greedy like perl (unless you
compiled php not to be)
add a ? and it will make it none greedy
^[]* will not work ^ needs to be in [] to mean not else it means
start of string
""Luiz Vitor"" <[EMAIL PROTECTED]> wrote in message
011201c0d87d$57f8ab
the problem with doing it on your server (you do it just to be sure though)
is that the user has to wait for the form + file to be sent to your server
before you can respond - this can be very slow
""JFL"" <[EMAIL PROTECTED]> wrote in message
9davlf$s63$[EMAIL PROTECTED]">news:9davlf$s63$[EMAIL
[cut away some explanation]
> But I think it is pretty cool to make the program name look like just
> another directory in the tree, so I usually use .
I suppose it *is* possible then. Anyway, I've already putten "ForceType
application/x-httpd-php" in an .htaccess in the appropriate directory,
Hi! %-)
The code below makes a form. This form creates a temporary file that
contains the data of the original source file. This temp file is sent to the
server using FTP.
On my first config (Win NT4, Apache 1.3.19, PHP 4.0.4pl1), the temp file is
exactly the same as the original file and so the
there is a way to prevent the remote server from parsing the file before sending it:
use an extension that is not associated to php on that server (ie something like
.incphp or whatever extension that is not parsed on that server) and add that
extension in the "receiving" server's config
for ins
Hi,
In my php webpage I use DOM on XML. But the load method can recognize the
file which has url on apache. Why?
--
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,
On Wednesday 09 May 2001 01:06, Michael Geary wrote:
> $replaceIt = array("\\341","\\116");
> By the way, when I pass:
>
> $replaceIt = array("341","116");
>
> I get:
>
> "this is the \\341 and this is the \\116"
Try 3 backslashes and try using single quotes
--
Christian Reiniger
LGDC
On Wednesday 09 May 2001 07:46, Vegard wrote:
> Does anybody know how much text can be stored in a variable og type
> string?
Typically about 2^(sizeof(int) * 8 - 1) chars. On a normal 32 Bit machine
that's 2 Gig, on a 64Bitter, one moment, 9223372036854775808 chars
--
Christian Reiniger
LGDC
Hi,
write $this->items[$id] instead of $this->$items[$id]
bye
Wieger
Stefan Kostopoulos wrote:
>
> Hi!
>
> Can anybody explain to me why this script outputs:
>
> oneone
>
> instead of:
>
> zeroone
>
> ???
>
> Thanks,
>
> stefan
>
> class Cart {
> var $items; // Items in o
Hi! %-)
The code below makes a form. This form creates a temporary file that
contains the data of the original source file. This temp file is sent to the
server using FTP.
On my first config (Win NT4, Apache 1.3.19, PHP 4.0.4pl1), the temp file is
exactly the same as the original file and so the
I got my script to successfully force the otuput to be redirected to a download
of a new file.
using:
if(stristr($HTTP_USER_AGENT,"MSIE"))
$att="";
else
$att=" attachment;";
header("Content-type: application/download");
header("Content-disposition:".$att." filename=".$filename);
but the problem
> header("Content-type: application/download");
I think you'd need to change this to:
header("Content-type: text/plain");
but I could be wrong...
> and where can I find reference on these header stuff?
Not sure. I find bits and pieces in this list...
Chris
hmm..
good question i don' t know exactly how it's done but i actually know a site that uses
this extensively www.emp3finder.com, they concat strings
i think it involves "massive" server configuration
regards
09/05/01 14:08:25, "Franklin van Velthuizen" <[EMAIL PROTECTED]> wrote:
--
PHP
the man page for header() says look here:
http://www.w3.org/Protocols/rfc2616/rfc2616
> From: Christian Dechery [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 09, 2001 9:33 AM
> where can I find reference on these header stuff?
--
PHP General Mailing List (http://www.php.net/)
To unsubscrib
I need to identify the particular name of a file upload type field:
The elements are generated dynamically and I don't know the specific name of
the field beforehand and of course need to read it before processing the
form.
Using $HTTP_POST_VARS does not seem to recognize this type of input fie
Hello:
In my host, the php is installed in a way that I have access from a php
script to all the webs on that server, (there are almost 60) and I can
delete/copy any file of other servers. I don't like this because other user
of that server can do the same as I. I have contacted with my host a
At 08:39 9/5/2001 -0500, Boget, Chris wrote:
> > header("Content-type: application/download");
>
>I think you'd need to change this to:
>
>header("Content-type: text/plain");
>
>but I could be wrong...
>
> > and where can I find reference on these header stuff?
>
>Not sure. I find bits and pieces
> or even try
>
>
>
> This should AFAIK result in an Array, but I'm not sure if
> empty fields are put in.
You will get the empty fields except for checkboxes. For checkboxes only the checked
elements come through so you need values that determine which box was checked. So say
you have:
It's still not working.
I'm using the pattern ([^]*) and I'm getting the first match correct,
but it's not getting all the other matches.
Thanks,
Luiz Vitor
- Original Message -
> From: "Toby Dacre" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 09, 2001 9:06 AM
>
At 07:45 9/5/2001 -0700, you wrote:
>You decided it was using binary because \n was not being converted to \r\n?
>
>Aren't you just struggling with the difference between unix and windows
>files?
>
>Perhaps if you filtered the files replacing \n to \r\n when destination is
>windows platform.
than
It's a book to buy...
On Wed, 9 May 2001, Gyozo Papp wrote:
>
> Hello,
>
> Joe Celko's 'SQL for Smarties'. Is it a book ( to buy :( )
> or is it available on the web (download :) )?
>
> If the latter stands please can you give me a link to it?
>
>
> - Original Message -
> From: "Philip H
Try using the perl regular expressions and setting the quantifier to
ungreedy
e.g. This should work.
$pat = "/(.*)<\/url>/U";
$rep = "\\1";
$string = preg_replace($pat, $rep, $string);
-Stewart
-Original Message-
From: Luiz Vitor [mailto:[EMAIL PROTECTED]]
Sent: 09 May 2001 15:14
To:
Hi,
>header("Content-type: application/download");
try this:
Header("Content-Type: application/x-octet-stream");
It always worked for me...
good luck,
Sebastian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMA
On 9 May 2001 05:05:30 -0700, [EMAIL PROTECTED] ("Franklin van Velthuizen")
wrote:
> Good morning/afternoon/evening.. whatever timezone you live in :)
>
> Small question: we all know how to pass parameter using question marks in an URL
>ofcourse..
> but I was wondering whether it was also possi
Hi,
In installed PHP 4.0.5 with apache 1.3.19 but now a have problems with the
SNMP commands.
My browser tell me this:
Fatal error: Call to undefined function: snmpget() in
/disks//www/linux/snmptest.php on line 2
I installed UCD-SNMP on my system but it dosen't work.
Can sombody help me
Tho
Could you suggest a function for displaying decimal zeros.
For example I have this:
$num = "2.00";
$num2 = "3.00";
$result = $num + $num2;
echo "$result";
I get "5" but not "5.00"
Anyone outhere?
Thanks in advance!
Gerry Figueroa
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
OCIError($stm)
Will tell you if an error has been raised.
The error returned is whatever you asked the Oracle procedure to "raise",
or the error is a positive integer if Oracle raised the error internally
ORA-0 (OCIError() = 0) means the operation completed succesfully.
This may or maynot be
Use number_format() function.
See http://www.php.net/manual/en/function.number-format.php for detail.
Reuben D. B
At 11:22 AM 5/9/01 -0700, Gerry wrote:
>Could you suggest a function for displaying decimal zeros.
>
>For example I have this:
>$num = "2.00";
>$num2 = "3.00";
>$result = $num + $nu
I remember that a somewhat similar issues was discussed here sometime ago.
Check the list archives ( I think the subject was "Progress Bar").
Hope that will give you some ideas also.
Reuben D. B
At 12:32 PM 5/9/01 -0500, Jacky wrote:
>Hi all
>Does any one know how to do the progession bar to m
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Subject: [PHP] HELP, problems with sessions.
> so what aren'T i understanding here? shouldn't all the vars and values
> be in the encoded string??? and what could cause the loss of
> the session
> vars on my
For some reason, I can get the image image size for an image on the local
machine, but remotely give me an error
My code
";
echo "size: $size[1]";
echo "size: $size[2]";
echo "size: $size[3]";
$size = GetImageSize
("http://www.picpage.com/users/ka/kaurisma1331/images/image0.jpg";);
ech
On Wed, May 09, 2001 at 09:30:27AM -0600, Johnson, Kirk wrote:
> You should not have to call session_encode() to get sessions to work. Make
uhm, i used session_encode to print out the things for debugging
> session_start(); the first line on each page where you want to use session
> variables
My guess is one server has register_globals on, the other has
register_globals off. Try this change in your code: instead of assigning a
value to $HTTP_SESSION_VARS["toto"], instead assign a value to $toto. You
will then see a value for $toto in the echo session_encode().
$HTTP_SESSION_VARS["toto"
Hi,
I have a table set-up so that every time you enter an item, a unique
primary key is assigned to it (using auto-increment).
However, I've deleted all data from the table but when I go to add an item
the pointer is still set at the number of the last item I entered. Is
there any way of rese
How do I attach a file to an email?
I'd have a mailbody also, with some text... ad I wanna attach a text file
to it, but I don't want it to be appended in the body... I want it as an
attachment.
_
. Christian Dechery - CTO
.. WebDeveloper @ Webstyle!
.. http://ww
At 11:22 9/5/2001 -0700, Gerry wrote:
>Could you suggest a function for displaying decimal zeros.
>
>For example I have this:
>$num = "2.00";
>$num2 = "3.00";
>$result = $num + $num2;
>echo "$result";
>
>I get "5" but not "5.00"
try $result = (float)$num + (float)$num2;
--
PHP General Mailing
Hello,
I pull some data from mysql with the php code below.
On the date field if there is no date on mysql it displays : -00-00
00:00:00
I would like to change this -00-00 00:00:00 to "no date" for example..
Or if the cel is empty to " " (because otherwise the tableborders are messed
up
BlankHello,
I need to look up in the PHP online reference other variables similar to
$DOCUMENT_ROOT. I can't find them. Anyone know where to find them at?
Thank you,
Karl J. Stubsjoen
www.excelir.com/worldshop
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMA
http://www.php.net/manual/en/language.variables.predefined.php#language.vari
ables.predefined.php
Kirk
> -Original Message-
> From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 09, 2001 10:08 AM
> To: PHP Mailing List
> Subject: [PHP] Environment Variables
>
>
>
I'm trying to force arbitrary errors in the HTTP header like so:
header('HTTP/1.1 404 Not found.');
It's not working like I expected. I found a few discussions of this on this
list that said that this did not work with PHP 3, but I've found nothing
about PHP 4.
The manual says that you should d
This is a very simple progress bar, you need to decorate it.
As you can see the step() function deals with the ellapsed time.
For more see your favourite javascript manual or
for example http://www.webreference.com/dhtml/
Feel free to use it:
#container {
WIDTH: 60px; POSITION: absolute;
Well, it's not immediately obvious whether your date is in "i", "j", or "f",
so let's pretend it's in "date" :-)
Try this:
while($amyrow = mysql_fetch_array($aresult))
{
echo "";
echo $amyrow["i"];
echo "";
echo $amyrow["j"];
I've read many docs on how to accept an ID and password throughout a session
but it's just over my head I guess!?
What I want to do is have someone login, verify that against LDAP directory.
If the authentication is accepted, hold the credentials until the user
either closes the browser or clicks
Can I set this to check any of the cells ??
if ($amyrow["any cell"] == "-00-00 00:00:00") {
echo "no date";
- Original Message -
From: "Jon Haworth" <[EMAIL PROTECTED]>
To: "'Andras Kende'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, May 09,
On Wednesday 09 May 2001 14:41, hassan el forkani wrote:
> hmm..
> good question i don' t know exactly how it's done but i actually know a
> site that uses this extensively www.emp3finder.com, they concat strings
> i think it involves "massive" server configuration
It's quite simple. Read the tut
On Wednesday 09 May 2001 15:59, Ron Dyck wrote:
> I need to identify the particular name of a file upload type field:
>
>
> The elements are generated dynamically and I don't know the specific
> name of the field beforehand and of course need to read it before
> processing the form.
>
> Using $HT
Help!
Does anyone have any tips on how to deal with this problem I'm having:
PHP 4.0.5 (on Redhat Linux as an Apache module) won't properly execute
included files that are saved in the Mac file format instead of a Unix file
format. (they use different characters to signify an end of line)
The pr
What version of PHP are you using? According to the manual:
"URL support was added in PHP 4.0.5"
Moody
"Joseph Bannon" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> For some reason, I can get the image image size for an image on the local
> machine, but rem
1 - 100 of 196 matches
Mail list logo