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
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
Thanks guys.
I will have a look at the array[] convention. Meanwhile I did my own
thing by naming them all different and parsing the $QUERY_STRING for
them. It is a mess!
So thanks again!
Cheers
Thomas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
There will have some error of words
I tried addslashes(stripslashes($String))
But also can't work
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Saturday 05 July 2003 06:05, Fisayo Adeleke wrote:
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.
If you're using Redhat then
On Saturday 05 July 2003 02:57, Phil Dowson wrote:
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?
Short answer: yes
Long answer: what exactly are you trying to do and what exactly
On Saturday 05 July 2003 16:10, Erick wrote:
There will have some error of words
What errors?
I tried addslashes(stripslashes($String))
But also can't work
Try using mysql_escape_string() or mysql_real_escape_string().
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source
What errors?
Can't display those words.
--
Jason Wong [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó·s»D
:[EMAIL PROTECTED]
On Saturday 05 July 2003 16:10, Erick wrote:
There will have some error of words
What errors?
I tried addslashes(stripslashes($String))
But also can't work
Try using
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?
if I were you I would try something like...
?php
$result = mysql_query($query);
$email = NULL; // it's bad form to dot without
On Fri, 2003-07-04 at 15:02, 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
Hi there,
This is really an HTML question, and not a PHP question, but use an
I have a class that uses fopen to read some xml data from a site with
ongoing stability issues. Fopen is using the stream wrapper for http.
Something I've struggled with is finding a way to set a timeout value when
fopen is attempting to get a page from a site that is inaccessible for some
It seems I have been over the documentation repeatedly, but there simply
isn't any documented way of setting a timeout duration. Any ideas?
If you want to set a time out on execution of the /script/, check out:
http://us3.php.net/manual/en/function.set-time-limit.php
-Dan
--
PHP General
I am making an authorizatoin script for the control panel of a loggin
system I have been writing. Here is what I have right now:
?php
require_once('config.inc.php');
$authorized = 0;
$getUser = $_SERVER['PHP_AUTH_USER'];
$getPass = $_SERVER['PHP_AUTH_PW'];
if (($getUser == $user) ($getPass ==
The problem is that if a user clicks cancel the control panel loads
instead of the program dying. Why and how do I stop it?
Please provide more info -- like what do you mean by if the user clicks
cancel.
-Dan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I am making an authorizatoin script for the control panel of a loggin
system I have been writing. Here is what I have right now:
Well, if you copied and paste'd this, then I'm surprised that you don't get
a syntax error
if (!$authorized) {
header('Cache-Control: no-store, no-cache,
From: John T. Beresford [EMAIL PROTECTED]
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
-
Hi there,
Hope you can help me with the following:
I have a query and i'm showing the output:
echo $row-text;
That goes o.k. but the text is 400 characters long and I only one to show the first 50
characters and at the end showing ... dot's..
Help!
Thank you very much!
Frank
--
PHP
Look up the function substr. It will allow you to create a string of
the first 50 chars from your 400 char string.
-Dan
On Sat, 2003-07-05 at 09:58, [EMAIL PROTECTED] wrote:
Hi there,
Hope you can help me with the following:
I have a query and i'm showing the output:
echo $row-text;
Try this:
if(strlen($row-text)50) {
echo substr($row-text,0,47) . ...;
} else {
echo $row-text;
}
- Audun
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 05, 2003 3:59 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Limit output of query field
Make it with your sql query, it will be faster:
SELECT ..., IF(LENGTH(text)50, CONCAT(SUBSTRING(text,0,50),'...'),
text) as text
[EMAIL PROTECTED] wrote:
Hi there,
Hope you can help me with the following:
I have a query and i'm showing the output:
echo $row-text;
That goes o.k. but the text
Make it with your sql query, it will be faster:
SELECT ..., IF(LENGTH(text)50, CONCAT(SUBSTRING(text,0,50),'...'),
text) as text
I won't outright disagree, but warn fkessen to be careful. There are
some scenarios in which that would not be faster.
-Dan
--
PHP General Mailing List
I moved from myphpnuke to phpnuke.
When trying to register a new user account on the website it get the error:
You are trying to access a restricted area.
We are Sorry, but this section of our site is for Registered Users Only.
Thanks for your help.
--
PHP General Mailing List
Hi guys,
I am working on a flash forum for my site. Came with the FOED book,
anyways i am tyring to delete the threadCount by -1 from the db.
could below does dlete the count but in multipules of 2.
Anyone
cheers
$query = UPDATE forumForums SET threadCount = threadCount -1 WHERE forumID
=
because you execute the query twice. Remove the last line, it is not
needed as UPDATE does not return any result.
Paul Ferrie wrote:
Hi guys,
I am working on a flash forum for my site. Came with the FOED book,
anyways i am tyring to delete the threadCount by -1 from the db.
could below does
Go to admin - Modules, and set Your_Account to be visible to all visitors.
Mr|P wrote:
I moved from myphpnuke to phpnuke.
When trying to register a new user account on the website it get the error:
You are trying to access a restricted area.
We are Sorry, but this section of our site is for
Perfect solution. Thanks!!!
- Original Message -
From: Dan Anderson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, July 05, 2003 4:30 am
Subject: Re: [PHP] mail()
Could someone let me know if it is possible to pass a resultset of a
query
to a single variable so it can
Hey everyone.
I was hoping you could help with something. I am trying to create a
thumbnail image gallery using PHP and cookies. The idea is that different
series of images
can be viewed by clicking on + and - links that will then show or hide the
thumbnails. Ie show/hide different rows of a
Sorry - here's the HTML source. Don't laugh :)
!doctype html public -//W3C//DTD HTML 4.01 Transitional//ENhtml
head
style type=text/css
!--
body {margin:50;}
--
/style
titleai-em.net | image gallery/title
link rel=stylesheet href=style.css type=text/css
meta http-equiv=Content-Type
I've a problem:
I need to block accounts with the same ip, but if it's a proxy-server you
get only the proxy-server ip's. I downloaded somewhere this script:
?php
$proxy=;
$IP = ;
if (isSet($_SERVER)) {
if (isSet($_SERVER[HTTP_X_FORWARDED_FOR])) {
$IP = $_SERVER[HTTP_X_FORWARDED_FOR];
$proxy =
If I were you I would create a mySQL (or Postgresql) database containing
all of the thumbnails. Use the row id of the mySQL (Postgresql) table
to decide which row to display.
You probably will want to look up the documentation and/or google.
-Dan
On Sat, 2003-07-05 at 11:44, Michael Whiting
By design many proxies are designed to allow the client to be anonymous
as well as proxy the connection, so they will not ever reveal the
clients IP address.
Not only that but on some ISPS (AOL) the users proxy may change with
each request, making tracking the user by the IP not practical or
On Saturday 05 July 2003 11:47 am, Michael Whiting wrote:
Sorry - here's the HTML source. Don't laugh :)
snip
if ($view1 = true):
That statement will always evaluate to true. You may need
if($view1 == true)
notice the double equal sign
if ($view1 = false):
Same here
RDB
--
PHP
Hello,
I would want to make a question over the function sqlite_seek(), why it is
giving to me of the problems.
When I make a query with sqlite_query() and use sqlite_fetch_array() all
works well:
Example:
$result = sqlite_query('SELECT * FROM test', $conn);
while($row =
hello there,
I am just learning PHP now, so i am very new to it.
I was trying the following code which i received from a PHP book. I am using Version
4.3.1 installed in windows
?
$text = pot post pat patent;
if(preg_match( \bp\w+t\b, $text, $array ) )
print $array[0];
?
I was expecting
Try this:
?php
$text = pot post pat patent;
if(preg_match(/\bp\w+t\b/, $text, $array)){
print $array[0];
}
?
the pattern in preg_match() does not have correct limit :)
- Original Message -
From: Gentian Hila [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, July 05, 2003
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
are you sure that the smtp-settings in php.ini are correct on your host's server?
Thomas
On Sat, 5 Jul 2003 20:15:14 +0200 [EMAIL PROTECTED] (Håkon strandenes) wrote:
Hi,
I am making a small PHP script for managing a simple mailing list. The
PHP script is added in the bottom of this
Hello Jeff Schwartz, I heard that Apache 2 is not a stable web server using
PHP parser, for this reasoun I think that in the php.net web site have said
that.
bye.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I ran this as a script from my Apache and it gave me a beautiful web page
just full of wonderful information!
But I have a question on just 1 item...
Configuration File (piping) Path C:\WINNIT
How does this value get set?
My PHP is installed at 'G:\etc\php'
My php.ini is there as well.
The
php-general Digest 5 Jul 2003 19:21:43 - Issue 2158
Topics (messages 154036 through 154072):
Re: how to :: multi select
154036 by: Thomas Hochstetter
Problem about insert some chinese into MySQL db
154037 by: Erick
154040 by: Jason Wong
154041 by: Erick
Re:
No, actually not. But i think so. This is the server to my ISP, so I
cannot change it. But the SMTP server is set to localhost, so I THINK
it's correct.
I have made a php script with only the phpinfo() tag in here:
http://grimstad.seilforening.no/Mailinglister/phpinfo.php
Regards,
Håkon
Hello all,
I am new to php in general and am trying to set up a user authentification system
with mysql. The registration page works well and sends all of the data to the
appropriate table in mysql. However, when I try to get the registered user to log in
and start a session, the system
You may set the location of php.ini by using the PHPRC
environment variable or during ./configure use the
--with-config-file-path directive. Maybe you should
just copy a php.ini into the directory PHP is looking for
it in, which appears to be C:\WINNIT. If PHP was actually
reading a php.ini,
there's a good example in this article
A Complete, Secure User Login System
by Tim Perdue
http://www.phpbuilder.com/columns/tim2505.php3
olinux
On 2 Jul 2003 at 13:00, Mike Migurski wrote:
You may find it easier to include, in the e-mail,
a
uniquely-generated, limited-time URL
Hello,
I installed PHP-4.3.2 with oci8 and oracle support (using --with-oci8
--with-oracle).
I recompile apache-1.3.27 to use the libpthread as mentioned here:
http://ww.php.net/oci8
Now, I got crashes when using oracle with php. In my apache error logs, I get:
[Sat Jul 5 17:24:28 2003]
Philip Olson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
You may set the location of php.ini by using the PHPRC
environment variable or during ./configure use the
--with-config-file-path directive.
So, I take it that this is a setting you use during compile time.
So, to fix
Hello.
I've read all the documentation I can find about https POSTs using curl, fsockopen
with ssl://,
even PEAR's Net_Socket package, but I'm running into a PHP problem I haven't seen
before.
Platform Info:
OpenBSD 2.9, PHP 4.3.2, Apache 1.3.27, ModSSL 2.8.14, OpenSSL 0.9.6, curl 7.9.8
(I've
At 2003-07-05 20:01 +0200, Alan D'Angelo wrote:
Try this:
?php
$text = pot post pat patent;
if(preg_match(/\bp\w+t\b/, $text, $array)){
print $array[0];
}
?
the pattern in preg_match() does not have correct limit :)
It is probably also a good idea to use single quotes
('/\bp\w+t\b/') so PHP
I have this javascript that enables browsing and selecting of a file. This
file location and name are then transferred further down in the form as an
option. Multiple files may be chosen as they are just added one below the
other. Anyway, when the form is submitted it is only retrieving the
On Sat, 2003-07-05 at 15:55, Micah Montoy wrote:
I have this javascript that enables browsing and selecting of a file. This
file location and name are then transferred further down in the form as an
option. Multiple files may be chosen as they are just added one below the
other. Anyway,
This has no effect on stream operations. I have a timeout set in php.ini,
but the script never times out, so that should further illustrate the issue.
-Original Message-
From: Dan Anderson [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 05, 2003 5:11 AM
To: Giz
Cc: [EMAIL PROTECTED]
That only works to set a timeout on reading data once the fopen has
successfully returned. The problem is that the fopen function is hanging.
-Original Message-
From: Arjen Brouwer [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 05, 2003 6:08 AM
To: Giz
Subject: Re: [PHP] Timing out fopen
I think that will do it.
thanks,
- Original Message -
From: Lars Torben Wilson [EMAIL PROTECTED]
To: Micah Montoy [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, July 05, 2003 4:59 PM
Subject: Re: [PHP] looping through values from a field? Need hellp.
On Sat, 2003-07-05 at
This add a bit more functionality, in that it will adjust to the nearest end
of a word, and includes a 'more' link to the full text. This also assumes
that the article may already only be 50 chars or less.
$maxsize = 50; // might be better as a DEFINE
$post = $row-text;
$post = (strlen($post)
You need to seek help from a phpnuke support forum.
-Original Message-
From: Mr|P [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 05, 2003 7:53 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Permission Problem
I moved from myphpnuke to phpnuke.
When trying to register a new user account on the
My guess is that you actually have 2 rows in the table for every forumID.
-Original Message-
From: Paul Ferrie [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 05, 2003 8:07 AM
To: [EMAIL PROTECTED]
Subject: [PHP] simple query help
anyways i am tyring to delete the threadCount by -1 from
Bleh nevermind, it's because you were executing the query twice (calling
mysql_query in the if () and then again below.
-Original Message-
From: Giz [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 05, 2003 4:37 PM
To: 'Paul Ferrie'; [EMAIL PROTECTED]
Subject: RE: [PHP] simple query help
Hi,
I have a very simple form that searches a MySQL database and I want to
be able to have the search appear on the same page as the search.
FORM NAME=search METHOD=post ACTION=? $PHP_SELF; ?
INPUT type=text size=30 name=player
INPUT TYPE=image src=../images/submit.gif
Yeah, this is the behavior of select lists. What comes through in the form
post is the item that was last selected.
What I've found you have to do with javascript is populate a hidden field
with the values, using some delimiter (I've used commas) and you can easily
explode those values into an
I just figured it out, so I guess I was on the right track - I just
forgot to make the variable name in the form global.
-Original Message-
From: Beauford.2005 [mailto:[EMAIL PROTECTED]
Sent: July 5, 2003 7:43 PM
To: PHP
Subject: Forms and PHP_SELF
Hi,
I have a very simple form that
For print $PHP_SELF, or $_SERVER['PHP_SELF'] use:
?php echo $_SERVER['PHP_SELF']; ?
or the shortcur sintax:
?=$_SERVER['PHP_SELF']?
(if short_open_tag = On in php.ini)
- Original Message -
From: Beauford.2005 [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Sunday, July 06, 2003
Ok. I gave it a shot but have run into one other question that I wasn't
able to find that was addressed by the article.
My select statement looks like this:
select name=imgList[] style=width:350; size=6 multiple/select
When I create the php file, I am trying something like below but it isn't
Hello !!
When I make a query with sqlite_query() and use sqlite_fetch_array() all
works well:
Example:
$result = sqlite_query('SELECT * FROM test', $conn);
while($row = sqlite_fetch_array($resulr, SQLITE_NUM, true)){
$rows[] = $row;
}
$rows is:
Array
(
[0] = Array
(
On Sat, 2003-07-05 at 17:13, Micah Montoya wrote:
Ok. I gave it a shot but have run into one other question that I wasn't
able to find that was addressed by the article.
My select statement looks like this:
select name=imgList[] style=width:350; size=6 multiple/select
When I create the
That was the trick. Just the space was messing things up. Thanks.
- Original Message -
From: Lars Torben Wilson [EMAIL PROTECTED]
To: Micah Montoya [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, July 05, 2003 6:18 PM
Subject: Re: [PHP] looping through values from a field?
X-posted to PHP General, PHP DB, and MySQL
Hi gang
Attempting to get my Linux test-server working, but ran into a problem when
making PHP...
System is RedHat 8, Apache 1.3.27 (compiled myself, tested OK), MySQL 4.0.13.
The Apache 2.0.40 and PHP 4.2.2 that came w. RH8 didn't work correctly,
This has no effect on stream operations. I have a timeout set in php.ini,
but the script never times out, so that should further illustrate the issue.
But if you'd visited the page I sent you and viewed user comments you
would see how to set a time limit for socket operations (what you're
Dan Anderson wrote:
Be careful when using PHP self. Not all servers support it. If you're
planning on using this script over and over on multiple servers you may
find creating a variable is helpful.
$some_variable = the_script_name.php;
Then, where you would use PHP_SELF just echo (or
Please don't mislead users! That's plain untrue.
I assure you that server administrators can turn off the variables such
as PHP SELF. It may not be common but it does happen.
-Dan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've looked at that page extensively and seen nothing there that would
handle my issue, long before I ever mailed the problem to this list. What
in particular from there did you see that would be useful to my use of
fopen('http://etc')?
-Original Message-
From: Dan Anderson
From the user comments:
I think it might be useful to point out that set_time_limit() doesn't
have any effect on stream operations. A stalled script, either during
open operations (e.g. fsockopen()) or read operations (e.g. fgets()),
can make your script run forever.
So it would be advisable to
try --with-mysql=/usr
--- -{ Rene Brehmer }- [EMAIL PROTECTED]
wrote:
X-posted to PHP General, PHP DB, and MySQL
Hi gang
Attempting to get my Linux test-server working, but
ran into a problem when
making PHP...
System is RedHat 8, Apache 1.3.27 (compiled myself,
tested OK), MySQL
Thanks for the reply,
Well hopefully this will help narrow down the issue. With Fsockopen a
timeout can be passed, however, this is using fopen. I am hoping there may
be some obscure way of setting a timeout but so far, I've not been able to
find one.
-Original Message-
From: Dan
Dan Anderson wrote:
I assure you that server administrators can turn off the variables such
as PHP SELF. It may not be common but it does happen.
The only way to do that would be editing the PHP source. That's above
the IQ of any sysadmin who would want to do that.
--
The above message is
Hi,
Is it possible to determine whether a class implements an interface
without instantiating an object of that class?
?php
interface tester {
function doesStuff();
}
class MyClass implements tester {
function doesStuff(){}
}
$var = 'MyClass';
if ($var instanceof_equiv tester) {
75 matches
Mail list logo