Just a comment...
On Tuesday, September 24, 2002 1:39 PM
Jaski wrote:
> I tried to copy this file using
> move_uploaded_file($userfile, "/place/to/put/uploaded/file");
>
> and here a strange thing happened. The file was successfully
> copied BUT it had permissions like -rw-- which I interpret
Jeff,
One quick thought ...
Is your cookie domain the same domain as the URL domain you are using to
test this? If not, the browser will not send the cookie, so that is a
potential reason for this behavior.
If the domain is the same, I see no reason why this shouldn't work, but
I have two id
Thanks .. but I think you are saying exactly what I wrote I was
doing .. except that you have used exec("cp $file $path") while I
tried PHP's copy() function .. I don't think that will make a
difference...though will give that a try any way.
Forgot to mention in my previous mail that the dire
ok - no cookie exists... I have Netscape set to accept all cookies. I'm
wondering if it is in my link, or if it is a configuration error somewhere.
here is a copy of the session options from my php.ini (as copied from Zend
Server Center)
Session data handler files
Session save path/tmp
Use cook
Try:
$upload = "/path/to/copy/";
$upload_path = "$upload/$file_filename";
if (is_uploaded_file($file)) {
Exec("cp $filename $upload_path");
}
Then you have the file at /path/to/copy/, and you can do
whatever you want with it. (I'm assuming the file field of the form is
called "file", and that
on 24/09/02 2:12 PM, Peter J. Schoenster ([EMAIL PROTECTED]) wrote:
> Eeks. I hate that. I hate email that does not indicate it knows who
> I am. Why is sending one email to one user so bad? I can't think of a
> reason that would trump the personalization that I like so much. But
> I'm all ea
Hi,
(Linux RH 7.1, Apache/1.3.22, PHP 4.0.6).
I am trying to write a script to send emails. It needs to support
attachments. The point where I am stuck is after the file to be
attached gets uploaded to /tmp as /tmp/tempfilename thorough an
HTTP POST form.
I am not able to open that file direc
I started dealing with this several years ago using Perl. The closest I got
with sendmail was to check that the call worked, and if it didn't try again
up to 5 times.
For me, bottom line, if you want to do what you are trying to do, use
something besides sendmail. I switched to Qmail, and have
> if the 2 tables have the same name can't he just go
>
> INSERT INTO table1, table2 (table1.name=$name, table2.name=$name ...
> blah);
>
> think u can do that .. but again that relies on table names being the
same
> i
> guess...
No...That's not a valid query.
---John Holmes...
--
PHP Gener
opps same fields even sawwy :)
> -Original Message-
> From: Peter Houchin [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 24 September 2002 1:49 PM
> To: 'PHP General'
> Subject: RE: [PHP] Maybe a stupid question but can it be done?
>
>
> if the 2 tables have the same name can't he just go
>
> On 09/23/2002 08:08 PM, Research And Development wrote:
> > So I re-designed the script to send emails in parts. 500 emails per
> > header. But after the database reached more than 3,000 records the
> > emailing did not work at all. Sendmail refused to send to any of the
> > emails in the data
hi
i need to put a mysql_query into an email, best explained..
while ($row=mysql_fetch_rows($base)) //$base=MySQL Query
echo "\n";
echo "$row[0]\n";
echo "$row[1]\n";
echo "$row[2]\n";
echo "$row[3]\n";
well. the result is a table with users an information about them..
i want to sent this table
if the 2 tables have the same name can't he just go
INSERT INTO table1, table2 (table1.name=$name, table2.name=$name ... blah);
think u can do that .. but again that relies on table names being the same i
guess...
> -Original Message-
> From: John Holmes [mailto:[EMAIL PROTECTED]]
> Sen
Hello,
On 09/23/2002 08:08 PM, Research And Development wrote:
> Hello. I wrote a PHP script that will pull records from a database
> (emails) and then mail something to the emails in the result set. Pretty
> simple and it worked.
>
> Now that the database has over 1 thousand records I began t
Don,
First I must strongly advise that you never, ever design a Web
application that depends on the back button. This is a key
characteristic of a poorly designed application in most cases and is
worth a second look.
Glancing at the HTTP headers you are sending, two things stand out to
me. F
I have a small PHP project that currently needs to be built based on
Microsoft MSDE database (already in place) and later on perhaps move it
to MySQL..
If interested please contact me [EMAIL PROTECTED]
Thanks
Paul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:
thanks.. i will check it out
"John Holmes" <[EMAIL PROTECTED]> wrote in message
002601c26378$b4189350$b402a8c0@mango">news:002601c26378$b4189350$b402a8c0@mango...
> Just use ini_set() to set a different session.save_path() than what's in
> your PHP.ini. then the garbage collector won't touch it.
Just use ini_set() to set a different session.save_path() than what's in
your PHP.ini. then the garbage collector won't touch it. Write your own
script to do the deleting and call whatever functions you need. Add that
to your cron script to run every hour or day, and you're good to go. You
made yo
thanks john,
hmmm... i suspected as much...
i guess the way to do it would be to set a highly improbable garbage
collection and long timeout via ini_set. then use a timeout function
attached to the session which launches on expiration
cheers
christian
"John Holmes" <[EMAIL PROTECTED]> wrote in
I just run two insert to do that.
with two different sql syntax ...
Chuck PUP Payne writes:
> Ok, Let's try this again, for some reason this didn't post from early today.
>
> I have db that has two tables that I am needing to post the same information
> into both tables, I can't use ID. S
> is it possible to have a function execute when a session expires using
> php4
> sessions?
> i know how to execute a function if i control the timeout (as
mentioned
> elsewhere in this group) but what about if the session times out
itself
> using the inbuilt garbage collection routine.
> if so, a
hi,
is it possible to have a function execute when a session expires using php4
sessions?
i know how to execute a function if i control the timeout (as mentioned
elsewhere in this group) but what about if the session times out itself
using the inbuilt garbage collection routine.
if so, any ideas
I couldn't find anything in the manual, but I don't think crypt() works
in windows...or at least 95/98. Or the function may be denied in your
PHP.ini for some reason.
---John Holmes...
> -Original Message-
> From: Anthony Ritter [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 23, 20
Look at a phpinfo() page, do you have mcrypt installed? I'd have to
guess no, because that's generally how you get this error.
---John Holmes...
> -Original Message-
> From: Tom Ray [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 23, 2002 10:15 PM
> To: [EMAIL PROTECTED]
> Subject:
Just run two inserts. You can't do it with just one.
I'd have to guess you have design issues if you have to do this
anyhow...
---John Holmes...
> -Original Message-
> From: Chuck "PUP" Payne [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 23, 2002 9:45 PM
> To: PHP General
> Subje
also if I comment out $iv, I get the error "Call to undefined function
mcrypt_encrypt()" on that line.. I just don't understand why it keeps
doing this.
I'm running 4.2.2
Tom Ray wrote:
> I dipped into mcrypt about a month or so, and did this script back
> then. I had it working, it would k
I suggest you get a mailing list program if your sending to more than 1k of
users
Philip
- Original Message -
From: "Justin French" <[EMAIL PROTECTED]>
To: "Research and Development" <[EMAIL PROTECTED]>; "PHP General List"
<[EMAIL PROTECTED]>
Sent: Tuesday, September 24, 2002 1:57 PM
Sub
Hi again people! How's it goin?
Here's the question
How do I do left joins from multiple tables?
I want to do something like this:
"select a.name, b.department, c.position
from emp a
left join dept b
on a.staffno = b.staffno
left join position c
on a.staffno = c.staffno
where staffno = $staffno"
This gets discussed quite frequently.
My guess is that your ISP *may* be imposing some limitations, but more
likely your PHP script is timing out or something similar.
Justin
on 24/09/02 9:08 AM, Research and Development ([EMAIL PROTECTED]) wrote:
> Hello. I wrote a PHP script that will pull
Wouldn't round() work???
Or, if you always want to round down, why not just split it on the decimal?
Or as long as you're willing to give up year 10,000 compliance :), the year
will "always" be the first four digits.
Plenty of options :) I think I'd just use substr()
Justin
on 24/0
Just how are you going to decrypt it? Password encryption is ordinarily
one-way - you have no choice. You have to compare encrypted passwords.
-Original Message-
From: Tom Ray [mailto:[EMAIL PROTECTED]]
SI want to compare a password to a encrypted password stored in my mySQL
database usin
The interesting thing is that we has the same page on Solaris, it works
fine.
I will send the code in another email.
Thanks very much,
Siman
<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> We need to see the page.
>
> --
>
> Nicos - CHAILLAN Nicolas
> [EMAIL
Ok, Let's try this again, for some reason this didn't post from early today.
I have db that has two tables that I am needing to post the same information
into both tables, I can't use ID. So I am want to see if there is a sql
statement that will let me or how I can do with a php page.
I am sorry
Ok, Let's try this again, for some reason this didn't post from early today.
I have db that has two tables that I am needing to post the same information
into both tables, I can't use ID. So I am want to see if there is a sql
statement that will let me or how I can do with a php page.
I am sorry
Hi Doug,
on 22/09/02 9:25 AM, Doug Parker ([EMAIL PROTECTED]) wrote:
> often i use text files at my data sources, delimted by the "|" symbol.
> i simply delimit the fields of each line, then when i need to open them,
> i open the text file, populate an array with each line, then explode the
> fi
That's happened to me while trying to run a PHP script that handles
Form-based file uploading. The scripts work fine on *nix enviroments.
Any toughts?.
Oscar F.-
simanhew wrote:
>Hi all,
>
>One of my pages always crashes php.exe on Windows XP. I can not find any
>logic error in my code.
>
We need to see the page.
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
"Simanhew" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> Hi all,
>
> One of my pages always crashes php.exe on Windows XP. I can not find any
> log
I get the following line when trying to use the crypt() function in php
..
Fatal error: Call to undefined function: crypt() in c:\program files\apache
group\apache\htdocs\handleform1.php on line 16
However, when I repl
I dipped into mcrypt about a month or so, and did this script back then.
I had it working, it would kick out the encrypted data for me but today
when I test it I get a Fatal error: Call to undefined function:
mcrypt_create_iv() in test2.php on line 3.
And I don't understand why...any help would
Hi all,
One of my pages always crashes php.exe on Windows XP. I can not find any
logic error in my code.
Does anybody have any experience to handle the problem like this ?
Thanks in advance,
Siman
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/
I am using php-4.1.2 and apache-1.3.26. I am allowing users to download
files from my site. The problem is that the file is not downloded fully.
After downloading say 84%, the counter stops and download manager says that
the download is complete. This problem is intermittent. Sometimes the file
is
> I want to compare a password to a encrypted password stored in my
mySQL
> database using password('password'), what's the best way to compare
the
> two?
>
> Encrypted the password sent by the user and compare or pull the
password
> from the database based on username, decrypt it and then compar
I want to compare a password to a encrypted password stored in my mySQL
database using password('password'), what's the best way to compare the two?
Encrypted the password sent by the user and compare or pull the password
from the database based on username, decrypt it and then compare?
--
Taylor,
You can use: quotemeta($string) for . \\ + * ? [ ^ ] ( $ ).
hth. Oscar F.-
Taylor York wrote:
>Is there any string function to put backslashes on any characters that are
>used in regular expressions? IE ()[];.^*$ etc.
>
>
>Thank you,
>Taylor
>
>
>
--
PHP General Mailing List (http:
I've had no problems using qmail-inject and MySQL to send over 100K emails
in a day. I doubt it's an MySQL problem unless you've done something
drastically wrong; perhaps you're bandwidth limited?
-Original Message-
From: Research and Development [mailto:[EMAIL PROTECTED]]
Hello. I wrote
do ya self a fav. and look @ phpbuilder, phpwizard etc and and a look will
take ya 2 mins to find what your looking for :)
> -Original Message-
> From: Research and Development [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 24 September 2002 9:18 AM
> To: PHP General List
> Subject: [PHP] ba
Hello. Can someone point me to an example of a script that backs up de
database and the web directory and its files?
Thanks in advance.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello. I wrote a PHP script that will pull records from a database
(emails) and then mail something to the emails in the result set.
Pretty simple and it worked.
Now that the database has over 1 thousand records I began to experience
performance problems. I figured that my problem was that Sen
>"Chris Andrew" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> I use a script which initially sends a friendly message to a browser, and
>> then goes about some lengthy processing. The browser is IE and I am aware
>of
>> the 256 byte issue.
>>
>> The script w
Hi,
I am having trouble with sessions. I've created a user login/password
section that uses session variables. Within this section, I have a form
where the user enters data and submits. When the user clicks on the Browser
back button, they should get back to the form with their data intact. T
ok, now it's clear why i must use '|' instead of '+'.
i still couldn't get what happens with bits but you
don't have to explain more. i know that it's about
bitwise operators, and how they handle numbers. no!
ok! i just got it!
thank you again.
--- bob parker <[EMAIL PROTECTED]> wrote:
> Coupl
You should be working with UNIX timestamps here. Convert the dates to human
readble only after you've done the calcuations.
-Kevin
- Original Message -
From: "Patrick" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 23, 2002 2:38 PM
Subject: [PHP] date functions
>
Hi,
The upload_tmp_dir in php.ini:
; Temporary directory for HTTP uploaded files (will use system default
if not
; specified).
;upload_tmp_dir =
So it uses c:\windows\temp
And file upload:
; Whether to allow HTTP file uploads.
file_uploads = On
The directory is valid and Apache should have
On 23 Sep 2002 at 8:14, [EMAIL PROTECTED] wrote:
> I have set up a section of my company site for use by authorized dealers
> only. I am currently using mysql authorization, which works for the
> first page, but if someone were to type in the url of an underlying page
> they would be able to get i
I did go back to PHP 4.2.2 to double check and it doesn't work there
either.
> -Original Message-
> From: Jose Fandos [mailto:[EMAIL PROTECTED]]
> Sent: 23 September 2002 21:12
> To: [EMAIL PROTECTED]
> Subject: [PHP] Problem uploading a file (bug in PHP 4.2.3 !?) worked
with
> 4.2.2
>
>
Here.. I wrote this simple recursive function for a project a while back.
Enjoy..
$val)
{
if (is_array($array[$key]))
{
$depth++;
matrixdepth($array[$key], $depth);
}
else
{
break;
}
}
return $depth;
}
Patrick
Off the top of my head... Convert both date1 and date2 to unix timestamps,
and subtract one from the other. That will give you the number of seconds
between them. Then, convert to hours, minutes, etc as required.
Peter
At 10:38 PM 9/23/2002 +0200, Patrick wrote:
>i got 2 dates and
What are the settings for upload_tmp_dir and file_uploads in the php.ini on
the windows box? Does the Apache user have permission to write to that
directory if it's valid?
---John Holmes...
- Original Message -
From: "Jose Fandos" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday,
i got 2 dates and i want to know how many minutes between em,, like:
$date1 = date("Y-m-j H:i");
$date2 = date("Y-m-j H:i", strtotime("now") + 1800);
$minutes = date_something($date1, $date2);
echo "there are $minutes between, $date1 and $date2";
regards
patrick
--
PHP General Mailing List
Yes. See the online manual notes in the Socket Functions section for
links to examples.
On Mon, 23 Sep 2002, Martin W Jørgensen wrote:
> Is it possible to read and write to multiple sockets at once with php?
>
> Can anyone please answer that question?
>
>
>
> --
> PHP General Mailing List (http
Is there any string function to put backslashes on any characters that are
used in regular expressions? IE ()[];.^*$ etc.
Thank you,
Taylor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have a logic problem:
I have a complicated query. The main thing is that I have an ID, and for a
particular ID, I may have between 1 to 3 rows returned. The rows returned
are variable, that is for 1 particular ID there might just be 1 row and at a
later time it may have 3 rows.
But what I nee
Hi,
I was working on some code and couldn't get the following form to return
anything under Windows XP with Apache 1.3.26 and PHP 4.2.3.
I've just tried in a Solaris machine with same versions of Apache and
PHP and it works just fine. Same with a Linux machine running Red Hat
and same versions o
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Miles Thompson) wrote:
> Each evening I distribute a newsletter to approx 500 subscribers, and I
> want to stamp each copy I send with the name, email address and subscriber
> number of the recipient. I've not done any programmatic PDF manipul
Is it possible to read and write to multiple sockets at once with php?
Can anyone please answer that question?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Use a foreach syntax.
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
"Stefan" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> Hello,
> I´m trying to figer out how to get the number och dimensions of a array..
> It isn´t th
On Sun, Sep 22, 2002 at 06:03:50PM -0500, Michael Sims wrote:
> > >session_register("bunt");
> >phpinfo();
> >?>
> >
> >This is just a simple example. The problem is that the script produces
> >no output at all when called with the browser.
>
> Is it possible that display_errors is set to "Off" i
Hello,
I´m trying to figer out how to get the number och dimensions of a array..
It isn´t the problem to get the count of elements with count(), it´s the
number of dimensions i am stuck at :(
Any tips would be appreciated.
Best regards,
Stefan
--
PHP General Mailing List (http://www.php.net/
What is the right name to use in apache's (2.0.41-dev) IfModule
directive to test if the php4 module is loaded? I'm including
the file below via httpd.conf's Include statement but the
part between the IfModule is being completely ignored:
AllowOverride None
order deny,allow
Deny from
Hi,
In browsers, my php pages are cached. All the code that is returned by php
are stored. In version 4.1 this not ocurred, anybody can help me?
Thanks
Rapha
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Joshua,
I learned a ton by reading this tutorial. See if it helps...
http://www.zend.com/zend/tut/tutorial-Ferrara.php
Joseph
"Joshua E Minnie" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hey all,
> I am looking for a way to search a MySQL DB based
I have some code that a user can set a description about an item to be
posted, and then add some image files of the item.
Its a 3x3 frame of fields, along with an 'include'
line for each one.. only selecting a file with the 'Browse' button, or
entering a website manually will trigger this inc
Hi there,
I am trying to put text into an image. There are some problems where I do
not find a solution for.
The image is a jpg and stored on the filesystem. Now I would like to create
a stamp in trutype font
verdana with a name. Just the text on the image.
I experianced following problems:
o T
Can anyone help with this?
I am relativly new to PHP and am trying to use variable numbers of
parameters to functions using the func_get_arg().
However, I am unable to determine the correct syntax for passing by
reference via the variable arg list.
Trevor
/* This Works Fine */
function Foo($In
Hi all,
The following code will drive me mad coz it always shows the JavaScript functions and
I'd like know why:
error_alert();
goHistoryBack();
Thanks in advance
Peace & Love
skitum
Hey all,
I am looking for a way to search a MySQL DB based on a users input
string. The string would be searched on particular fields in my DB, which
is already setup. The problem I am having is that I want to be able to
return strings that match all *or* part of their string. Right now it
Is there a way to disable cookies not for all sites but on a per site basis? If I do
an ini_set() on session.use_cookies will all sites be afftected or only the site I am
on?
Thanks,
Rich
I am not sure how open_basedir restricts myself. In fact I have problems
with files that begin with "../".
I can not include those files, and get the following
Warning: open_basedir restriction in effect. File is in wrong directory
in /home/vwww/x/www/htdocs/conpresso/news/aktuelles/index.p
Speed
Accessability
Features
Security
Performance
Simplicity
Reusability
Indexing
Record-Locking
To name a few.
however, in your situation, it's an existing application which is working
great and which no one has any complaints over. If it ain't broke, don't
fix it.
For your next application,
Thanks for the answers all, I`ve combined the floor and the precision
answer and it does exactly what I want it to do.
Cheers,
Tom
-Original Message-
From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: 23 September 2002 16:24
To: Tom; [EMAIL PROTECTED]; Support @ Fourthrealm.com
S
I'm using 4.2.2 on a Linux 7.1 system. The problem that I am encountering
is copying the contents out of a pdf file and writing them to a new file.
I've tried fopen() in concert with fread() and fwrite() with no success.
The file is created, but the file size is markedly smaller. I've also tried
I was doing this too with good old AWK CGI scripts and text data files.
Once I imported the data into MySQL I said, "Well this is not much
benefit." Then I started sorting. Then I accessed the information from a
different application. Then I wrote a maintenance application so my
customer could
"Doug Parker" <[EMAIL PROTECTED]> wrote:
> i was wondering
> if there is anything i'm not thinking of that perhaps would push me to
> favor using php and mysql instead of the plain old text file.
It sounds like you're basically asking why one would want to use a
relational database. Standardiza
Well, one major advantage I have found using MySQL verses txt files is the
simple implementation of transactions, if you are doing multiple
transactions that are related, it is nice to simply "rollback" all other
statements if one fails or "commit" if they work. Of course you can do this
other way
often i use text files at my data sources, delimted by the "|" symbol.
i simply delimit the fields of each line, then when i need to open them,
i open the text file, populate an array with each line, then explode the
fields for each to get the corresponding values. i use this method for
cata
> try jext ... http://jext.org
> has a good PHP code browser and can colourise C# and PHP.
I appreciate the suggestion but I wanted to know specifically about
using VStudio .NET as an IDE for PHP.
> Don't know what other features you'd want for C# ...
In VStudio .NET, the RAD features, for o
If you end up using floor(), watch for floating point errors. You could
expect your division to come out to a whole number, say 12, but be
represented by 11.999 in the computer. So that'll floor() to 11. You
can add a fluff to your division to counteract this:
$years = floor($years + ($th
Thanks Geoff,
I tried what you suggested, but now the db burps the stuff back. Perhaps, for
two lousy lines of code, I'll leave it as it is. Too much trouble to figure
why it doesn't like it without actually having the site live. Right now
everything passes through 'localhost' which has been e
Yes that's right.. It's a standard HTTP/1.0 command I'm pretty sure so yeah.
Actually referring to the rfc docs it could date back to even eariler HTTP
standards too..
Hmm.. Yeah just don't send anything but header's and you can successfully
redir. with that header("Location: xxx"); function..
Does anyone use VStudio .NET as your IDE in developing
PHP Scripts? If so, have you found a way to make it so
that it understands PHP? In particular color coding and the
understanding of where functions start and end (for the
solution explorer, etc).
I'm starting to get into C# and I'd like to u
well it depends how you want to go about it..
I have done something exactly like this, this morning.. :-p
Firstly.. you can use a normal SQL SELECT statement, but use GROUPing to
seperate the groups in this case and ORDER them alphabetically or
something..
Next.. You can do something like this:
OMG..
This is the second question tonight I answer that I was just working on
today :-p
hah..
Ok.. simple.. here's my code I used today for www.operation-scifi.com/lobby
Thing is.. It's about as understandable to other's as hieroglyphics..
Therefore.. a simple solution..
do this:
Substi
Hi Tom,
Try this:
$years = round($years + ( $themonth / 12 ));
From the manual:
float round ( float val [, int precision])
Returns the rounded value of val to specified precision (number of digits
after the decimal point). precision can also be negative or zero (default).
ceil() and floor()
You cann't from php but you can from javascript.
For exemple:
file -
Function insert_value(){
Document.form_name.text_box_name.value = javascript_value;
}
---
Now:
I ran into a problem with sessions on sourceforge, which uses load
balancing. What's probably happening for you is that each server is looking
in it's own /tmp directory for the sessions. So, a user logs on from a page
on Server A, which creates a good session file on Server A for the user.
Now, t
> If I use sessions (not session cookies) by issuing a session_start() and
> then log in to an area of my web site, I understand that the session will
> last until either I close my browser or issue a session_unset() followed
by
> a session_destroy().
>
> If I log in and walk away from my PC, will
You could cast it to an int, although the manual warns that you can get
spurious errors upon casting an unknown fraction, so be careful.
$year= (int) ($years);
Mark
-Original Message-
From: Tom [mailto:[EMAIL PROTECTED]]
Sent: 23 September 2002 15:47
To: [EMAIL PROTECTED]
Subject: [PH
Hi all,
I have a line of code that assigns a new year number: -
$years = $years + ( $themonth / 12 );
but sometimes $years == 1998.08
or
$year == 2002.75
etc...
I cant find anything like a round() or floor() function in PHP so that year
would be 1998 or 2002 only.
Does anyone know
Hello,
I run a site that operates across 4 load balanaced servers and we seem to be
getting a problem where session files are created with 0 bytes (contain no
data) on 2 of the 4 servers. All the servers are FreeBSD 4.5 running Apache
1.3.26 and PHP 4.2.3. Any suggestions would be appreciated.
Once you go to https://www.yoursite.com
you are at a completely new url as far as the browser is concerned so
you need to include using the full
http://www.yoursite.com/yourinclude.inc syntax or throw another copy of
your include db file in your directory for secure serving
Not sure if this is wh
1 - 100 of 135 matches
Mail list logo