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

[PHP] Re:[PHP]imap and POP3

2002-03-27 Thread Jon Farmer
', '" . $filesrc[$h] . "', '$filetype[$h]', '$fileencoding[$h]')"; //echo $sSQL; $result = mysql_db_query($dbname, $sSQL); } } $bodytext = "Thank you for your support request\n\n"; $bodytext = $bodytext . "We have assigned the following ti

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

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(); //

Re: [PHP] MS Access data => mySQL database

2002-03-25 Thread Jon Farmer
ss and use 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 P

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
> 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: h

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

2002-02-06 Thread Jon Farmer
and NSLookup. 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/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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

Re: [PHP] php vs asp

2002-01-28 Thread Jon Farmer
this in ASP. I would 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 Gener

Re: [PHP] Mpeg

2002-01-28 Thread Jon Farmer
m not that much of a unix-guru...)... 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

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

2002-01-17 Thread Jon Farmer
mote server or PHP 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:

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] Mulitple Attachments using php

2002-01-16 Thread Jon Farmer
introduced an ATT01583.ATT > 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 ins

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 ww

Re: [PHP] parser

2002-01-15 Thread Jon Farmer
if it has any 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-mai

Re: [PHP] SMS

2002-01-15 Thread Jon Farmer
an you be more 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/)

Re: [PHP] Re: SMS

2002-01-15 Thread Jon Farmer
being used for spam 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]

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

2002-01-14 Thread Jon Farmer
. I dont mind writing a tutorial on what I 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://

Re: [PHP] weird fopen problem

2002-01-10 Thread Jon Farmer
under user nobody. > > looks like you try to open a file outside 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. Reg

[PHP] weird fopen problem

2002-01-10 Thread Jon Farmer
Supplied argument is not a valid File-Handle resource in /home/ethiorg/public_html/test.php on line 4 from the following script: the directory /home/jon/pgpfiles has mode 777 and is owned by nobody and group is nobody. Apache runs under user nobody. Any ideas? -- Jon Farmer Systems

Re: [PHP] IP address from which country

2002-01-09 Thread Jon Farmer
P do a RIPE 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, E

Re: [PHP] Re: Http request

2002-01-08 Thread Jon Farmer
which authentifies >it and responses back in XML format... > > > >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

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]

Re: [PHP] PHP / SSL

2001-12-20 Thread Jon Farmer
I 266Mhz machines to accomplish 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 network

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

2001-12-20 Thread Jon Farmer
to the backup location. Then cron it to run 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 K

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 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] Get Hours/Mins/Secs between two timestamps?

2001-12-12 Thread Jon Farmer
use > gmdate() 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 Ke

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

2001-12-12 Thread Jon Farmer
by 60 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 un

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 th

Re: [PHP] Frames creating problems...

2001-12-10 Thread Jon Farmer
ssing 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 a

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 yo

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

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

2001-12-06 Thread Jon Farmer
http://www.php.net/manual/en/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] Fo

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 Mo

Re: [PHP] Access denied for user

2001-12-06 Thread Jon Farmer
ect. Or the username does 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

Re: [PHP] Email-based PHP-Script

2001-12-06 Thread Jon Farmer
mail?> Compile PHP as a binary 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

Re: [PHP] PHP outside HTML

2001-12-06 Thread Jon Farmer
I routinely use \n \t in php just so that the html outputed is formated nicely and is easy to read when view source -- 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] 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 01

RE: [PHP] question on incrementing

2001-12-05 Thread Jon Farmer
so the way i would go 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

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

2001-11-30 Thread Jon Farmer
STMP host it will reject it. -- 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,

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

2001-11-30 Thread Jon Farmer
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 H

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: "

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

[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 P

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

2001-11-20 Thread Jon Farmer
ange its contents 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, sen

Re: [PHP] MySQL and GROUP BY

2001-11-20 Thread Jon Farmer
rted by business name as well as last name and then first name. At > the moment this query is resulting in all business names (sorted) and > then, following all business names, all last/first names (also sorted). SELECT Concat(First_Name, " ", Last_Name, Business_Name) as Name From

Re: [PHP] exporting

2001-11-20 Thread Jon Farmer
. Should be fairly 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:

Re: [PHP] Week of month

2001-11-01 Thread Jon Farmer
ovember 01, 2001 9:57 AM Subject: RE: [PHP] Week of month > How about; > echo "It is week ".((int)(date("j")/7)+1)." of the month."; > > > -Original Message- > > From: Jon Farmer [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, 1 Novemb

Re: [PHP] Week of month

2001-11-01 Thread Jon Farmer
d their code 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 Ma

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

Re: [PHP] Re: Loading message

2001-10-25 Thread Jon Farmer
back.. As soon as all the results have been 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

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 0

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

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

2001-10-18 Thread Jon Farmer
list is mirrored to a newsgroup they could use that instead. I agree filter software is needed to junk the spam. 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 M

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 4

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] Have y'all seen this?

2001-09-14 Thread Jon Farmer
> This is a pretty funny article: > > http://www.bbspot.com/News/2000/6/php_suspend.html Yes, and its also a very old story... been doing the rounds for months. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07968 524175 PGP Key availa

Re: [PHP] Carriage return.

2001-09-05 Thread Jon Farmer
move the Ctrl-M characters for you. You could 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

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

2001-09-04 Thread Jon Farmer
plus a whole lot of other functions that can 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-mai

[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

[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

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: "

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 ema

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] 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..location.href="index.php?"> -- Jon Farmer Õ¿Õ¬ Systems Programmer, Entanet www.enta.net Tel +44 (0)1952 428969 Mob +44 (0)7968 524175 PGP

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

2001-08-28 Thread Jon Farmer
done HTH 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: &#

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

RE: [PHP] What does PHP stand for?

2001-08-28 Thread Jon Farmer
Well I guess Rasmus is the guy who knows but as I understand it, it was originally Personal Home Pages and became PHP Hypertext Preprocessor later Regards jon -- Jon Farmer Õ¿Õ¬ Systems Programmer, Entanet www.enta.net Tel +44 (0)1952 428969 Mob +44 (0)7968 524175 PGP Key available, send

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 PG

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
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] 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 200

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] Re: PHP based authentification -----------

2001-08-20 Thread Jon Farmer
gout. If the cookie is not present when 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, se

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

2001-08-15 Thread Jon Farmer
-- while you are looping through the date jump in and out of php like this to populate the javascript array

[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] 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] 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] 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] 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] 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 E

RE: [PHP] selecting words

2001-08-08 Thread Jon Farmer
as requested. 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 Progra

RE: [PHP] Upper or Lower Case

2001-08-07 Thread Jon Farmer
le? >Bjorn's method is much better, and you're better off getting into good >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

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

[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 tha

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