Re: [PHP] Fatal error: [] operator not supported for strings

2003-08-19 Thread desa15
== not = $_SESSION["id_produs"][]== $_POST["id_produs"]; Un saludo, Danny "Daniel"

RE: [PHP] dev style guide

2003-08-08 Thread desa15
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

Re: [PHP] Help with Mod mathematical function

2003-08-06 Thread desa15
if you turn on --enable-bcmath, you can use de bcmod function equivalen to Mod operator from visual basic Un saludo, Danny Dean Baldwi

[PHP] Redirect to HTTPS

2003-08-01 Thread desa15
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 ?

Re: [PHP] PHP or CGI in C/C++

2003-08-01 Thread desa15
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

Re: [PHP] jabber - chmod on files

2003-08-01 Thread desa15
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

Re: [PHP] Right Click Hyperlink

2003-07-31 Thread desa15
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

[PHP] Backtip operator

2003-07-29 Thread desa15
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

Re: [PHP] Displaying MySQL data inside of a table

2003-07-28 Thread desa15
[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)) {

Re: [PHP] Displaying MySQL data inside of a table

2003-07-28 Thread desa15
$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] ";

Re: [PHP] File upload

2003-07-25 Thread desa15
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_

[PHP] Help with cache-proxies

2003-07-25 Thread desa15
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

Re: [PHP] Load in a dedicated server

2003-07-24 Thread desa15
* 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 >

[PHP] Load in a dedicated server

2003-07-24 Thread desa15
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

Re: [PHP] How to execute a bat file on the Apache server

2003-07-22 Thread desa15
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

Re: [PHP] popping up download dialog box

2003-07-18 Thread desa15
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$", $

Re: [PHP] Variable not passed twixt pages..

2003-07-18 Thread desa15
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

Re: [PHP] 4.3.2 fopen() problem/limit?

2003-07-17 Thread desa15
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

Re: [PHP] 4.3.2 fopen() problem/limit?

2003-07-17 Thread desa15
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

[PHP] PHP About Security

2003-07-16 Thread desa15
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