Hi all -
I find I spend a lot of time looking up functions in the manual
and even with my local copy it takes awhile (click click, page down,
click). So I wrote a script to run through the PHP documentation and
generate a heiarchial directory of IE bookmarks for all of the functions.
I j
hi there
I am kind of a newbie to php
so probably I am doing it all the wrong way - if - please tell me
ok heres my problem:
the script:
I have a user-group-administration script (php4), that loads data from
a textfile and then eables the admin to delete or create new user-passwords.
the script
Hello,
I'm working on a file uploading script, but I need to know if there is a
way to know what's the progress of the file, so I can make la a progress
bar?.. Any ideas? Please?.
Thanks in advance.
Oscar F.-
>From: "Oscar F" <[EMAIL PROTECTED]>
> Sent: Wednesday, October 16, 2002 2:17 PM
> Subject: [PHP] Progress bar for uploading files
> I'm working on a file uploading script, but I need to know if there is a
> way to know what's the progress of the file, so I can make la a progress
> bar?.. Any ide
Actually, I don't think you can make a progress bar function correctly for a
file upload. The file is uploaded before control is ever given to the
script.
- Original Message -
From: "Oscar F" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 16, 2002 1:17 PM
Subject: [P
Take an md5 of the entire file contents and store that in your form that
get's displayed. Then test if it matches the file when you go to make
the changes. Every time you change the file the md5 will change. See
below...
-js
Sample script:
marcel wrote:
> hi there
> I am kind of a
I needed that once ... I uploaded files using ftp functions .. And then
a pop-up comes checking the size on the remote host .. And comparing
with the size on the local machine, that way a colud make that the pocp
up displays a bar and refreshes every n seconds, displaying the bar with
a longer siz
I guess the answer is obvious but can't find it in the manual.
Is it possible to have a variable in a class that is shared by all
instances. I thought 'static' would do it but apparently not.
Christophe
--
Christophe Barbé <[EMAIL PROTECTED]>
GnuPG FingerPrint: E0F6 FADF 2A5C F072 6AF8 F67A 8
I posted this question on another list and received a response consisting of
potentially helpful code. It has not been tested on my end, but I thought
I'd pass the information along.
Share the wealth.
dwalker wrote:
> What is the easiest method of determining how and when to implement
> brows
christophe barbe wrote:
>
> I guess the answer is obvious but can't find it in the manual.
>
> Is it possible to have a variable in a class that is shared by all
> instances. I thought 'static' would do it but apparently not.
I don't recall such a thing, but if you can't find an option for
a cl
Robert Cummings wrote:
>
> christophe barbe wrote:
> >
> > I guess the answer is obvious but can't find it in the manual.
> >
> > Is it possible to have a variable in a class that is shared by all
> > instances. I thought 'static' would do it but apparently not.
>
> I don't recall such a thing,
On Wed, 16 Oct 2002, Marek Kilimajer wrote:
That is probably generated by IE when it receives nothing. Check
what show source with Netscape on lynx -source gives you.
> That is NOT nothing. This is comming from your page, so check your code.
>
> Angel Gabriel wrote:
>
> >I get
it is generated by IE..notice the character set..
Have other browsers been used to verify?
On Wed, 2002-10-16 at 14:40, Mika Tuupola wrote:
> On Wed, 16 Oct 2002, Marek Kilimajer wrote:
>
>
> That is probably generated by IE when it receives nothing. Check
> what show source with
I'm in the process of writing a very very simple web-based email client,
just for my personal use, so I can perm-delete all the spam that comes
in through the day on my home account before i get home.
On the very first connect, its great.. connects, does a 'uidl' which
lists all the mail ID's
i solved the issue using sudo and stuff..
the $pass and $user have a replacement of anything less "a-zA-Z0-9 "to ""
i guess that should do it..
THANXS!
"Shane Wright" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Scratch this.. as some of you probably have already picked up on.. I
failed to terminate my 'top' line ..
Sorry for that 0:)
-J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> For all those who don't know my question from yesterday, I
> have a form where I can upload up to 9 files at a time.
> Unfortunately, only the first 5 of those files are being
> uploaded at any given time.
I haven't specifically checked your program logic but I believe that
this is wher
> Just wanted to let everyone know:
>
> PHP version is 4.2.1
> Apache is 1.3.24
>
> Running WindowsXP Pro
Oh, yeah, that.
My dev environment is almost exactly the same.
CYA, Dave
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yeah, this has been worked out already - turns out I was looping on the
file elements themselves (size, name, tmp_name, etc) isntead of the
actual number of files.
Thanks for your reply tho! :)
-J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/uns
How do I have to install PHP with Apache 2.0.43 as CGI module so
that every user can execute PHP scripts from every point under their
home directories?
And how can I configure Apache so that they do not need to start
every PHP script with something like #!/usr/bin/php ..?
--
Jochen Kae
Hi
I am wanting to use PhpMyAdmin for my project . I am developing using
PHP and MySQl and the OS is Jaguar
I have downloaded the latest version of phpmyadmin and have made
necessary changes in the 'config.inc.php' file
When I try to access PhpMyAdmin using "
http://localhost/~pgarcha/phpmyadm
What web server are u using?
If you are using apache you need to make sure you have the user
directive set up properly for this.
Plus, in the user directory u need to have the appropriate directory
too.
By default apache has it set to look for public_html...
So in the user directory you would
Hi
i have recently upgraded from OS 10.1.5 to Jaguar. I previously had 2
users on the system. and using the main login screen I could select the
user that I wanted to log on as. Now that I have installed Jaguar ...I
do not get any such screen to select user and so I am unable to log on
the o
sounds like an apache config problem to me, if it is not even getting
there... perhaps you should check the httpd.conf file to look into the
UserDir settings to make sure the path is a web accessible path.
-Brad
Pushpinder Singh Garcha wrote:
> Hi
>
> I am wanting to use PhpMyAdmin for my projec
Hi,
This doesn't seem to be a PHP error at all, but rather Apache telling
you that it's unable to find your files. Are you sure you're pointing
your browser to the correct location? Try putting a simple HTML file in
your PHPMyAdmin directory and calling that one up. If you still get an
error, the
Try something for me change the localhost to 127.0.0.1
Also look at the public_html settings for each user...
Timothy Hitchens (HiTCHO)
[EMAIL PROTECTED]
Pushpinder Singh Garcha wrote:
> Hi
>
> I am wanting to use PhpMyAdmin for my project . I am developing using
> PHP and MySQl and the OS
On Wed, 16 Oct 2002 18:08:30 -0400 Pushpinder Singh Garcha <[EMAIL PROTECTED]>
wrote:
> Hi
>
> I am wanting to use PhpMyAdmin for my project . I am developing using
> PHP and MySQl and the OS is Jaguar
> I have downloaded the latest version of phpmyadmin and have made
> necessary changes in
Pushpinder Singh Garcha said:
> Hi
>
> i have recently upgraded from OS 10.1.5 to Jaguar. I previously had 2
> users on the system. and using the main login screen I could select the
> user that I wanted to log on as. Now that I have installed Jaguar ...I
> do not get any such screen to select u
On Wednesday, Oct 16, 2002, at 23:08 Europe/London, Pushpinder Singh
Garcha wrote:
> I am wanting to use PhpMyAdmin for my project . I am developing using
> PHP and MySQl and the OS is Jaguar
> I have downloaded the latest version of phpmyadmin and have made
> necessary changes in the 'config.i
Well I sorted out the permissions on that directory structure, and the web
based cgi performed as the command line one did, I havent had too long to
find out if any weird things are going to start happening with the mail
apps, but I'm hopeful that this was the solution...
Thanks for all the help
howdy
am just courious to see what approach others would take given this senario.
I have a form which for the most part is basic to follow but I have one
field where people can enter any value up to 100k in now what has to happen
is if they enter anything that equals 20k or lower is taken care
Suggestions:
1) Use javascript to determine the script to run--slow and prone to
attacks because you have little control over
2) Code different functions depending on the size of the text
3) Include a different file with the code to execute depending on the
size of the text
Cheers,
Marco
On
(I am new here, so excuse my recycled questions. Is there an archive?)
What's a primo date/time display script that gets server time and adjusts to
the client time zone automatically? Most I've seen have hard-coded GMT
offsets, which I don't want.
Thanks
Rick
--
PHP General Mailing List (ht
You can store the variables you expect to erase in a sub-array.
$_SESSION['temp']['xx1'] = ...
$_SESSION['temp']['xx2'] = ...
$_SESSION['var'] = ...
Then, to get rid of the "temp" vars, you can use:
unset($_SESSION['temp']);
---John Holmes...
> -Original Message-
> From: Paonarong Bua
Sounds like a good time for a switch to me...
---John Holmes...
> -Original Message-
> From: Peter Houchin [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 16, 2002 8:19 PM
> To: php_gen
> Subject: [PHP] to use switch or not to use switch
>
> howdy
>
> am just courious to see what
the answer can be as simple as:
--
Maxim Maletsky
[EMAIL PROTECTED]
On Wed, 16 Oct 2002 20:39:50 -0400 "John W. Holmes" <[EMAIL PROTECTED]> wrote:
> Sounds like a good time for a switch to me...
>
> ---John Holmes...
>
> > -Original Message-
> > From: Peter Houchin [mailto:[EMAIL
sorry, strlen(), not sizeof().
--
Maxim Maletsky
[EMAIL PROTECTED]
On Thu, 17 Oct 2002 03:03:13 +0200 Maxim Maletsky <[EMAIL PROTECTED]> wrote:
>
> the answer can be as simple as:
>
>$k = sizeof($field);
>
> if(...)
> $file = 'this';
> elseif(...)
>
Hello
I'm a newcomer to PHP and I wish to know how to get the contents of a file
located in an URL if the parameter allow_url_fopen is "no value" in the
php.ini file.
Does this parameter, if is "on", affect the security of the server?
Thanks in advance
Alfonso
--
PHP General Mailing List (
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hey,
I saw that you fixed this but have you ever thought of using the imap_*
functions for this? It'd be a lot easier and it does work on pop3 servers.
~Paul
On Wednesday 16 October 2002 05:02 pm, Jason Young wrote:
> I'm in the process of writing a
Oh.. I had no idea.. I suppose I will be looking that up then ;-)
Thanks for the heads up!
-Jason
Paul Nicholson wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hey,
> I saw that you fixed this but have you ever thought of using the imap_*
> functions for this? It'd be a lot easie
Thanks to all who responded to my qry,
yes it worked well as per my requirements
regards
Manisha
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hey,
Try:
- -
foreach ($_SESSION as $k => $v) {
if(($k != 'errmsg') && ($k != 'errcount')) {
unset($_SESSION[$k]);
}
}
- -
HTH!
~Paul
On Wednesday 16 October 2002 04:04 am, Paonarong Buachaiyo wrote:
>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Glad I could help...I did something like what you're doing and I used the
imap functions. If you're conecting to a Redhat pop3 server you have to add a
special param to the connect function...let me know if you need the command
and I'll look it up
Http authentication is probly not what you would want to use. Especially
if you want to program in timeouts, you would be better off using session
based login variables. Cookies are even better with an encrypted pasword
that has a windows of time that you have to goto other pages to renew.
Why
howdy
can some one please tell me why i can't do this
elseif ($_POST['cost'] <=4 && >=20001){...}
but i can do this
elseif ($_POST['cost'] <=4 && $_POST['cost'] >=20001){...}
Cheers
Peter
"the only dumb question is the one that wasn't asked"
--
PHP General Mailing List (ht
Because that's not the way PHP works. You aren't comparing anything on the
second half of the elseif statement.
Keith Vance
Vance Consulting LLC
www.vanceconsulting.net
(206) 355-2399
Try U.M.A. at http://uma.sourceforge.net/
On Thu, 17 Oct 2002, Peter Houchin wrote:
> howdy
>
> can some one
Because the first example is not correct syntax?
I wasn't aware that the first element in a comparison could ever be left out, is it
that way in other languages?
-Original Message-
From: Peter Houchin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 17 October 2002 2:15 PM
To: php_gen
Subject
Hi guys and gals. I'm having a problem with setting a cookie on IE 6.
I'm running RedHat 7, Apache 1.3.26 and php 4.2.3. The cookie sets fine
in all other browsers (IE5, Netscape 4 and up, Opera, Mozilla, etc.) but
on IE 6, not even my session cookie sets. I've tried all of these
setcoo
ok thanks just would have thought it would have known to compare it
with out it having to be there first ... as in
if $_POST['cost'] is <=4 AND >=21
but i'll live with the fact it doesn't read it like i do :)
Cheers
> -Original Message-
> From: Keith Vance [mailto:[EMAIL
Arr.. Microsoft and their attempt to get security and privacy to
their clients.. have a look in the ->view -> privacy report... this
will give you a starting point...
John Nichel wrote:
> Hi guys and gals. I'm having a problem with setting a cookie on IE 6.
> I'm running RedHat 7, Apache 1.3.
opps that should read
if $_POST['cost'] is <=4 AND it is >=21 then ...
>
> ok thanks just would have thought it would have known to compare it
> with out it having to be there first ... as in
>
> if $_POST['cost'] is <=4 AND >=21
>
> but i'll live with the fact it doesn't
John,
Can you see if this works:
header("Set-Cookie: foo=bar");
If not, then check the configuration for IE6. I seem to recall hearing
that cookies are disabled by default for sites that are not P3P
compliant? Or, perhaps that was for third-party cookies only. At any
rate, I seem to recall s
As per my earlier commments about seeing the privacy report this will
answer all your questions regarding cookies.. also you can allways
telnet to the host eg..
telnet {host} 80
get /{page.html} http/1.0
host: {yourdomain.com.au}
{enter}
{ctrl d}
You should then see the header information as w
Chris,
Nope, that didn't work either. I set IE6 to accept all cookies, no
matter what, but still no go. Has anyone been able to set a cookie in IE6?
Chris Shiflett wrote:
> John,
>
> Can you see if this works:
>
> header("Set-Cookie: foo=bar");
>
> If not, then check the configuration f
Timothy,
The headers are coming across fine. I looked in the privacy report,
and told IE to accept all cookies from my domain, but it still isn't
registering them. If it wasn't for the fact that I've had over 100,000
page views by IE6 this month, I wouldn't give it a second glance.
Cateri
My logging application is feeding a MySQL database with data records
that are time stamped with GMT time. I would like to query the database
for records matching local time(eg. all records created on oct
17,2002 local time). I would prefer if the records could be formated
in local time when ret
how to install apache with xml ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Try something like:
Fields("AccountActivationDate"), 'l, F jS
Y H:i:s') ?>
THIS E-MAIL MESSAGE AND ALL ATTACHMENTS TRANSMITTED HEREWITH ARE TRADE
SECRET AND/OR CONFIDENTIAL INFORMATION INTENDED ONLY FOR THE VIEWING AND
USE OF ADDRESSEE. IF THE READER OF THIS MESSAGE IS NOT THE INTENDED
RECIPIE
You can use this function : get_object_vars to retreive vars from a class..
Here is the example from phpdoc :
x = $x;
$this->y = $y;
}
function setName($name) {
$this->name = $name;
}
function ReadPoint() {
return array("x" -> $this->x,
Local to the client or local to the server?
-Original Message-
From: Jason [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 17 October 2002 3:26 PM
To: php_gen
Subject: [PHP] MySQL GMT --> Local time
My logging application is feeding a MySQL database with data records
that are time stamped w
To the server.
On Thu, 17 Oct 2002, Smith, Benjamin wrote:
> Local to the client or local to the server?
>
> -Original Message-
> From: Jason [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 17 October 2002 3:26 PM
> To: php_gen
> Subject: [PHP] MySQL GMT --> Local time
>
>
>
> My logg
Hi all.
Wondering if anyone can shed some light!
I have a problem whereby I need to define the weight of a selection of
items in a shopping cart in order to calculate a shipping cost.
Basically I have 5 products (at the moment) which are of set weights.
What I want to do is add up the amount of i
Hi
I need to be able to see logs of all mysql queries from php scripts on
my server.
I have a multitude of virtual hosts on my RedHat server, with many mysql
db's, and would like to be able to see what queries are done against the
db's from which scripts. The reason being is that I suspect that so
Max Buvry wrote:
> My script php follows this steps :
>
> ignore_user_abort(0|1)
> Compute the key -> v
> BEGIN WORK
> UPDATE the first bank account with v (credit)
> sleep(300)
Make sure you have long enough timeout limit.
> UPDATE the second ban
I had the same thing just two days ago. This is what happend:
I have some code using include files in this way:
1
The include file looks like
1
The problem was in line 3 of the include file. If there is a line feed
behind ?> , the code does not work -> gives a blank page just like yours.
R
It seems that the problem is with IE, and characters in the domain name.
This is a beta site (of one of my existing sites), and I have the
virtual host name set as "by-tor_v70". I tried setting the cookie on
another virtual host running on the same box, and it worked. So, I
removed the und
On Thursday 17 October 2002 14:34, Steve Jackson wrote:
> Hi all.
> Wondering if anyone can shed some light!
>
> I have a problem whereby I need to define the weight of a selection of
> items in a shopping cart in order to calculate a shipping cost.
> Basically I have 5 products (at the moment) wh
101 - 167 of 167 matches
Mail list logo