Hi
I'm using the thttpd webserver and php as cgi. Up to php version 4.3.1
everything is fine. When i try to upgrade to 4.3.2 or 4.3.5RC3 the only
thing i can see is the message No input file specified. Is this a bug in
php, or an incorrect configuration of my php?
Sorry if this question is not
Hello trlists,
Friday, March 12, 2004, 3:56:23 AM, you wrote:
tcc It seems to me that for security one wants both things -- first, to
tcc move only what you need from _POST into the global symbol table, and
tcc second, validate it thoroughly.
Indeed.. roll-on input filters in PHP5 :)
--
Best
Elliot J. Balanza wrote:
I need to make a query to a MySQL database that only has two fields, name
value. That I can do.
Then I need to store the values i receive in an array in the form of:
$variable['name'] = value;
But haven't been able to do it neither with a foreach nor with a do while...
Sory for delay
I use sablotron because I take xml data via curl from windows server. I need
only a way to transform xml data with xslt and I want to present data to web
pages. I think DOMXML provide functions to create XML docs from the
beginning and manipulate xml data like add or remove xml
SELAMLAR
Trke php mail grubumuza katlmak isteyen arkadalar aadaki mail
adresine bo bir mail gndererek ye olabilirler, gelen confirm mesajn
hibir ey yazmadan direkt olarak reply ediniz...
[EMAIL PROTECTED]
veya
webden kayt olmak isterseniz
http://groups.yahoo.com/group/turkphp/
adresine
True, but it does much more than that. It also provides xslt
transformations. It uses the powerfull libxslt library that provides far
more features, speed and reliablility than Sablot. I would rather do XSL
transformations with DOMXML than with Sablot just for these reasons.
Thanks for your
Hello Elliot,
On 11 Mar 2004 at 23:55, Elliot J. Balanza wrote:
I need to make a query to a MySQL database that only has two fields, name
value. That I can do.
Then I need to store the values i receive in an array in the form of:
$variable['name'] = value;
But haven't been able to do
Hi,
I use easyphp at windows to make test my php scripts and I face a problem
when I use the php function domxml_xmltree() explode apache.
I configure all extensions whitch required for using DOMXML.
Any idea ?
Thanks
tassos
--
PHP General Mailing List (http://www.php.net/)
To
I have tried several combinations, including foreach, do whiles. This works
when i submit the values one by one, but when i try to automatize it it wont
work. Thanks
mysql_select_db($database_MBTTIENDA, $MBTTIENDA);
$query_prefsname = SELECT Pref_name FROM mtmbt_prefs;
$prefsname =
I try to use quotes in the query and this doesn't work.
$query = SELECT * FROM user WHERE user_id = '$_POST['user_id']}';
But you use brackets and it works.. Why do you use brackets ?
$query = SELECT * FROM user WHERE user_id = ${_POST['user_id']};
From: Alessandro Vitale [EMAIL PROTECTED]
To:
Hey all.
I've been having ownership issues when writing files with fwrite(); i.e.
file owner is nobody while ftp'd files are owned by the site owner.
In order to streamline file management, I'd like to be able to write files
on our webhost server using PHP's ftp functions; not using fwrite() and
Hi, I'm trying to enable exif on my OpenBSD box so I tried adding --enable-exif in
core/Makefile under CONFIGURE_ARGS but that makes it so i can't make it. Does anyone
know how to enable exif with ports? Thanks
Teren
Try to use
$query = SELECT * FROM user WHERE user_id = $_POST['user_id'];
-Original Message-
From: Mike Mapsnac [mailto:[EMAIL PROTECTED]
Sent: Friday, March 12, 2004 3:40 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP] RE: R: [PHP] Get nice variables from POST
I try to use
oops. It's much better to use single quotes and entire variable in {}
eg
.. where user_id = '{$_POST['user_id']}' ...
realize - POST variable user_id has no value, so in your code it will be as
select * from users where user_id =;
as a result - you have wrong sql query.
/tom
On Fri, 12 Mar
I am running Windows 2003 server and am having trouble configuring. I
unzipped php 4.+ to c:\php. I renamed php.ini and put it in C;\windows
and configured the extension_dir = c:\php\extensions, doc_root =
c:\inetpub\wwwroot, and cgi.force_redirect = 0. I also moved php4ts.dll
to
On 12 Mar 2004 Mike Mapsnac wrote:
I try to use quotes in the query and this doesn't work.
$query = SELECT * FROM user WHERE user_id = '$_POST['user_id']}';
But you use brackets and it works.. Why do you use brackets ?
$query = SELECT * FROM user WHERE user_id = ${_POST['user_id']};
See
I am running on one Linux server which has PHP built statically; the
CLI and Apache modules are both over 5.5MB. On another where it is
built dynamically they are closer to 1.2MB.
Is there any data on the performance tradeoffs of static vs. dynamic
builds? I understand the factors (static
On 12 Mar 2004 Richard Davey wrote:
Indeed.. roll-on input filters in PHP5 :)
Hmmm, can't find the docs on those online.
--
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi,
curly braces are useful to specify in a double quoted string where is the
end of the variable name.
$ciao == ${ciao}
in case of associative arrays is recommended to prevent the parser to mess
up.
see php manual at the following section for details
Main : Language Reference : Types :
Hi,
I agree but I cannot find a way to transform xlm data from variable not open
xml file with using DOMXML.
tassos
-Original Message-
From: Lucian COZMA [mailto:[EMAIL PROTECTED]
Sent: Friday, March 12, 2004 1:50 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: DOM XML and php
True,
I know this isn't what you want, but nevertheless, this
does not look ugly:
pre
# Get variables from the form
#
$username = $_POST['username'];
$password = $_POST['password'];
$password2 = $_POST['password2'];
$email = $_POST['email'];
$email2= $_POST['email2'];
(a) if you're using any values sent via the URL string (e.g.
cf=0), you need to
use $_GET, not $_POST;
Some of the information is coming from a form and the info from the url is
to call the different questions. They are all on one page in a switch
statement.
(b) empty() will also evaluate
if (is_array($_POST)) {
foreach($_POST as $name=$value) {
${$name} = $value;
}
}
/tom
On Fri, 12 Mar 2004 15:59:00 +0100 (CET)
Hans Juergen von Lengerke [EMAIL PROTECTED] wrote:
I know this isn't what you want, but nevertheless, this
does not look ugly:
pre
# Get variables
My thanks to both of you. I am trying to find out now how to
compile in the oci8 functions because it is not obvious in the list of
configuration selections.
When I do get those functions, I can probably use the
information from Marcelo so every bit helps.
Martin Towell writes:
Is the general wisdom that using strip_tags on input is sufficient to
protect against XSS vulnerabilities from that input? I have been doing
some reading on it but haven't found anything that suggests a
vulnerability that removing the tags in this way would not cure.
Are there multi-level
Hello,
I have this application which is accessed via a web portal. The first
thing my application must do is make sure the visitor is logged in via
the portal. The only way to do this is by making a request to a
specific URL. This URL (which includes the log in cookie id) will
return XML
simple use fopen() or file()
as $fp = fopen(http://somedomain/some.url?blablah,r;);
and read via fread()
/tom
On Fri, 12 Mar 2004 10:54:53 -0500
Roger Spears [EMAIL PROTECTED] wrote:
Hello,
I have this application which is accessed via a web portal. The first
thing my application must
How do I make my application load a URL and trap the returned data so
that it never creates any browser output?
Aside from the fopen() and fread() that was suggested by another person
you can also use the ob_* functions.
Chris
--
PHP General Mailing List (http://www.php.net/)
To
Hi List,
I am trying to build a statically linked php cli binary. I believe I am using the
correct
terminology. What I want is a php cli binary that will work on (for the most part)
any server I need to copy it to even if the particular extra libs I compiled against
are not on that server.
I
Tom Meinlschmidt wrote:
simple use fopen() or file()
as $fp = fopen(http://somedomain/some.url?blablah,r;);
and read via fread()
Perhaps I was mistaken, I thought:
$fp = fopen(http://somedomain/some.url?blablah,r;);
fread();
Would just return the actual HTML code of the page and NOT the
Best way would be filegetcontents() and implode the content
with \n.
eg:
?php
$temp = filegetcontents('http://www.somedomain.com');
$temp = implode ( \n , $temp );
echo $temp ;
?
Chris Boget wrote:
How do I make my application load a URL and trap the returned data so
that it never
Thanks, that is what I figured.
I really don't get rpm's, it seems you are stuck with whatever the packager
felt like putting in the rpm.
Want to add a library? Like zlib for example? then you have to re-compile it
yourself anyways.
They seem completely useless to me for anything but a very basic
Tom Meinlschmidt wrote:
simple use fopen() or file()
as $fp = fopen(http://somedomain/some.url?blablah,r;);
and read via fread()
Then I replied with:
Perhaps I was mistaken, I thought:
$fp = fopen(http://somedomain/some.url?blablah,r;);
fread();
Would just return the actual HTML code of
Hi,
I am using RH9, Mysql 3.23.58, PHP 4.2.2, apache2.0
mysql_select_db(mydatabase,$connect_id)
allways fails.
I can use $connect_id = mysql_connect(localhost,apache); (YES, I do have this line
before the mysql_select_db);
just fine.
I can run querys against the database with no problems, but
Is there function library capable of creating zip files and adding files to
a zip archive under the windows/apache platform? After some extensive
browsing I can only turn up read-only access functions.
Thank you,
Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
i didnt know what XSS was, just read it on webopedia.com now, maybe i
got the wrong idea...
strip_tags should prevent a kind of explotation, but maybe its behavior
is not exactly what you want...
see also htmlentities (http://www.php.net/htmlentities)
you need to ask yourself how the
OK, I do get the following error.
1044: Access denied for user: '@localhost' to database 'mydatabase'
Even though I specify the user in mysql_connect, for some reason,
mysql_select_db is trying to user a blank user,
Any Ideas?
Hi,
I am using RH9, Mysql 3.23.58, PHP 4.2.2, apache2.0
Hello PHP,
Friday, March 12, 2004, 6:25:09 PM, you wrote:
P OK, I do get the following error.
P 1044: Access denied for user: '@localhost' to database 'mydatabase'
P Even though I specify the user in mysql_connect, for some reason,
P mysql_select_db is trying to user a blank user,
P Any Ideas?
On 12 Mar 2004 Richard Davey wrote:
P 1044: Access denied for user: '@localhost' to database 'mydatabase'
You said that you use apache as the username for MySQL - is this
something you've configured yourself?
It appears he is actually using a blank username as there is noting
before the
Yes, I have it configured to run as apache. But, as I mentioned, I have no
problems accessing the database and running querys against it, it is only
the mysql_select_db function that fails.
Hello PHP,
Friday, March 12, 2004, 6:25:09 PM, you wrote:
P OK, I do get the following error.
P
Hello trlists,
Friday, March 12, 2004, 6:37:34 PM, you wrote:
tcc Configuring a MySQL database with a blank root password sounds like a
tcc potential security risk to me ...
It is, but if he hasn't modified it otherwise, that's what it'll be.
Also for local development purposes, there is no
On 12 Mar 2004 Richard Davey wrote:
It is, but if he hasn't modified it otherwise, that's what it'll be.
Also for local development purposes, there is no harm in it.
Agreed, as long as he's not connected so someone can try to connect to
the MySQL port.
--
Tom
--
PHP General Mailing List
Hello trlists,
Friday, March 12, 2004, 6:48:03 PM, you wrote:
tcc Agreed, as long as he's not connected so someone can try to connect to
tcc the MySQL port.
If he's connected that long and not running a firewall, he deserves it
;)
--
Best regards,
Richard Davey
Hello,
Friday, March 12, 2004, 6:38:37 PM, you wrote:
P Yes, I have it configured to run as apache. But, as I mentioned, I have no
P problems accessing the database and running querys against it, it is only
P the mysql_select_db function that fails.
You mean you have no problems querying the
if (is_array($_POST)) {
foreach($_POST as $name=$value) {
${$name} = $value;
}
}
or use this
if (is_array($_POST))
{
extract($_POST);
}
Jaski
__
Do you Yahoo!?
Yahoo! Search - Find what youre looking for faster
http://search.yahoo.com
--
PHP General
Yes, I have a root password.
No, I do not use root to run the server or connect to the database.
Yes, I do have the user apache in the grant tables for mysql with
permissions for the specific database.
Yes, I can run querys against said database and connect with user apache
with no problems.
Only
Hello,
Friday, March 12, 2004, 7:00:38 PM, you wrote:
P Only msyql_select_db will not connect, it claims I am trying to use a blank
P user, even though I specifically connect earlier with mysql_connect with the
P specific user with no problems..
What does this output?
?php
$link =
It returns:
Connected successfully
Like I said, I have not problems connecting. Only mysql_select_db will not
work.
Hello,
Friday, March 12, 2004, 7:00:38 PM, you wrote:
P Only msyql_select_db will not connect, it claims I am trying to use a
blank
P user, even though I specifically
It seems the only way I can get mysql_select_db to work is to actually add a
blank user to the msyql.db table with appropiate privileges.
Yes, I have a root password.
No, I do not use root to run the server or connect to the database.
Yes, I do have the user apache in the grant tables for
Hello PHP,
Friday, March 12, 2004, 7:23:47 PM, you wrote:
P It returns:
P Connected successfully
P Like I said, I have not problems connecting. Only mysql_select_db will not
P work.
Fine, what does this return? With foo replaced with your database
name.
?php
$lnk = mysql_connect('localhost',
Is it possible that either $connect_id is not defined at the point
where you use it in the mysql_select_db call (e.g. it's global, the
call is in a function, and you forgot to use a global declaration),
and/or the previosuly opened connection has been closed?
What do you get if you do a
hello
I have a form from where you can upload an image.
the script saves the file on the server in a folder.
what I want now is when it saves the file; I also want to save a copy of
that file in another folder with thumbnail size. How do I create a copy
with for example 100 x 100 and save that?
[snip]
I have a form from where you can upload an image.
the script saves the file on the server in a folder.
what I want now is when it saves the file; I also want to save a copy of
that file in another folder with thumbnail size. How do I create a
copy
with for example 100 x 100 and save that?
On Fri, 2004-03-12 at 15:17, Maxi Yedid wrote:
[snip]
what I want now is when it saves the file; I also want to save a copy of
that file in another folder with thumbnail size. How do I create a copy
with for example 100 x 100 and save that?
If you are using Linux (maybe others too) you
Hi!
After doing many testing for hte fsockopen() bugs with PHP developers
which is now fixed. I just happen to noticed that in the middle of those
testing when I do the PHP installation after doing the usual configure and
make. What I noticed is that it asked me to ..
--snip--
You may want
Thank you Michael... That did the trick :D
thank you very very much, it took me three days... and now it seems so damn
easy.
vamp
Michael Nolan [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
Elliot J. Balanza wrote:
I need to make a query to a MySQL database that only has two
I have articles held in a MySQL database for a law firm. When I pull the
information from the DB and display it, words like that's are shown as
that\'s. To take care of this problem I have done this: $newsart =
eregi_replace(\\\',', $newsart);
Is there a better way to handle this to catch all
David Westbrooks wrote:
I have articles held in a MySQL database for a law firm. When I pull
the information from the DB and display it, words like that's are
shown as that\'s. To take care of this problem I have done this:
$newsart = eregi_replace(\\\',', $newsart);
Is there a better
Ok thanks to Michael Nolan I was able to do what I needed. The final code is
this:
snip-snip
mysql_select_db($database_MBTTIENDA, $MBTTIENDA);
$query_prefs = SELECT * FROM mtmbt_prefs ORDER BY Pref_name ASC;
$prefs = mysql_query($query_prefs, $MBTTIENDA) or die(mysql_error());
$row_prefs =
I am sorry, if this message is a duplicate post. (I unwittingly press some key and the
page got refreshed before completing my post).
I am trying the Servlet/Php integration. I installed php with java support. But, I do
not see php_java.jar in any of the directories. I have
On Saturday 13 March 2004 05:35, Scott Fletcher wrote:
After doing many testing for hte fsockopen() bugs with PHP developers
which is now fixed. I just happen to noticed that in the middle of those
testing when I do the PHP installation after doing the usual configure and
make. What I
On Mar 12, 2004, at 11:24 PM, Pablo Gosse wrote:
David Westbrooks wrote:
I have articles held in a MySQL database for a law firm. When I pull
the information from the DB and display it, words like that's are
shown as that\'s. To take care of this problem I have done this:
$newsart =
test
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
in order to execute code under http://my-server:8080/ doesn't it have to be
a java class?
Since PHP was never written in JAVA, that I know of, I suspect it will never
be a class file, and that may explain why you don't find a php_java.jar.
What you will find is a php_java.so or php_java.dll
Thanks Vail,
I was following http://us4.php.net/manual/en/ref.java.php#java.servlet and the README
from php install at sapi/servlet/README. I am new to php and servlet. My friend has a
requirement to integrate some php stuff into his existing java. I tried to get it
setup as described in
Because you do mysql_fetch_assoc() once before going into your while loop.
Get rid of that first $row_prefs = mysql_fetch_assoc(...) line there and
it will work.
-Rasmus
On Fri, 12 Mar 2004, Elliot J. Balanza wrote:
Ok thanks to Michael Nolan I was able to do what I needed. The final code
Friends:
I need a good example to create a session and navigate an entire site with this
sessions. Also I need that sessions handle a three variables.
__
Atte.
Alberto García Gómez
Administrador Nodo Atenas
http://www.mtz.sld.cu/
Tel: 53-45-282212
Don't worry about this I worked out that the example was wrong (o;
- Original Message -
From: Newman Weekly. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 13, 2004 1:59 PM
Subject: [PHP] ereg problem
?php
$formUserName=foobar;
if
http://ca.php.net/manual/en/function.session-start.php
=?iso-8859-1?Q?Alberto_Garc=EDa_G=F3mez?= [EMAIL PROTECTED]
wrote:
Friends:
I need a good example to create a session and navigate an entire site with this
sessions. Also I need that sessions handle a three variables.
On 12 Mar 2004 Elliot J. Balanza wrote:
.
$row_prefs = mysql_fetch_assoc($prefs);
.
while ($row_prefs = mysql_fetch_assoc($prefs)) {
.
and it works fine EXCEPT it wont show the first record of the query... any
ideas why?
Yes ... see the two lines quoted above. Each time you
Hi,
How would I set up PHP to use SMTP authentication when I send an email. For
example, in MS Outlook I have authentication set to use the same settings as
my incoming mail. I have searched around but haven't found anything that
deals with this.
Thanks
--
PHP General Mailing List
Thanks guys... it works dandy now.
Vamp
[EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
On 12 Mar 2004 Elliot J. Balanza wrote:
.
$row_prefs = mysql_fetch_assoc($prefs);
.
while ($row_prefs = mysql_fetch_assoc($prefs)) {
.
and it works fine EXCEPT it
The thing is... if you are sending the mail from within your server why do
you need to authentificate you are yourself?
Vamp.
Beauford [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
Hi,
How would I set up PHP to use SMTP authentication when I send an email.
For
example, in
Hello,
On 03/13/2004 12:54 AM, Beauford wrote:
How would I set up PHP to use SMTP authentication when I send an email. For
example, in MS Outlook I have authentication set to use the same settings as
my incoming mail. I have searched around but haven't found anything that
deals with this.
The
hi,
i'm running a server with Fedora Core 1. this is using Apache 2.0.48
and PHP 4.3.4.
i have my http server root at /var/www/html/. i have some virtual hosts
setup.
i've just installed phpMyAdmin 2.5.6. my problem lies within the
auto_prepend_file and auto_append_file directives provided
Yeah, probably a config leak in the Apache2 sapi module. There is a
reason we don't suggest using PHP with Apache2 yet. Use Apache1 and I bet
you won't have any problems.
-Rasmus
On Sat, 13 Mar 2004, Chris Wagner wrote:
hi,
i'm running a server with Fedora Core 1. this is using Apache
php-general Digest 13 Mar 2004 06:24:31 - Issue 2643
Topics (messages 180273 through 180315):
An extension to CREATE zips??
180273 by: Brian J. Celenza
Re: XSS Vulnerabilities and strip_tags
180274 by: Andre Cerqueira
Re: STrange Problem
180275 by: PHP
I've prob asked this before, when will it be possible to be able to use
Apache2 ? I assumed as you said before it was because it was the
extensions but are we saying now that libraries that php are compiled on
are too not thread safe ?
-Original Message-
From: Rasmus Lerdorf
PHP wrote:
Thanks, that is what I figured.
I really don't get rpm's, it seems you are stuck with whatever the packager
felt like putting in the rpm.
Want to add a library? Like zlib for example? then you have to re-compile it
yourself anyways.
They seem completely useless to me for anything but a
I have this in equip-lend-index.php and want to pass the variable
$equipment back to the same page:
PRINT td valign=\top\Equipment: form
action=\$USERPREFIX/equip-lend-index.php\ method=\POST\
enctype=\text/plain\;
PRINT input type=\radio\ name=\equipment\ value=\computer\ /
Computers;
what is the code your using to try and retrieve the var.. are you using
$_REQUEST['equipment'];
jason
Martin S [EMAIL PROTECTED] wrote:
I have this in equip-lend-index.php and want to pass the variable
$equipment back to the same page:
PRINTtd valign=\top\Equipment: form
81 matches
Mail list logo