Re: [PHP] New php functions?

2002-03-28 Thread Jon Farmer
It was probably the last thing you looked for there. I know I constantly go back to look up Date() placeholders. I know the feeling! In the end I printed the Date page out, folded it up and stapled it into my PHP pocket ref book -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952

[PHP] Re:[PHP]imap and POP3

2002-03-27 Thread Jon Farmer
attachments too. #!/usr/local/bin/php -q ? // Written By Jon Farmer [EMAIL PROTECTED] // A script which dowmloads the support email and processes it $dbhost = localhost; $dbuser = user; $dbpassword = password; $dbname = support; $time = time(); mysql_pconnect($dbhost, $dbuser, $dbpassword

Re: [PHP] How to remove ^M characters from a directory?

2002-03-26 Thread Jon Farmer
I have moved my php files to linux system. Now it z showing (control+M)(^M) characters in the file. How can I remove those characters? /usr/bin/perl -i.bak -npe 's/\r\n/\n/g' filename where filename is the file with he ^M line endings. Regards jon -- Jon Farmer Systems Programmer

Re: [PHP] MS Access data = mySQL database

2002-03-25 Thread Jon Farmer
mysqlimport to import into MySQL. 3. Use the MySQL ODBC driver to link the MySQL tables into Access and run a query to copy the records over. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 PGP Key available, send email with subject: Send PGP Key -- PHP

Re: [PHP] Echo Informative Text will Script Runs - how ?

2002-03-25 Thread Jon Farmer
How can I echo some text such as Processing, please wait... whilst the PHP script runs. Rather than displaying a blank screen with the results being echoed once the script has fully completed. echo (\Processing, please wait...\); flush(); //processing code here... -- Jon Farmer Systems

Re: [PHP] How to find out what country the visitor comes from

2002-02-08 Thread Jon Farmer
One you have the IP you need to do a whois on the RIPE database to work out who the IP is assigned to and which country they are in. -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 PGP Key available, send email with subject: Send PGP Key - Original Message

Re: [PHP] Check if var is a domain name

2002-02-06 Thread Jon Farmer
this (foobar.co.uk) for example, but it should work with the values you specified. 1. Doesn't check every TLD as you acknowledge. 2. Doesnt't check validity as in the domain exists! If I wanted to check the domain was valid and existed I would do a Whois and NSLookup. Regards Jon -- Jon

Re: [PHP] Check if var is a domain name

2002-02-06 Thread Jon Farmer
note that www.mynewdomain.com CAN be a valid domain also. Err... sub-domain. -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] SAX + attributes

2002-02-04 Thread Jon Farmer
can anyone tell me how I can retrieve attributes of a node using SAX parser in PHP?? Yes use a Start Element Handler. The attribues are passed to it as a associative array. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 PGP Key available, send email

Re: [PHP] Mpeg

2002-01-28 Thread Jon Farmer
...)... ImageMagick will do this AFAIK. However you have to compile with the Mpeg libraries to achieve it. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http://www.php.net

Re: [PHP] php vs asp

2002-01-28 Thread Jon Farmer
be interested to hear what your friend has to say to this, I would appreciate if you would drop me his/her reaction.. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http

Re: [PHP] php vs asp

2002-01-28 Thread Jon Farmer
With ASP the only cost is the OS. Clint ASP = Cost of hardware + Cost of OS + Cost of 3rdParty components. PHP = Cost of hardware. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 PGP Key available, send email with subject: Send PGP -- -- PHP

Re: [PHP] Display a mesagge and redirect (newbie)

2002-01-17 Thread Jon Farmer
c) and d) are clientside functions if you have already outputted data to the browser so use Javascript to do them -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key - Original Message - From

Re: [PHP] Connecting from PHP to MySQL on another Server

2002-01-17 Thread Jon Farmer
to MSSQL Server? See above answer. Also you have any TCP/IP overhead to add on. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http://www.php.net

Re: [PHP] Mulitple Attachments using php

2002-01-16 Thread Jon Farmer
file, which I do not understand. Any guidence would be very useful, Forget classes and PHP code.. install mutt (assuming you are on a *nix) and call exec() to send via mutt.. You can do it all in one line of code, it works great and not a class or include insight! -- Jon Farmer Systems

Re: [PHP] Re: SMS

2002-01-15 Thread Jon Farmer
and also to overload the network. -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: [PHP] SMS

2002-01-15 Thread Jon Farmer
specific. Do you mean you want to send SMS, receive SMS or do both? Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

