Re: [PHP] PHP and IIS - More info

2003-03-19 Thread Chris Hewitt
Beauford.2002 wrote: Further note that it is not just this script, but many PHP scripts that I run on IIS - they all work perfectly on Apache (on Windows and Linux).. As well as configuration differences it could be different versions of php. Modern ones expect $_SERVER for example. I might like

Re: [PHP] PHP and file extensions

2003-03-20 Thread Chris Hewitt
Beauford.2002 wrote: accessed unless you log in - is there a way to have this line in an html file without changing the extension to .php? Yes, but you need to tell Apache (in the AddType line in httpd.conf) to parse all ".html" files with php. This has a performance implication for ordinary ".h

Re: [PHP] Apache + PHP - when using as module, can one have PHPs run as

2003-03-20 Thread Chris Hewitt
ADFH wrote: Would it be true to say that the current Apache PHP module doesn't support running PHP scripts as their owners, and that one has to use PHP in CGI mode for this? PHP as an Apache module runs as the user that Apache runs as. Typically "nobody" or "apache". I use a well known PHP based

Re: [PHP] Help me pervade Bristol City council to use PHP

2003-03-24 Thread Chris Hewitt
Ben Edwards wrote: Am talking to a part Bristol City Council in the UK. To persuade them to use PHP I need to find some high profile reference sites. You may find some useful references in the archive of this list. I remember a poster with the subject of: "Is php used by U.S. Government? By

Re: [PHP] url rewrite

2003-03-28 Thread Chris Hewitt
Sebastian wrote: if that were the case I wouldn't have asked here.. perhaps i didn't find the answer at "google or the archives." - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> Ask google or ask the archives. | On Friday 28 March 2003 16:38, Seb

Re: [PHP] Parsing CSS files

2003-03-31 Thread Chris Hewitt
Liam Gibbs wrote: Yeah... the same way you made your web server parse files with a .php extension. Just repeat the same procedure for a .css extension. if you have cpanel you can add the extension from there. Yeah, I need to find out where to add the CSS extension to my list of parsable files. I

Re: [PHP] magic quotes

2003-04-03 Thread Chris Hewitt
Justin French wrote: Hi all, Can I just have a quick head check on magic quotes runtime (&gpc)? I have them both set to Off currently, and my pages work fine. However, when I set them to on, I end up with slashes throughout the mysql data. Is this the expected behaviour? Seems counter-intuitiv

Re: [PHP] Stuck!

2003-04-03 Thread Chris Hewitt
Andrew wrote: Having spent hours on my members registration and login pages I am getting so close to cracking it, but have now hit a brick wall. I am getting a warning message which I think could stem from somewhere else in my code but I have no idea where. There is a little too much code to put h

Re: [PHP] chill out

2003-04-03 Thread Chris Hewitt
I lurk more than contribute. I'd contribute more (within the limitations of my knowledge) with more time. Being a fairly high volume list, I understand the frustration of considerably OT posts. I feel the list is not particularly suited to those both new to PHP and to programming. Other resourc

Re: [PHP] Problem with PHP and MySQl after install

2003-04-03 Thread Chris Hewitt
Don wrote: Further to this point, I've just read that RedHat installed PHP RPM's do not come with MySQL support. Now I've d/l the latest stable version form php.net, version 4.3.1 but I still cannot get MySQL support after compiling and installing. I think that there is more than one rpm. If you

Re: [PHP] Re: httpd.conf - php entry?

2003-04-04 Thread Chris Hewitt
Ryan Vennell wrote: h ok i did a searh in it and found no reference to php. is there anywhere else i would find a place in apache settings that would be telling it where to find php? Thanks If you are using RH 8 its not in httpd.conf but /etc/httpd/conf.d/php.conf. HTH Chris -- PHP Genera

Re: [PHP] ^M

2003-04-04 Thread Chris Hewitt
Liam Gibbs wrote: So which is it that will keep my files from having ^M after PHP is finished fopen(), fputs(), and fclose() with them? \n, \r, and \n\r all seem to reinsert ^M at the ends of all my lines. It looks like you are viewing a dos/windows file on unix. The ^M is carriage return, which

Re: [PHP] ^M

