RE: [PHP-WIN] mysql not working but very odd

2008-01-18 Thread Luis Moreira
On PHP.INI you should have a line like "extension_dir" that says which directory holds the extensions, I think. Do you ? Is it correct and pointing to were you do have the extensions ? Luis Moreira -Original Message- From: Joaquin Grech [mailto:[EMAIL PROTECTED] Sent: s

RE: [PHP-WIN] Help with if

2007-08-06 Thread Luis Moreira (ESI-GSQP)
I believe the syntax is not correct. First, you should have if ($rank !== Unregistered) { or if (($rank) !== Unregistered) { Otherwise, the count for "open parenthesis" and "close parenthesis" do not match. Also, is Unregistered a defined type? If not, how do you compare a variable ($rank) ag

RE: [PHP-WIN] ORDER BY is not sorting

2007-08-01 Thread Luis Moreira (ESI-GSQP)
Just one thought : The code itself, as shown, looks good, but is PHP getting what WE see ? Meaning, try to 1) set a string with the SQL query you want 2) check the string before applying it Maybe, just maybe, you are getting a broken string, and the "order" part is missing, thus not being applied

RE: [PHP-WIN] Get referer with PHP

2007-06-12 Thread Luis Moreira (ESI-GSQP)
Junho de 2007 14:26 To: Bradley Stahl Cc: Luis Moreira (ESI-GSQP); php-windows@lists.php.net Subject: Re: [PHP-WIN] Get referer with PHP Bradley Stahl wrote: > Try using the "$_SERVER['HTTP_REFERER']" server variable to get the URL of > the page that referred the current

[PHP-WIN] Get referer with PHP

2007-06-12 Thread Luis Moreira (ESI-GSQP)
Hi This is possibly way too simple, but let me ask just the same : I want to add some code (may be PHP) on an HTML page, to check the referrer. It has to be web-server independent. If the page is invoked by URL X, ok, if not, the page should not be shown.

RE: [PHP-WIN] Query Syntax - WHERE fieldname1='fieldvalue1' ANDfieldname2='fieldvalue2'

2007-05-22 Thread Luis Moreira (ESI-GSQP)
I think you have an "operator\precedence" issue. Try $query = "SELECT $field_name FROM classifieds WHERE ($field_name1 = '$field_value1') AND ($field_name2 ='$field_value2') "; This will stop you from eventually ANDing the wrong pair... -Original Message- From: Mark Abrams [mailto

RE: [PHP-WIN] Textarea and mysql

2007-05-21 Thread Luis Moreira (ESI-GSQP)
Hi First, let me just say that "it does not work" is too vague. You should always describe the problem a little more. Anyway, there are a couple of things I don't understand on your script : $textareaSubmit = str_replace("\r", "",$textareaSubmit,$textarea2Submit);

RE: [PHP-WIN] Re: php win2003 - No input file specified.

2007-04-30 Thread Luis Moreira (ESI-GSQP)
: segunda-feira, 30 de Abril de 2007 13:14 To: Luis Moreira (ESI-GSQP) Cc: php-windows@lists.php.net Subject: Re: [PHP-WIN] Re: php win2003 - No input file specified. What you mean with "opening", something like .. include("other_file.php"); .. If yes .. Ye

RE: [PHP-WIN] Re: php win2003 - No input file specified.

2007-04-30 Thread Luis Moreira (ESI-GSQP)
Are you opening a file within INDEX.PHP ? Does that file exist ? -Original Message- From: Simeon Goranov [mailto:[EMAIL PROTECTED] Sent: segunda-feira, 30 de Abril de 2007 12:30 To: Jeremy O'Connor Cc: php-windows@lists.php.net Subject: Re: [PHP-WIN] Re: php win2003 - No input file specif

RE: [PHP-WIN] Re: php win2003 - No input file specified.

2007-04-30 Thread Luis Moreira (ESI-GSQP)
It seems to me that you are opening a file within INDEX.PHP Does that file exist ? -Original Message- From: Simeon Goranov [mailto:[EMAIL PROTECTED] Sent: segunda-feira, 30 de Abril de 2007 12:54 To: [EMAIL PROTECTED] Cc: php-windows@lists.php.net Subject: Re: [PHP-WIN] Re: php win2003 -

RE: [PHP-WIN] header()

2006-10-04 Thread Luis Moreira
Probably I missed a message, so forgive me if I did. If what the code below wants is to redirect to a different page, then I believe that the HEADER command can not be preceeded by an ECHO. echo "".$ReturnTo; header("Location: $ReturnTo"); It won't work after that, and that is clear on t

RE: [PHP-WIN] insert md5 password

2006-09-29 Thread Luis Moreira
And the field types, do they all match ? You are entering a date as a string, for example. If all else fails, try to insert only one field at a tine, to see which one fails. Luis -Original Message- From: Niel Archer [mailto:Niel Archer] On Behalf Of Niel Archer Sent: sexta-feira, 29 de

RE: [PHP-WIN] Re: Problems with fscanf [WORKAROUND] fgetc

2006-09-29 Thread Luis Moreira
The "{} syntax" means to run a command whithin another command, whitout having to store results previously. As an example, both following codes do the same, and you don't loose time storing and retrieving variable $argo $argo = fgets($fileID,sizeof($file)); Echo "$argo"; And Echo "{fgets($fil

RE: [PHP-WIN] Finding a percentage

2006-05-31 Thread Luis Moreira
This is not exactly a PHP issue, it is straight math !!! Percent = value / (max - min) -Original Message- From: Daniel Anderson [mailto:[EMAIL PROTECTED] Sent: terça-feira, 30 de Maio de 2006 23:11 To: php-windows@lists.php.net Subject: [PHP-WIN] Finding a percentage Hi, Does anyone kn

RE: [PHP-WIN] problems with session vars

2006-02-27 Thread Luis Moreira
I don't use much session variables, but I think the problem is on PHP.INI, not on Windows. You are using two different systems, you can only compare them if they are using the same settings. Caution This registers a global variable. If you want to register a session variable from within a f

RE: [PHP-WIN] Can't install

2006-02-09 Thread Luis Moreira
That error is related to IIS I am not an expert on IIS, but on the Internet there are reports of exactly the same error (very few, I'm afraid) Luis -Original Message- From: Ing. Tomás Liendo [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 9 de Fevereiro de 2006 14:48 To: php-windows@lists.

RE: [PHP-WIN] SESSIONS and include()

2006-02-09 Thread Luis Moreira
Actually it does not make that much sense. I use includes, with PHP extension, and never had a problem. Take a look at how you communicate between modules, ergo if you have globals on or off, the scope of variables, etc. It seems as if "user_level" is not known within the module. Luis -Origin

RE: [PHP-WIN] Double quotes and HTML

2005-11-17 Thread Luis Moreira
There is nothing wrong with escaping the quotes. Your problem is a bad syntax. You need to "execute" the $_POST command, not print it. Try this if (isset($_POST["user_id"])) echo ""; else echo ""; Luis -Original Message- From: Wayne Khan [mailto:[EMAIL PROTECTED] Sent:

RE: [PHP-WIN] Re: Not getting correct results from $_POST

2005-09-12 Thread Luis Moreira
the list - Original Message - From: "Luis Moreira" <[EMAIL PROTECTED]> To: "'Mark Rees'" <[EMAIL PROTECTED]> Sent: Monday, September 12, 2005 3:15 PM Subject: RE: [PHP-WIN] Re: Not getting correct results from $_POST > Mark, > > If you

Re: [PHP-WIN] what's wrong with this while loop?

2005-06-07 Thread Luis Moreira
What's wrong with the while loop ? You mean besides the fact that you are accessing an array and not specifying the index ? $rand_key[] = $key_chars{$rand_pos}; Other than that, saying te result is strange is not good enough. If you want help, you have to be more specific. As to the "50 millio

Re: [PHP-WIN] Re: problemas com MYSQL e PHP

2005-05-17 Thread Luis Moreira
And advice : to pick up a greater number of hints, post in English... Doing so, you help yourself and possibly someone else with the same problem. Do you MySQL setup ? Can you open a database through the command line ? If not, then start by having a proper DB installation. If this is OK, then your

Re: [PHP-WIN] $_GET and $HTTP_GET_VARS do not seem to work

2005-05-04 Thread Luis Moreira
How do you retrive the variable "message_id" on the script display_list.php ? Steven Courteney wrote: Hi all, This is probably something really simple. I am using PHP 4.3.10 on Apache 1.3 on a Windows 2000 (SP4) set-up. I have 'register_globals' = off and variables_order = 'EGPCS'. The applic

Re: [PHP-WIN] replacing file contents

2005-04-11 Thread Luis Moreira
FYI This script $body = "Test string xpto replace"; echo $body . ""; $body = eregi_replace("xpto", "before", $body); echo $body . ""; ?> works and produces this output Test string xpto replace Test string before replace L

Re: [PHP-WIN] replacing file contents

2005-04-11 Thread Luis Moreira
Hi I, for one, have never done this, but if you are working with html files, I suppose you open it with your browser ? Have you cleared the cache, or at least forced the browser to re-open the file ? If you edit the file after the change using a text editor, do you see the changes, or n

Re: [PHP-WIN] Re: Cookie Problems on Localhost

2005-02-23 Thread Luis Moreira
You can always try to set a cookie, but wether the browser allows it or not, it's a whole different ball game. I believe your problem lies here. Anyway, the two scripts I attach, I have just tried, and the cookie was set by the first, WITH A MESSAGE FROM THE BROWSER ASKING IF I ALLOWED IT. The s

Re: [PHP-WIN] php.ini detail

2005-02-21 Thread Luis Moreira
I am not sure I understand your problem. The separation of parameters is something YOU do, not PHP. An example of a call would be http://www.test.com/script.php?name=Luis&state=active to call SCRIPT.PHP with parameters "name" and "state". christian tischler wrote: Hi, Please help... I think my php.

Re: [PHP-WIN] getting "Couldn't get file list" error.

2005-02-21 Thread Luis Moreira
You send way too much info, forcinf people to read through all of it, to understand your way of thinking and your problem. Keep it simple. Anyway, I think there is something wrong in here $sql = "SELECT furn_pic"; $sql .= "FROM crost"; $sql .= "WHERE item_num = $item_num"; $result = mysql_q

Re: [PHP-WIN] Is there a way I can read full path names of fileson theserver and enter it into the database ?

2005-02-21 Thread Luis Moreira
Have you tried to read the manual ? There is a lot of info on how to do this. Anyway, I think this does the trick : if ($handle = opendir('FULLPATHNAME')) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { At this point, $file contains the file name. On

Re: [PHP-WIN] HTML in PHP to a File

2005-01-13 Thread Luis Moreira
What do you mean by "it doesn't work" ? It does (the minitest, I mean). Luis MikeA wrote: I have a PHP file that outputs HTML to the Internet to a user. The user also wants to be able to print that output to a printer. The user wants it formatted with page breaks in the proper place and so on.

Re: [PHP-WIN] The Test.php program does not execute

2005-01-11 Thread Luis Moreira
As I said, I don't know if you can do that with '98, but I think not. So, it would be an Apache problem. How did you proceed to set up the web server ? You should look at the HTTPD.CONF file, which has the config for Apache. You have directives that allow or forbid the access to directories. There

Re: [PHP-WIN] Blank screen problem

2005-01-07 Thread Luis Moreira
When you run a PHP script, if you "view source" you don't see the code. What you see is the result of the script. If the script doesn't output text, be it html or not, there's nothing to see... The script Hello World"; echo "It's me !"; ?> would produce *Hello World* It's me ! with this as

Re: [PHP-WIN] The Test.php program does not execute

2005-01-07 Thread Luis Moreira
The error is not PHP related. The message comes from the http server. Either you have restrictions on the directory, at OS level (I don't know if you can do that with '98), or within the HTTP server. Luis GKE wrote: I have just joined the learning bandwagon of PHP. I am using Windows 98SE, as suc

Re: [PHP-WIN] PHP cgi

2005-01-04 Thread Luis Moreira
mode and be able to tell me what I'm doing wrong. That, I didn't do. Apologies to IIS users to whom this thread is of no interest. Luis Moreira wrote: This is a PHP list, and there is an Apache one were this problem fits better. Go to www.apache.org and subscribe it. Meanwhile, do you have an

Re: [PHP-WIN] PHP cgi

2005-01-03 Thread Luis Moreira
This is a PHP list, and there is an Apache one were this problem fits better. Go to www.apache.org and subscribe it. Meanwhile, do you have an error log to look at ? What does it say ? Luis blulagoon wrote: Thanks Dean. I've commented out the lines that say: Action application/x-httpd-php /php/ph

Re: [PHP-WIN] Substr function

2004-12-14 Thread Luis Moreira
Copy to the list ** Have you tried reading the manuals, or the function syntax ? What I give you next is readable at http://www.php.net Description string *substr* ( string string, int start [, int length]) *substr()* return

Re: [PHP-WIN] fopen and ftp, help please

2004-12-09 Thread Luis Moreira
Do you close the file after using it ? If not, it may get stuck. Luis Iker Landajuela wrote: Hi, I´m newbie in PHP programming. Iit´s about opening files in an ftp with php, I have the same problem like you, mi script opens the file correctly the first time but no longer, what`s the problem? Thank

Re: [PHP-WIN] Problemas con las igualdades

2004-11-30 Thread Luis Moreira
I do speak Spanish, but for the sake of everyone who doesn't, let's keep the English :-) 1) Drop the comparison using "==", since you are comparing strings 2) Use STRCMP instead 3) Since this function is "case sensitive", maybe it's best to convert the string to upper case, and compare it after

Re: [PHP-WIN] problem to open dir

2004-11-30 Thread Luis Moreira
Remove the double quotes. $dh = opendir('F:/vyapar-2/test/cdaci'); Pravin-Kumar wrote: hi list! $dest='F:/vyapar-2/test/cdaci'; or $dest='F:\vyapar-2\test\cdaci'; or $dest='F:\\vyapar-2\\test\\cdaci'; or $dh = opendir($dest); $a=dir($dest); the above code giving following problem on apache 1.3 o

Re: [PHP-WIN]Permission deny on connecting MS Access database

2004-11-26 Thread Luis Moreira
This is not a PHP error, it's a DB error, and the message is very clear. Either the database is opened allready, and exclusively, or you have to give a username/password with sufficient rights, which you are not doing, with that command. Luis Emperor Kang Xi wrote: Hi all, I need help to solve m

Re: [PHP-WIN] Re: How to check if a *string* has only numbers...

2004-11-19 Thread Luis Moreira
Better yet, use the right function :-) This script $a = "1234567890"; $b = $a.$a; $c = $a."A"; echo "$a "; if (!is_numeric($a)) echo "NOT "; echo "numeric"; echo "$b "; if (!is_numeric($b)) echo "NOT "; echo "numeric"; echo "$c "; if (!is_numeric($c))

Re: [PHP-WIN] Shell Script error

2004-11-10 Thread Luis Moreira
I am not exactly an expert on PEAR, but if the error says "connect failed", you are not reaching the DBand/or the server were it resides. Check the way you are connecting : - Is the server named correctly ? - If the access is authenticated, are you using the correct username/password ? - Do you

Re: [PHP-WIN] POST/GET problem

2004-11-05 Thread Luis Moreira
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...

Re: [PHP-WIN] apache config question

2004-11-03 Thread Luis Moreira
phpWalter wrote: How do I set up permission to access folders and not only specific files in these folders with apache...? I can't find the correct line in httpd.conf Folder and file access is controled at the OS level. Walter No it isn't. Or better, it is, but that is not relevant here. Yo

Re: [PHP-WIN] mysql question

2004-10-26 Thread Luis Moreira
Nothing wrong, besides missing a character. I tried your instructions with the full word CREATE and it worked fine... Luis Patrick Roane wrote: I am learning the mysql basics and was wondering what I'm doing wrong. I'm using the MySQL.exe console to create a simple table, but I keep getting these s

Re: [PHP-WIN] error working with squirrellmail

2004-09-06 Thread Luis Moreira
On line 104, obviously... Luis Moreira wrote: Apparently, you are calling the SPRINTF function with the wrong number of arguments Jose Castilla Gallardo wrote: Hi, i have installing php with squirrelmail and when run squirrelmail found this messages: "PHP Warning: sprintf(): To

Re: [PHP-WIN] Confused

2004-08-02 Thread Luis Moreira
I just read the thread, so I hope I am not missing anything important. You talk about a "php page", but the IMG code is HTML, so I suppose you have the HTML tags in place. I tried this " width="87" height="120" /> and it works fine. Maybe you have some quotes missing, that are needed to have

Re: [PHP-WIN] form to php

2004-07-29 Thread Luis Moreira
Is this the contebnt of the PHP file ? Hi .You are It can not start by the "Hi" word ... Action.php should be something like $name = $_POST['name']; $age = $_POST['age']; echo "Hi $name. You are $age"; ?> PHP MySQL wrote: hi list, i have managed to successfully install php and i am now goi

Re: [PHP-WIN] [pgsql] connectivity problems

2004-07-26 Thread Luis Moreira
Hi I suppose yopu didn't "google" for the error message... Try to read this http://www.postgresql.org/docs/7.3/static/client-authentication.html Luis Ciprian Constantinescu wrote: I have the following code [CODE] [/CODE] And when i run the script I get " Warning: pg_connect() [function.pg-

Re: [PHP-WIN] php_printer

2004-07-14 Thread Luis Moreira
claudio wrote: Can someone help me find a copy of the extension of php_printer.dll preferably for the latest version of PHP but I will not be picky I have installed 4.3.2 on my win2k server and if I have to upgrade well that's great. Thanks in advance. I sent a copy of my DLL file to Claudio,

Re: [PHP-WIN] Self-calling script problem.

2004-07-05 Thread Luis Moreira
user_id']; Unless it is a typo on your mail ... Luis Garry Grierson wrote: Both set to: on "Luis Moreira" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Garry Grierson wrote: If I do this by passing the paramiters back into the script via the heade

Re: [PHP-WIN] Self-calling script problem.

2004-07-05 Thread Luis Moreira
Garry Grierson wrote: If I do this by passing the paramiters back into the script via the header line it works OK. When I try to use the SESSION variable it cant find the values, as I said this is working on another machine running identical op and browser software etc... Any ideas? "Garry Grierson

Re: [PHP-WIN] PHP OOP

2004-06-30 Thread Luis Moreira
Ragnar wrote: Hi lads, I'm just tinkering around in PHP again recently, I haven't done much OO in general, so I wasn't too surpised when some of the stuff I did today didn't work. Example: (DB abstraction): function data($qry_result){ if ($qry_result){ return ibase_fetch_object($qry_result); }

Re: [PHP-WIN] HTTP 400 Bad Request

2004-06-30 Thread Luis Moreira
Stephen Cassidy wrote: Hi all, I am fairly new to this (attended a beginners course last week) and I have been asked to install PHP on or 4 web servers (spread over 4 sites), all the servers are exactly the same running Windows XP and IIS 5. I downloaded the latest PHP 4.3.7 and managed to install

Re: [PHP-WIN] Parsing pageranges

2004-06-29 Thread Luis Moreira
George Pitcher wrote: Hi, I have several systems running which gather, store and process bibliographic data. I have treated pageranges on the basis of two fields per range - start and end, with supplemantary ranges available as well. I've never had to deal with more than 3 ranges in a reference: ch

Re: [PHP-WIN] udp and tcp packet

2004-06-07 Thread Luis Moreira
William CANDILLON wrote: Hello, Is there a way to send udp or tcp packet with php? I don't find any library or extension which has this possibility. Thanks in advance! StorM You don't just "send" a packet. You send it it to an IP address, and there to a "port" or "socket". If you go

Re: [PHP-WIN] calculations

2004-06-03 Thread Luis Moreira
Svensson, B.A.T. (HKG) wrote: How did you come to the conclusion it should be 452? -Original Message- From: Lenny Davila To: 'php windows' Sent: 3-6-2004 3:23 Subject: [PHP-WIN] calculations I have in my php code: $galleryRow = 3; $maxwidth = 144; $borderwidth = 2; $imagediv = ($maxwidth +

Re: [PHP-WIN] Output Control

2004-05-27 Thread Luis Moreira
Svensson, B.A.T. (HKG) wrote: Are you trying to say that flush() does not work properly for you, i.e you don't see the numbers comming one by one with a seconds delay, but get all at once? William, If you go to www.php.net and look for "flush" you will see that the problem you experience is

Re: [PHP-WIN] Output Control

2004-05-26 Thread Luis Moreira
William CANDILLON wrote: I want to execute my script in a browser as with the shell mode. Example: static $i = 0; while ($i < 10) { ++$i; echo "$i\n\n"; sleep(1); } ?> I've tried this but it's doesn't work : static $i = 0; while ($i < 10) { ++$i; echo "$i\n\n"; flush(); sleep(1); } ?> What exa

Re: [PHP-WIN] help!! can not find php_printer.dll

2004-05-20 Thread Luis Moreira
Jeffrey D. Means wrote: Can someone help me find a copy of the extension of php_printer.dll preferably for the latest version of PHP but I will not be picky I have installed 4.3.2 on my win2k server and if I have to upgrade well that's great. Thanks in advance. --- Jeffrey D. Means CIO for Mea

Re: [PHP-WIN] Problems Configuring and I do all the manual says...HELP!

2004-05-14 Thread Luis Moreira
Subject: Re: [PHP-WIN] Problems Configuring and I do all the manual says...HELP! Are you sure that MySQL is running? Are you able to connect to it with an MySQL client? Are you running it as a service or standalone? steve - Original Message - From: "Luis Moreira" <[EMAIL

Re: [PHP-WIN] Problems Configuring and I do all the manual says...HELP!

2004-05-13 Thread Luis Moreira
Alejandro César Garrammone wrote: Hi all, I've a problem configuring my php on a Windows XP OS. I do all the manual says...the Apache Server has service start and it seems it is working fine...but when the php try to connect to a mysql databases it's do nothing. Before the XP I have a W98 running

Re: [PHP-WIN] Mail Function Problem

2004-04-15 Thread Luis Moreira
M. Imran Khan wrote: When I am sending mail through mail() function, I am unable to view that mail properly. I think some quotes probblme. Suppose I want to mail the following tag: http://www.abc.com/logo.gif";> But it would work properly if I don't use the quotes other wise not. Please help me

Re: [PHP-WIN] How do I access the value of PHP_OS?

2004-04-08 Thread Luis Moreira
David Scott wrote: In the PHP on Windows chapter of Programming PHP, there is mention of a constant, PHP_OS, that can be used to determine the OS running the server that PHP is on. The example code is as follows, However, rather than checking this value, I'd like to see if flat out. I tried

Re: [PHP-WIN] back slash issue

2004-03-22 Thread Luis Moreira
Escape the backslash before using it $errorCode = $TK->OpenOutputFile("D:\\public\k1\\compiledCIO\\$filename"); Luis - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 22, 2004 4:32 PM Subject: [PHP-WIN] back slash issue > > I have a situation

Re: [PHP-WIN] MySQL query to generate Array

2004-03-22 Thread Luis Moreira
Try something like this (UNTESTED) // array1 is temporary array // array2 is the one to fill with query results $array1= array("URL"=>"nul","URLN"=>"nul"); $array2= array( 1=>array("URL"=>"","URLN" => "") ); // $n is counter of registers // begin mysql query // foreach element // $row[0] i

Re: [PHP-WIN] Slash problem in link

2004-03-22 Thread Luis Moreira
This is not PHP related... What is your server, IIS or Apache ? If it is Apache, do you have ALIAS ? It is different to alias /images (with trailing slash) and images (WITHOUT trailing slash), you know ? Luis - Original Message - From: "Harpreet" <[EMAIL PROTECTED]> To: <[EMAIL

Re: [PHP-WIN] OK, ahí voy...

2004-03-19 Thread Luis Moreira
PHP scripts are programs, that you can write using almost anyting, starting with Notepad, providing you know what you are doing. There is also TEXTPAD, that is a simple text editor, but that can show you the line numbers, which can be very useful to debug (error in line xxx). I don't know of editor

Re: [PHP-WIN] Sending arguments to a SP in PHP

2004-03-05 Thread Luis Moreira
Is the echo you show after the string being generated or within the funcion ? Try it (if you haven't already) immediately after the generation. Maybe there is something wrong with the other strings envolved, or with the syntax itself (you don't show the entire command). If it is not, don't bother w

Re: [PHP-WIN] problems with variables

2004-02-09 Thread Luis Moreira
Your problem is in your "form_results.php3". There are instructions badly terminated. Look for missing quotes, for instance... Luis - Original Message - From: "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 07, 2004 9:42 PM Subject: RE: [PHP

Re: [PHP-WIN] SQL to select a set of records

2004-02-06 Thread Luis Moreira
Not quite true. >From the manuals : The LIMIT clause can be used to constrain the number of rows returned by the SELECT statement. LIMIT takes one or two numeric arguments. If two arguments are given, the first specifies the offset of the first row to return, the second specifies the maximum numb

Re: [PHP-WIN] error with variables after php 4.1.1 (but not priors)

2004-01-27 Thread Luis Moreira
How was, and how is set "register globals" ? If it is off, as it should, it works this way. Try $valor=$_POST['valor']; echo "Valor = $valor"; Do you see the result ? Luis - Original Message - From: "Josep" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 27,

[PHP-WIN] undefined printing functions

2004-01-14 Thread Luis Moreira
Hi       I am trying to write scripts to print data using PHP 4.2.2 (Win2K) , and keep getting   Fatal error: Call to undefined function: WATHEVER_FUNCTION() in d:\myweb\printers.php on line xx (the line number matches the line where the function - any function - is called from)       On PHP.I

Re: [PHP-WIN] mssql_connect problem

2003-12-18 Thread Luis Moreira
t;[EMAIL PROTECTED]> To: "Luis Moreira" <[EMAIL PROTECTED]> Sent: Wednesday, December 17, 2003 4:35 PM Subject: RE: [PHP-WIN] mssql_connect problem La x es la ruta del archivo carpeta\archivo.php (por ejemplo) $db_usuario y $db_password = "Formas" Es el login y password que

Re: [PHP-WIN] mssql_connect problem

2003-12-17 Thread Luis Moreira
Omar, Español ?... Es este el mensaje completo ? De donde viene el "x" ? Qual es el contenido de las variables $db_usuario y $db_password en el momento de la llamada ? Luis - Original Message - From: "Omar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, De

Re: [PHP-WIN] /php-4.3.4-Win32/php.exe/index.php not found

2003-12-04 Thread Luis Moreira
Apparently your browser is complaining about INFO.PHP, not PHP.EXE. Do you call INFO.PHP inside INDEX.PHP ? If you do, are you sure it exists and is on the right place ? Luis - Original Message - From: "Miroslav Majdan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, Decembe

Re: [PHP-WIN] Code to splite page

2003-11-27 Thread Luis Moreira
Not sure I understand what you want. It seems simple programming, though. Be a little more specific... Luis - Original Message - From: "Lawrence" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 27, 2003 1:43 PM Subject: [PHP-WIN] Code to splite page > I need the co

Re: [PHP-WIN] DFD for website

2003-11-26 Thread Luis Moreira
I wasn't planning on contributing to this (very) large thread, but one thing is to read that not all questions deserve an answer (like on the -good- document that Ignatius pointed out), which I think is false, but respect as an answer, and a very different thing is to insult someone because they as

Re: [PHP-WIN] Using PHP to reload a page w/variable.

2003-11-20 Thread Luis Moreira
Hi. In PHP you evaluate a string with "string comparison" functions. It is viewed in asterisks, but passed quite normally. As for the rest, you start by checking a variable on your page, and if it denotes an error on a password, echo your message and proceed to read it again, and the

Re: [PHP-WIN] script to update file names

2003-11-14 Thread Luis Moreira
The syntax look something like this UPDATE tablename SET filename=desired_filename WHERE first_two_equal_X: Luis - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 14, 2003 4:26 PM Subject: [PHP-WIN] script to update file names > I have a db

Re: [PHP-WIN] best php editor?

2003-11-04 Thread Luis Moreira
There is also PHPEDIT and TEXTPAD (this one at http://www.textpad.com/) Luis - Original Message - From: "Disko_kex" <[EMAIL PROTECTED]> To: "'Bobo Wieland'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, November 04, 2003 4:00 PM Subject: RE: [PHP-WIN] best php editor? > Tr

Re: [PHP-WIN] query error

2003-11-03 Thread Luis Moreira
What is this doing here ? where 1=1 This is always true - Original Message - From: "Rinku Shivnani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 03, 2003 12:50 PM Subject: [PHP-WIN] query error > SELECT types, comp_name, modal, to_char(manufact_dt,'dd/MON/')

Re: [PHP-WIN] Run php file every day?

2003-10-28 Thread Luis Moreira
Try MS Task scheduling - Original Message - From: "Disko_kex" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 27, 2003 5:06 PM Subject: [PHP-WIN] Run php file every day? > Hi, > > Is there an easy way to run a php file same time every day? Im running > IIS5 and PHP4

Re: [PHP-WIN] Check box value for PHP

2003-10-28 Thread Luis Moreira
This is part of a php/html script. Check the syntax. You more than likely forgetting something along the way. echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; Luis - Original Message - From: "Rinku Shivnani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

Re: [PHP-WIN] Include and require

2003-10-20 Thread Luis Moreira
Browse through http://ww.php.net , search and read the documentation. If you do that and search for "include", for instance, you will find The documentation below also applies to require(). The two constructs are identical in every way except how they handle failure. include() produces a Warning wh

Fw: [PHP-WIN] Check mail format

2003-10-17 Thread Luis Moreira
As far as I know, there is no direct way. You have to parse the address, looking for the "@" character, at least. Then check for the presence of characters before and after the "@", and at least a dot "." on the right side (after "@"). Luis - Original Message - From: "MeAndI" <[EMAIL PROT

Re: [PHP-WIN] Looping problem

2003-09-25 Thread Luis Moreira
I'm not sure I understand what you want. You mean you write out what you find between each two times your criteria is met ? Luis - Original Message - From: "Gerardo Rojas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 25, 2003 2:57 PM Subject: [PHP-WIN] Looping prob

Re: [PHP-WIN] calling a php script

2003-09-16 Thread Luis Moreira
What do you mean by "nothing seems to work" ? Have you tried to "include" the script you wish to run ? If you use http (i don't think so), you can also use forms and links. - Original Message - From: "Gerardo Rojas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 15, 2

Re: [PHP-WIN] Problem writing to a file

2003-09-09 Thread Luis Moreira
You have these two lines $fp2 = "C:\\inetpub\\wwwroot\packtracker\\LSE\\".$cr.".txt"; $fp3 = "C:\\inetpub\\wwwroot\packtracker\\LSE\\".$cr.".doc"; Why do you have double slashes on every place but one ? :-) Luis - Original Message - From: "George Pitcher" <[EMAIL PROTECTED]> To: <[EMAIL

Re: [PHP-WIN] Making a service with php

2003-08-14 Thread Luis Moreira
What version of PHP do you use ? On PHP-4.1.0 there is an EXPERIMENTAL set of functions (so they say) - socket_create, socket_bind, socket_listen, socket_accept - that combined should do your trick... Luis - Original Message - From: "John Yu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Se

Re: [PHP-WIN] Making a service with php

2003-08-06 Thread Luis Moreira
The documentation says "PHP 4 >= 4.1.0" so I expect they do... I haven't use them though. Luis - Original Message - From: "John Yu" <[EMAIL PROTECTED]> To: "Luis Moreira" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday,

Re: [PHP-WIN] unable to delete php created files in php

2003-08-04 Thread Luis Moreira
John, I don't really know XP, but it seems that maybe the problem is within "xp permissions", because you can have permission to write/create, but not to delete. Double check wether Apache really has rights (delete or full) on the directory were you put the files. Again, I don't know

Re: [PHP-WIN] replacing strings... (hope it isn't too basic...)

2003-07-25 Thread Luis Moreira
Q1: See the script below Q2 : n/a Q3 : n/a Q4 : You have to find the insertion point with strpos, and then insert like this $pos = strpos($mystring,$findme); if ($pos>0) { $leftmost = substr($mystring,0,$pos); $rightmost = substr($mystring,$pos,strlen($mystring)-$pos); $new_string =

Re: [PHP-WIN] session problem

2003-07-23 Thread Luis Moreira
If you could interpret them, and the problem would be to get rid of them, that's one thing. This is different. Be more specific. What warnings ? - Original Message - From: "tana dsasa" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 23, 2003 11:17 AM Subject: [PHP-WIN] s

Re: [PHP-WIN] Listing directory files in individual cells in a htmltable

2003-07-23 Thread Luis Moreira
This will do the trick (no tested, written on the fly) Luis // column counter $n = 1; // start the record print ""; foreach($files as $file){ print "$file"; // another column $n++; // if 8, then if ($n==8) { // close record, open new, and reset counter pr

Re: [PHP-WIN] Re: Newbie Q

2003-07-18 Thread Luis Moreira
Gabriel, Try reading the manuals at http://www.php.net They are a good source of info, always, to start with. PHP_SELF and PATH_INFO are variables, and as such must have a dollar sign. Your error messages implies you did not put that sign. Furthermore, you complain about PHP_SELF and PATH

Re: [PHP-WIN] checkboxes in php

2003-07-10 Thread Luis Moreira
Take this for an example : This script fills part of a form with checkboxes named C1,C2, ect $cnt=0; for ($i=1;$i<=$n_alunos;$i++) { if ($cnt==0) { print ""; } print "Aluno $i"; $cnt++; if ($cnt==$colunas) { print ""; $cnt=0; } } This script receiv

Re: [PHP-WIN] checkboxes in php

2003-07-10 Thread Luis Moreira
PHP passes variables it initalizes, not all. You should check if the variable is set with the "isset" function. Anyway, if you want. post your code, and I'll take a look at "line 27", wich should be referring to an "array element" corresponding to a non-selected checkbox. Luis - Original Mess

Re: [PHP-WIN] Re: Forms-PHP-and-errors

2003-07-09 Thread Luis Moreira
The error complains about an unexpected "!", right ? What if you do if (!isset($title)) { That's the correct syntax, you know ?... Luis - Original Message - From: "jh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 09, 2003 9:03 AM Subject: [PHP-WIN] Re: Forms-PHP

[PHP-WIN] include within html

2003-07-03 Thread Luis Moreira
Hi       A simple (?) question :       When doing this   include 'setup_vars.php'; ...       the whole of SETUP_VARS.php is written to the screen, instead of bieng executed.         What am I doing wrong ?     Thanks Luis   -- PHP Windows Mailing List (http://www.php.net/) To unsu

[PHP-WIN] Re: include within html

2003-07-03 Thread Luis Moreira
Never mind - Original Message - From: Luis Moreira To: [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 3:09 PM Subject: include within html Hi A simple (?) question : When doing this

  1   2   >