Re: [PHP] parser

2002-01-15 Thread Jon Farmer
headers attached etc and then stuff it into the parser. -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] Search Engine

2002-01-15 Thread Jon Farmer
Hi all! I want to develop a search engine in PHP for a portal that I'm working on at the moment, and I'd be glad if someone could please show me how to do it, or if anyone knows of a link where i can find a tutorial for that. Use htdig -- Jon Farmer Systems Programmer, Entanet www.enta.net

Re: [PHP] Setting up an XML platform/website

2002-01-14 Thread Jon Farmer
did, it works well but not sure how proficient it was in using XML. -- -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] weird fopen problem

2002-01-10 Thread Jon Farmer
. Apache runs under user nobody. Any ideas? -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] weird fopen problem

2002-01-10 Thread Jon Farmer
the allowed direcory tree. check your open_basedir setting in php.ini config file. Nope it was the /home/jon did not have execute permission for the httpd user. Fixed now. Thanks to all that responded. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763

Re: [PHP] IP address from which country

2002-01-09 Thread Jon Farmer
lookup at www.ripe.net and that will tell you who the IP is assigned to and where in the world they are. Of course if its a ISP in Maryland, USA they could have a dialup user from Australia connected so it only gives limited information. Regards Jon -- Jon Farmer Systems Programmer, Entanet

Re: [PHP] Re: Http request

2002-01-08 Thread Jon Farmer
... any suggestions?? Well that would suffice if he just wanted to display the raw XML in the broswer. However if he wanted to parse the XML he needs to open a socket on port 80 or use a http class. Regards jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763

Re: [PHP] How to backup records in mySQL DB?

2001-12-20 Thread Jon Farmer
as often as you want backups. To keep on topic you can use PHP as the scripting language to do this. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http

Re: [PHP] PHP / SSL

2001-12-20 Thread Jon Farmer
this. If you think someone is going to want your data and has those kinda resources available then yeah go for higher. However if thats your worry where are you going to stop in the length of your key? If your that paranoid then it shouldn't be using public networks in the first place!! -- Jon Farmer

Re: [PHP] Signing Files with PGP

2001-12-20 Thread Jon Farmer
The -z option allows you to pass the passphrase on the command line -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key - Original Message - From: Brian Clark [EMAIL PROTECTED] To: PHP

Re: [PHP] QUESTION: how to validate credit card number before sent to Versign?

2001-12-19 Thread Jon Farmer
I presume you are sending the details to verisign by posting the info from the form directly to versign. If this is the case the post to a local php script, do the validation and then use the http_post class from http://phpclasses.upperdesign.com/ to send it to verisign Regards Jon -- Jon

Re: [PHP] Re: Emailing attachments upload to a form

2001-12-12 Thread Jon Farmer
Yeah.. code to divide the message into multiple parts, base64_encode the file, and attach it that way. I suggest looking for some kind of Email class that can do that for you. Try http://phpclasses.upperdesign.net/ Mike if you are on *nix used mutt from the commandline. -- Jon Farmer

Re: [PHP] Get Hours/Mins/Secs between two timestamps?

2001-12-12 Thread Jon Farmer
and the remainder is your seconds. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key - Original Message - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

Re: [PHP] Get Hours/Mins/Secs between two timestamps?

2001-12-12 Thread Jon Farmer
() on the difference, that way you don't have to worry about differences in excess of 60 secs... and what if the difference between timestamp1 and timestamp2 is 86400 ? -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP

Re: [PHP] PHP+MYSQL: unable to select database

2001-12-10 Thread Jon Farmer
I get: unable to select database when I visit my guestbook.php The user trying it is set in the mysql.user (without any perms) and in the mysql.db (with all perms). Do I have to set all perms to this user in the mysql.user table? Did you 'flush privileges' ? -- Jon Farmer Systems

Re: [PHP] Frames creating problems...

2001-12-10 Thread Jon Farmer
the contents of the textbox in the querystring. -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] Email-based PHP-Script

2001-12-06 Thread Jon Farmer
and pipe the email directly from sendmail into PHP on STDIN Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] parse error when requiring

2001-12-06 Thread Jon Farmer
Parse error: parse error in /home/sites/site139/web/EIA/sessionstart.php on line 10 It's strange that line number 10 doesn't exist! Do you have an include statement in sessionstart.php? -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key

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

2001-12-06 Thread Jon Farmer
/function.set-time-limit.php -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

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

