==
not
=
$_SESSION["id_produs"][]== $_POST["id_produs"];
Un saludo, Danny
"Daniel"
The Hungarian notation was developed by a Hungarian programmer from
microsoft.
I use hungarian notation in visual c++ but in php ???
If you have more information search in http://msdn.microsoft.com have
examples and the complete and protability list, to other langauages such vb
Un saludo, Danny
if you turn on --enable-bcmath, you can use de bcmod function equivalen to
Mod operator from visual basic
Un saludo, Danny
Dean Baldwi
I have a stupid question.
I need if i be in a http make a redirect to https.
Http is a 80 port and ssl is a 443 port
if ($HTTP_SERVER_VARS['SERVER_PORT']==80)
{
header("Location: https://mynet.com/pay.php";);
exit;
}
Is the correct way to do this ??? Exist any function to make this ?
You can install Zend Optimizer from www.zend.com is free but with comercial
license.
Perform some optimizations in your code to not compile the same code in
each request.
Un saludo, Danny
To change the rights from a php script put the following lines
define('CHMOD_FILES', 0666);
//define('CHMOD_DIRS', 0777);
@chmod(Your file name, CHMOD_FILES);
Un saludo, Danny
you refer to this
var message="some text";
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
doc
Hi to all, any one can tell me, what is the correct way to write secure
applications in php and how is the best way to remove or prevent the
backtip operator.
I think what my code is very insecure.
What is the correct way to do this ???
$Myusername = isset($HTTP_POST_VARS['username']) ? trim(html
[EMAIL PROTECTED] wrote:
> $mysql_link = mysql_connect("localhost", USER, PASS);
>
> mysql_select_db(DB, $mysql_link);
>
>$SQL = "SELECT * FROM tbl";
>
>$result = mysql_query($SQL, $mysql_link) or die (mysql_error());
>
>echo "";
>
>while($resultat = @mysql_fetch_array($result)) {
$mysql_link = mysql_connect("localhost", USER, PASS);
mysql_select_db(DB, $mysql_link);
$SQL = "SELECT * FROM tbl";
$result = mysql_query($SQL, $mysql_link) or die (mysql_error());
echo "";
while($resultat = @mysql_fetch_array($result)) {
echo "
$resultat[ip]
";
a litle example of my upload file
Transferir
doupload.php
El archivo ha sido transferido http://bmwfaq.com/uploads/$image_name>
http://www.bmwfaq.com/uploads/$image_name ";
if ($image_name == "") {
$endresult = "No se han seleccionado
archivos";
}elseif (($size_
Hi to all, i have a big problem, i use a phpBB forum in my page, here in
Spain the ISP's use a cache proxie system.
And when change anything in my forum such as image or new functionality, my
users can not view the forum.
Yesterday i include a visual system confirmation to register, and today my
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]):
> Hit to all, i have a Sun cobalt Raq 550, with php 4.1 as a module with
> apache 1.3
>
> The load average of my server is ever above 0.20 to 0.60 whith the same
> users
>
> When i turn off register globals and turn on safe mode in php.ini and
>
Hit to all, i have a Sun cobalt Raq 550, with php 4.1 as a module with
apache 1.3
The load average of my server is ever above 0.20 to 0.60 whith the same
users
When i turn off register globals and turn on safe mode in php.ini and
restart the apache daemon to take the changes, the load averge is e
Use
algo.bat
REM Output from a batch file
Dir C:\
sleep 10
or
Check if the safe_mode is on, and turn to off
Un saludo, Danny
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
if (!empty($file['file_data'])) {
if (get_user_os() == "MAC") {
header("Content-Type: application/x-unknown\n");
header("Content-Disposition: attachment; filename=\"".$file
['file_name']."\"\n");
}
elseif (get_browser_info() == "MSIE") {
$disposition = (!eregi("\.zip$", $
echo $HTTP_GET_VARS['mailaddress'] ;
Un saludo, Danny
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ohh, excuse me, i read bad your message.
What is the size of the file ??
check in php.ini the postmax_size param.
Is very strange
Un saludo, Danny
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
check if allow_url_fopen is on in /etc/php.ini or C:\Windows\php.ini
Un saludo, Danny
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi to all.
I attempt to make security my host i change the following params in php.ini
allow_url_fopen = Off
safe_mode =on
safe_mode_gid = on
disable_functions = readfile,system
Any sugestion, or comment about make php secure ??
Excuse by my broken english
Un saludo, Danny
--
PHP General
20 matches
Mail list logo