Re: [PHP] Detecting email bounces sent by the mail function?

2002-11-29 Thread Chris Hewitt
scott wrote: What would php run as on a cobalt raq4 so I don't get the x header warning Best regards As php is a web application, it is the webserver sending emails. Apache runs as user "httpd" on the raq on which I have an account. Get it to send you an email so that you can check. HTH Chri

Re: [PHP] Werid problemswith mail() command: From address on sent messages

2002-11-29 Thread Chris Hewitt
C.F. Scheidecker Antunes wrote: The problem is that I do not want and cannot have my message headers with a From: Apache@LocalHost as this copy bellow shows: I've changed the header variable and put a From in it so it does displays the right FROM: address as bellow. But as you can see, the Recei

Re: [PHP] how to use mssql_connect()?

2002-11-29 Thread Chris Hewitt
Kim wrote: when i using mssql_connect() function,that's show "Fatal error: Call to undefined function: mssql_connect()" on php page,i don't know why that it is! php 4.2.3 sql server 2000 apache 1.3.19 windows 2000 pro "php.ini" had configurated ok. This error message means that the function is

Re: [PHP] Going Mad

2002-11-30 Thread Chris Hewitt
Andy wrote: and save it test.php when i look at it in explorer all i see the preceding html code. hat have i done wrong? I am using windows 2000 pro. It seems as though you have not added the AddType line for php in httpd.conf and restarted Apache. If your file is test.php then the ".php" m

Re: [PHP] Going Mad

