Sorry, there was an error...
if (!empty($_POST['surname']))
$surname=strtoupper( $_POST['surname'] );
else
echo Empty name;
Luis Moreira wrote:
Try reading the variable before you use it :-)
For best protection, see first if something went through...
if
You probably have register_globals turned off (this is a question of
security and performance).
You can turn it on changing your php.ini file, it's probably located in
C:\WINDOWS
Or try this in the beginning of your PHP file:
?php
$name = $_POST['name'];
$surname = $_POST['surname'];
?
Hey
I would like to run ./beta/x.exe on local machine using php
Ie have a link click to install locally which points to the file and runs
it(without bringing up the download or save as dialog).
Thanks
Thanks to Rafael and George (replied off list).
Problem sorted. There is absolutely *nothing* to beat community support.
Regards
Martyn
Rafael Soares [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
You probably have register_globals turned off (this is a question of
security and
Hi,
I am not sure if this is the correct group for this problem, so apologies if
I have got this totally wrong.
I have just installed PHP5 on a Windows XP machine with IIS (PWS).
phpinfo() seems OK.
However, when I try the following test script:
name.html looks like:
html
body
center
FORM
PclZip
http://www.phpconcept.net/pclzip/index.en.php
Barbablu wrote:
Mauro Griffa ha scritto:
Ciao,
qualcuno sa come si può decomprimere un file zip presente sul server usando
uno script PHP?
grazie per l'aiuto
Mauro
Ciao,
per php5(come modulo)+apache2
1. guarda nella sottocartella '/ext' della
Hi,
I have a master database and a customer-facing website and a staff-facing
website - both connecting to the same database. I use Smarty and PEAR::DB
and PHP5.
I have no problem connecting from one site, but the other just generates
'could not open database' on the home page. This is happening
IN ENGLISH PLEASE!!!
.PclZip
.http://www.phpconcept.net/pclzip/index.en.php
.Barbablu wrote:
. Mauro Griffa ha scritto:
. Ciao,
. qualcuno sa come si pu? decomprimere un file zip presente sul server
usando
. uno script PHP?
.
. grazie per l'aiuto
.
I'm converting an entire site from .html and .shtml files to .php.
Unfortunately a lot of the internal pages have been bookmarked by users, and
so what I'd like to do is have a script that checks for the existence of a
.php file with the same name (e.g. the file used to be contacts.shtml and
now
I'm converting an entire site from .html and .shtml files to .php.
Unfortunately a lot of the internal pages have been bookmarked by users,
and
so what I'd like to do is have a script that checks for the existence of a
.php file with the same name (e.g. the file used to be contacts.shtml and
Hello,
I installed Apache 2.0.52 en PHP4.3.9 on a Windows XP SP2 machine.
Everything runs fine.
I also installed MySQL 4.1 and it also runs fine.
However when I try to connect to a exisiting database from within a PHP
script it fails.
I followed several installation tutorials on the net but nu
Hello,
I installed Apache 2.0.52 en PHP4.3.9 on a Windows XP SP2 machine.
Everything runs fine.
I also installed MySQL 4.1 and it also runs fine.
However when I try to connect to a exisiting database from within a PHP
script it fails.
I followed several installation tutorials on the net
I don't know what problem could you have...please put some code, or error.
You can access to the database using the console of mysql?
Best Regards,
Alex
- Original Message -
From: Jeroen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 05, 2004 2:52 PM
Subject: [PHP-WIN]
I had a trouble involving MySQL 4.1.7 and PHP few days ago and received an
observation that may interest to you.
Marc Lewis [mailto:[EMAIL PROTECTED] wrote:
You need PHP5 to be able to access MySQL 4.1 - and you must use the
mysqli extension, not the mysql extension.
Marc
Note: I still
Jeroen wrote:
Hello,
I installed Apache 2.0.52 en PHP4.3.9 on a Windows XP SP2 machine.
Everything runs fine.
I also installed MySQL 4.1 and it also runs fine.
However when I try to connect to a exisiting database from within a PHP
script it fails.
I followed several installation tutorials on
Why would you want to do this? Blindly installing applications from web links
is *a bad idea* and dialog boxes are there to help protect users. Heck from the
way you asked your question I'm not even sure - are you the user or the
provider? Give us a little more than this to go on and we'll
Warren Vail wrote:
Mike,
While that's not the only way to go somewhere else, if it is the way the
other guy wrote the code to get around, ripping it out an replacing it with
something else could be a problem. The error message you are referring to
indicates that something was sent to the browser
My script is like this
*
?php
echo Starting the program!!!;
$cmd = \C:\MATLAB6p5\bin\win32\matlab.exe\ /nosplash /nodesktop /r -c
E:\\SSN\\cognetics\\amp_fit_power_with_mex\\test2.m;
exec($cmd,$output,$rv);
echo program started!!!;
?
If you are not partial to your current 404 error page, set it to a
script that gets the http referer. Then set up some sort of reference
between the old/new pages (hardcoded array, or a db would work). If
there is a match - send them over to the new .php page - if not - maybe
give them your old
Hello Walter,
No errors, just not the results I want.
I run the following script:
?
echo DB connection testing !;
$mySQL = @mysql_connect(localhost, user, password)
or exit();
echo DB selecting !;
if (!mysql_select_db(my))
exit();
echo DB connection okay !;
?
I only see the string DB
Hello Alex,
No errors, just not the results I want.
I run the following script:
?
echo DB connection testing !;
$mySQL = @mysql_connect(localhost, user, password)
or exit();
echo DB selecting !;
if (!mysql_select_db(my))
exit();
echo DB connection okay !;
?
I only see the string DB
Try removing the @ before mysql_connect(...); or adding mysql_error()
as a parameter of exit() and tell us the error.
Rafael Soares - AgênciaM
Fone: +55 11 4616-1394
-Mensagem original-
De: Jeroen [mailto:[EMAIL PROTECTED]
Enviada em: sexta-feira, 5 de novembro de 2004 18:51
Para:
You have to copy php_mysql.dll to system32 folder
Rafael Soares [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello people!
I'm using PHP 5.0.2, IIS 5.1 running on WinXP Pro.
But the installer for IIS don't install the MySQL functions library and,
after installing the MYSQLX.exe
Hello Alex and Janet,
I tried your things and this is the result after putting mysql_error() as an
argument for exit().
DB connection testing!Client does not support authentication protocol
requested by server; consider upgrading MySQL client.
Should I upgrade my PHP installation?
Regards,
Well,
I've been brave enough to upgrade to PHP5.
The error message disappeared.
But now nothings happens at all.
The mysql_connect(...) function is executed byt never returns.
Right! Whats happening here?
I found this article describing my first problem:
Duncan,
Jason is right. It is not a good idea to do this.
However, if you still want to to this, check the exec() function.
htt://www.php.net/exec
Regards,
Amit
www.digitalamit.com
Jason Barnett wrote:
Why would you want to do this? Blindly installing applications from web
links is *a bad idea*
Duncan,
Jason is right. It is not a good idea to do this.
However, if you still want to to this, check the exec() function.
htt://www.php.net/exec
Regards,
Amit
www.digitalamit.com
Jason Barnett wrote:
Why would you want to do this? Blindly installing applications from web
links is *a bad idea*
Hello everybody,
my problem resided in an incompatible password issue due to an upgrade of
MySQL.
It thought I could solve it bij upgrading to PHP5 but it didn't.
So I fixed the problem using the OLD_PASSWORD() thing on the following link:
http://dev.mysql.com/doc/mysql/en/Old_client.html
28 matches
Mail list logo