RE: [PHP] PHP on client-side

2001-08-16 Thread Tom Malone
I don't think PHP-GTK does that, does it? Tom Malone Web Designer http://www.tom-malone.com -Original Message- From: Bruin, Bolke de [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 8:22 AM To: '[EMAIL PROTECTED]'; PHP Users Subject: RE: [PHP] PHP on client-si

RE: [PHP] PHP on client-side

2001-08-16 Thread Tom Malone
Do you think it's feasible to do that? Has anyone discussed it before? Are there any initiatives? Tom Malone Web Designer http://www.tom-malone.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Pavel Jartsev Sent: Thursday, August 16, 2001 10:

[PHP] global variables in functions

2001-08-16 Thread Tom Hodder
WHERE ID = '$ID'"; mysql_query( $query, $link ); } is there a simple way to access the global form values without working out which method was used and then using the global keyword on the HTTP_POST_VARS / HTTP_GET_VARS?? Regards Tom Hod

RE: SV: [PHP] Sending alots of mail

2001-08-16 Thread Tom Hodder
You could write all the emails to a database with columns toAddress,fromAddress,subject,body and any others you might want, and then write a cron job to check the database every 10 mins for records it might also be possible to read the process list into a variable and then only start new sendma

[PHP] loose variables when url parsed through Netscape

2001-08-16 Thread Tom Beidler
ude html formatted spaces, i.e. %20. Any suggestions would be greatly appreciated. Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] loose variables when url parsed through Netscape

2001-08-16 Thread Tom Beidler
16 Aug 2001 13:21:53 -0400 > To: "Tom Beidler" <[EMAIL PROTECTED]>, "php list" > <[EMAIL PROTECTED]> > Subject: Re: [PHP] loose variables when url parsed through Netscape > > You're not sending CC numbers in the url as plain text are you? That'

[PHP] Need to dynamically globalise variables

2001-08-16 Thread Tom Hodder
ot any ideas on this. Regards Tom Hodder -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] passing variables from PHP to Perl script

2001-08-16 Thread Tom Beidler
I'm trying to integrate an Internet Telephony service for a client. I have a number of variables I need to dump into the clients database and then to pass to the Internet Telephony service via a Perl script they have provided for me that will reside on the client's server. Can I somehow pass them

[PHP] PHP and Perl script in same file?

2001-08-16 Thread Tom Beidler
Can php and perl code reside in the same file? When the document is served up it parses the PHP and then the Perl? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e

[PHP] Putting Include files outside of document root

2001-08-16 Thread Tom Malone
yname/ actually the document root? Tom Malone Web Designer http://www.tom-malone.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Dnsquery