2002-11-30 Thread Chris Hewitt
Andy Davey wrote: Hi Chris I have added AddType application/x-httpd-php .php to the httpd config file, and restarted it, but still no luck. Andy Hmm. I take it the file you are trying to get at (via http:// as Phil says) has got a php extension? I assume there are no or or tags around th

Re: [PHP] Going Mad

2002-11-30 Thread Chris Hewitt
Andy Davey wrote: There are two httpd config files, one of which is default, i take it that is the one you edit? I know it is something simple, which is why i cannot se it! There should only be one. I suggest you put some rubbish into one and restart apache. If it does not complain then it is

Re: [PHP] Going Mad

2002-11-30 Thread Chris Hewitt
Andy wrote: "Chris Hewitt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Can i type anything into the file or should it be code, you will have to Yes, anything. If apache does not understand it then it will not start up. Don'

Re: [PHP] last updated ?

2002-11-30 Thread Chris Hewitt
Paul O'Neil wrote: Dumb question here but whats the general practice regarding putting a "website last updated:" entry on a web page? Does the web master manually enter in today's date in a database table entry and let PHP display. Is it statically added to the HTML page? Etc... If you want "we

Re: [PHP] Test links?

2002-11-30 Thread Chris Hewitt
Rob Packer wrote: Okay, I'm confused... file, fopen, and fsockopen seem to say not found on alot valid URLs... does this look to be correct usage? $url = $row[0]; // just get the url from the db $fp = implode ('', file ($url)); if (!$fp) {echo "Unable to access file"; } else { fclose($fp); echo

Re: [PHP] Going Mad

2002-11-30 Thread Chris Hewitt
Phil Driscoll wrote: There's your problem. Assuming you haven't messed about too much with the apache config, your php file needs to live inside apache's htdocs directory. Can't remember exactly where that would be on a windows box - something like c:/program files/apache group/apache/htdocs m

Re: [PHP] last updated ?

2002-12-02 Thread Chris Hewitt
Morgan Hughes wrote: Or use stat() to get the page's mtime, something like Good idea. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Output of MySQl sorted query to text or Word file.

2002-12-06 Thread Chris Hewitt
[EMAIL PROTECTED] wrote: What do I need to use to create real linefeeds or new lines when viewing under windows? Unices use only the "newline" character (interpreted as "line feed" in dos/win), whereas dos/win uses "carriage return" and "line feed". So to get it to show right in e.g. NotePad

Re: [PHP] open_basedir

2002-12-08 Thread Chris Hewitt
Przemysław Żółczyński PRV wrote: When I am try toput photo to the server I get this: Warning: open_basedir restriction in effect. File is in wrong directory in /mnt/host-users/zolty/tools/addprod.php on line 117 What is this? Przemek open_basedir restricts the directories that may be used. T

Re: [PHP] PHP-MySQL?!

2002-12-09 Thread Chris Hewitt
Bsantos PHP wrote: for ($i=0;$i<1;$i++) { Your "for" loop appears not needed, it only gets executed once. Problem is, when I try to execute the .PHP page with this stuff, it keeps blinking until it tells me that the page could not be found. NOTE: If I use in the query: "... LIMIT 1000", it

Re: [PHP] MySQL Table backup

2002-12-09 Thread Chris Hewitt
Shaun wrote: I am trying to backup my database can someone please tell me why the following commande wont work? mysqldump -h localhost -u username -p databasename > backup.sql Changing "username" and "databasename" to valid values on my database, I get this line to work here. What error are y

Re: [PHP] MySQL Table backup

2002-12-09 Thread Chris Hewitt
Shaun wrote: ERROR 1064: You have an error in your SQL syntax near 'mysqldump -h localhost -u xxx -p xxx backup.sql' at line 1 It sounds like you are not running it from the command prompt but from within mysql. Unless the omission of the redirection sign ">" but not "backup.sql" was intentio

Re: [PHP] Passing variables from script to script

2002-12-11 Thread Chris Hewitt
Stefan Hoelzner wrote: nevertheless: I want to pass variables from one .php to another .php script. But I do not want to use either the http://localhost/target.php?var1=test&var2=test2 nor the POST method. I would like to pass over general variables like usernames and Sessions. The data is

Re: [PHP] Forms

2002-12-11 Thread Chris Hewitt
Beauford.2002 wrote: --snip--- The problem is that the form is not sending the employee name to the php page. If I insert the name in the php page manually, it works fine, so the problem appears to be with the form. --snip-

Re: [PHP] Displaying output from MySQL

2002-12-11 Thread Chris Hewitt
Beauford.2002 wrote: Hi, Not sure if this is a PHP of a MySQL question, so I am sending it to both groups. Basically I have a list of numbers with two decimal places in the MySQL database, but I only want to display some of them with the decimal points. Check out number_format() in the manual

Re: [PHP] PHP Editor Browser View? (Beginner Question)

2002-12-11 Thread Chris Hewitt
Paul Lazare wrote: I copied the complete Homepage on my harddisc to work on it tiht PHP Edit and everthing works fine. But how can I see the result of the changes (without uploading it the provider again)? In your browser, use the File menu to open a file (assuming this is a static not dynami

Re: [PHP] mail() problem

2002-12-11 Thread Chris Hewitt
Carlos Alberto Pinto Hurtado wrote: mail($to,$subject,$body,$headers); if $to is [EMAIL PROTECTED] is perfect. if $to is user@otherdomain generate error the problem is when the content $to is different at ica.gov.co eg. [EMAIL PROTECTED] function mail dont'n response. Carlos, This has to b

Re: [PHP] mail() problem

2002-12-11 Thread Chris Hewitt
Carlos Alberto Pinto Hurtado wrote: SMTP = hermes.ica.gov.co I forgot to add, look at the mail log on the above computer. It should show the attempt to send the email. If so, then it is another confirmation that your php is OK and it is the email server. Chris -- PHP General Mailing List (

Re: [PHP] Filter vulger / controversial words - need word source

2002-12-11 Thread Chris Hewitt
there simply is no definitive list of words I agree. In Amateur Radio we faced this problem in the UK in the mid-90s on the ax25/tcpip network when the Home Office made the sysops responsible for content. Filtering messages off for human reading if any words on the "list" occured was the on

Re: [PHP] window size and setting other properties

2002-12-11 Thread Chris Hewitt
Larry Brown wrote: Does PHP have any commands to set the size of the window to be loaded? For that matter are there any methods for hiding buttons etc. from PHP? Being server-side it can only output html. You can open a new window but not set its parameters. To do that you need JavaScript, wh

Re: [PHP] Building apache, php & mysql, should I use apache 2.0?

2002-12-11 Thread Chris Hewitt
Lumpkin, Buddy wrote: Is php under apache 2.0 still experimental? There has not been any announcement here, so I believe so. What are the pros/cons? Production 1.3.x. Development or play 1.3 or 2.0 HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] Include?

2002-12-12 Thread Chris Hewitt
Shawn McKenzie wrote: Is this expected behavior??? Settings such as safe_mode come into play. There is a difference between what a webhost provider expects from someone trusted with an account, and what is expectd of a user of your website. The best advice I've heard is to assume a user of y

Re: [PHP] Compiling PHP and RH Linux

2002-12-14 Thread Chris Hewitt
Todd Cary wrote: I am new to Linux, so the syntax is still quite foreign for setting up compiles. Here is what I need to do: Compile PHP with MySQL, Interbase, and the GD library and then compile Apache so that it has the newly compiled PHP integrated. Can someone refer me to some The INS

Re: [PHP] Re: Mail() Not working right

2002-12-16 Thread Chris Hewitt
Miguel González Castaños wrote: I am testing the php mail function with the typical script $mailsuccess = mail(...); if (!$mailsuccess) { echo "Mail could not be sent"; } In one redhat linux box I got that the email was sent succesfully and in the other box, it cant send it, but the script is e

Re: [PHP] pcntl_fork

2002-12-17 Thread Chris Hewitt
Negrea Mihai wrote: I have configured php with --enable-pcntl and it says: Either php being used is not compiled with this option (what does phpinfo show? Did you restart Apache)? Call to undefined function: pcntl_fork() Or pcntl_fork() is not a function provided with --enable_pcntl. I c

Re: [PHP] pcntl_fork

2002-12-17 Thread Chris Hewitt
Negrea Mihai wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 My phpinfo shows in the upper part in the configure line that it has been compiled with --enable-pcntl I have Apache 2.0 from RH8.0 This seemed a bit wierd so I looked further. From the manual (http://www.php.net/manual/en/ref.

Re: [PHP] Undefined variable error message

2002-12-18 Thread Chris Hewitt
Michael Egan wrote: All of the PHP scripts hosted on a Linux server I'm working with have suddenly begun producing an error message: undefined variable 'variablename' Has the code been working on a different server with an earlier version of PHP (or this server upgraded)? It sounds as though

Re: [PHP] Undefined variable error message

2002-12-18 Thread Chris Hewitt
Hmm, yes. Why did I not think of error reporting at E_ALL? Chris Hewitt wrote: Michael Egan wrote: All of the PHP scripts hosted on a Linux server I'm working with have suddenly begun producing an error message: undefined variable 'variablename' Has the code been working

Re: [PHP] $_SERVER["PATH_TRANSLATED"] returns empty string

2002-12-18 Thread Chris Hewitt
Robert Nedbal wrote: Hi, thanks for your reply. But changing source code in my setup is not a long term option. My problem is that $_SERVER["PATH_TRANSLATED"] gives me empty string. Does anybody know how to fix my PHP installation, so $_SERVER["PATH_TRANSLATED"] will give me correct file path?

Re: [PHP] Re: *Cannot connect to db

2002-12-18 Thread Chris Hewitt
Alexey Lysenkov wrote: Warning: MySQL Connection Failed: Access denied for user: 'tmc@localhost' (Using password: YES) in e:\~~~\~~~\apache\website\~~~\testdb.php on line 8 The guy at the support says, that everybody else can connect no problems, sent me the code, which I copy-pasted and I still

Re: [PHP] $_SERVER["PATH_TRANSLATED"] returns empty string

2002-12-18 Thread Chris Hewitt
Robert Nedbal wrote: Are you implying that it used to work on another computer, or before an upgrade? If so, can you compare the php.ini files? Otherwise maybe its a bug (php with Apache2 I don't think is stable yet). HTH Chris Yes exactly, it's working on our production server (apache 1.x, p

Re: [PHP] JavaScript or browser detection

2002-12-19 Thread Chris Hewitt
Steve Vernon wrote: I know it is probably out there somewhere, but I cannot find out a script to detect the browser. I have seen it, and I sorta remember how to do it, but I just can't find it! From memory, a full script was posted to this list in the last few days. HTH Chris -- PHP General

Re: [PHP] FW: checking bounce email

2002-12-19 Thread Chris Hewitt
See kok Boon wrote: Can someone kindly teach me how to check for bounced emails when I use mail() to send emails? Its the "Return-To" smtp field that has the address that bounces are to be notified to. Using mail() I think this can be set with the last parameter. I'm being a bit vague here a

Re: [PHP] display edited field in table

2002-12-19 Thread Chris Hewitt
Lightfirst wrote: I am using Php/MySql and I am trying to display a table and have one of the fields (answer) editable. What I would like is to have the user edit the field and then click update. The result-display the table along with the updated field. What am I doing wrong? He is my code: I

Re: [PHP] md5()

2002-12-23 Thread Chris Hewitt
Edward Peloke wrote: I don't want to store my users passwords in the db as clear text so I know I can use md5(). But, what do I do when a user has forgotten his/her password and I need to send it to them? Can I reverse md5()? No. You send them a new password. Ideally, the only person who shou

Re: [PHP] Configuring printer output for a POS printer --> Admin Configuring Printer Drivers or a Select Driver Menu

2002-12-23 Thread Chris Hewitt
Axis Computers wrote: I'm developing a Pizza delivery application which uses printer output, and I want to know which is the better way to format the output to the printer, and how can I design a select printer menu (communicate with printer drivers), so the user can select from a number of POS

Re: [PHP] Configuring printer output for a POS printer --> Admin Configuring Printer Drivers or a Select Driver Menu

2002-12-23 Thread Chris Hewitt
Axis Computers wrote: Yes, but in my application's case the server and the client are on the same computer, because the server will act as localhost, so you are saying there is no way to dump any printer output ? Ah, you do mean the server. OS dependent. If linux then probably call lpr via an

Re: [PHP] Forms

2002-12-23 Thread Chris Hewitt
Rick Emery wrote: For my Linux (RedHat 7.1), it's at /etc/php.ini If its not there, check phpinfo(), this will specifiy where that particular installation of php requires it to be. HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] Are there macros in PHP?

2002-12-23 Thread Chris Hewitt
Don wrote: $condition = CustCode = "$HTTP_SESSION_VARS['logoncustcode']"; $queryID = mysql_query("SELECT * FROM CustTariff WHERE " . $condition . " ORDER BY CustCode"); Not sure about the multiple assignment (I have not looked it up in the manual), but otherwise the principle is right, yes. D

Re: [PHP] Include Problems

2002-12-26 Thread Chris Hewitt
Mike Bowers wrote: I have a file named header.php stored in the includes folder: Inside includes is anohter folder called editable. When I open my page for the first time (before it is cached) or after I edit my header file I get these errors: *Warning*: Failed opening 'editable/meta.php' for

Re: [PHP] creating a .doc file in php

2003-01-02 Thread Chris Hewitt
Edward Peloke wrote: Thanks Marco, So I would just create the .rtf file with php, then store it on the server and attach it to the e-mail? If most of your document is going to be the same each time, I would create the basic document in MS Word, saving it as an rtf file. Then manually edit it

Re: [PHP] send page with https and php sessions problem

2003-01-02 Thread Chris Hewitt
Kocnr Peter wrote: I have problem with sending pages directly(by Send->Page by E-mail...) from browser(ie6) with Outlook 2002. It tells:"The current document type can not be sent as mail.Would you like to send a Short cut instead?". The pages use php sessions and https with 128 bit encryption. I

Re: [PHP] Index page

2003-01-02 Thread Chris Hewitt
thkiat wrote: Why by only typing http://localhost/ the index.php did not show up. I have to type http://localhost/index.php for the page to show up. How can I solve this problem? Assuming you are using Apache (you do not say) then when no file is specified a file witha name specified in the Di

Re: [PHP] Timeout during SMTP operation.

2003-01-02 Thread Chris Hewitt
gilrain wrote: Hi all, I've just finished a PHP/MySQL mailing list. Basically, I'm having problems with my sendmail function. It takes an array of e-mail addresses ($addresses) and loops through it, e-mailing each one using an SMTP class I found (the only identifying comment in it is "SMTP Class

Re: [PHP] ImageCreateFromPNG

2003-01-03 Thread Chris Hewitt
Roy van Arem wrote: ImageCreateFromPNG just won't work in php4.3 on windows 2000 . . . .I cannot find any information on that ... can someone help me?? please Does phpinfo() show that you have png support enabled (in gd section)? I'm working with php 4.1.2 (on linux) so things may differ

Re: [PHP] ImageCreateFromPNG

2003-01-03 Thread Chris Hewitt
Roy van Arem wrote: In gd section. hm... I always used to use PHP 3. something and that didn't have half the variables I can set in php4.3.. anyway this is phpinfo: http://62.142.245.64/g/gheos.com/test.php No gd section or png mentioned on that page. Fatal error: Call to undefined

Re: [PHP] Get your *own* IP...?!

2003-01-07 Thread Chris Hewitt
Charles likes PHP wrote: Does anyone know a way to fetch your own IP-adress? I need it because I run a web server on my computer with a dynamic-IP so I need it to change all the URLs it creates dynamically... Maybe I'm not understanding your situation properly so please correct me if I'm wrong

Re: [PHP] Opening DOS with PHP commands

2003-01-07 Thread Chris Hewitt
Tony Tzankoff wrote: Does anybody know if a MS-DOS window (running a BAT file) can be opened using a PHP command? Right now, I have Windows using the Task Scheduler to open the MS-DOS window (which creates a file used later by PHP), while a PHP webpage loops every few minutes and does whatever it

Re: [PHP] Get your *own* IP...?!

2003-01-07 Thread Chris Hewitt
[EMAIL PROTECTED] wrote: $MYIP has now your dyn IP Adress. Yes. So make up a URL with it and _hope_ that when a user clicks it the address has not changed. My point was simply that, for a server, the server FQDN hostname should be fixed and never change. Use the hostname in any URL and avo

Re: [PHP] Is this possible with php?

2003-01-11 Thread Chris Hewitt
[EMAIL PROTECTED] wrote: using MS Word in windows, when a file is saved, can it be AUTOMATICALLY uploaded (via http POST or other mechanism) to a server? Yes, in a webDAV enabled directory on your webserver (http://www.webdav.org). Its a module that you can compile for use with Apache (I'm us

Re: [PHP] question about 'register_globals' setting

2003-01-13 Thread Chris Hewitt
Don wrote: I'm using I.E. 6. Its not a browser thing, but a PHP thing. I noticed that register_globals was set ON in my php.ini file so I changed it to OFF in as per the security warning. I've noticed a side effect. When I submit a form via POST and then go back from the results page, my

Re: [PHP] form box question

2003-01-13 Thread Chris Hewitt
Anthony Ritter wrote: Any ideas after looking at the code why I'm having difficulty publishing the file to a MS IIS server with undeclared indexes and variables if it works on Apache server? It will be the error reporting level being set differently between the two servers. The IIS one sounds

Re: [PHP] question about 'register_globals' setting

2003-01-13 Thread Chris Hewitt
Don wrote: Thanks for your response but I don't think this is what I was asking; could be wrong though. I re-read your post and, of course, you are right. I mis-read it! I have heard of this Back button and data missing and I'm sure its come up before, but I don't remember the answer. I can

Re: [PHP] Acessing $DOCUMENT_ROOT

2003-01-17 Thread Chris Hewitt
Don wrote: How do I access $DOCUMENT_ROOT when register_gobals is set off? I think there's an array, something like $HTTP_ENV_VARS['DOCUMENT_ROOT'] but I can't find it in the documentation. $_SERVER['DOCUMENT_ROOT'] HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Sessions or Cookies?

2003-01-18 Thread Chris Hewitt
Peter Janett wrote: Sessions themselves use cookies, though, right? So, if you want your app to work for those who don't have cookies, you have to pass the session data in the url string, at least that's my understanding. With sessions, its only the session ID that is put in the cookie or url

Re: [PHP] Converting accented characters or numeric equivalents to non-accented

2003-01-18 Thread Chris Hewitt
-<[ Rene Brehmer ]>- wrote: something like this (untested): for ($i = 0; $i < strlen($string_to_parse); $i++) { $char = substr($string_to_parse, $i, 1); if (ord($char) > 128) { $output_string .= "&#".ord($char).";"; } else { $output_string .= $char; } } You may need to test for value

Re: [PHP] SQL+php

2003-01-19 Thread Chris Hewitt
John W. Holmes wrote: .it's an log for a VoIp network, evrey voip has an ip and i whant that instad of the VoIp's IP to put his name, instad of "1.1.1.1:xxx" must be "jhon doe form yyy city", it's easier to read for the people who So where do you get the name from. You're still not bei

Re: [PHP] Help with Error, I am Trying!!

2003-01-21 Thread Chris Hewitt
Karl James wrote: Parse error: parse error, unexpected '}' in /home/virtual/site12/fst/var/www/html/Create_Account.php on line 5 http://www.ultimatefootballleague.com/Create_Account.phps I'm Trying to get the values of the form to echo out and to insert into my managers table. If you don't se

Re: [PHP] Select multiple boxes

2003-01-21 Thread Chris Hewitt
John W. Holmes wrote: How does php know what "suitable form data" is? I guess it could look for multiple names in the GET or POST data. But then that would mean for every variable it goes to create, it would have to go and look if it's already created one by that name. If it did, erase the old

Re: [PHP] How can I get infor from tasm manager.

2003-01-22 Thread Chris Hewitt
Thomas Wessel Svensson wrote: Anyone ? Tasm was the MS 386 assembler. I'm not aware of a tasm manager. Are you sure you mean this? It may just be my ignorance :-) Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and xemacs

2003-01-23 Thread Chris Hewitt
Hans Jacob Simonsen wrote: Sorry I forgot to tell you. I am using GNOME, and I'm on a company computer so I can't change to KDE. I'm using gnome and kate works by just typing its name at a shell prompt. HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] Executing Shell Commands.

2003-01-23 Thread Chris Hewitt
scott wrote: Hello, Does anybody know how to execute a shell command from PHP on a Linux system? exec() and friends. HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Executing Shell Commands.

2003-01-23 Thread Chris Hewitt
scott wrote: Thanks Chris, Could you explain to me how to launch a program from PHP as another user, such as root? The app that I am trying to launch, apache does not have rights to. And, it would be to complex of a procedure to change the ownership on all of the processes that go with it. The

Re: [PHP] Something difference betwen php-4.0.3 and php-4.2.3

2003-01-24 Thread Chris Hewitt
[EMAIL PROTECTED] wrote: I modifiy my php.ini to redirect error message in log of server web and I change error_reporting = E_ALL & ~E_NOTICE by error_reporting = E_ALL Now, I get in server log this message : [24-Jan-2003 08:59:31] PHP Notice: Undefined offset: 4 in /appli/PHP/test/__xyz__

Re: [PHP] how to verify the available email address

2003-01-24 Thread Chris Hewitt
ocean wrote: >In a signup page , I want to verify some information what the user fill in ,inculde >user name¡¢password¡¢email etc.But I don't know how to verify the available email >address.Who can help me ? > There is an email validation class here: http://phpclasses.lightwood.net/browse.html/

Re: [PHP] Something difference betwen php-4.0.3 and php-4.2.3

2003-01-24 Thread Chris Hewitt
Ford, Mike [LSS] wrote: Wrong. The offset is 4, the error message says so. Undefined offset means you Yes, true. That is me not looking hard enough at it! Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sendmail function

2003-01-25 Thread Chris Hewitt
Christian Ista wrote: Hello, A friend would like to know how to check on the server (dedicated) if the function sendmail is enable or not, how ? if not activated how activate ? Thanks, If I understand your question correctly (and I may not): Assuming RedHat linux, then as root "which sendma

Re: [PHP] mysq_connect()

2003-01-31 Thread Chris Hewitt
Cesar Rodriguez wrote: -snip-- The message I get is: "Fatal error: Call to undefined function: mysql_pconnect() in var/www/html/lesson/firsta.php" Seems that PHP4 does not find the MySQL library. I checked php.ini and httpd.conf files and everything is in its pla

Re: [PHP] Installing PHP on Apache 2 and FreeBSD

2003-01-31 Thread Chris Hewitt
Jacob Bolton wrote: But if I complile apache and don't include options that are needed for the software, I'll obviously break the software. So my question is, is there a way to see what options are compiled into Apache, so that if I recompiled it, I could make sure to include the current option

Re: [PHP] PHP error page not redirecting

2003-02-10 Thread Chris Hewitt
Nick Holden wrote: I'm having a dispute with an ISP (surprise) about the non-functioning of a PHP error script. Currently, the error script is at http://www.touristguides.org.uk/error.php - a direct click on that link will redirect you, using: header("Location: http://www.touristguides.org.uk

Re: [PHP] Writing text files in Windows 2k

2003-02-10 Thread Chris Hewitt
Joe Njeru wrote: Hi All The following is the text file generated. I'm runing on Windows 2k spack 3, When I open it in Excell it gives me the data but not seperated into lines. Do you have any suggestions. It does for me in Excle 97 SP2, but I suspect there should be more lines than there are

Re: [PHP] RSA implementation

2003-02-11 Thread Chris Hewitt
José León Serna wrote: Hello: I'm looking for an RSA implementation, the ones I have found are really slow, and I just want to: generatekey decrypt the encryptfunction will be done in javascript, it's for a login system without SSL. Have you considered using on one-way MD5 hash instead? Aga

Re: [PHP] concurrent fopen fwrite fclose

2003-02-12 Thread Chris Hewitt
Frederick L. Steinkopf wrote: Hi, How does php handle multiple concurrent fopen fwrite fclose calls? I have a website that gets 7 million page views a month and we have created a custom log file using fopen fwrite and fclose. When running this concurrently with the apache log we notice signific

Re: [PHP] RSA implementation

2003-02-12 Thread Chris Hewitt
José León Serna wrote: El mar, 11-02-2003 a las 18:49, Chris Hewitt escribió: Have you considered using on one-way MD5 hash instead? That's how I'm doing it now, but I would like to allow the user to change it's password, and I want to encrypt it, of course ;-) Yes. The

Re: [PHP] Database problem - works in Windows - not Linux

2003-02-12 Thread Chris Hewitt
Lee P. Reilly wrote: Hi there, I'm moving an application from Windows -> Linux, and am having a problem with the database. I have the following script to test my database connection (Linux): -=-=-=-=-=-=-=-=-=-=-=-=-=- snip =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= I'd put in a mysql_error

Re: [PHP] Running system commands

2003-02-25 Thread Chris Hewitt
[EMAIL PROTECTED] wrote: Before I ask, I have read the documentation but nothing seems to work. I want to run a system command from behind the scenes (totally secure area of my server) that creates a directory and changes permissions on it. i.e. system ("mkdir $path"); Example above uses a value

Re: [PHP] Running system commands

2003-02-26 Thread Chris Hewitt
[EMAIL PROTECTED] wrote: I was thinking the exact same thing but I can actually delete files from these directories using a system command through php. Would that be a different type of permission? Ed On Tue, 25 Feb 2003, Chris Hewitt wrote: [EMAIL PROTECTED] wrote: Before I ask, I have read

Re: [PHP] 2 questions !

2003-03-03 Thread Chris Hewitt
Justin French wrote: I'm sure there's a way to check the owner of a file, but not (from what i know) a way to check who apache is running as. On linux "ps aux | grep httpd" will list as the first item the user the apache processes are running as. Ignore the one with root. On other unices the par

Re: [PHP] file uploads

2003-03-04 Thread Chris Hewitt
Ernest E Vogelsinger wrote: At 19:55 04.03.2003, Joseph Bannon spoke out and said: [snip] Regarding file uploads... 1) Do the temp files automatically delete, or do I need to put something in the code to delete them? 2) If automatically, how long? Where can

Re: [PHP] recently I meet a problem as follow ,I want to ask you

2003-03-12 Thread Chris Hewitt
jiahuo xiao wrote: >,it show many tables,it means I config >correctly.but why when I post pamameter to an action >page,all the pamaeter which I get is blank that is >"".so the action page run incorrectly,how could I do? >thank you for replying me > It sounds as though you have register_glob

Re: [PHP] recently I meet a problem as follow ,I want to ask you

2003-03-12 Thread Chris Hewitt
Justin French wrote: on 12/03/03 7:40 PM, Chris Hewitt ([EMAIL PROTECTED]) wrote: It sounds as though you have register_globals off in php.ini. Either turn it on, or better still, get at your variables on your action page with $GET['var'] for get method or $POST['var'] for

Re: [PHP] PHP Books

2003-03-12 Thread Chris Hewitt
Petre Agenbag wrote: There is also a new book by Rasmus Lerdorf and it's cheaper than the book I mention, unfortunately I don't have insight into that book, and what would the guy that wrote PHP know about it anyway heh? ;p Its "Programming PHP" by Rasmus Lerdorf and Kevin Tatroe, O'Reilly, March

Re: [PHP] Is there any reason...

2003-03-13 Thread Chris Hewitt
Leif K-Brooks wrote: That replies on this list go to the person who originally posted the message by default? It seems to me that the reply-to header should be set to the list, or is it not possible with the mailing list system this list uses? Yes, the "From" field is the poster and the "Re

Re: [PHP] PHP/HTML table layout?

2003-03-13 Thread Chris Hewitt
- Edwin wrote: Hi, "Bev" <[EMAIL PROTECTED]> wrote: [snip] I wanted to fixed sized cells and that when I type do not increase/decrease the surronding cells.Can this be done? [/snip] Try having your with a fixed width as well: The reason why html varies the size of cells is to fit in wi

Re: [PHP] http->https->http redirection causes browser to show alert dialog

2003-03-13 Thread Chris Hewitt
Jean-Christian Imbeault wrote: snip-- The problem I am facing is that the flow of event is: http -> https -> http and this causes IE and Netscape to put up an alert box telling users that they are leaving a secured site. ---snip-

Re: [PHP] ^M in PHP

2003-03-13 Thread Chris Hewitt
Robert Cummings wrote: I know there's a binary for doing exactly that in linux but I can't for the life of me remember the name. If you're text editor is any good you should be able to do a search and replace for "\r" with "". I use joe, but that's hardly the editor of choice for most. Cheers, Rob

Re: [PHP] If 1 IF fails, do the rest anyway...

2003-03-13 Thread Chris Hewitt
Liam Gibbs wrote: I know that in a case like this if((test1) && (test2) && (test3)) { ... } if test1 fails, dear PHP won't bother doing test2 and 3. Am I correct? Is there a syntax that will make it carry on with test2 and 3 anyway, regardless of how test1 came out? The more efficient compile

Re: [PHP] ^M in PHP

2003-03-14 Thread Chris Hewitt
John W. Holmes wrote: Yeah, I could use a decent text editor, but not everyone who uses my site will use it. I need something that can edit them out after download. Wouldn't it be smarter to eliminate them before it was saved on Windows? You could read in the file and get rid of all of the \r c

Re: [PHP] Can't relocate to a specified URL after submit.

2003-03-14 Thread Chris Hewitt
Niklas Lampén wrote: You cannot output anything before headers. Niklas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 14. maaliskuuta 2003 8:03 To: [EMAIL PROTECTED] Subject: [PHP] Can't relocate to a specified URL after submit. The code looks like: if( $act

Re: [PHP] accidently inserting into web database blank records.

2003-03-14 Thread Chris Hewitt
Mahmut KARADEMIR wrote: Hi All; I am trying to add a new record web database using Mysql&PHP. But after at every add process a new blank record is added to mysql table. The entered text is not considered with codes. What is my trouble in this html or php code? Could anyone has any idea? Thanks. *

Re: [PHP] mail(); works, but only for mails to my (mail)server

2003-03-17 Thread Chris Hewitt
Manuel Glauser wrote: This weekend, I've been fighting with some really weird problem though... I installed a few mail(); actions on my website plus in some projects I'm working on. I have one really big problem though... Everything works fine until I want to send a mail to another mailserver than

Re: [PHP] Exec ( ) command

2003-03-17 Thread Chris Hewitt
manju visu wrote: Hi everyone, If possible reply me. I have one problem. I'm trying to execute exec() command to generate stats by using the exec() function, it does not generate an error but it also does not run the command, and the value of $result thats returned from exec() is 11. Below is

Re: [PHP] PHP program running from shell ends silently

2003-03-17 Thread Chris Hewitt
Ruben wrote: I'm running a 'batch' PHP program from the shell with "#!/usr/bin/php -q" as the first line. After some processing, it ends silently without any visible notice or error. It processes information from a PostgreSQL database and shows its progression (via echoes) until it suddenly st

Re: [PHP] login problem

2003-03-17 Thread Chris Hewitt
Gilberto Garcia Jr. wrote: Hi guys. Im having a problem with a login system. I enter with the correct password and I press the submit button. But, nothing happens. Its not a typinh mistake, cause when i enter the wrong pass. it returns me an error. What this can be??? You would need to tell us a

Re: [PHP] Microsoft access + php

2003-03-17 Thread Chris Hewitt
Denis L. Menezes wrote: Sorry folks, This question must have been asked many times before, and I must have missed it. Can someone please lead me to some tutorial where I can PHP and Microsoft Access? I just tried putting "PHP and Microsoft Access" into Google. The first item has the text "This

Re: [PHP] Mail

2003-03-18 Thread Chris Hewitt
Stephen wrote: I am trying to get mail working with my php setup. I have an exchange server that I want to send mail to but I get the error Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] in I have setup SMTP = my server address and sendmail_

  1   2   3   >