Re: [PHP] Link Inquiry

2002-02-07 Thread Chris Hewitt
Joe, Parse the page source for 'A HREF=' (and 'INPUT TYPE=button' in case that contains a url)? Or am I missing something? Regards Chris Lerp wrote: Hi there, been thinking about how to retrieve all links on a webpage. How would I go about grabbing all links from a particular page? Thx Joe

Re: [PHP] MySQL Admin Tool

2002-02-14 Thread Chris Hewitt
Liam MacKenzie wrote: And also... How do I go about securing PHP functions. For example, at the moment Joe can upload a PHP script that deletes /etc/named.conf. NOT GOOD! Surely this is a general security issue? If an ordinary user is allowed to delete /etc/named.conf (whether by PHP,

Re: [PHP] MySQL Admin Tool

2002-02-14 Thread Chris Hewitt
Liam MacKenzie wrote: permission to create tables in other databases, but the can still browse them and view the information. I do not know MySQL but I'd be very surprised if this was not a database creation/configuration issue. In postgres, unless given permission, I cannot even connect to

Re: [PHP] Apache is not parsing my php...sometimes...

2002-02-26 Thread Chris Hewitt
Kevin, I'm posting this to the list as a private email to you was returned with a 550 Access denied error. Without a filename extension, apache assumes it is whatever DefaultType (in httpd.conf) is set to. Usually this is text/plain. In one (Oracle) application I've had to set this to

Re: [PHP] Apache is not parsing my php...sometimes...

2002-02-26 Thread Chris Hewitt
DL Neil wrote: Echoing/amplifying Torben's comment earlier: Private replies do not benefit others on the list (presumably with similar questions/learning need), nor do they end up in any archive. I did not feel the particular question added to the sum total of information so replied

Re: [PHP] Damned HTTP_HOST

2002-02-26 Thread Chris Hewitt
Dominique, You have a space after HTTP_HOST. I think HTTP_HOST should be HTTP_HOST Regards Chris Dominique van der Wal wrote: Hi, I'm trying to find the HTTP_HOST adress of my website. I've try the followings : $HTTP_HOST : nothing $ALL_HTTP[HTTP_HOST ] : nothing $_SERVER[HTTP_HOST ]

Re: [PHP] Valid characters for filenames. List available?

2002-02-26 Thread Chris Hewitt
Andy wrote: Hi guys, I am wondering if there is anywhere a list of characters which are not allowed in a unix file name. I gues somethin like ' or \ is not allowed, but what else? cheers Andy My old Teach Yourself Unix book makes it: !@#$%^()[]'?\|;`+- space tab backspace though it says

Re: [PHP] I can't find the problem - parsing error

2002-02-27 Thread Chris Hewitt
Pax, If the backslashes are to escape the double-quotes then the one after width is the wrong way around. \10\ I would expect to be \10\ Hope this helps. Regards Chris Pax wrote: I have the following line of code: $this-html=$this_html + tr td bgcolor=\$type_color\ class=\copy\

Re: [PHP] apache and php installation problem

2002-03-10 Thread Chris Hewitt
Duncan, Just a thought, does the user that apache is running as have permissions to read/execute the file? Regards Chris Duncan wrote: Hi, i currently installed latest apache and php on my RH 7.2 system. However, i allways get the following error now: /usr/local/apache/bin/apachectl

Re: [PHP] setting up virtual hosts

2002-03-10 Thread Chris Hewitt
Andy, Have you set up dns so that all three URLs translate to the same ip address? Just a thought. You could use tcpdump (assuming you are on unix) to check whether apache (port 80 or whatever) is being called and whether dns queries are answered with the right ip address. Regards Chris

Re: [PHP] Don't understand flock

2002-03-11 Thread Chris Hewitt
Kristian, flock() is useful in a multiuser environment where two or more users might try to e.g edit a file at the same time. If this will not happen with what you are doing then you have no need for flock(). If, for example, you have a web application that updates a file then the

Re: [PHP] Re: Get row number from mysql

2002-03-14 Thread Chris Hewitt
Rick, I agree. opinionRow ids should be for internal database use. SQL frees us from needing them. /opinion Tyler, what order do you want these records returned in? That is what goes into the ORDER BY clause. If, for example, it is alphabetical order of NAME then use ORDER BY NAME. If it is

Re: [PHP] Append to the beginning of a file...

2002-03-22 Thread Chris Hewitt
Mauricio, If you are on a *nix computer, you could append to the end of the file, close it and then do a tail -n1 which will give you just the last line in the file. HTH. Regards Chris Mauricio Sthandier wrote: I guess I should do that. I need the plain file because is just a log of users

Re: [PHP] oracle again!!!!

2002-06-06 Thread Chris Hewitt
Michael, I have not used Oracle from PHP but I may be able to provide some pointers/questions. You do not say where the Oracle database is. If it is on the AIX computer then to connect you will need the system@tnsname form of user name to specify which connection in your tnsnames.ora file to

Re: [PHP] Returnpath for mail

2002-06-06 Thread Chris Hewitt
Andy, I stand to be corrected, but I think you mean the user hits reply rather than return, in which case it is Reply-To you need. I think Return-Path is for error messages for undeliverable mail. Now someone is probably going to tell me I'm quite wrong... Regards Chris andy wrote: Hi

Re: [PHP] oracle again!!!!

2002-06-07 Thread Chris Hewitt
- Original Message - From: Chris Hewitt [EMAIL PROTECTED] Cc: php [EMAIL PROTECTED] Sent: Thursday, June 06, 2002 5:41 PM Subject: Re: [PHP] oracle again Michael, I have not used Oracle from PHP but I may be able to provide some pointers/questions. You do not say where the Oracle

Re: [PHP] Question about Mail function time out

2002-06-07 Thread Chris Hewitt
Al, Interesting. I use Mozilla and I've never had any emails rejected or heard of anyone else have it happening. Have you some more information or is this an urban legend? Regards Chris Al wrote: Sorry if this shows twice. I originally posted it with Mozilla and forgot that this newsgroup

Re: [PHP] Re: Function needed

2002-06-09 Thread Chris Hewitt
$result=`ls -R | grep 'expression' ./`; HTH Chris Jason Wong wrote: On Sunday 09 June 2002 17:17, Austin Marshall wrote: Gaylen Fraley wrote: I am in need of a function/script that will take a directory and search all filenames, recursively down, for a given file. Can anyone point me to a

Re: [PHP] download

2002-06-11 Thread Chris Hewitt
Kris, If I understand what you mean correctly, this is just an ordinary anchor (nothing to do with php). For example, a href=http://mybox.domain.com/myfile.xls;Click to download/a When clicked, if .xls is in /etc/mime.types as application/vnd.ms-excel.xls then it will either download or

Re: [PHP] cut text?

2002-06-11 Thread Chris Hewitt
What exactly are you trying to do? If you tell us more, we can help better. Chris Hawk wrote: I've been looking on the php.net page, but I don't know what to look for.. I found string mb_strcut ( string str, int start [, int length [, string encoding]]) and it looks like the thing I'm looking

Re: [PHP] register_globals flag in some directories

2002-06-11 Thread Chris Hewitt
a thought. Regards Chris Ahmed Farouk wrote: Chris, Thanks for your response, but I already tried that but still not working! is there anything I should do let apache recognize that there is .htaccess ? permissions for example - Original Message - From: Chris Hewitt [EMAIL

Re: [PHP] cut text?

2002-06-11 Thread Chris Hewitt
I'd probably use substr. For the first 30 characters plus three full stops (untested): $shortstring = substr($longstring,0,30); The manual shows all the string handling functions http://www.php.net/manual/en/ref.strings.php Regards Chris Hawk wrote: Lets say I have a news text, and in

Re: [PHP] GOTO command. Doest it exist?

2002-06-11 Thread Chris Hewitt
Carlos, A search of the on-line manual does not find it (http://www.php.net/manual) but even if it has, I would advise you not to use it. Its a throwback to the 1970s before structured programming. Regards Chris Carlos U. Cirello Filho wrote: I do beg your pardon... But does PHP not have

Re: [PHP] Email - Php !

2002-06-13 Thread Chris Hewitt
If you can send mail to/from the server as an ordinary user, the the sendmail configuration is OK, but if this is a new linux installation (e.g. RH 7.2 or 7.3) then it might need updating. The firewall may also prevent smtp. HTH Chris Septic Flesh wrote: I use the following php.ini config.

Re: [PHP] possible to add a record number to a query?

2002-06-13 Thread Chris Hewitt
Jeff, You don't tell us which database. If its Oracle then there is ROWID. Using some sort of record number is good for linking tables as it a primary/foreign key, but otherwise why would you want it? If you do not have such a field as this at present (and want one), you could always add one

Re: [PHP] next and previous buttons performing on a query

2002-06-13 Thread Chris Hewitt
Wilbert, Use the LIMIT tag in your select statement. You can also choose which matching record to start from. Another pure database question... HTH Chris Wilbert Enserink wrote: Hi all, I have this mySQL query giving me my result back. The info about the current db-record is showing.

Re: [PHP] setting up a php/mysql server on linux

2002-06-18 Thread Chris Hewitt
Phil Schwarzmann wrote: I'm a Linux newbie. I just installed Linux Red Hat 7.2 successfully. I have some instructions to install php/mysql/apache and have a couple questions... Fire away. Which is better, GNOME or KDE? I seem to like the feel of KDE better. This is just for a user

Re: [PHP] linux redhat rpm packages

2002-06-18 Thread Chris Hewitt
Phil, The rpm stands for RedHat Package Manager and was written by them. They have allowed others to use it so the rpm is now meant to stand for something else. The rpm format allows for all dependencies, so it is likely to be less problematical than the tar.gzip versions (though it depends

Re: [PHP] Scree Resolution

2002-06-21 Thread Chris Hewitt
Edgar, Using Javascript, yes. This has been answered on this list about a week ago. I suggest you search the archives for the details. HTH Chris Edgar wrote: Hi, Are there any way to know what screen resolution use a user in your monitor? Thank you in advance. -- PHP General

Re: [PHP] Sendmail doesn't send...

2002-06-26 Thread Chris Hewitt
I don't have the /usr/sbin in mine (I left it at the default blank) and it works. Can an ordinary user send emails to the destinations you are trying to get to with PHP? If not, then you have a sendmail configuration issue. HTH Chris Nightshade wrote: [mail function] SMTP

Re: [PHP] MySQL fetch data

2002-06-27 Thread Chris Hewitt
Jefferson, I am wondering why you would want to do this. If you get the sql statement to order the rows the way you need to use them then there should not be a need to refer back to earlier rows. I sometimes need to know if one field has the same value as in the previous record, so I keep

Re: [PHP] fopen(); deciding if going for the IP or domain.

2002-06-30 Thread Chris Hewitt
The manual shows fopen(http://www.php.net/,r;) works. If you are saying it is only today that it is not working then I wonder if the server (or dns server for it) is down. If on unix, does dig domain.com give an ANSWER section with ip address? If on NT, does nslookup domain.com give an ip

Re: [PHP] Query String...

2002-07-01 Thread Chris Hewitt
Tim, $action = $_GET[action]; should do it. I assume you have register_globals off (as it is by default nowadays). HTH Chris Tim Nields wrote: Never have encountered this. When I include a query string on the URL line I can not access the variables. For example: www.tim.com?action=move I

Re: [PHP] Why is this code hanging?

2002-07-02 Thread Chris Hewitt
Leif, I think you are missing a $count++ somewhere. Its a mistake I commonly make... HTH Chris Leif K-Brooks wrote: I am trying to make a simple php program to produce text lIkE tHiS. The thing is, it hangs for a while andd then says it's reached the maximum execution time of 30

Re: [PHP] Re: Executing a php script periodically using crond

2002-07-02 Thread Chris Hewitt
Henry, lynx --dump http://www.domain.com/myfile.php man lynx for details. You can run it from cron. HTH Chris Henry wrote: PS. I cannot compile as a binary etc. This configuration is the confi of the shared server I am using which is hosted by a third part. Henry -- PHP General

Re: [PHP] Exim sendmail faults

2002-07-04 Thread Chris Hewitt
Liam, I was going to ask you whether a normal user on your computer could send mail (OK, root counts). As the answer is no, it is not a problem with your php setup. sympatico.ca has several MX entries, the first of which is smtp26.bellglobal.com and I can ping that from here. I also get a

Re: [PHP] Exim sendmail faults

2002-07-04 Thread Chris Hewitt
Liam Gibbs wrote: Chris Hewitt wrote: One quick test is to set up an email client (Netscape whatever) to talk to sympatico's smtp server directly (leaving out your exim server). If you can send mail from this then permissions to send are OK, and we look around the Exim configuration. I have

Re: [PHP] how to resort results of a query

2002-07-05 Thread Chris Hewitt
Matthew, Apologies to others that this is now quite OT, let's make this the last of this thread. If I may suggest that this is now about pure sql techniques and nothing to do with php. What I did was to create a table (not temporary as it happens) with fields containing all the fields that

Re: [PHP] Compiling PHP

2002-07-06 Thread Chris Hewitt
Leon, This was discussed on this list at length, ending about a week or so ago. Please look in the archives for it. There was a lot of detail which may be useful to you. Basically the consenus answer was no. Regards Chris Leon Mergen wrote: Hello, I'm currently camping with a problem... I

Re: [PHP] Having more problems

2002-07-07 Thread Chris Hewitt
Shiloh, It displays in my Mozilla browser, but maybe the missing BODY and /BODY tags would mean it does not display in yours. HTH Chris Shiloh Madsen wrote: The newbie is still having troubles heh. Maybe some kind soul can tell me what im doing wrong this time. This is the code for a

Re: [PHP] HTTPS vs. HTTP ?

2002-07-08 Thread Chris Hewitt
Chris Shiflett wrote: I think I'm going to compile all of my SSL explanations into a more clear and informative explanation and post it on the Web somewhere. Yes please. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] is their a jobs mailing list?

2002-07-08 Thread Chris Hewitt
As not all work involving PHP need be on a customer's site (the type of work that agencies deal with), I'd like to suggest that the site is flexible enough to offer PHP work in the broader sense, not just on-site contract/employment. E.g. an end customer can post that they need a particular

Re: [PHP] getting the IP address off a visitor

2002-07-08 Thread Chris Hewitt
Sebastian, Yes, look at the data returned by running phpinfo() and you will see it. As discussed very recently on this list, an IP address is not a good way to determine whether this is a new user or not. I suggest you look in the recent archives for the discussion on this topic. HTH Chris

Re: [PHP] Parsing CGI for PHP?

2002-07-08 Thread Chris Hewitt
A fairly full discussion on this has only just finished on this list in the last couple of days. May I respectfully suggest the archives will have the information you seek. HTH Chris Sandman wrote: Can this be done with apache 1.3 ? I want to have the output of my CGI-script to be parsed

Re: [PHP] Linux Newsgroup???

2002-07-08 Thread Chris Hewitt
Scott, There are many mailing lists at https://listman.redhat.com/mailman/listinfo though mainly RedHat orientated. I expect other distributions have their equivalents too. There are also those a vger.kernel.org, which includes a linux-newbie one, the others tending to more aimed at the

Re: [PHP] Editing Word Documents

2002-07-08 Thread Chris Hewitt
David Russell wrote: snip-- 5. The client then closes the file, it auto-saves and he goes about his business. By coincidence, I'd be very interested in this too, particularly from a linux server. Regards Chris -- PHP General Mailing List

Re: [PHP] Submitting form in new window!

2002-07-09 Thread Chris Hewitt
Thomas, If using JavaScript to open the window, then php is not going to be able to transfer variables as it is not being used. As you form is not being submitted (you intercepted it with a JavaScript call, right?) then you need to transfer them manually by getting the JavaScript to add the

Re: [PHP] Editing Word Documents

2002-07-09 Thread Chris Hewitt
in the browser (HTML form, textarea field). Unfortunately Microsoft is notoriously protective of its file formats. -Kevin - Original Message - From: Chris Hewitt [EMAIL PROTECTED] To: David Russell [EMAIL PROTECTED] Cc: php-general [EMAIL PROTECTED] Sent: Monday, July 08, 2002 11:51 AM Subject

Re: [PHP] Re: Editing Word Documents

2002-07-09 Thread Chris Hewitt
Marek, Yes I thought about windows shares. On the internet (as opposed to intranet) the word security leapt to mind and I went away from the idea. Has anyone used Samba shares on the internet or know if its secure/insecure? Thanks Chris Marek Kilimajer wrote: The only way I see this can

Re: [PHP] Submitting form in new window!

2002-07-09 Thread Chris Hewitt
Thomas, Yes, I understand what you want to do, but this is a limitation of HTML itself, rather than PHP. There are no HTML commands for doing this. JavaScript, being client side, has much more control over the browser and can define window size etc. If, on your submit button, you use the

Re: [PHP] Re: Editing Word Documents

2002-07-09 Thread Chris Hewitt
Thanks Marek Kilimajer wrote: If you can use virtual private network, it is secure. But I don't know about plain Samba solution. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] rh 7.3

2002-07-10 Thread Chris Hewitt
Yamin, You probably chose not to install bison or flex when you installed RedHat. They are on your CDs. HTH Chris Yamin Prabudy wrote: Hi guys,... In configure PHP 4.2.1 on RedHat 7.3 I found this problem checking for ranlib... ranlib checking whether ln -s works... yes checking for gawk...

Re: [PHP] Re: Editing Word Documents

2002-07-10 Thread Chris Hewitt
/). It should be easier to set up then VPN. Chris Hewitt wrote: Thanks Marek Kilimajer wrote: If you can use virtual private network, it is secure. But I don't know about plain Samba solution. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Wildcard

2002-07-10 Thread Chris Hewitt
Cesar, Yes, its: select * from table_name where col1 like '%' and col2 like '%' and col3 like '%'; As your default is %, then this is easy. Its all in the mysql manual, Section 6.3.2.1 String Comparison Functions. HTH Chris César Aracena wrote: Hi all. I'm trying to figure out how to do a

Re: [PHP] Display criteria

2002-07-10 Thread Chris Hewitt
I don't think you are explaining what you are after too well, so my understanding of it may be wrong. If you are displaying a table and want to display it in a different order, then its the ORDER BY clause in the database select statement that determines what order the data is given in. To a

Re: [PHP] Dos Paths

2002-07-10 Thread Chris Hewitt
I don't know of a conversion routine that will do exactly what DOS does, but if you need to use 8.3 filenames and receive them as vfat32 filenames then you could do a conversion yourself before using the name. As long as the conversion is 8.3 compliant it does not matter that your conversion

Re: [PHP] if syntax

2002-07-10 Thread Chris Hewitt
Alexander, The thing to do is to try it yourself. Yes its OK for single statements (I assume the colon after the $condition): is a typo. The first two examples in the manual (Chapter 11, if) show this syntax though not with else. HTH Chris Alexander Ross wrote: if($something): ... else:

Re: [PHP] if syntax

2002-07-10 Thread Chris Hewitt
Hmm. I should read a bit further myself! I did not know about the colon indicating that there can be many statements before else or endif. I've learnt something as a result, thanks. I should do some more engaging brain before keyboard! Chris Chris Hewitt wrote: --snip

Re: [PHP] Generating word documents based on fields in a browser

2002-07-10 Thread Chris Hewitt
Craig, Its not PHP but HTML. I do this for a client. Make a Word document as needed, save it as rtf. Put a link onto my html page calling a particular routine. The routine reads the .rtf file, looking for replaceable parameters, replacing them with the customised values for this customer and

Re: [PHP] SQL field problem

2002-07-10 Thread Chris Hewitt
Chris, select distinct kat from tablename; Its in the mysql manual, 6.4.1 SELECT Syntax. HTH Chris [EMAIL PROTECTED] wrote: Hello I have a problem with mysql.I create a table with a field kat.In this field are entries like this : Light Dark Dark Light Robot Find Dark Light You see that

Re: [PHP] sort problem

2002-07-10 Thread Chris Hewitt
Ed, Andy Andy said that the points were in the users table. Table layouts would have been useful. It sounds to me as though the users table has not got its points up to date and needs updating from the scores table first. Then do the select on just the users table. My 2p (pence, I'm in the

Re: [PHP] Page not found problem

2002-07-10 Thread Chris Hewitt
Chen, If the webserver cannot file a file then this is a webserver problem not php. You need to look at your IIS configuration/documentation. Sorry I can't help further, but I don't use IIS. HTH Chris Chen wrote: I use php3 with IIS 5.0. When user typed a no existing .html or php3 page,

Re: [PHP] Table Making

2002-07-11 Thread Chris Hewitt
Jason, HTML tables will always be displayed left to right, top to bottom. This is why you should ensure that the data from your database table comes out in the right order. Use an ORDER BY clause in your SELECT statement. Designing the table layout to be suitable avoids the problem you

Re: [PHP] Re: header()

2002-07-11 Thread Chris Hewitt
Richard Lynch wrote: You can't upgrade somebody's stupid IE browser to Mozilla just by sending them a new User-Agent header, no matter how attractive a solution it might seem :-) Now this is a Really Great Idea. Upgrade everyones' browser on the fly by code. We would only then have to decide

Re: [PHP] MAIL FROM NO ONE

2002-07-11 Thread Chris Hewitt
Vins, Yes, talk to port 25 of any smtp server using php. You would need to implement the full RFCs on smtp and its re-inventing the wheel. There are already classes to talk to whichever smtp server you want. Whichever smtp server you sent the mail to would log it, and the server it came

Re: [PHP] Re: session error ... I think

2002-07-11 Thread Chris Hewitt
Alexander Ross wrote: I'm slowly beginning to undrestand this, but please bear with a php novice. When/how were the headers sent? In other words, how do I know that they have already been sent? Because something other than a header has gone out. As something other has gone out, it is not

Re: [PHP] Searching a Paradox Table with my PHP Script...

2002-07-11 Thread Chris Hewitt
Kondwani Spike Mkandawire wrote: Hallo folks: I have a bit of an issue with Paradox Table Searching... I have a fairly large table (4MB+), here is the problem: I've not been monitoring this thread so what I say may have been covered, so please bear with me. When I run a search for an

Re: [PHP] Newbie continued..wrong datatype

2002-07-11 Thread Chris Hewitt
The manual says the second parameter needs to be an array. I assume it is not, but you have not shown us how $type is assigned so we cannot tell. HTH Chris Rw wrote: This is a continue from this morning (thanks so much for the responses).. yielding a data type mismatch: $CheckArr =

Re: [PHP] Re: Searching a Paradox Table with my PHP Script..

2002-07-11 Thread Chris Hewitt
Kondwani Spike Mkandawire wrote: Would it be that it takes time to connect to a table if it is in use? I don't know Paradox. Does it use row or table level locking. If table locking then if anyone is doing an update then the whole table is locked until the update is complete. If row locking

Re: [PHP] Re: session error ... I think

2002-07-11 Thread Chris Hewitt
Alexander Ross wrote: ok ... but the line of code that was the culprit was simply: print var id = .$id.br; //for debugging how does that line constitute sending more header info? It does not constitute sending more headers, but it does say that no more may be sent (as you have already sent

Re: [PHP] Help a Header Headache!!

2002-07-11 Thread Chris Hewitt
Chris Knipe wrote: Have you perhaps tried rather sending the mail using MIMETools ? There's a PHP class writen that's actually pretty good for sending MIME based email... I'm not sure what it's called now, but I'm sure someone else on the list will be able to elaborate on this. I have not

Re: [PHP] Help a Header Headache!!

2002-07-12 Thread Chris Hewitt
Chris Knipe wrote: I just had a look through some of my source Here's what I use.. /*** * Title.: HTML Mime Mail class * Version...: 1.26 * Author: Richard Heyes [EMAIL PROTECTED] * Filename..: html_mime_mail.class

Re: [PHP] One more thing... e-mails format

2002-07-12 Thread Chris Hewitt
Ce'sar Aracena wrote: It's me again... and not PHP related. Why is it that every piece of mail I send to the list comes back as a *rich text or sometime even plain text, when my M$ Outlook is set to send HTML messages? It is always been the convention on mailing lists and newsgroups to post

Re: [PHP] One more thing... e-mails format

2002-07-12 Thread Chris Hewitt
Miles Thompson wrote: Cesar ... You've touched a nerve ... Yep, sure have. still does, to make Word the default email editor. For about 6 mos life on mailing lists was hell until people were trained to turn that off. And I still work with some people that think using MS Word as an

Re: [PHP] PHP and ORACLE

2002-07-12 Thread Chris Hewitt
Ricardo Fitzgerald wrote: Hi, I started with PHP and MYSQL a while ago and now I've been involved in a huge database project with ORACLE. ---snip--- And i don't have any kind of experience with Oracle, so I would appreciate any recommendations from experienced developers.

Re: [PHP] PHP/cron fetching and processing email from a POP3 account

2002-07-12 Thread Chris Hewitt
D. Reid Wilson wrote: I would like to write a PHP script that fetchs email from a POP3 account and then processes it based on the content of the email, such as writing it to a CRM database or confirming an ezine subscription. I would then run the PHP script via a cron job every ten minutes or

Re: [PHP] serverside restrictions

2002-07-14 Thread Chris Hewitt
Liam MacKenzie wrote: This works fine, but is there a way to get apache to do it for me instead? Like, this for example... Location /server-info SetHandler server-info Order deny,allow Deny from all Allow from 192.168.0.0 /Location Yes, using exactly the syntax you have. The

Re: [PHP] You are about to leave the secure conexion

2002-07-14 Thread Chris Hewitt
Pedro Garre wrote: When I open a new window with javascript (window.open) the browser (IE) says I am about to leave the secure conexion. Same happens when I download the .der certificate. Its a browser configuration. Most browsers have the means of notifying the user if they are entering or

Re: [PHP] Tales of brave Ulysses?

2002-07-15 Thread Chris Hewitt
Alberto Serra wrote: ! I just got this. Not sure whether it's the stupidest commercial I ever seen or a new virus (as you I got one too. I guess we have an email harvester? As I'm on linux I could not try the executable anyway but I would not execute it if I was on windows either.

Re: [PHP] ^k ? -- how do I match that?

2002-07-16 Thread Chris Hewitt
Jimmy Brake wrote: is used in MS Excel when people hit return inside a cell. If they copy and paste that into a form its ok, but when I export that data to a csv it gets ugly. I'd do validation on the user input on the form and remove it there. The ^k is used to show a control code, they begin

Re: [PHP] Problem on file_exists()

2002-07-16 Thread Chris Hewitt
Jack wrote: Dear all I had a folder which the path is : (\\nedcoraa\pdf_reports\dealing room\report) it stores a lot of PDF reports in there. I'm trying to use the file_exists() function to detect if a specific file exist in this folder, but i got a problem is : It seems that php can go through

Re: [PHP] IIS5 and PHP4 problems

2002-07-16 Thread Chris Hewitt
Peter Stöcker wrote: Hi there! I have a problem with the IIS5. After I have installed PHP4 following the instruction on php.net, everything works fine instead of handling forms. Each variable deliverd by a form (e.g. test.php?id=5) is empty (id== is true). I imagine that the release notes to

Re: [PHP] Crazy idea about detecting visitor's connection speed

2002-07-16 Thread Chris Hewitt
Jason Wong wrote: On Tuesday 16 July 2002 17:12, Cedric Veilleux wrote: What I was thinking about is doing a reverse dns lookup on the client's IP and try to determine quickly if he's on a low or hi speed connection. You have to bear in mind that reverse DNS lookups are not

Re: [PHP] php/mysql simple math

2002-07-16 Thread Chris Hewitt
Jay wrote: I have created a table which has a column called cost. How do I add up all the numerical data in the cost column and display that on a webpage? Go through each record and add up the value of the cost column. Your question is so general it difficult to give more than a general

Re: AW: [PHP] IIS5 and PHP4 problems

2002-07-16 Thread Chris Hewitt
Peter Stöcker wrote: Hi! The register_globals are on. But using $_POST will cause some problems, because I also use generated links like test.php?id=4usr=test without using a form! So I don't get the variables by both these genrated links and forms. The url you give above as an example is a

Re: [PHP] Problem Running my Scripts from IIS...

2002-07-16 Thread Chris Hewitt
Kondwani Spike Mkandawire wrote: Richard Black [EMAIL PROTECTED] wrote in message 004701c22cc9$880a4be0$16fea8c0@DVLAPTOP1">news:004701c22cc9$880a4be0$16fea8c0@DVLAPTOP1... Sounds more like it's to do with the php.ini settings on the IIS box than IIS itself.

Re: [PHP] php/mysql simple math

2002-07-16 Thread Chris Hewitt
Adam Voigt wrote: $query = mysql_query(SELECT SUM(cost) AS total FROM cart WHERE userid='$_SESSION[userid]';); Yes, I'd missed that the OP mentioned mysql in the subject, thus there SUM. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Of Jobs and Certs [long]

2002-07-17 Thread Chris Hewitt
Jay Blanchard wrote: +1 Miguel +2 Chris I found when hiring people in the electronics industry that those who were genuinely interested in the subject (as a hobby) and then did a course were much better for the company than those that just had lots of pieces of paper. opinion I find that

Re: [PHP] how many requests can php serve?

2002-07-17 Thread Chris Hewitt
Andy wrote: ok .. you are right. But how about an average.. between 20 users per minute or similar is this a common rate on this data? : Is there something like a benchmark available on such thing? Apache comes with ab for load testing. Maybe that will provide you with a means of making

Re: [PHP] Copy image from a website to another?

2002-04-15 Thread Chris Hewitt
Carlos, I may misunderstand you but surely the easiest way to copy a file from one computer to another is by ftp? Log into a shell on computer 1, ftp to computer 2 and transfer whatever files you want. This may be by a simple script and does not need php (did I say that?). On the other hand,

Re: [PHP] Newbie Question

2002-04-15 Thread Chris Hewitt
Hubert, It may just be the way you typed it in the email but your products.php?tosend = 1 has spaces in it. This will truncate the tosend parameter and give it a null value. HTH Regards Chris Janet Valade wrote: On the browser i have a page in which i select the first button which has a

Re: [PHP] Self Destruct code

2002-05-07 Thread Chris Hewitt
Hi, From a legal viewpoint, I don't think you should modify any data or files on the clients computer. Code which simply times out (i.e. stops working but takes no other action) seems more acceptable. HTH Chris PHPCoder wrote: Hi I have a funny request; I wrote a system for a client and

Re: [PHP] MySQL and RH 7.2

2002-05-12 Thread Chris Hewitt
Todd, /usr/bin/mysqladmin HTH Chris Todd Cary wrote: I tried locate and find and both come up empty for mysqladmin. Am I missing something stupid here? Todd -- Todd Cary Ariste Software 2200 D Street Extension Petaluma, CA 94952 707-773-4523 [EMAIL PROTECTED] -- PHP General Mailing

Re: [PHP] help with sort problem

2002-05-13 Thread Chris Hewitt
Nick, I would use two fields in the database, FirstName and LastName. The LastName should be mandatory in your input from the user. Then you can simply extract the data with an sql statement that uses order by LastName. If you have a significant number of records, this will be fastest. HTH

Re: [PHP] Apache IIS with PHP - Same System

2002-05-23 Thread Chris Hewitt
Tim, I've run Apache and IIS on the same computer (NT4 now with SP6a) for about 3 years. We have several large servers with this configuration, and lots of users using them all day. We don't use PHP on it (ASP and pl/sql, Oracle). Use a different port yes, but we have had no problems with

Re: [PHP] PHP script

2002-05-25 Thread Chris Hewitt
Ryan, I may be missing something as I have not been monitoring this thread, but why not use ftp? It allows the file transfer and chmod. Perhaps its not available on the server that you need it to be, but its the normal way of putting web pages onto a server. HTH Chris SP wrote: I'm not an

Re: [PHP] PHP-mysql: affected rows

2002-05-31 Thread Chris Hewitt
Victor, I'd do the count first anyway. Then you know whether you need to put up the next page links or not. HTH Chris Victor Spång Arthursson wrote: Hi! If I use the LIMIT 0, 9 at the end of a SQL-query, mysql will only return the first 9 records from the database... But to determine

Re: [PHP] Undefined Index

2002-08-02 Thread Chris Hewitt
Jrgen wrote: $op = $_GET['op']; switch ( $op ) PHP shoots a Notice Message telling me that there is an undefined index Undefined index: act in g:\apache_web\intern\looney\index.php on line 177 If there is not a get variable in the url you will get the warning. Ok, am i correct in assuming

Re: [PHP] Apache

2002-08-20 Thread Chris Hewitt
Roman, It seems http.conf has not been set to parse .pl files. Have you got an unconditional LoadModule perl_module and AddModule mod_perl.c lines? Is your perl script in a directory with ExecCGI permissions and is the script's executable bit set (for the user apache is running as). Restart

Re: [PHP] 'save as'

2002-08-30 Thread Chris Hewitt
mdew wrote: Running GNU/Debian Sid. Im Running into problems, Apache cant see the .php file (it brings up the save-as dialog everytime) I have this line enabled (see below) still no success AddType application/x-httpd-php .php And restarted Apache? Is there more than one httpd.conf or is it

  1   2   3   >