2001-08-17 Thread Tom Malone
I don't know if this will be helpful or not - I found it in the manual: [EMAIL PROTECTED] 25-Oct-2000 03:16 system() function doesn't return a string value, if you want to assign the output of a system command, try using: $a = `/bin/ls -a`; note the ` is a backtick, not a single

Re: [PHP] Large sites that use PHP

2001-08-17 Thread Tom Malone
how about ScreamingMedia http://www.screamingmedia.com Tom Malone Web Designer http://www.tom-malone.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail

Re: [PHP] MySql or flat database using PHP ?

2001-08-18 Thread Tom Carter
Dave, Unless there is a strong reason for using files (like for example it interfaces with a different app which uses files) then the case for a proper RDBMS (eg MySQL) is the better choice. Databases are much easier (/quicker) to add and delete records from, search etc HTH, Tom - Original

Re: [PHP] Protecting include files

2001-08-19 Thread Tom Carter
In addition to this you can place the file out of the web tree PHP can, AFAIK, include files based on their absolute file path, eg /home/config.inc. This means that there is no way to directly browse to a file (web tree is the part of a server/whatever that the webserver (eg apache) uses to l

[PHP] Files from db vs. filesystem (was MySql or flat database using PHP)

2001-08-19 Thread Tom Carter
retty much a "one-off" activity, but accesses will be frequent. Files are small, ranging from 30k to 250k. Anyone have any comments/benchmarks? My attempts at testing the two have been sloppy to say the least. TIA, Tom - Original Message - From: "Andrew Libby" <[EMAIL

Re: [PHP] class variables and methods

2001-08-19 Thread Tom Carter
ve knowledge of variable names etc. and it doesn't allow for checking for "correct" values being set ( a useful thin with the above method) Hope this helps, let me know if I can provide any more advice. Tom - Original Message - From: "Andrew Libby" <[EMAIL PRO

Re: [PHP] mysql , postgres

2001-08-19 Thread Tom Carter
What would you say the advantages were? other than just the fact the the postgres implementation of sql is more powerful (sub-selects etc). I'ld be very interested to see some performance comparisions if anyone has any - Original Message - From: "Chris Lambert" <[EMAIL PROTECTED]> To: <[

Re: [PHP] mysql , postgres

2001-08-19 Thread Tom Carter
> Chris Lambert wrote: > > > > MySQL is easier to use and faster to develop with for 90% of web > > applications. Sure, PostgreSQL has some huge advantages, but not everyone > > needs the same thing. > > easier to use ? I'm not sure why anyone would say that > faster to develop ? nope - I find p

Re: [PHP] MySQL substrings?

2001-08-19 Thread Tom Carter
You can achieve the same effect by using left and right - Original Message - From: "Seb Frost" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, August 19, 2001 3:12 PM Subject: [PHP] MySQL substrings? > This is thew sort of thing I want: > > SELECT * FROM table ORDER BY substr(f

Re: [PHP] MySQL substrings?

2001-08-19 Thread Tom Carter
- www.whitecrown.net > */ > > - Original Message - > From: Tom Carter <[EMAIL PROTECTED]> > To: Seb Frost <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Sunday, August 19, 2001 10:32 AM > Subject: Re: [PHP] MySQL substrings? > > > | You

Re: [PHP] class variables and methods

2001-08-19 Thread Tom Carter
efined with Get, Let and Set methods, > but you could still access them directly. You could also design properties > that were read only as well. Perhaps this is because of operator > overloading?? > > > -Original Message- > > From: Tom Carter [mailto:[EMAIL PROTECTE

Re: [PHP] Re: Shuffle Cards Function

2001-08-19 Thread Tom Carter
I could be wrong in thinking this, but wasn't the purpose of the presented function to shuffle a deck in a deliberately imperfecatly random way? ie. mimicking a human shuffler beats why one would want to do this as an academic excersize, but hey, I like it ;-) - Original Message - From

[PHP] passing variables between PHP and Perl

2001-08-19 Thread Tom Beidler
help would be appreciated. Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Countries and ip addresses

2001-08-20 Thread Tom Carter
om IP to host name 2. use a regex to match everything to the right of the last . 3. Look that value up in some table of countries eg. notam.uio.no to no to norway HTH, Tom - Original Message - From: "Mihailo Dzigurski" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: M

[PHP] phpMyAdmin install error

2001-08-22 Thread Tom Beidler
I'm getting the following error with phpMyAdmin; Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/web/isp.com/public_html/dloc/admin/lib.inc.php on line 308 Error Any ideas where to start looking. All I've set in the config.inc.p

RE: [PHP] Fwd: BadBlue v1.02 beta for Windows 98, ME and 2000 .php Source Code Disclosure Vulnerability

2001-08-22 Thread Tom Malone
This is not an issue if you're site is using Apache, correct? Tom Malone Web Designer http://www.tom-malone.com -Original Message- From: Kurth Bemis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 22, 2001 11:13 AM To: [EMAIL PROTECTED] Subject: [PHP] Fwd: BadBlue v1.02 bet

Re: [PHP] Re: force download in IE -- conclusion

2001-08-23 Thread Tom Rogers
Hi This is the way I force save prompt on .html files .maybe useful (only tested on ie) looks wierd but it works :) Tom At 06:10 AM 23/08/01, David Minor wrote: >I ran some tests of different header configurations of 6 browser/platform >combinations to find out what worked an

Re: [PHP] Sorting IP Address Data

2001-08-23 Thread Tom Rogers
one solution that works on all ip numbers "; } ?> At 01:28 PM 23/08/01, Chris Aitken wrote: >Hi all, > >Just a quick one, > >I am pulling a whole Class C list of IP addresses, and im trying to sort >them in order, but im getting it displayed > >127.0.0.1 >127.0.0.10 >127.0.0.100 >127.0.0.101 >12

[PHP] Shell version of php

2001-08-23 Thread Tom Carter
ng this is necessary for certain functions to run can I have both co-existing? I guess what I want is a copy of php running completely separate to apache, ie as a standalone app. any help much appreciated!!! Tom Carter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-ma

[PHP] code check

2001-08-23 Thread Tom Malone
preg_match("/macintosh/i", "$HTTP_USER_AGENT") || preg_match("/ppc/i", "$HTTP_USER_AGENT") || preg_match("/PowerPC/i", "$HTTP_USER_AGENT")): $basefont = "Geneva"; else: $basefont = "Verdana, Helvetica, Serif"; en

[PHP] comparing 2 mysql tables

2001-08-24 Thread Tom Churm
e. any hints on how this kind of comparison operation can be accomplished? many thanks, tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Re: code check

2001-08-24 Thread Tom Malone
mac user on the list would view source on it to determine if it worked by checking the font tags for face="geneva"? I could compensate you by being extremely nice to you for the rest of your life... =) Tom Malone Web Designer http://www.tom-malone.com -Original Message- From: G

[PHP] Re: [PHP-DEV] Re: Re: sysvsem extention question

2001-08-24 Thread Tom May
m the last run. > Donno if it would work, or how-much overhead it would add, but it sounds like it >could ;-) > > -- Chris > > > Jason Greene wrote: > > > - Original Message - > > From: "Sascha Schumann" <[EMAIL PROTECTED]> > >

[PHP] Re: sysvsem extention question

2001-08-21 Thread Tom May
r all the different clients > (since semaphores guarantee a linear processing of clients, so all > clients get there equal share). > > Last, i don't see why the implimentation as exists, requires 3 > semaphores. I don't remember why either. I did that code somewhere around th

[PHP] MySQL: Updating ID auto_increment fields

2001-08-27 Thread Tom Churm
want to delete duplicate submissions, how can i quickly & easily update all of the 'id' fields in the entire table, to reflect the numeration change? now, using phpmyadmin, if i go in and delete a few entries, the id's have gaps in them.. mucho gracias, tom -- PHP General Mai

[PHP] two dimensional array or two arrays?

2001-08-28 Thread Tom Beidler
I thought it might be what I need to look into. Or should I have to arrays and use one for the value and the other for the item displayed in the pulldown menu. Any help appreciated. Thanks, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

[PHP] 2 General MySQL Questions

2001-08-31 Thread Tom Churm
reds of posts a day in my inbox. 2) who can refer me to a good intermediate tutorial to better learn MySQL syntax? again, i've been to mysql.com, but i find the structure & format of the site somehow daunting (not as user-friendly as the annotated manual at php.net). thanks muchly, tom

[PHP] newbie looking to sync access with MySQL

2001-09-05 Thread Tom Beidler
for them to add, edit and delete the MySQL database. Is there an easy, reliable way to sync up Access with MySQL. Maybe a nightly script that could upload the contents of Access to MySQL. Would it be easier to start with ASP and SQL Server? Thanks, Tom -- PHP General Mailing List (http

Re: [PHP] how to connect to php from vb

2001-09-05 Thread Tom Carter
php can act as a server in many respects, it can handle sockets, some streams etc. so the the answer is yes, you can connect to it from anything. (for instance I'm currently building a plugin to Lightwave that connects to php)... programs commonly use http to connect (it's simple then designin

Re: [PHP] Determining IP address

2001-09-06 Thread Tom Carter
/secure internal network? Tom > > I was wondering if there is a way in PHP that you can determine the IP > > address? I am wondering because I am developing a simple web based > > program (in php) for use in a hospital setting and I want to do some > > checks to make sure that

[PHP] Web based POP mail client

2001-09-06 Thread Tom Carter
iste (I've seen a couple where the code is amazingly messy) Does anyone have any experience of any of the scripts available they could share? Thanks in advance, Tom Carter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] Whacky WGET issue...

2001-09-06 Thread Tom Carter
A much better way of doing this would be use to mod_rewrite. an apache module that basically applies regular expressions to urls This would give you a way of avoiding passing variable but without resorting to the work around of 404 - Original Message - From: "Sondra Russell" <[EMAIL

Re: [PHP] PHP Stress Testing.

2001-09-06 Thread Tom Carter
I agree with the point about the spec of machine... a lot of comparisons are made using machine where the spec of the machine ends up being the bottleneck. Also, PHP is more tolerant then say JSP in the code you write, it is possible to write some really bad php apps which work albeit very ineffec

Re: [PHP] Netscape & Cookies

2001-09-07 Thread Tom Carter
then it should probably be SetCookie("bilderanzeige","\"$bilderanzeige\"",time()+3600*24*30,"/","",0); as a general rule, only numerics can get away without being surrounded in quotes - Original Message - From: "Jochen Kaechelin" <[EMAIL PROTECTED]> To: "PHP General List" <[EMAIL PROTECTE

Re: [PHP] Sending Broadcast Email - will a large loop cause a crash?

2001-09-07 Thread Tom Carter
Also remember PHP has a maximum execution time (normally 30 seconds) so you will need to overwrite when running the script. - Original Message - From: "Kath" <[EMAIL PROTECTED]> To: "Fotwun" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, September 07, 2001 12:39 AM Subject: Re: [P

Re: [PHP] ordering a query

2001-09-07 Thread Tom Carter
nd 10 are the same, it compares the first digit, sees they are the same and postitions based on the second digit. As george correctly says changing the column type to INT will make sure the RDBMS orders them numerically rather than alphabetically Tom, a rambler - Original Message - From: &q

Re: [PHP] Warning - how serious, how to eliminate

2001-09-07 Thread Tom Carter
ichange that line to if($weight[$i]) $percentage[$i] = $totaal[$i] / $weight[$i]; All tho this does mean that if $weight[$i] is zero then $percentage will be as well HTH, Tom - Original Message - From: "Bart Verbeek" <[EMAIL PROTECTED]> To: "Php-General"

Re: [PHP] code troble

2001-09-07 Thread Tom Carter
You also seem to be missing a closing }. please check all braces before posting to a list... - Original Message - From: "Nikola Veber" <[EMAIL PROTECTED]> To: "php forum" <[EMAIL PROTECTED]> Sent: Friday, September 07, 2001 1:29 PM Subject: [PHP] code troble > Hi > I'm having trobles

Fw: [PHP] Re: Suggesting a file name.

2001-09-07 Thread Tom Carter
This really doesn't work well to say the least... I've had endless problems with it, and basically just using headers there is no great way to to it. The best solution I found is to use the mod_rewrite module in apache to map a url onto the script. - Original Message - From: "Franklin va

Re: [PHP] Re: newbie looking to sync access with MySQL

2001-09-07 Thread Tom Carter
om access. So far it appears to be working much better, but I would be interested to know your opinions. Tom - Original Message - From: "George Whiffen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 07, 2001 5:10 PM Subject: [PHP] Re: newbie looking to

Re: [PHP] URLencode

2001-09-07 Thread Tom Carter
Simplest way is to do this $string = "my string"; $string=urlencode(str_replace(" ","+",$string)); ie use str_replace to manually replace spaces with +, urlencode then won't do anything further to it - Original Message - From: "Brandon Orther" <[EMAIL PROTECTED]> To: "PHP User Group" <[

Re: [PHP] difference between

2001-09-09 Thread Tom Carter
The problem comes if you use php to generate xml documents in xml you use the tag To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, September 09, 2001 8:05 PM Subject: RE: [PHP] difference between > There isn't any difference, if your php.ini settings allow it > (short_tags, I belie

Re: [PHP] HTTP POST..

2001-09-10 Thread Tom Carter
PHP is probably compiled as a module.. if you want to be able to compile php to use on command line you need to compile a second version (yes you can have two) without all the apache configure options (ie only things like mysql as and when needed) - Original Message - From: "ReDucTor" <[E

[PHP] error about sk_new_null with apache/php lib

2001-09-12 Thread Tom Eicher
the following line to apachectl solved the problem. # - # the php binary on neptun:/home/mmulsy/apache is linked against an # on old openssl version, so LD_LIBRARY_PATH must be adjusted ---tom LD_LIBRARY_PATH="/usr/local/versions/openssl-0.9.6b/lib:$LD_LIBRARY_PATH " export LD_LIBRAR

Re: [PHP] displaing news

2001-09-12 Thread Tom Carter
rough outline of what you would need to do. this is pseudocode.. I'm too tired to write correct php :) $is_first=true; whlie(get next result entry) { if($is_first) { $last-date=date of this entry; $this-date=date of this entry; $is_first=false; } if($this

Re: [PHP] displaing news

2001-09-12 Thread Tom Carter
1 6:12 PM Subject: Re: [PHP] displaing news > Thanks Tom, > > I'm still a newbie at this stuff though, so can you (or anyone) look this > over and tell me what I did wrong... > > //Connect to db > $db = mysql_pconnect("localhost"); > mysql_select_db(&qu

[PHP] double values in array

2001-09-12 Thread Tom Beidler
: 3 id: 3 1: 2001-09-12 date_add: 2001-09-12 2: Computer Science dept: Computer Science When I really want id: 3 date_add: 2001-09-12 dept: Computer Science What am I doing wrong? Thanks, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

RE: [PHP] how to execute PHP in CGI?

2001-09-13 Thread Tom Hodder
#!/usr/bin/php print "test"; // More code here etc etc -Original Message- From: Gershon [mailto:[EMAIL PROTECTED]] Sent: 13 September 2001 14:11 To: [EMAIL PROTECTED] Subject: [PHP] how to execute PHP in CGI? Hello All!! how to execute PHP in CGI? Thank You. -- PHP Gener

Re: [PHP] double values in array

2001-09-13 Thread Tom Beidler
MYSQL_ASSOC did the trick. Thanks > From: Andrew Perevodchik <[EMAIL PROTECTED]> > Reply-To: Andrew Perevodchik <[EMAIL PROTECTED]> > Date: Thu, 13 Sep 2001 08:10:52 +0300 > To: Tom Beidler <[EMAIL PROTECTED]> > Cc: php list <[EMAIL PROTECTED]> >

Re: [PHP] is PHP crazy, or am I?

2001-09-13 Thread Tom Carter
maybe I'm wrong, but don't you need a return value? - Original Message - From: "Christian Dechery" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 08, 2001 2:24 AM Subject: [PHP] is PHP crazy, or am I? > whats wrong with the code below? > > function bubblesort(&$ve

[PHP] multiple selections in list/menu field

2001-09-14 Thread Tom Beidler
_code) || ($value[0] == $x[rec_pd4])) { $option_pd4 .= " $value[1]\n"; } else { $option_pd4 .= " $value[1]\n"; } } The field displays fine but I only get the last option. I'm testing with IE 5. Let me know if this is

Re: [PHP] SMS with php

2001-09-17 Thread Tom Carter
I'm very intruiged how you have got this to work it was my understanding you needed to be running a server, such as kannel, and have a contract with an smsc? Is this so? - Original Message - From: "Lewis Bergman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sen

Re: [PHP] SMS with php

2001-09-17 Thread Tom Carter
Thats the standard, but because of the other systems involved in delivering msgs then I don't think it possible just to do that without the co-operation of a third party smsc. I really hope I'm wrong tho... - Original Message - From: "nico_oreka" <[EMAIL PROT

Re: [PHP] SMS with php

2001-09-17 Thread Tom Carter
for those who are interested there is a good wap/sms server, open source and generally funky kannel (kannel.3glabs.org) It's all you need to server wap, but sms does requrie a contract (=cost money) with a service centre - Original Message - From: "Tom Carter" <[EM

Re: [PHP] Code Speed & Optimization

2001-09-17 Thread Tom Carter
The question really for me is this...are they caches of results? in other words, slightly old information? Or can they still be used in the same way as a "raw" script and still be improved? - Original Message - From: "Andreas Gietl" <[EMAIL PROTECTED]> To: "Alex Ranaldi" <[EMAIL PROTECTED

[PHP] substr() in MySQL SELECT?

2001-09-19 Thread Tom Churm
hanks much, tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] substr() in MySQL SELECT?

2001-09-19 Thread Tom Churm
$table_name WHERE (Answer=0)&&( abs((SUBSTRING(SendDate, 1, 2)) - $NowDay) > 7 ) thanks again, tom Don Read wrote: > > On 19-Sep-2001 Tom Churm wrote: > > hi, > > > > could someone please tell me why this doesn't work? i thought that > > string fu

[PHP] Cannot add header information - headers already sent by

2001-09-22 Thread Tom Nickels
vote_submit.php on line 34 Line 34 of vote_submit.php is: header("Location: ".$source."?status=9&errormessage=$errormessage"); Any idea, why this is after update not working anymore? Thanks for help Tom -- PHP General Mailing List (http://www.php.net/) To uns

[PHP] Cannot add header information - headers already sent by

2001-09-22 Thread Tom Nickels
vote_submit.php on line 34 Line 34 is: header("Location: ".$source."?status=9&errormessage=$errormessage"); Any idea, why this is after update not working anymore? Thanks for help Tom

[PHP] Script for a private mail system

2001-09-22 Thread Tom Nickels
Hi, does anybody knows or have a php script for a private mail system within one website (mailboxes for sending private messages in a dating site) Thanks Tom

[PHP] IMAP - create user?

2001-09-23 Thread Tom Malone
Is there a way to create a new user with an email address on my mail server (for a web mail app i'm writing) using an IMAP or some other PHP function? Tom Malone Web Designer http://www.tom-malone.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROT

[PHP] PHP Chat recommendations

2001-09-26 Thread Tom Beidler
Does anyone have a recommendation on a PHP based Chat system. I'm looking for an easy to install and reliable system. Thanks, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

Re: [PHP] PHP Chat recommendations

2001-09-26 Thread Tom Beidler
I did, that's why I'm asking for a recommendation. There are quite a few. > From: "Maxim Maletsky \(PHPBeginner.com\)" <[EMAIL PROTECTED]> > Organization: PHPBeginner.com > Date: Wed, 26 Sep 2001 17:18:15 +0200 > To: "'Tom Beidler'&q

[PHP] Array Elements & While Loops

2001-10-01 Thread Tom Churm
0-9-]+)*$", $User[$j])) { $flag = 1; $errorNo = $j + 1; } //die if flag is 1 if ($flag = 1) { die ("Email #$errorNo is not a valid e-mail address!Please return and correct this."); } else { continue... } any suggestions would be great! thanks much, to

[PHP] Re: Array Elements & While Loops

2001-10-01 Thread Tom Churm
hi, _lallous: i've tried it with "==" and it still doesn't work: code for the valid variables is executed before my die() function is called. thanks, though, tom _lallous wrote: > > > if ($flag = 1) { > > die ("Email #$errorNo is not a valid e-

Re[2]: [PHP] Disk serial number

2004-07-23 Thread Tom Rogers
Hi, Friday, July 23, 2004, 8:08:22 PM, you wrote: R> I receive an error: R> "Warning: dl(): Not supported in multithreaded Web servers - use extension R> statements in your php.ini " You need to add extension=php_w32api.dll to your php.ini and restart the web server -- re

Re[2]: [PHP] Re: PHP editor that doesn't require installation

2004-07-24 Thread Tom Rogers
(basically it means php functions can be coloured differently from the keywords) which I find useful. Your quite welcome to try it out. Warning: it will add 3K to the dll size :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] Disk serial number

2004-07-25 Thread Tom Rogers
Hi, Sunday, July 25, 2004, 9:48:20 PM, you wrote: R> This didn't work :( R> Apache crashes after execution of script. Yes it does that ...you can download a working version here http://fred.kwikin.com/php_w32api.dll -- regards, Tom -- PHP General Mailing List (http://www.p

Re[2]: [PHP] Re: PHP editor that doesn't require installation

2004-07-26 Thread Tom Rogers
gt; http://pear.php.net/package/DB_DataObject_FormBuilder JP> paperCrane --Justin Patrin-- I use a program called webdrive (http://www.webdrive.com/index.php?pg=./products/webdrive/index) that sets up the remote site as a local drive which works really well. -- regards, Tom -- PHP

Re: [PHP] How do I return the error

2004-07-28 Thread Tom Rogers
r[0] = true; else $r[1] = 'Could not copy the file.'; }else { $r[1] = 'The uploaded file is not the right type.'; } break; } return $r; } list ($status, $error) = fileUpload($file); if(!$status) echo $error; -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Maintaining sessions across multiple sites

2004-07-30 Thread Tom Rogers
n Dyck RD> Webbtech RD> www.webbtech.net RD> == msession is designed for just this purpose http://www.mohawksoft.com/ -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Maintaining sessions across multiple sites

2004-07-30 Thread Tom Rogers
Hi, Saturday, July 31, 2004, 12:12:26 AM, you wrote: RD> Does msession work with php5? RD> ron I have no idea :-) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Maintaining sessions across multiple sites

2004-07-30 Thread Tom Rogers
Hi, Saturday, July 31, 2004, 7:34:08 AM, you wrote: RGG> On Fri, 30 Jul 2004, Tom Rogers wrote: RGG> how reliable msession is?. I'm interested on it too. RGG> Regards. I have been using it for several years now as my default session handler and it has never once failed me, so I

Re: [PHP] pconnect...

2004-08-02 Thread Tom Rogers
hits and therefore getting a different connection anyway (some one elses most likely) and I also had trouble with setting the current db. This was a long time ago so things may well have changed, but I did give up trying to use pconnect. -- regards, Tom -- PHP General Mailing List (http://www.ph

Re: [PHP] Global persistent variables

2004-08-10 Thread Tom Rogers
ou in advance, JYJ> Kind regards. JYJ> Jean-Yves you can do this with msession or stick the variable in a database or file. The best way would depend on exactly what you were trying to achieve and who sets this value. -- regards, Tom -- PHP General Mailing List (http://www.php.ne

Re: [PHP] Escaping quotes

2004-08-11 Thread Tom Rogers
lex hogan You can do it this way but you must make sure that any strings in your values array have been escaped before with mysql_escape_string() and probably trimmed as well. $fields = array('id','name','age'); $values = array(1,'Dave',40); $table = 'test&

Re: [PHP] regex to remove NL and CR

2004-08-17 Thread Tom Rogers
ng)); echo ''; function replace($str){ return preg_replace('/\n\r|\n|\r/',' ',$str[0]); } $newstring = preg_replace_callback('//s','replace',$string); echo nl2br(htmlentities($newstring)); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need Help for Session

2004-08-23 Thread Tom Rogers
Hi, Make sure that http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Convert Smart Quotes to Sraight Quotes - Need Help!

2004-09-08 Thread Tom Rogers
}else{ $content .= $text[$i]; echo "Oddball 3 byte-2 ".ord($text[$i])." ".ord($text[$i+1])." ".ord($text[$i+2])."\n"; } }else{ $content .= $text[$i]; } } return $changed; } //Usage $text = "String with quotes"; //original $content = '';//result if(convert_text($text,$content)){ echo $content; }else{ echo $text; } -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] image size?

2004-09-10 Thread Tom Rogers
Hi, Friday, September 10, 2004, 8:59:30 AM, you wrote: EL> Is there a way to get the size of an image created using the imagecreate EL> function? EL> The PHP manual section on image functions mentions getimagesize, but that EL> only works on remote or local files. EL> Thanks, EL> Ed Something lik

Re: [PHP] Regular Expression: Markup Code

2004-09-13 Thread Tom Rogers
> tags. r> Any help would be greatly appreciated! r> -Samuel This should get you started: (a bunch of markup code) (a bunch of markup code) (a bunch of markup code) END; preg_replace_callback('!(.*?)!is','callback',$str); Use the call back

Re: [PHP] download pdf using php script

2004-09-16 Thread Tom Rogers
; www.myweb.com/download.php?filename=xzy.pdf a> can someone give me hint how to do this ? a> thank u a> -- a> Best regards, a> adwin a> www.kuya-kuya.net Something like this -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] mysql_connect does not connect

2004-09-18 Thread Tom Rogers
Hi All, I don't normally bother with these kind of meaningless threads as they waste valuable electrons but I did find this interesting http://www.urban75.com/Mag/troll.html PS This is not a dig at you Jason, it's just your post is the only one I didn't delete :) -- regard

Re: [PHP] Newbie array problem

2004-09-23 Thread Tom Rogers
;, $array); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Make cron file

2004-09-28 Thread Tom Rogers
($fp = fopen($path,"w")){ foreach($list as $line){ $line = trim($line); fputs($fp,$line."\n"); } fclose($fp); } //tell cron about it exec("crontab $path"); ?> Note appending to an existing cron file probably wil

Re: [PHP] list of Months

2004-09-30 Thread Tom Rogers
'; aan> echo " $i "; aan> } ?>> aan> aan> Is there any better way? aan> Thanks for any help. aan> Afan Another way to skin this cat : $month_names = array( 'Jan'=>'', 'Feb'=>'', 'Mar'=>'

Re: [PHP] PDFlib 6 and PHP 4.3.8/9

2004-10-21 Thread Tom Rogers
eate the PDF file before outputting it to BPC> the browser... which is very annoying. BPC> Has anyone else encountered this? I have been unable to find much in the BPC> groups to this point! BPC> Thanks in advance for the help. BPC> -brendan try pdf_open_file($pdf, ""); --

Re: [PHP] Session management

2004-10-22 Thread Tom Rogers
> in the first script does not produce any output HS> either. It is best to use session_start(); . .//get username . $_SESSION['username'] = $username; then on the next page session_start(); echo (isset($_SESSION['username']))? $_SESSION['username'] : 'Not in session'; PHP does not fill global variables by default. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] trigger_error() when using php cli

2009-01-07 Thread Tom Worster
hence i need to rewrite with error_log()) or is the maybe some other explanation? tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] upgrade php 5.2.6 -> 5.2.8 mysql problems!

2009-01-13 Thread Tom Rogers
M> libpthread.so.0(GLIBC_2.2.5)(64bit) is needed by MM> mysql-devel-5.0.26-21.x86_64 MM> libpthread.so.0(GLIBC_2.3.2)(64bit) is needed by MM> mysql-devel-5.0.26-21.x86_64 MM> Something must be wrong. I can't believe that there is so much change MM> nece

<    6   7   8   9   10   11   12   13   14   15   >