php-general Digest 5 Jul 2003 06:54:22 - Issue 2157
Topics (messages 154011 through 154035):
Re: Snarl, hiss, growl (frustration)
154011 by: Robert Cummings
154012 by: Rasmus Lerdorf
154020 by: Robert Cummings
154021 by: Rasmus Lerdorf
154022 by: Kyle
Lpa wrote:
Hey,
I must send datas threw a form, but I dont want to have a submit button.. Is
there a way to 'simulate' the click of a submit button?
Thnx for your help
Laurent
You could use Javascript, i.e. when cursor leaves the last form element
use the relevant function (sorry can't remembe
Can anyone think of any security caveats with regard to turning
output_buffering on?
I can't, but it's too hot to think straight these days
Tnx.
--
Paul Chvostek <[EMAIL PROTECTED]>
it.canadahttp://
Hello,
On 07/04/2003 08:38 PM, Reuben D. Budiardja wrote:
First let me say that I am not sure if this is PHP problem or Oracle. I posted
this earlier in php-general, but after looking at the available mailing lists
again, I thought this forum would be more appropriate. Sorry if someone get
doub
Hello,
First let me say that I am not sure if this is PHP problem or Oracle.
I have a class that contains API for using postgresql, mysql, or oracle
database so switching database should be "in theory" just changing an
argument for me.
To make this sort, let just say that the return of a SELE
Hello,
I have a problem trying to show a checkbox list and have some of the
boxes checked and not others. Here are the details:
table: features
rec_id | fName
-
1 | Window
-
2 | pool
-
3 | fence
-
4 | Dri
Hello,
I run courier-imap, but I have problems when trying to build php with
imap support. It gives the error message
configure: error: Cannot find imap library (libc-client.a). Please check
your IMAP installation.
Anyone with ideas?
-Fisayo
--
PHP General Mailing List (http
Hey,
I must send datas threw a form, but I dont want to have a submit button.. Is
there a way to 'simulate' the click of a submit button?
Thnx for your help
Laurent
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Friday 04 July 2003 14:35, CDitty wrote:
> Can someone please show me how to change the display font to a TTF in this
> code? I looked at the online manual under imageloadfont(), but I did not
> understand it enough. I have the MS TTFs installed on my server and they
> are working correctly.
On Saturday 05 July 2003 00:12, Webmaster wrote:
> Have not yet been able to figure out how to get a more descriptive error. I
> know there has to be a better way to get exact message, but just haven't
> figured it out yet.
Look in php,ini (and crank up error reporting to full) and/or read the
r
On Fri, 4 Jul 2003, Thomas Hochstetter wrote:
> Hi guys,
>
> This might just be off the topic, but here it goes anyway:
>
> How can one multi select check boxes and pass them through in php,
> without getting mixed up with variables (email multi select style).
Read these faqs:
http://www.php.
Hey folks,
Iam trying to call the ssh program and have it connect to a remote host and
authenticate, however I havent been able to do it. I used this script but all
i get when I run it on port 80 is:
command returned 255
At the error log i specified i get:
Permission denied, please try agai
On Fri, 4 Jul 2003, Jeff Schwartz wrote:
> OK, so Apache 2 is out. Is there any reason not to go with RH 9.0? Any known
> problems?
It should be fine. Linux is pretty much Linux. The biggest differences
between distros and distro versions are at the GUI level and in the set of
applications they
On Fri, 4 Jul 2003, Kyle Babich wrote:
> FYI there were no newlines involved in my program. (go back to the
> message and read the code)
How did you create the file in the first place? Most editors will
automatically add a carriage return. Even if you had your code create it,
if afterwards you
FYI there were no newlines involved in my program. (go back to the
message and read the code)
On Fri, 4 Jul 2003 12:06:46 -0700 (PDT), "Rasmus Lerdorf"
<[EMAIL PROTECTED]> said:
> On Fri, 4 Jul 2003, Robert Cummings wrote:
> > Undoubtedly the above will work as we both know, the output will be
>
On Fri, 4 Jul 2003, Robert Cummings wrote:
> Undoubtedly the above will work as we both know, the output will be
> "123"; however, if you look at the original code in question, there is
> no "\n" tailing the output written to the counter file and thus the
> increment works fine (unless of course wh
On Fri, 2003-07-04 at 13:13, Rasmus Lerdorf wrote:
> On Fri, 4 Jul 2003, Robert Cummings wrote:
>
> > On Fri, 2003-07-04 at 12:44, Rasmus Lerdorf wrote:
> > > The difference is that you are getting a string from the file and not
> > > casting it to an integer. You could also have fixed it by doi
Hi,
I am making a small PHP script for managing a simple mailing list. The
PHP script is added in the bottom of this message.
This PHP script works great on IIS 5.1 with PHP 4.3.0, witch I have
installed locally on my system to test my scripts. But when I transfer
the script over to my host serve
Hi,
Could someone let me know if it is possible to pass a resultset of a query
to a single variable so it can be included as the message part of the mail
function?
Thanks!
Phil Dowson
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
OK, so Apache 2 is out. Is there any reason not to go with RH 9.0? Any known problems?
Jeff
-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
Diana wrote:
> Hi,
> that sounds really impressive. I'm using Redhat 9 with
> the stuff from their Edition, that means Apache 2 and
> php together. Never had any issues (so far.keep my
> fingers crossed). The server is not under heavy load,
> but it is indeed a "production server". I know it
Hi Thomas.
You need to name each checkbox a different name.
alternatively, you can name them with array naming convention.
i.e.
1-1
1-2
2-1
2-2
Checking off 1-1 and 2-2 would create the following variables (assuming
register_globals is on) in the target php script for the form:
$array1=array
Hi,
that sounds really impressive. I'm using Redhat 9 with
the stuff from their Edition, that means Apache 2 and
php together. Never had any issues (so far.keep my
fingers crossed). The server is not under heavy load,
but it is indeed a "production server". I know it is
not recommended, but for
Hi guys,
This might just be off the topic, but here it goes anyway:
How can one multi select check boxes and pass them through in php,
without getting mixed up with variables (email multi select style).
Thomas
On Fri, 4 Jul 2003, Robert Cummings wrote:
> On Fri, 2003-07-04 at 12:44, Rasmus Lerdorf wrote:
> > The difference is that you are getting a string from the file and not
> > casting it to an integer. You could also have fixed it by doing:
> >
> > $counter = (int) fread(...);
>
> The cast isn't
On Fri, 2003-07-04 at 12:44, Rasmus Lerdorf wrote:
> The difference is that you are getting a string from the file and not
> casting it to an integer. You could also have fixed it by doing:
>
> $counter = (int) fread(...);
The cast isn't necessary, PHP happily transforms it for him when he
app
The difference is that you are getting a string from the file and not
casting it to an integer. You could also have fixed it by doing:
$counter = (int) fread(...);
Note however that you have a nasty race condition in your script. If you
get concurrent hits they will all read the same counter
Hi,
If the file you are including is of your own authorage (I know that
isn't a word, but whatever :), just refer to global variables always as
an index of the $GLOBALS array. This is good practice anyways for any
file that might be included by another user, for exactly this issue.
I have a f
No, because if i did that the counter would increment no matter what the
IP address is. The way I have it the counter will only increment if it
is a new ip address to the site. I just fixed it by switching
$current++; to $current += 1; Apparently there is some small difference
between the two.
Same results.
I have attached a copy of the code...it is straight from the zend site.
Here is the url to the code:
https://robertscomputing.securelook.com/bmiphp/uptest.php
and a link my phpinfo script for the server php.ini settings:
https://robertscomputing.securelook.com/phpinfo.php
Thanks f
Try copy() instead of move_uploaded_file and see what you get.
Andrew
- Original Message -
From: "Webmaster" <[EMAIL PROTECTED]>
To: "Marek Kilimajer" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, July 04, 2003 5:12 PM
Subject: RE: [PHP] More on file upload
> Directory perm
Directory permissions are set to 0777
Right now I am just using
if ( move_uploaded_file(source,dest))
{
echo "file moved";
}
else
{
echo "could not move file";
}
}
Have not yet been able to figure out how to get a more descriptive error.
What is the message now? Is the file being uploaded and
move_uploaded_file() does not move the file? Then check the directory
permissions.
Webmaster wrote:
First of all, thanks to all that have helped so far.
I am trying to get a file upload script to work using php v4.0.3 (no option
here)
Eve
On Jul 3, 2003, "Garrick Linn" claimed that:
|Hello all,
|
|I seem to be running into a problem where the date() function appears not
|to differentiate properly between unix timestamps.
|
|For example, the code:
|
|";
|echo date("d-m-Y H:m:s", $seconds);
|echo "";
|
|$seconds = ($seconds - 60);
|e
OK. What I've started doing is use PHP's ftp functions to login and PUT the
file in the right place. This allows me to move files and put em where I
want, with teh right permissions.
Check the manual for more info.
Andrew
> Hi,
>
> But it's already there.
>
> And the file is uploaded (since
First of all, thanks to all that have helped so far.
I am trying to get a file upload script to work using php v4.0.3 (no option
here)
Everything seems to be working except the move_uploaded_file() function (the
most critical part)
I have checked all variables they seem to be correct.
my php.ini
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi there...
I'm having huge problem with PHP 4.3.2 on FreeBSD 5.1 platform with GD
functions.
check out the following code:
$str = "some text";
$img = imagecreatefrompng("images/template.png");
$color = imagecolorallocate($img, $red, $blue, $green)
Hi Everyone,
My user has reported a problem when he loads a page. The page grabs data
from MSSQL and displays this on the screen. However, it is not updated.
Is there any way in getting the page to automatically refresh itself
once when it is loaded?
Many thanks
--
PHP General Mailing List (ht
Hi,
I am faciing a strange problem. I have some php
script to receive images (via file upload).
The script is failling to work because it can't
move/copy the file.
I've added a sleep(x) in order to make the temporary
file stick around.
20 -rw---1 apache apache 19402 Jul 4
10
Hi,
Saturday, July 5, 2003, 12:33:25 AM, you wrote:
KB> Why does this not work? It is just a simple hit counter (hence the
KB> snarls, hissing, and growling). It logs the ips address but does not
KB> increment $current or log it. I do have counter.txt and ips.txt chmod'd
KB> to 777. Ips.txt st
Why does this not work? It is just a simple hit counter (hence the
snarls, hissing, and growling). It logs the ips address but does not
increment $current or log it. I do have counter.txt and ips.txt chmod'd
to 777. Ips.txt starts blank and counter.txt starts with just a 0 in it.
--
Kyle
--
Sounds cool..
Can you send in an example script or something? I've never worked with
this before..
PHPSpooky
__
"If God had wanted me otherwise, He would have created me otherwise."
- Johann Wolfgang von Goethe
> -Original Message-
> From: Ciprian
Suggestions:
1. use a picture for the counter (with the image - handling library)
2. use a javascript script :)
Glory!
I'm not sure about the compatibility of iFrames.. on various browsers
and platforms.. it would perhaps only complicate and be the only
drawback in an otherwise very simple structured page..
PHPSpooky
__
"If God had wanted me otherwise, He would have cr
Brad Pauly wrote:
Todd
Cary wrote:
Linux is quite new for me, so please forgive
me if my questions are rather basic.
I have RH 9 installed and I want to add the Interbase extensions to PHP
and then recompile Apache. Conceptually I understand what has to be
done, but I do not know th
Glory!
The problem I am facing is that my Index page can be an HTML page only..
not PHP. I cant use framesets, redirects etcetera.
I want to build my own Counter using PHP & mySQL Database.. with the
"Users Online" and "Total Hits" feature.
How can I increment the counter or affect a PHP code u
I know that no software is without bugs, it is the first thing you learn in
Computer Engineering.
What I really meant was I don't update the date after a new version comes
out. I wait until I don't see any more major bug reports. Until I feel the
new version is stable enough. Thus that is why I am
Hi,
Excuse, skip one file.
It is full set of RPC files.
- Konstantin.
"Konstantin S. Kurilov" wrote:
>
> Hi,
>
> It is RPC software.
>
> I have used it. It work for me.
>
> - Konstantin
>
> ===
> FrЕn: Jon Smirl [SMTP:[EMAIL PROTECTED]
> Skickat: den 12 mars
Hi folks,
I am trying to use touch( ) on a Linux server.
When I touch the file, it is setting the modification time to 1st
March 2004! I tried setting the mtime parameter of touch explictly to
time( ), but this didn't help.
The server clock is properly set, and touch works as expected from the
s
There are several ways:
1. XML - many browsers don't support this
2. Load a form into a hidden iframe, then you can read variables from
the form
3. Load javascript into a hidden iframe.
Sharat Hegde wrote:
Hello,
How do I communicate betwen an HTML page having JavaScript and a PHP server
code w
what is the cgi error message ?
Scott Fletcher wrote:
Hi!
To make the long story short, we use IIS 5.0 with PHP 4.0.6 for a while.
Then we builted a new database server, SQL-2000 and point the website to the
new server. Then we notice the problem with the CGI error. So, we last
week downloa
Well I have built a script that is responsible for upload 20Mb of files at a
time. The possible probs are
1) A short disconnetion in the net connection can cause the upload to stall
2) Sometimes when I visit / post data on the same domain, the upload stalls
where as if I just leave that upload be a
Hi,
It is RPC software.
I have used it. It work for me.
- Konstantin
===
FrЕn: Jon Smirl [SMTP:[EMAIL PROTECTED]
Skickat: den 12 mars 1999 05:21
Till: [EMAIL PROTECTED]
AngЕende: [PHP3] RPC for PHP from the browser
This is a port of Microsoft's remote scripting
Hi all...
I've written a secure socket based server in Java which has a keyStore
and a trustStore generated with the keytool command in Linux.
Now, I have a Java client which can connect to the server only by having
signed certificates (which I also made with keytool). That all works
fine
You will need to write a script in PHP to output XML data from the data you
currently have in your db/files.
Hope this helps
- Sid
- Original Message -
From: "Yamin Prabudy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 04, 2003 1:48 AM
Subject: [PHP] Web Services
> Hi
Hi Sharat,
> How do I communicate betwen an HTML page
> having JavaScript and a PHP server code without
> having to refresh the HTML page.
I don't think this is possible: once PHP has run (and sent your Javascript
to the browser), it's finished - you can't use it again until the next time
the pag
Hello,
How do I communicate betwen an HTML page having JavaScript and a PHP server
code without having to refresh the HTML page. I was originally thinking of
having an invisible applet communicating to the server, but I am not sure
how this is done.
I am also considering XML and SOAP, but I am no
In article <[EMAIL PROTECTED]
manila-usia.gov>, [EMAIL PROTECTED] says...
> Hello, im doing a form that when you pass it will generate a preview report.
> My problem is some fields are optional the optional fields are 5. And for
> those fields I need to make it fit when it generate what idea or cod
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
sketchbook.org says...
> Hey,
>
> I've got a script which disables a banner image when it's time is up, the script
> also sends an e-mail to both me and the banners owner when the time is up
>
> I've got a problem which is really weird..
>
> Eve
Hi there,
hope someone ini this list can help me out..
I had made a web services using Keith Devens library
It's already run and OK...
Now I try to make a client using ASP .NET to connect to my web services
Did anyone know how to pull out the classes/function in my web services with
kd_xmlrpc ??
Go to your browsers setting and ask the browser to prompt before setting
cookies.
in IE go to : tools -> Internet Options -> Privacy --> Advanced -->
Override automatic cookie handling.
See if your page tries to set the cookie at all.
If not, try to add : error_reporting(2039);
maybe you are send
I tried it that way, and variations on it. I still have had no luck. Any
other ideas?
Thanks again
David R
Thanks for you he
"Boaz Yahav" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Try
setcookie("auth","$val",time() + 3600,"/",".avenew.com");
also look here : http://examples.web
Hi,
Friday, July 4, 2003, 5:27:53 PM, you wrote:
TT> hello,
TT> I faced a problem with apache httpd.conf.
TT> I have a virtual host and i write in httpd.conf that lines :
TT>
TT> php_value track_vars "Off"
TT>
TT> but not working
TT> please advise.
TT> Thanks
try php_flag instead of php
Mike,
Just a thought - are you outputting any HTML on the page where you are
declaring your cookie?
If not, then it won't work.
I got stuck a few months back with a filter script where someone logs in and
depending on who they were were redirected to various pages. I was decalring
their cookies
Hi,
Friday, July 4, 2003, 5:11:18 PM, you wrote:
AC> Is there anyway to include a file inside of a function and have the included
AC> stuff be global? For instance if I defined a class or a function in that
AC> include file, I want to be able to use that class outside of the function.
AC> On the
Did you solve this issue?
What does $_SERVER["HTTP_HOST"] return?
Sincerely
berber
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.
-Original Message-
From: Mike Morton [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 4:03 PM
To: [PHP - GENERAL]
hello
Am Fre, 2003-07-04 um 09.27 schrieb Tassos T:
> hello,
>
> I faced a problem with apache httpd.conf.
>
> I have a virtual host and i write in httpd.conf that lines :
>
>
> php_value track_vars "Off"
>
trie only Off not "Off"
but i don't know if you cann write this line
in a ifmodule
See if this helps you
Getting the difference between two time strings.
http://examples.weberdev.com/get_example.php3?count=3307
Difference between two dates (i.e. between today and a date in future).
The program is
based on php-timestamp, but in your browser you see the usual
dates(i.e.: dd.mm.y
On Fri, 4 Jul 2003, Aric Caley wrote:
> Is there anyway to include a file inside of a function and have the included
> stuff be global? For instance if I defined a class or a function in that
> include file, I want to be able to use that class outside of the function.
>
> On the documentation for
On Fri, 4 Jul 2003 [EMAIL PROTECTED] wrote:
> excel has a char limit of 255 , if you can find a work around for it please
> do let me know , also , check out the bifwriter , i think the pear packages
> just outputs csv right ?
Spredsheet_Excel_Writer outputs an Excel binary, not csv.
--
hello,
I faced a problem with apache httpd.conf.
I have a virtual host and i write in httpd.conf that lines :
php_value track_vars "Off"
but not working
please advise.
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
David R wrote:
I have never read anything about a production server domain. How do I set
the cookie for it?
Same way as for the cookie on your local server, but change the cookie's
domain.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will
Try
setcookie("auth","$val",time() + 3600,"/",".avenew.com");
also look here : http://examples.weberdev.com/get_example.php3?count=67
Sincerely
berber
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.
-Original Message-
From: David R [mailto:[EMAIL P
Well said Rasmus, I have also been wondering why PHP with Apache2 wasn't
considered a production enviroment, and if I should be heading that way but
after readinng your post I feel a lot better, I have always been very happy
with Apache1 and PHP if it aint broke then no need to fix I say.
Regards,
Is there anyway to include a file inside of a function and have the included
stuff be global? For instance if I defined a class or a function in that
include file, I want to be able to use that class outside of the function.
On the documentation for include() a poster commented that it did indeed
I have added returns to where I had originally added breaks and it works
perfectly. The included code is executed till return is called and then
the included script is no longer executed.
Jonathan
> So...why not write the entire included file as a function and then call
> that function instead of
76 matches
Mail list logo