2001-12-06 Thread Jon Farmer
The timeout is set in php.ini Only change it in php.ini if you want it to be serverwide. For a specific script use set_time_linit(). Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key

Re: [PHP] Access denied for user

2001-12-06 Thread Jon Farmer
not have permission to log on from localhost -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] question on incrementing

2001-12-05 Thread Jon Farmer
is use a hidden frame and onClick of the button refresh the page in the hidden frame. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http://www.php.net

Re: [PHP] MsSQL question

2001-12-05 Thread Jon Farmer
Hello world! I'm using php 4.0.6 to work with MsSQL (FreeBSD 4.4, Apache 1.3.20). How should i compile php to enable mssql functions? Exactly as described here: http://www.php.net/manual/en/ref.mssql.php RTFM -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763

Re: [PHP] database question

2001-11-30 Thread Jon Farmer
yeah good call on a type it should of been \s not \S -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key - Original Message - From: Jim Musil [EMAIL PROTECTED] To: py [EMAIL PROTECTED] Cc

Re: Re: [PHP] URGENT-HELP !!!!!!

2001-11-30 Thread Jon Farmer
to that email are ignored. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key - Original Message - From: Chamarty Prasanna Kumar [EMAIL PROTECTED] To: Johan Holst Nielsen [EMAIL PROTECTED] Cc

Re: [PHP] database question

2001-11-29 Thread Jon Farmer
Actually the sql statement you want is select whatever from articles where textlines regexp ^\Sbingo\S$ regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key - Original Message

[PHP] script timeouts

2001-11-28 Thread Jon Farmer
of the script dieing on timeout for it to go and do something else. Ideally it will redirect to another php script which will check for the entry in the database. Can this be done? Any pointers? Regards jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378

Re: [PHP] Yet Another Mysql Problem

2001-11-22 Thread Jon Farmer
Well telling us what the errors are would be a start :-) Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key - Original Message - From: Stephen Phillips [EMAIL PROTECTED

Re: [PHP] exporting

2001-11-20 Thread Jon Farmer
straightforward to pull the info using php and right to Excel file using the class Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http://www.php.net

[PHP] RE :[PHP] Multiple Entry SELECT and JavaScript interaction

2001-11-20 Thread Jon Farmer
based on another form object. Instead of referring in javascript to the select by name refer by reference ie: document.form[0].elements[1].selected Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send email with subject

Re: [PHP] Week of month

2001-11-01 Thread Jon Farmer
for this purpose or write your own. Remember the actual first day of a week can be country specific. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send blank email to [EMAIL PROTECTED] -- PHP General Mailing List (http

Re: [PHP] Week of month

2001-11-01 Thread Jon Farmer
] Week of month How about; echo It is week .((int)(date(j)/7)+1). of the month.br; -Original Message- From: Jon Farmer [mailto:[EMAIL PROTECTED]] Sent: Thursday, 1 November 2001 20:14 To: PHP Masters; Sheni R. Meledath Subject: Re: [PHP] Week of month Is there any way

Re: [PHP] Re: Loading message

2001-10-25 Thread Jon Farmer
returned the message Checking... changes to Finished even if all the images etc have not loaded yet... All done with PHP and a one line javascript call. Regards jon ] -- -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send blank email

Re: [PHP] Re: Loading message

