Re: [PHP-WIN] How to delete files?

2001-03-05 Thread Gonzalo Vera
Change PHP version. AFAIK, version 4.0.1 had that clear bug (check out the commented manual at php.net, it's probably still there). Install the latest version (4.0.4pl1). The function name is unlink(), not delete(). Gonzalo. > Hi! > I'm a newbie in PHP and want to ask: how to delete files in

Re: [PHP-WIN] Microsoft Access prepared statement with parameters problem

2001-03-03 Thread Gonzalo Vera
Some possibilities: > $statement = odbc_prepare( $connection, "select * from System where A=?" ); Probably you would be better off using single quotes in the condition, since you are tryng to match strings, like: $statement=odbc_prepare($connection,"select * from System where A='?'");

Re: [PHP-WIN] Question on using an array

2001-02-28 Thread Gonzalo Vera
You could try accesing by value number, instead of using value index name. Anyway, I fear that what you're doing is quite illegal, and what is really happening is that when you assign the first 'links.php', it is overwritten by the second assignment, which is in turn overwritten by the third. Try

Re: [PHP-WIN] Newbie question

2001-02-27 Thread Gonzalo Vera
It is slower. Maybe not REEAALLY slower if you don't have much traffic, but when it comes to kicks, you're losing quite some performance. I would suggest that you have a look at some of the DB abstraction layer classes available un phpclasses.upperdesign.com or at www.hotscripts.com; they could co

Re: [PHP-WIN] HTTP Header REFERER

2001-02-26 Thread Gonzalo Vera
I think HTTP_REFERER works only for apache. To obtain values for HTTP header vars without apache, you could use HTTP_ENV_VARS["HTTP_REFERER"] as this is a php variable. Hope it works right, Gonzalo. > In apache, the variable: > HTTP_REFERER is automatically set. > I don't run apache, I tried

Re: [PHP-WIN] Telnet, Socket Configuration

2001-02-22 Thread Gonzalo Vera
You must compile php with socket functions: it does not come pre-compiled in the binaries. Gonzalo. > Hi, > I am trying to write a web telnet interface and I have difficulties with > configuration for the socket functions... they are simply not > recognized. I have php4 on apache server for w

Re: [PHP-WIN] LDAP Configuration

2001-02-22 Thread Gonzalo Vera
> I understand that I need to: > - Uncomment php_ldap.dll extension in PHP.INI <- Done > - Modify extension_dir in PHP.INI <- Done (C:\PHP\) I think this should be c:/php/extensions Take care to use front slashes. Regards, Gonzalo. -- PHP Windows Mailing List (http://www.php.net/) To unsub

Re: [PHP-WIN] crash cause ... ?

2001-02-20 Thread Gonzalo Vera
What DB are you using (if any)? Gonzalo. > Hi, > I have test environment with PHP 403sp1 (CGI) running on Apache 1.3.14 on a > low end (133mhz, 32mb RAM) Pentium with Windows 98. For some reason the > whole set up seems very unstable, and PHP causes general protection faults > consistantly wit

Re: [PHP-WIN] Problems with Apache 1.3.17, PHP 4.0.4pl1 and Netscape 6

2001-02-19 Thread Gonzalo Vera
I placed a bug report some weeks ago at bugs.php.net, stating this problem, related but not limited to a few applications that wouldn't start until apache is shut down (only with php as module). Now it seems we can add Netscape to the list. One of the dev people asked for more info which -I admit-

Re[2]: [PHP-WIN] PHP 'include' function

2001-02-12 Thread Gonzalo Vera
Me too! Gonzalo. > Mathews, could you dig out that script please? I think I might need it. > Bikes > -Original Message- > From: Tom Mathews > Cc: [EMAIL PROTECTED] > Sent: 2/12/01 11:02 AM > Subject: Re: [PHP-WIN] PHP 'include' function > I'm going to sound like a database freak,

Re[2]: [PHP-WIN] Help! PHP database connection error.

2001-02-09 Thread Gonzalo Vera
he same error > as well as reparing the old database. I've restarted the web server, still > the same problem. > The access 2000 db is on an iis 4.0 server which worked fine previously. > Thanks, > Aaron > "Gonzalo Vera" <[EMAIL PROTECTED]> wrote in message &

Re[2]: [PHP-WIN] php access query problem

2001-02-09 Thread Gonzalo Vera
eird thing here is that it worked before. Sorry if I can't get any farther, I'm just switching from access 95 to MySQL (bye bye MS), and in access 95 those would be troublesome issues. Gonzalo. > Access 2000 on IIS 4.0 > "Gonzalo Vera" <[EMAIL PROTECTED]> wrote in

Re: [PHP-WIN] Help! PHP database connection error.

2001-02-09 Thread Gonzalo Vera
This usually happens when another user opens a table for modification (table definition): the table gets locked to all access. If you're only running localhost try "repairing" your database: maybe you got a corrupted table or db. Also if you're only on localhost, restart your computer to make sure

Re: [PHP-WIN] php access query problem

2001-02-08 Thread Gonzalo Vera
What DB are you using? Gonzalo. > I have the query > $cur= odbc_exec( $cnx, "SELECT Location, 'Dept ID', 'Equip Type' FROM > Equipment01 WHERE Location = '415C'"); > which returns the proper results but when I add AND 'Equip Type' = 'C' to > the end of it I get no results. Is my syntax corre

Re[2]: [PHP-WIN] How can I make PHP to work on Win98 ?

2001-01-31 Thread Gonzalo Vera
You can also try AbriaSoft lite (free for non-commercial, check the license), which installs PHP, apache and Mysql from one package. Gonzalo. > Do not install PWS on your system. I would strongly recomend against it. If > you put it on, and the regret it, it's a real pain in the behind do get r

Re: [PHP-WIN] How can I make PHP to work on Win98 ?

2001-01-31 Thread Gonzalo Vera
>Hi, > I work with Winows98 , and I want to make my system > a really server.I have two questions : > 1}What component I should install on my system to > make it a really server ? IIS3 ? or IIS4 ? > 2)Where can I get this component (IIS3 or IIS4 > for Windows98) ? A REAL server? Do