2003-04-04 Thread Chris Hewitt
Liam Gibbs wrote: It looks like you are viewing a dos/windows file on unix. The ^M is carriage return, which is needed as part of a dos/window end of line sequence (carriage return, line feed) whereas unix uses just line feed. Nope. They're UNIX-created and UNIX-modified. Does it matter if I downl

Re: [PHP] magic quotes

2003-04-04 Thread Chris Hewitt
Ford, Mike [LSS] wrote: -Original Message- From: Chris Hewitt [mailto:[EMAIL PROTECTED] Sent: 03 April 2003 09:26 To: Justin French [snip] What I have done is to do the addslashes/stripslashes assuming magic_quotes_runtime is off then force it off within my code beforehand with

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 assu

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). Res

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

Re: [PHP] Re: unexpected T_SL

2002-09-02 Thread Chris Hewitt
> > >>Voisine wrote: >>Hi, >> >>What is wrong witht his code? Parse error: parse error, unexpected >>T_SL in c:\program files\easyphp\www\tutorial\eod.php on line 2 >> >>>$str = <<>Example of string >>spanning multiple lines >>using heredoc syntax. >>EOD; >>?> >> Assuming your line 2 is the one wi

Re: [PHP] Safe_Mode problem....

2002-09-02 Thread Chris Hewitt
Jim Hatridge wrote: >Can someone give me an idea what next to do? Either how to turn off safe_mode >or a work around on the code. BTW I'm using SuSE 8.0, PHP, and Mysql on a >self-made PI/233. > Jim, If you have changed safe_mode in php.ini and phpinfo() still reports it as on, then I would

Re: [PHP] Printing ASCII on Linux Server

2002-09-02 Thread Chris Hewitt
Mingshuo Lin wrote: >I am trying to printout some ASCII Text (using LPR, >script see below) to a IBM Proprinter compatible >dot-matrix printer, on a server running Linux. > >Printing works fine, however 2 problems: > >1. linefeed ("\n") doesn't work > >2. escape sequences to print BOLD, ITALIC, U

Re: [PHP] IBM UniVerse + PHP

2002-09-03 Thread Chris Hewitt
Jackson Miller wrote: > >I am about to start a project that will connect to a UniVerse database, >and would like to use PHP, but can't find any information on it (and I >am not familiar with UniVerse). > Jackson, Is there an ODBC driver for it? If so, you might be able to use ODBC. Ask IBM? HT

Re: [PHP] Low Cost PHP Hosting

2002-09-06 Thread Chris Hewitt
Michael Egan wrote: >Philip, > >I've found UK Linux (http://www.uklinux.net) to offer a good service at low cost. >They also offer 50% discount for charities. > Phil, Yes, in the UK, UK Linux is good, I have an account. They do a free account too (just use the phone line for 1hour per month).

Re: [PHP] Web based FTP client

2002-09-06 Thread Chris Hewitt
Mark McCulligh wrote: > >I know how to browse the user's file system using JavaScript or VBScript if >I use the ActiveX object "FileSystemObject" but then the site will only work > Sounds like a massive security breach. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] Load / Stress Testing

2002-09-09 Thread Chris Hewitt
Dan Hardiker wrote: > >Ive thought of writting a load testing script, but Im not after >reinventing the wheel. > Dan, Apache comes with "ab" for this sort of testing. "man ab" for details. HTH Chris > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] about forms with php

2002-09-21 Thread Chris Hewitt
Meltem Demirkus wrote: >?Because when I tried to use them like this: > >onSubmit="checkemail(email.value);return false" > > >and when I click submit.. javascript is working but it is not going to the >sign_up_ page ..How can I manage it?.. > Or simply leave off the "return false" and in your

Re: [PHP] closing browser's window