2001-10-25 Thread Jon Farmer
Yeah just call flush() when you want whats been parsed so far to go to the client.. -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send blank email to [EMAIL PROTECTED] - Original Message - From: Daniel Alsén [EMAIL PROTECTED

Re: [PHP] PHP for shell scripting: weird error.

2001-10-19 Thread Jon Farmer
I'm running PHP v4.0.7RC3 (from package php4-cgi) on Linux 2.4.10-ac11. Distribution debian unstable. I would recommend 4.0.6 compiled from source. Thats what I use and its very stable. Regards jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP

Re: [PHP] Spam messages (Was: FREE S E X O

2001-10-18 Thread Jon Farmer
And then the spammers can use NNTP again. I think it goes both ways. NNTP LIST A good spam filter (blacklist) would be a good option. Yeah thats what i said -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send blank email

Re: [PHP] php in css not working with IF's

2001-10-05 Thread Jon Farmer
Budweiser if ( A != 10 or A != 9 ) -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send blank email to [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] Window open.

2001-10-05 Thread Jon Farmer
I have yet another PHP question! =) How do i open a window in PHP and how do i insert information in it? Actually you have a javascript question! check out window.open() in the javascript docs Regards jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763

Re: [PHP] Carriage return.

2001-09-05 Thread Jon Farmer
call it straight after the line that generates the file. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07968 524175 PGP Key available, send blank email to [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

Re: [PHP] Re: mysql query . need help!!!!!

2001-09-04 Thread Jon Farmer
be selected without a table name. Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07968 524175 PGP Key available, send blank email to [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

[PHP] EDI with PHP?

2001-09-03 Thread Jon Farmer
/pointers? Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07968 524175 PGP Key available, send blank email to [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Re: EDI with PHP?

2001-09-03 Thread Jon Farmer
No, we would have to spend around £24,000 sterling to get the modules. We already have modules that allow importing of order, etc from txt files. I could write a PHP XML parser to interface into this. What I am not sure is how acceptable it will be to our customers -- -- Jon Farmer Systems

Re: [PHP] Cookies

2001-08-31 Thread Jon Farmer
You can't set a cookie for a different domain or subdomain. If you set a cookie for a domain and then goto to SSL then the cookie will still be presented. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07968 524175 PGP Key available, send blank email

Re: [PHP] Cookies

2001-08-31 Thread Jon Farmer
Ignore my previous post it is incorrect Sorry Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07968 524175 PGP Key available, send blank email to [EMAIL PROTECTED] - Original Message - From: Jon Farmer [EMAIL PROTECTED] To: Jason Radley [EMAIL PROTECTED

RE: [PHP] POST to port 443 (SSL)

2001-08-28 Thread Jon Farmer
Ermm you are missing SSL encryption. You can't just try and talk to port 443! You have to use something that talks SSL to talk to port 443. fsockopen() does not talk SSL. Regards -- Jon Farmer տլ Systems Programmer, Entanet www.enta.net Tel +44 (0)1952 428969 Mob +44 (0)7968 524175 PGP Key

RE: [PHP] How do I read the first n lines from a file?

2001-08-28 Thread Jon Farmer
If you are on a unix box you might want to use the tail command... if you use exec() the output will be in an array... -- Jon Farmer ?? Systems Programmer, Entanet www.enta.net Tel +44 (0)1952 428969 Mob +44 (0)7968 524175 PGP Key available, send blank email to [EMAIL PROTECTED] -Original

RE: [PHP] PHP/Sendmail interaction : how to get rid of wrong emails

2001-08-28 Thread Jon Farmer
Regards Jon -- Jon Farmer տլ Systems Programmer, Entanet www.enta.net Tel +44 (0)1952 428969 Mob +44 (0)7968 524175 PGP Key available, send blank email to [EMAIL PROTECTED] -Original Message- From: Sebastian Stadtlich [mailto:[EMAIL PROTECTED]] Sent: 28 August 2001 15:08 To: 'Php-General

RE: [PHP] Refresh Main frame

2001-08-28 Thread Jon Farmer
Yes but you would have to dynamically build the javascript statement up using php with the query string you wanted and use window.parent.name-of-frame.location.href=index.php??echo $querystring? -- Jon Farmer Õ¿Õ¬ Systems Programmer, Entanet www.enta.net Tel +44 (0)1952 428969 Mob +44 (0

RE: [PHP] PHP/Sendmail interaction : how to get rid of wrong emails

2001-08-28 Thread Jon Farmer
For perl look at http://www.cpan.org/modules/by-category/19_Mail_and_Usenet_News/Mail/Mail-Ch eckUser-1.02.readme As for php you would need to open a socket connection.. My advice would be to use the perl module and call a perl script from php. Regards Jon -- Jon Farmer Õ¿Õ¬ Systems

RE: [PHP] Shell or http?

2001-08-27 Thread Jon Farmer
Shell PHP scripts will start with the line #!/path/to/php -q Regards Jon -- Jon Farmer O?O¬ Systems Programmer, Entanet www.enta.net Tel +44 (0)1952 428969 Mob +44 (0)7968 524175 PGP Key available, send blank email to [EMAIL PROTECTED] -Original Message- From: George E. Papadakis

RE: [PHP] PHP and RSA/Java (Repost with correct e-mail!)

2001-08-24 Thread Jon Farmer
and randseed files are readable by the apache user. 4. Have fun I have successfully got this working and if you need any help let me know Regards jon -- Jon Farmer տլ Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07968 524175 PGP Key available, send blank email to [EMAIL

RE: [PHP] redirect

2001-08-24 Thread Jon Farmer
header(location: redirect.php); -- Jon Farmer տլ Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07968 524175 PGP Key available, send blank email to [EMAIL PROTECTED] -Original Message- From: Wilbert Enserink [mailto:[EMAIL PROTECTED]] Sent: 24 August 2001 15:45

RE: [PHP] PHP and RSA/Java (Repost with correct e-mail!)

2001-08-24 Thread Jon Farmer
I dont think you read the original post correctly. Obviously you would use SSL to get the info form the browser to server. What the poster was asking was how does he securely get the information from the server to the people using the PDQ machine. Regards -- Jon Farmer O?O? Systems Programmer

RE: [PHP] Re: PHP based authentification -----------

2001-08-20 Thread Jon Farmer
they go back to the page that needs login then it presents a login box to a realm that contains the current date and time in it. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07968 524175 PGP Key available, send blank email to [EMAIL PROTECTED

[PHP] HTTP Authentication

2001-08-15 Thread Jon Farmer
are passed to the script. How do I get the client to forget the previous login details? Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07968 524175 PGP Key available, send blank email to [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

RE: [PHP] Creating a javascript array from database data

2001-08-15 Thread Jon Farmer
); ? a[?=$i?] = ?=$text? ? $i++; } ? } HTH Jon Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07968 524175 PGP Key available, send blank email to [EMAIL PROTECTED] -Original Message- From: Neil Freeman [mailto:[EMAIL PROTECTED

RE: [PHP] Select

2001-08-14 Thread Jon Farmer
thats because mysql_fetch_row only returns one row. to get all the rows do while ($row = mysql_fetch_array($result) { //processing code here } This will run through all the rows putting the colums into the array $row[] Regards Jon -- Jon Farmer Systems Programmer, Entanet

RE: [PHP] Select

2001-08-14 Thread Jon Farmer
Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07968 524175 PGP Key available, send blank email to [EMAIL PROTECTED] -Original Message- From: Jeremy Morano [mailto:[EMAIL PROTECTED]] Sent: 14 August 2001 15:53 To: [EMAIL PROTECTED] Subject: [PHP] Select Hi

RE: [PHP] Re: Socket problem

2001-08-13 Thread Jon Farmer
Hmm well I has this problem on a FreeBSD box and as soon as I moved it to a RedHat7 box it worked. Jon Farmer Systems Programmer Entanet International Ltd www.enta.net Tel 01952 428969 Mob 07968 524175 -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: 12 August

RE: [PHP] MySQL

2001-08-13 Thread Jon Farmer
if you mean how do you get mysqld to startup automatically then you need to call mysql.server start at bootup Regards Jon Jon Farmer Systems Programmer Entanet International Ltd www.enta.net Tel 01952 428969 Mob 07968 524175 -Original Message- From: Roman [mailto:[EMAIL PROTECTED

RE: [PHP] Copy function usage ?

2001-08-09 Thread Jon Farmer
You need to make sure that what ever user the webserver/php runs under has permissions to read from the source folder/file and write permission for the destination folder/file. Common users for apache/php are nobody or apache regards Jon Jon Farmer Systems Programmer Entanet International Ltd

RE: [PHP] selecting words

2001-08-08 Thread Jon Farmer
. To do this you would need to find the 100th space in the string and use everything before that. I would probably explode the string and loop through the first one hundred elements to reconstruct the string with the first one hundred words. Regards Jon Jon Farmer Systems Programmer Entanet

[PHP] Problem with inserts to mysql

2001-08-07 Thread Jon Farmer
Hi, This is a real strange one. I am writing a shell script in PHP which I am cronning to run every 5 mins. Basically it downloads email via imap. Splits it up into it relevant sections and adds it to a database. It does multiple inserts, and update and multiple selects. The problem I have is

RE: [PHP] Best way to take a copy of a Database from Server to server

2001-08-07 Thread Jon Farmer
How can i take a dump of first database (which is about 1MB) and restore that dump on the second one? If you have Telnet access use the mysqldump and mysql clients to export then import. Regards Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: [PHP] Upper or Lower Case

2001-08-07 Thread Jon Farmer
practice early. Who mentioned anything about typing? In the example given it was a hardcoded string. Jon Farmer Systems Programmer Entanet International Ltd www.enta.net Tel 01952 428969 Mob 07968 524175 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] Automated Scripts

2001-01-18 Thread Jon Farmer
You could either Compile PHP as a command line executable or Use Lynx to call a php page through HTTP. either wat cron is the way to go Regards -- Jon Farmer www.workcam.co.uk +44 (0)7968 524175 2001 should be pronounced twenty o one not two thousand and one "Jason Murray&qu