Re: [PHP-WIN] Problem with Oracle

2001-01-31 Thread Gonzalo Vera
> $sql_getID = "SELECT max(CUSTID_NUM) from cfull2.tbl_dl_customers"; > how the hell do I get that number into a variable? Wouldn't changing your SQL statement to this do the trick?: "SELECT max(CUSTID_NUM) as max_cust_id from cfull2.tbl_dl_customers" ^^ And

Re: [PHP-WIN] A question

2001-01-29 Thread Gonzalo Vera
I'm afraid you're still short in having php running: yours is an apache configuration problem, which is off topic for this list. I'll mail you directly with some pointers to get your setup running. Gonzalo. >I am now learning PHP,I have already installed it,and have modified > the 'httped.

Re: [PHP-WIN] Running PHP4 as module under Apache 1.3.14 and Win98se

2001-01-27 Thread Gonzalo Vera
readme.first, in the php distribution covers the apache module installation. It is in the root of your php tree, along with php.exe. Good luck, Gonzalo. > I was wondering if anyone could give me a detailed procedure for setting up > PHP4 as a module in Apache 1.3.14. > The documentation only

Re: [PHP-WIN] Jabber and PHP

2001-01-27 Thread Gonzalo Vera
Mensaje de James; Sábado 27 de Enero de 2001, a las 10:30 AM. What does Jabber do? Somebody who doesn't know Jabber might know some way to get the same functions with other solutions. Gonzalo. > Is there a Jabber module available for PHP that performs the same functions > as the module Net::Ja

Re: [PHP-WIN] ASP to PHP (Secure MS Access connection)..