2002-09-22 Thread Chris Hewitt
Murat . wrote: >is it possible to close client's browser's window from php script? > From a php script yes, but not by PHP, because PHP runs on the server, not the browser. If you use JavaScript you can close it with window.close() HTH Chris -- PHP General Mailing List (http://www.php.net/

Re: [PHP] in a logic loop!

2002-09-24 Thread Chris Hewitt
Naintara Jain wrote: >What I am doing is: >I maintain a set of details in say $prev_row (previous row) and another in >cur_row (current row). >The minute my cur_row detail (one unique id) doesn't match the prev_row >detail, I print out all the previous row details, and reinitialize the >various v

Re: [PHP] right name for

2002-09-24 Thread Chris Hewitt
Andreas Hasenack wrote: >What is the right name to use in apache's (2.0.41-dev) IfModule >directive to test if the php4 module is loaded? I'm including >the file below via httpd.conf's Include statement but the >part between the IfModule is being completely ignored: > > >AllowOverride None >

Re: [PHP] SQL : left join from multiple tables

2002-09-24 Thread Chris Hewitt
Faisal, I'd check the documentation CDs for Oracle 9i. Oracle 8 does not use the "join" or "left" keywords but a plus sign in parenthesis "(+)" whose position determines whether it is a left or right join. It may not be SQL2 but its Oracle. HTH Chris Marek Kilimajer wrote: > Well, this woul

Re: [PHP] right name for

2002-09-24 Thread Chris Hewitt
Andreas Hasenack wrote: >Someone at the apache list told me that the name would be sapi_apache2.c, >because that's where the STANDARD20_MODULE_STUFF define is used. But >sapi_apache2.c didn't work either. > Ah, I didn't know you meant Apache 2 and windows? I'm going on Apache 1.3.x and linux. C

Re: [PHP] Re: Cronjob

2002-09-25 Thread Chris Hewitt
> > >On Wed, 25 Sep 2002, Daren Cotter wrote: > >> >>My problem, is that I absolutely NEED to run a PHP >>script using crontab. The script needs to send >>numerous queries to a database every hour. Is there >>any way I can accomplish this, directly or indirectly? >> Are you sure its not already th

Re: [PHP] Instalation problem

2002-09-27 Thread Chris Hewitt
Alicia Molina (ABS) wrote: >Hi! >I'm installing PHP 4.2.3, I have already installed version 4.0.5 working >without problems. >Once installed version 4.2.3, I'm using the order phpinfo() and continues >appearing the old version of PHP 4.0.5 how if it continued installed and it >had not been updat

Re: [PHP] Instalation problem

2002-09-27 Thread Chris Hewitt
Alicia Molina (ABS) wrote: >Yes! I have restarted my server, my webserver and all. >I have red hat 6.2 and Apache 1.3.20 > >Alicia Molina (ABS) wrote: > >>I'm installing PHP 4.2.3, I have already installed version 4.0.5 working >>without problems. >>Once installed version 4.2.3, I'm using the or

Re: [PHP] mail headers & filtering

2002-09-30 Thread Chris Hewitt
Debbie, Your post got through. I've not seen any replies. If all ISPs dealt with spam generated by their own customers promptly, and passed on the info to the right ISP if not them, then the net could be virtually spam free (well, maybe). Regards Chris Debbie Dyer wrote: >I sent this mail

Re: [PHP] Re: mail headers & filtering

2002-09-30 Thread Chris Hewitt
Debbie Dyer wrote: >addresses and got it bounced back with the following:- > >X-AntiAbuse: This header was added to track abuse, please include it with >any abuse report >X-AntiAbuse: Primary Hostname - server.securesite7.com >X-AntiAbuse: Original Domain - c-u-online.co.uk >X-AntiAbuse: Originat

Re: [PHP] Re: mail headers & filtering

2002-09-30 Thread Chris Hewitt
Debbie Dyer wrote: >mailboxes too - next one who does I will ask them to check their dns as > Its a problem with the sender's domain, rather than the recipient. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread Chris Hewitt
James Mackie wrote: >On most of my servers that are running 4.2.2 (and before) I used >'killall -USR1 httpd' to reload my apache config. Now all servers that I >install with 4.2.3 instead of 4.2.2 this shuts down apache instead of >reloading the config files. (-HUP still works as it should). > >

Re: [PHP] Multiple Tables Select

2002-10-01 Thread Chris Hewitt
Bob Irwin wrote: > > >What I am getting is not accurated, it just seems to grab the one entry, >which is correct, but there are 3 entries that fall within the range I am >trying to select on. > What are the other two records you think ought to be returned? I feel the sql statement probably gets

Re: [PHP] Works from the command line but NOT from PHP

2002-10-01 Thread Chris Hewitt
DonPro wrote: >$queryID = mysql_query("SELECT HSCode, UOM, EDescript FROM HSCodes WHERE >MATCH(EDescript) AGAINST ('" . $description . "') ORDER BY HSCode, UOM, >EDescript"); > I don't see what is wrong but try echoing the text of the query itself and see if it contains what you think it does ar

Re: [PHP] Getting users IP address into a variable.

2002-10-02 Thread Chris Hewitt
Webmaster MBTRADINGCO wrote: >I'm sure there has to be a way to verify which IP address is accessing > Don't count on it to identify users on the internet though. Regards Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can I check for variances in spelling within form text input fields?

2002-10-02 Thread Chris Hewitt
Debbie Dyer wrote: >company exists already test you could remove known extensions from the input >company name - ltd, plc, etc - and replace this with a wildcard for the >check. > >- Original Message - >From: "DonPro" <[EMAIL PROTECTED]> > >>information is the company name, address, city

Re: [PHP] Math problem (222)

2002-10-02 Thread Chris Hewitt
[EMAIL PROTECTED] wrote: >errors, but it doesnt do what i want it to do - instead of returning any >three digit combo that doesnt return 222, it just prints EVERY combo whice >passes my conditional statement to weed out numbers that have digits where 2 >or more are the same. > I can't write bug-f

Re: [PHP] Forming HTTP Header to POST

2002-10-08 Thread Chris Hewitt
Paul Kaiser wrote: >Greetings, > >With register_globals off, I can no longer call specific functions form my >PHP script by linking text/graphic as such: > >http://www.mysite.com/mydb/myevts.php?action=add_event > Use $_GET['action'] on this get variable within your myevts.php script to obtain i

Re: [PHP] Another problem

2002-10-08 Thread Chris Hewitt
[EMAIL PROTECTED] wrote: >For some reason, when I replace my tags with \n\r and print the > Do you mean \r\n (carriage return, line feed)? Is this a typo in your post or is it the problem? HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Undefined variable: blabla ?

2002-10-08 Thread Chris Hewitt
Hkan wrote: >I just reinstalled the system and everything on my computer, and thought I >should get the latest versions of apache, php and mysql, and now I get this >message everywhere on my pages.. hehe.. :P >how do I "define variables" ? > If you have reinstalled with latest versions, maybe you

Re: [PHP] mail problem Sendmail 8.12.4

2002-10-08 Thread Chris Hewitt
Devin Atencio wrote: >to sendmail in my /usr/local/lib/php.ini. I am using PHP 4.2.3 >but it fails to send mail. My /var/log/maillog shows the attempt >but nothing happens: > >Oct 8 11:12:18 stardust sendmail[84142]: g98HCIsQ084142: from=nobody, >size=331, class=0, nrcpts=0, >msgid=<[EMAIL PROTE

Re: [PHP] global variables that are arrays

2002-10-08 Thread Chris Hewitt
Christopher J. Crane wrote: >Can I do this? >global $Ticker=array(); > I don't know, what happens when you try it? HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: secure access

2002-10-09 Thread Chris Hewitt
If you use a .htaccess file in the directory (assuming Apache), a popup box asks for username/password. The password is MD5 encrypted. I think the downside is php getting access to these, or maybe I'm wrong in this. HTH Chris Anup wrote: >I belive you can have the file atleast one directory b

Re: [PHP] Re: Object methods - memory usage?

2002-10-10 Thread Chris Hewitt
Bogdan Stancescu wrote: > Anyway, I don't expect this message to gain me a reply to my original > question - just wanted to explain myself for whoever has the curiosity > to find out why I reacted like that. There. There are many reasons why people do not reply. In my case it is sheer ignoran

Re: [PHP] DB speed

2002-10-10 Thread Chris Hewitt
Simon Taylor wrote: >Well obviously - cos MySQL rocks!!, but seriously I also did some tests and >got variable results from different db's - even got an odbc connection to >access to run faster than mysql at one stage!! - something tells me there >are other factors contributing.. >-Original M

Re: [PHP] Re: who's in the chat?

2002-10-10 Thread Chris Hewitt
Oliver Witt wrote: >The problem is when they leave. There is no leave button because most of them >wouldn't use it anyway. >Olli > That is a problem with html, not a particular application. You have to time the visitor out. HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] displaying fixed number of records

2002-10-10 Thread Chris Hewitt
This often comes up. If you look in the archives there is reference to code for this. I know there is also some complete code on phpbuilder, phpclasses or another server, sorry I don't remember which but you will find it in the archives. HTH Chris DoL wrote: >Hi > >I would like to fixed the

Re: [PHP] Upload Problem

2002-10-13 Thread Chris Hewitt
[EMAIL PROTECTED] wrote: > >Warning: Unable to open 'C:\\My Documents\\lyrics\\C_DTBS\\SLIME.TXT' for >reading: > Has the webserver got permission to read this file? It does not seem to be under the document root. >No such file or directory in /home/tabzilla/public_html/doadd.php >on line 89 >

Re: [PHP] Predefined variables not set?

2002-10-13 Thread Chris Hewitt
Miles wrote: >than just outputting nothing. > >How can I fix this? I've had no problems until i reinstalled php today... > register_globals? HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A little help needed, I cant figure!

2002-10-13 Thread Chris Hewitt
John W. Holmes wrote: >Song Table: >Song_id >A_id >Type >Name >Length >Lyrics >... > >That's my ideas on how to do it. There are many ways to do it, though. > Totally agree with what John says. If the lyrics are long (as I assume they will be) then I'd probably hive the lyrics off into a table o

Re: [PHP] Fatal error: Maximum execution time of 30 seconds exceeded

2002-10-13 Thread Chris Hewitt
scott wrote: >Hello >Trying to send a html email to 5000 people on a list >Keep getting Fatal error: Maximum execution time of 30 seconds exceeded >Any pointers on the best way to achieve this lengthily operation without >the script failing? Best regards Scott > If the email is the same for all

Re: [PHP] outgoing mail function freezing problem

2002-10-14 Thread Chris Hewitt
scott wrote: >My mail function is sending out a few hundred or so mail address but >keeps hanging when it gets to sending a mail form a certain domain. > Probably DNS. Try doing a "dig thedomain.com" (assuming linux) on the domain it is going to. I suspect there is not an entry thus it will hang

Re: [PHP] Inserting special characters into text fields

2002-10-14 Thread Chris Hewitt
Phil Schwarzmann wrote: >I need users to be able to insert special characters (ö and ä) into a >text field. > >Unfortunately, English-speaking people do not have these keys on their >keyboards. Currently, they are cutting and pasting these characters >into the text boxes. > >I believe ASP can

Re: [PHP] Inserting special characters into text fields

2002-10-14 Thread Chris Hewitt
Maxim Maletsky wrote: >"ALT" key? I don't think so. > In MS Windows, e.g hold down the "Alt" key, on the numeric keypad press 156 then let go of the "Alt" key and you have the British pound sign (£). This is with the UK keyboard layout. Its been there since the days of DOS and works for all AS

Re: [PHP] PHP Upgrade

2002-10-15 Thread Chris Hewitt
Ramesh Nagendra Pillai wrote: > >I am using Apache/PHP4.0.1/PostgreSQL, I had upgraded >PHP to PHP.4.2.3, now My problem is none of my > register_globals now defaults to off. I think this may be your problem. HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] Passing the variables ...

2002-10-29 Thread Chris Hewitt
Mukta Telang wrote: I tried using echo($_GET['$textbox']) instead of printf statement in As the name of your textbox is "textbox" not "$textbox", use $_GET['textbox'] instead. HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Missing

2002-10-31 Thread Chris Hewitt
Adam Voigt wrote: #!/usr/local/php_4.2.3/bin/php -q I think it works. I get "DOH!" printed when I try this. What do you get? I'm doing this from a web browser rather than command line though, so I don't use your #!/usr... line. HTH Chris -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] *.PHP "save-as" dialog

2002-11-06 Thread Chris Hewitt
Lee, I think its the AddType line for php that you want to take out of the HTH Chris Lee Philip Reilly wrote: Thanks for your reply. I took out the following lines, and restarted Apache, but I still have the same problem... LoadModule php_module modules/mod_php.so

Re: [PHP] Javascript and PHP

2002-11-06 Thread Chris Hewitt
[EMAIL PROTECTED] wrote: Well the question is: i want to know how can i make to insert into the $_GET or $_POST arrays, an entry with a value from javascript. All the php processing (on the server) is complete before the javascript processing (on the client) commences, so you would need to sub

Re: [PHP] Oracle 7 support

2002-11-12 Thread Chris Hewitt
Dan Field wrote: functionality included. If I recompile PHP, will I need the Oracle headers on the machine also? If so this could be a problem as the Oracle server I wish to use is not on the same machine as the webserver. Seems lots of us have not actually tried doing it without Oracle instal

Re: [PHP] news site, recent entries retrieval

2002-11-13 Thread Chris Hewitt
Pag wrote: One of the fields in my tables is "type" (values 0, 1, 2 etc), which divides the news into categories, how can i display like the 10 most recent entries of type = 2, for example? If your table is called mynews and it has a field called timestamp which contains the date/time the

Re: [PHP] LDAP specific?

2002-11-14 Thread Chris Hewitt
Tony Earnshaw wrote: frame. To do this, PHP needs to be fed 'header("Content-type: image/jpeg")'. This can be put more or less anywhere in the very short script used for showing the jpeg and works. However, if I try to put any more html code into the script, i.e. 'print ';, print ''; etc, *anywhe

Re: [PHP] best php ide

2002-11-18 Thread Chris Hewitt
Edward Peloke wrote: What is everyone's opinion of the best php ide? Preferably a free one? I currently just use multiedit but downloaded phpcoder this weekend. This is regularly asked. The archives will give you all the views you need. HTH Chris -- PHP General Mailing List (http://w

Re: [PHP] Help with functions()

2002-11-20 Thread Chris Hewitt
Beauford 2002 wrote: Hi, I have form that a user would input information and that info is sent to a function, but I need to be able to return a result of this function and is where I am having a problem. For example: testfunction($var1, $var2, $var3, $var4); //the form fills these values. e

Re: [PHP] OT-Laptops

2002-11-21 Thread Chris Hewitt
Edward Peloke wrote: I know this if off topic but who better to ask this question to than people who work on a computer everyday. I can't find any information online so I thought I would risk getting yelled at and ask. Does anyone have or know anything about Sotec Laptops? Not sure where you

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 t

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:

Re: [PHP] oracle again!!!!

2002-06-07 Thread Chris Hewitt
hen installing this in RedHat? > > >Regards, > >Mike > >- Original Message - >From: "Chris Hewitt" <[EMAIL PROTECTED]> >Cc: "php" <[EMAIL PROTECTED]> >Sent: Thursday, June 06, 2002 5:41 PM >Subject: Re: [PHP] oracle again!!!

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 newsgrou

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 poin

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, http://mybox.domain.com/myfile.xls";>Click to download When clicked, if ".xls" is in /etc/mime.types as "application/vnd.ms-excel.xls" then it will either download or start

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 looki

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

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 i

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 hav

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 use

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 Genera

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 its

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

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=mo

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 secon

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 Genera

Re: [PHP] Re: .htpasswd

2002-07-03 Thread Chris Hewitt
"man htpassswd" shows it can be MD5, crypt or SHA. Chris Richard Lynch wrote: >>Does anyone know what encryption is used on passwords in a .htpasswd file? >> > >I *THINK*: > >OS-dependent... > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

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

Re: [PHP] Exim sendmail faults

2002-07-04 Thread Chris Hewitt
Liam Gibbs wrote: >Miles Thompson wrote: > >>Can you use exim to send mail from the console? Is sympatcio allowing this? >> >Sympatico allows it but I can't do it (I used to have another >box that did this but it got hacked and pretty much destroyed...) > One quick test is to set up an email clie

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 &g

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 yo

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...

Re: [PHP] Having more problems

2002-07-07 Thread Chris Hewitt
Shiloh, It displays in my Mozilla browser, but maybe the missing and 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 page I am

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

<    1   2   3   >