2001-01-25 Thread Gonzalo Vera
I've never handled secured db's, but in windows' control panel, in the ODBC applet where you define DSN, you can also define the system db for each db. When connecting in PHP your string has DSN, user and password, like: $dsn="AnyDSN"; $user="Joe"; $pass="foobar"; $conn = odbc_connect($dsn,$user,

Re[2]: [PHP-WIN] Linux conection to MS Access

2001-01-24 Thread Gonzalo Vera
er.com/columns/timckun20001207.php3 > Alain > On Wed, Jan 24, 2001 at 01:24:18PM -0600, Gonzalo Vera wrote: >> Is there a way to connect to a MS Access database on a remote >> computer, from a linux box hosting Apache and PHP? (Sorry if this is >> too off-list). Any pointers to

[PHP-WIN] Linux conection to MS Access

2001-01-24 Thread Gonzalo Vera
Is there a way to connect to a MS Access database on a remote computer, from a linux box hosting Apache and PHP? (Sorry if this is too off-list). Any pointers to documents, faqs or so would be appreciated. Thanks, Gonzalo. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-m

Re[2]: [PHP-WIN] createing a php script with reloadable modules.

2001-01-23 Thread Gonzalo Vera
I wonder at what kind of script you have, that needs to be run absolutely nonstop 24/7, but I'll share some "wild guesses": 1. It is not run by a web server, otherwise it would timeout the server (which doesn't mean that it doesn't have relation with your web pages). Your 24/7 script is being com

Re[2]: [PHP-WIN] No More Crashes!

2001-01-23 Thread Gonzalo Vera
Yes, I'll file a bug report. Thanx! Gonzalo. > On 22.01.01 at 11:47 Gonzalo Vera wrote: >> 1. With PHP running as an apache module, launching applications from >> context menus freezes explorer, messing up the display by having to >> kill the application and hav

[PHP-WIN] No More Crashes!

2001-01-22 Thread Gonzalo Vera
First, I want to thank all for helping me with lots of suggestions for questions I posted ("Disabling ODBC", "Tracing crashes", "ODBC vs. Straight MySQL", ...)in the last couple of months. Even if my problem was not fully solved it was more due to my having an old platform nobody else used, than l

Re: [PHP-WIN] htaccess

2001-01-20 Thread Gonzalo Vera
getenv ("REMOTE_USER") Gonzalo. > i wanna use the username the user gave me in the popup box to use it in my > php scripts as a variable how does i get the username to a avriable -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: [PHP-WIN] math graphs plotting

2001-01-18 Thread Gonzalo Vera
Try phpclasses.upperdesign.com, there are several very good graphing classes that can be used for mathematical purposes. Gonzalo. > hi all, > is there a math plotting code coded in php that is similar to mathcad etc > for scientific uses > yours, > kayhan > ___

Re[2]: [PHP-WIN] PHP Editor

2001-01-15 Thread Gonzalo Vera
Also CodeEdit (ralimi.hypermart.net) Gonzalo. > You also have TextPad which is freeware... > michael >> >> yes, phpED is free >> - Original Message - >> From: "Bikes" <[EMAIL PROTECTED]> >> To: "'Alain Samoun '" <[EMAIL PROTECTED]>; "'Angus Mann '" >> <[EMAIL PROTECTED]>; <[EMAIL PROT

Re: [PHP-WIN] One-way Hash function

2001-01-12 Thread Gonzalo Vera
Check out md5 under string functions, in PHP manual. Regards, Gonzalo. > Does any one have a one-way (non-reversible) hash function? I need to > encode some values that can't be read by human, such as password > information. Thanks. > Julian. -- PHP Windows Mailing List (http://www.php.

Re: [PHP-WIN] Probably there is better solution

2001-01-11 Thread Gonzalo Vera
Check out mysql_num_rows and the COUNT function in MySQL: both are good, quick ways of getting that number without looping through your whole result set. Gonzalo. > Hi all, > I have to know how many entries I have in table/database. Usually, I use > $result = mysql_query("SELECT any_name_of_