[PHP] mime emails

2002-02-08 Thread Kunal Jhunjhunwala
hey.. does anyone know of any good classes / functions for handling mime emails? i am writing a mail checker, and was wondering if there are any pre-written mime email handling classes out there... thanks! Regards, Kunal Jhunjhunwala Minds think with ideas, not information. No amount of data,

[PHP] Header / image question

2002-02-08 Thread phantom
I have this really cool script that grabs image data stored in a mysql bin field and echo's the data into an image file. 01: /* QUERY DB AND LOAD IMAGE DATA */ 02: /* must get values for ImgType and ThmData */ 03: $Results = mysql_query($Query, $Link) 04: or die (SL3-.mysql_errno().:

RE: [PHP] mime emails

2002-02-08 Thread Jerry Verhoef (UGBI)
http://php.resourceindex.com/detail/00896.html GOOGLE is the ultimate programmers tool. And i used this some time ago... :) -Original Message- From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:23 AM To: php-list Subject: [PHP] mime emails

Re: [PHP] Header / image question

2002-02-08 Thread Jason Wong
On Friday 08 February 2002 16:26, phantom wrote: I have this really cool script that grabs image data stored in a mysql bin field and echo's the data into an image file. 01: /* QUERY DB AND LOAD IMAGE DATA */ 02: /* must get values for ImgType and ThmData */ 03: $Results =

RE: [PHP] Re: DreamWeaver/PHP ability?

2002-02-08 Thread Matt Williams
Luke Crouch wrote: I know Dreamweaver UltraDev has nice site management features for using a JSP/SQL type serverdoes it have similar capabilities with PHP/MySQL? Does anyone know? -L Search the archives on this one. There is a project called php4ud or something like that but I

RE: [PHP] modDb Contribution

2002-02-08 Thread Jerry Verhoef (UGBI)
unusual?? Don't know ... but i never ever saw a request like this on the list before, if that is what you mean. But the ppl on this list are mostly developers and most of them including me. We don't buy we make :) (at least we try to :) I understand your frustration. But what you could do: 1

RE: [PHP] determining script url

2002-02-08 Thread Matt Williams
Hi all, How can I get the full URL of the currently running script? $DOCUMENT_ROOT is not what I need, instead I need the url (be it domain if exists, or ip if not). $SERVER_NAME works but if a domain isn't paired with the server, I could get some useless information (right?).

[PHP] Full source

2002-02-08 Thread phantom
? header(Cache-Control: public); header(Cache-Control: max-age= . $this-allowcache_expire * 60); $Link = mysql_connect(mysite.com, db_user, db_password) or die (SL1-.mysql_errno().: .mysql_error()); mysql_select_db (db_name, $Link) or die (SL2-.mysql_errno().: .mysql_error()); /* update

Re: [PHP] RE: Creating Tab-Delimited Text File

2002-02-08 Thread Peter Janett
To make it download, use header to set your content type: header(Content-type: text/tab-separated-values\n\n); Make sure the above is the first this the script outputs, and the only other thing it outputs is data. Take your code that spits out the data in html, strip out all the html, then

[PHP] horde/imp/sendmail/cyrus

2002-02-08 Thread K H Pang
can anyone help? I am getting the error below: object(db_error)(10) { [error_message_prefix]= string(0) [error_prepend]= string(0) [error_append]= string(0) [mode]= int(1) [level]= int(1024) [code]= int(-24) [message]= string(24) DB Error: connect failed

Re: [PHP] Full source

2002-02-08 Thread Jason Wong
On Friday 08 February 2002 17:03, phantom wrote: ? header(Cache-Control: public); header(Cache-Control: max-age= . $this-allowcache_expire * 60); $Link = mysql_connect(mysite.com, db_user, db_password) or die (SL1-.mysql_errno().: .mysql_error()); mysql_select_db (db_name, $Link) or

Re: [PHP] call stack

2002-02-08 Thread S.Murali Krishna
I had a similar requierment. When I searched for it, came to know about APD ( Advanced PHP Debugger ) its a extension. We need to do some confs in php.ini for this. APD is somewhat better in tracing stacks. Try your best. [EMAIL PROTECTED] On Fri, 8 Feb 2002, Martin Towell wrote: I know this

[PHP] Ca$h

2002-02-08 Thread Constantin Baciu
Go to www.nitroclicks.com/join.phtml?referred=johndoe1104 and make lots of money! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Web Hosts and PHP 4.10 +

2002-02-08 Thread Neil Freeman
I have a feeling that www.aletia.com use 4.1.1 Don't quote me on that though :) Neil Edward Marczak wrote: I know the subject of web hosts that support PHP comes up frequently - but here's a twist: After going through the archives, and checking out many, many hosts, I haven't found a web

[PHP] Supplement and corrections

2002-02-08 Thread Alexandr Klaus
At sending e-mail there is not a big problem. It is necessary the sender (field From) and the addressee (field To) to code, receive so-called encoded-words (RFC 2047). For example from record To: ÷ÁÓÑ, ÐÒÏÇÒÁÍÍÉÓÔ [EMAIL PROTECTED] to receive such as To: =? koi8-r? B? 8y7h7OXr8 Xl9w ==? = [EMAIL

Re: [PHP] Web Hosts and PHP 4.10 +

2002-02-08 Thread linux
http://www.acilhost.com/en/index.php Here you can find what you need. They also offer custom solutions with the lowest prices in the world... On Fri, 08 Feb 2002 11:04:32 +, Neil Freeman wrote: I have a feeling that www.aletia.com use 4.1.1 Edward Marczak wrote: already takes advantage

RE: [PHP] HTTP_POST_VARS problem

2002-02-08 Thread Tim Ward
Make the name of the select an array e.g. select name='selection[]' ... then ... foreach($HTTP_POST_VARS[selection] as $selection) Tim www.chessish.com http://www.chessish.com -- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: 08 February 2002 02:47

[PHP] ODBC_EXECUTE has a DANGEROUS 'feature'!!!

2002-02-08 Thread * RzE:
Hi folks, I don't know if everyone ever knew this, but I haven't been able to find anything about this, anywhere... odbc_execute has a very dangerous 'feature'. I would like to call it a bug, because someone has implemented it on purpose I should call it a feature... odbc_execute takes two

RE: [PHP] ODBC_EXECUTE has a DANGEROUS 'feature'!!!

2002-02-08 Thread Jerry Verhoef (UGBI)
This is what we call a BUG Report it on http://bugs.php.net thx -Original Message- From: * RzE: [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 1:44 PM To: PHP General Mailinglist Subject: [PHP] ODBC_EXECUTE has a DANGEROUS 'feature'!!! Hi folks, I don't

Re: [PHP] ODBC_EXECUTE has a DANGEROUS 'feature'!!!

2002-02-08 Thread * RzE:
Usually I would agree with you. Like I wrote in my message, I would like to call it a bug, but it was written on purpose. That would make it a feature!?! It's an if-block of app. 20 lines that makes sure this happens. Looks like someone _really_ wanted PHP to do this... This is what we call a

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 -

[PHP] Mcrypt-problems

2002-02-08 Thread Trond Arve Nordheim
Hi! I'm trying to encrypt some password using TripleDES-encryption here... I've followed the documentation for the mcrypt-libraries, but I get a warning (all though it -does- encrypt the text) every time I try to encrypt something; Warning: attempt to use an empty IV, which is NOT recommend My

[PHP] Stripping the first line of a file

2002-02-08 Thread Scott
Hi, I want to be able to open a file and then strip the first line of it off. Example, the first line contains the names for tables in a database and all I need is from the second line on. if I fopen a file can I strip the line or should I process it and then drop the data from the first

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

2002-02-08 Thread bvr
The way Google determines what language to use is by checking the Accept-Language header which is added by your browser. The value of this request header is stored automatically in the $_SERVER array. Check with phpinfo() or print_r($_SERVER); Although IP may be more reliable to determine the

RE: [PHP] Stripping the first line of a file

2002-02-08 Thread Jerry Verhoef (UGBI)
Use $aFile=file(FILENAME); //$aFile[0] contains the unwanted line echo $aFile[1]; // displays line 2 echo $aFile[n]; // displays line n where n is an positieve interger and not greater then the number of lines in the file http://www.php.net/manual/en/function.file.php HTH Jerry

RE: [PHP] Stripping the first line of a file

2002-02-08 Thread Scott
Thank you! Works. I have a few more questions! I am working on converting a program from perl to PHP as it is the new language of choice at our office. I have been using printf statements in perl to format data. Is there a similar funtion in php? Here is an example from the perl program:

RE: [PHP] Stripping the first line of a file

2002-02-08 Thread Jerry Verhoef (UGBI)
Yes there is! Try reading the manual? http://www.php.net/printf printf (%-5.5s,$fields[14]); for the other function to make a line exactly 255 char long? Do you have the perl Example? HTH Jerry -Original Message- From: Scott [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08,

RE: [PHP] Stripping the first line of a file

2002-02-08 Thread Jerry Verhoef (UGBI)
printf NEW (%-193.193s); printf (%-193.193s,VARIABLE); HTH -Original Message- From: Jerry Verhoef (UGBI) [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 4:35 PM To: 'Scott'; Jerry Verhoef (UGBI) Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Stripping the first line of

RE: [PHP] Stripping the first line of a file

2002-02-08 Thread Scott
Thanks Jerry! In perl I was doing this: printf NEW (%-193.193s); Which I just read the manual and discovered it works in PHP as well. Basically prints 193 spaces to make sure the line is 255 after I filled the line with other characters. On Fri, 8 Feb 2002, Jerry Verhoef (UGBI) wrote:

[PHP] check this new site

2002-02-08 Thread Sagar Chand
hi all out there, just tell me howz this new site www.linuxfornerds.com A site meant for ardent linux lovers but every one r invited to post any views on any open source software. so get ur voice out /sagar __ Do You Yahoo!? Send FREE

Re: [PHP] check this new site

2002-02-08 Thread JSheble
looks like every other SLashdot, PHP-Nuke or PHP-Mutant web site out there with,just a lot less content... At 07:52 AM 2/8/2002 -0800, Sagar Chand wrote: hi all out there, just tell me howz this new site www.linuxfornerds.com A site meant for ardent linux lovers but every one r invited to

[PHP] does header(Location: n) work on non-browser agents?

2002-02-08 Thread Erik Price
My site uses a scheme whereby a session variable (say, $logged_in) is checked for. If the variable is not set to 1, then header(Location: ./index.php) is used to redirect the browser to index.php, where they are offered an opportunity to log in (setting the session variable $logged_in to 1).

RE: [PHP] check this new site

2002-02-08 Thread Jerry Verhoef (UGBI)
LOL And i just thought it looked like spam Sorry my mistake :) -Original Message- From: JSheble [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 5:09 PM To: php list Subject: Re: [PHP] check this new site looks like every other SLashdot, PHP-Nuke or

Re: [PHP] Regex function needed

2002-02-08 Thread Michael Kimsal
Bas Jobsen wrote: Op donderdag 07 februari 2002 23:58, schreef Michael Kimsal: Looking for a regex (preg or ereg) to remove all 1, 2 and 3 character words. ? $string=over deze regex loop ik nu al de hele dag en een uur te piekeren. 't wil niet! of wel! l'a.; $string= .$string; while

RE: [PHP] determining script url

2002-02-08 Thread sean
Thanks for the response, but those are just like $DOCUMENT_ROOT, they provide paths in the server, I need what is showing up as the URL in the browser - i.e. http://www.domain.com/script.php - or if there is no domain, to give me the IP. any ideas? I can't seem to piece it together with the

[PHP] Trying to put ips into database

2002-02-08 Thread Leif K-Brooks
I'm trying: $query = mysql_query(select COUNT(*) as rowexists from ips where ip = '$REMOTE_ADDR'); $result = mysql_fetch_array($query); if($result['rowexists'] == false){ mysql_query(INSERT INTO `ips` (`ip`) VALUES ('$REMOTE_ADDR')); } But it keeps putting the ip into tthe array, even if it's

[PHP] Re: !isset ??

2002-02-08 Thread LaserJetter
If you try and use $var in an operation ( i.e. .= == etc) and you get an error saying Undefined variable then isset($var) = FALSE LJ Erik Price [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hm. I hope I'm not opening an old wound: Curious about the

[PHP] how to get js screenresolution passed to a sessionvariable?

2002-02-08 Thread Simon De Deyne
hi, I am trying to get the screenresolution passed from a javascript variable to a PHP variable using sessionvariables, but I can't get it to work, can you help me out to get some code working? I was thinking of something like this, but I'm pretty much a newbie at lots of things, so I'm sure

[PHP] Checking to see it a host is up.

2002-02-08 Thread Fifield, Mike
I am looking for a way to check to see if a website is up, something like a ping command. Does anyone know of a way to do this? Mike Fifield Charles Schwab Co, Inc. WARNING: All e-mail sent to or from this address will be received by the Charles Schwab corporate e-mail system and is subject to

[PHP] Fwd: confirm unsubscribe from php-general@lists.php.net

2002-02-08 Thread Carlos René Ponce Novelo
_ MSN Photos es la manera más sencilla de compartir e imprimir sus fotos: http://photos.latam.msn.com/Support/WorldWide.aspx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] determining script url

2002-02-08 Thread bvr
I'd say you should store the base url of your site in a variable somewhere. then append the REQUEST_URI and you have the url. or .. you take the SERVER_NAME, SERVER_PORT and REQUEST_URI .. and you might need some other variables to make it recognize SSL and prefix with httpS .. bvr. How

[PHP] Checking to see it a host is up.

2002-02-08 Thread Fifield, Mike
Ok let me be more specific. I know I could do this with perl but it is going to be used on a page that will be loaded hundreds of times a minute, and so it needs to be fast. I was hoping that php had a function that could be used to do this, something like perl's webping. -Original

[PHP] Newbie Question about PHP / MySQL

2002-02-08 Thread Ron Clark
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello All: How do I read all of the data from just one column, then develop a count based on those items? I think I start with mysql_fetch_field(), but right there I get stuck. Any ideas to point me in the right direction? Thanks in advance, Ron

RE: [PHP] Newbie Question about PHP / MySQL

2002-02-08 Thread Rick Emery
SELECT COUNT(col_name) FROM mytable WHERE some condition This will return the number of items with that condition in that columne, name col_name -Original Message- From: Ron Clark [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 11:19 AM To: [EMAIL PROTECTED] Subject: [PHP]

[PHP] Count concarent logins (newbie)

2002-02-08 Thread Simos
Hello to everyone in A web site where logins are managed with php sesions is it possible to count how many concurent users are loged in ?? I believe that one way is to keep in a mysql table every login user but how can i delete a loged-in record when user session terminates abnormal thank

Re: [PHP] Trying to put ips into database

2002-02-08 Thread Dennis Moore
Not sure what your exact problem is but I did notice you had back ticks(`) in your insert statement. You should be using ('). You may need a where clause in your insrt statement unless you want to populate all rows. Just a couple of thoughts. /dkm - Original Message - From: Leif

Re: [PHP] Count concarent logins (newbie)

2002-02-08 Thread Dennis Moore
in A web site where logins are managed with php sesions is it possible to count how many concurent users are loged in ?? I believe that one way is to keep in a mysql table every login user but how can i delete a loged-in record when user session terminates abnormal If you use the

Re: [PHP] Trying to put ips into database

2002-02-08 Thread Matt Drake
On Fri, 8 Feb 2002, Dennis Moore wrote: Not sure what your exact problem is but I did notice you had back ticks(`) in your insert statement. You should be using ('). You may need a where clause in your insrt statement unless you want to populate all rows. Just a couple of thoughts.

RE: [PHP] Using functions before they're defined

2002-02-08 Thread Ford, Mike [LSS]
-Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: 07 February 2002 22:17 To: [EMAIL PROTECTED] Subject: RE: [PHP] Using functions before they're defined I haven't looked at the php's source code, but maybe it's a two pass parser (??) first it gets all the

Re: [PHP] Web Hosts and PHP 4.10 +

2002-02-08 Thread anders nawroth
From phpinfo at Aleita.com: PHP Version 4.1.0 System Linux cobra.nocdns.com 2.4.7-10smp #1 SMP Thu Sep 6 17:09:31 EDT 2001 i686 unknown Build Date Dec 15 2001 Configure Command './configure' '--with-apache=../apache_1.3.22' '--with-mysql' '--with-gd' '--with-freetype'

[PHP] Parameters via Link

2002-02-08 Thread Manuel Ritsch
Hey there I want to make a webpage out of one main pagewith php, if you press on a link i want that it changes the content of the page, but it doesn't seem to work, i tried it like this... link: a href=index.php?link=home php code: if($link == home) { include'soundmp3.php'; } but it doesn't

Re: [PHP] eregi

2002-02-08 Thread DL Neil
Hello John I'm using eregi to print out parts of a text file, and I was just wondering how you get the code to print out a newline as it appears in the file. Not quite sure what eregi has to do with it - perhaps I'm missing something. Would the nl2br function help? =dn -- PHP General

[PHP] Syntax ???

2002-02-08 Thread Ron Clark
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello all again, Here is my line in my script: $ynumber = mysql_query(SELECT COUNT(*) FROM responses WHERE response=y); But it returns a blank or empty. How do I convert this MySQL command to PHP? mysql SELECT COUNT(*) FROM responses WHERE

Re: [PHP] Syntax ???

2002-02-08 Thread Edward van Bilderbeek - Bean IT
just quote the 'y' in your query: $ynumber = mysql_query(SELECT COUNT(*) As Cnt FROM responses WHERE response='y'); Edward - Original Message - From: Ron Clark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 08, 2002 7:38 PM Subject: [PHP] Syntax ??? -BEGIN PGP

Re: [PHP] Re: DreamWeaver/PHP ability?

2002-02-08 Thread Dr. Shim
http://www.geocities.com/php4ud/ Seach google for php4ud God bless google! Matt Williams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Luke Crouch wrote: I know Dreamweaver UltraDev has nice site management features for using a JSP/SQL type

[PHP] Method writing quesion

2002-02-08 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, quick Q on writing Methods on PHP: If a methods purpose is to take 3 values and do stuff with those values, should the error checking (eg. that the values dont='') be done /inside/ the Method or by the script that calls it? It

[PHP] Php Projects

2002-02-08 Thread Arik Ashepa
Hi. I was wondring... maybe you want to develop a project? have any ideas? Arik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Parameters via Link

2002-02-08 Thread Rick Emery
try: if( ! strcmp($link, home) ) { include(soundmp3.php); } -Original Message- From: Manuel Ritsch [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:24 PM To: [EMAIL PROTECTED] Subject: [PHP] Parameters via Link Hey there I want to make a webpage out of one main pagewith

[PHP] session register!!

2002-02-08 Thread Cristian Cerda
Hi there, hope you can help me with my problem. I'm trying to set up a PHP/MySQL web site using session variables to pass information between pages. So far no good. I did set register_globals to On on the php.ini file. But when i use for example session_register(the_var) in one page ( using

Re: [PHP] Parameters via Link

2002-02-08 Thread Jason Wong
On Saturday 09 February 2002 02:23, Manuel Ritsch wrote: Hey there I want to make a webpage out of one main pagewith php, if you press on a link i want that it changes the content of the page, but it doesn't seem to work, i tried it like this... link: a href=index.php?link=home php

Re: [PHP] session register!!

2002-02-08 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Cristian Cerda declared Hi there, hope you can help me with my problem. I'm trying to set up a PHP/MySQL web site using session variables to pass information between pages. So far no good. I did set register_globals to On on

Re: [PHP] Php Projects

2002-02-08 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Arik Ashepa declared Hi. I was wondring... maybe you want to develop a project? have any ideas? Yes! How about a database backed set of scripts to create world peace and send a steady supply of beer to my house? - -- Nick

Re: [PHP] determining script url

2002-02-08 Thread Jason Wong
On Saturday 09 February 2002 00:17, [EMAIL PROTECTED] wrote: Thanks for the response, but those are just like $DOCUMENT_ROOT, they provide paths in the server, I need what is showing up as the URL in the browser - i.e. http://www.domain.com/script.php - or if there is no domain, to give me

RE: [PHP] Php Projects

2002-02-08 Thread Rick Emery
Do I detect a bit of Friday-afternoon sarcasm??? GRIN Actually, a beer sounds good about now -Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 1:40 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Php Projects -BEGIN PGP SIGNED

Re: [PHP] Php Projects

2002-02-08 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Rick Emery declared Do I detect a bit of Friday-afternoon sarcasm??? GRIN Actually, a beer sounds good about now Friday evening in .dk and php is always best served with a cold one! - -- Nick Wilson Tel:+45 3325 0688

[PHP] templates

2002-02-08 Thread Kunal Jhunjhunwala
hey, which is the best template library out there? does anyone have any benchmarks? smarty? phplib? any others? Regards, Kunal Jhunjhunwala Minds think with ideas, not information. No amount of data, bandwidth, or processing power can substitute for inspired thought. - Clifford Stoll -- PHP

Re: [PHP] templates

2002-02-08 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Kunal Jhunjhunwala declared hey, which is the best template library out there? does anyone have any benchmarks? smarty? phplib? any others? Hehe, still messing with templates kunal? There's a good article on PHPLib vs Fastemplate

Re: [PHP] templates

2002-02-08 Thread Kunal Jhunjhunwala
Hey, Well, I got phplib working.. but i yet think something is missing :) and have heard a lot of buzz abt smarty... but havent seen any benchmarks... from the article at devshed.. fast templates should have stayed with perl ;) anyone else got any suggestions? Regards, Kunal Jhunjhunwala Minds

Re: [PHP] Php Projects

2002-02-08 Thread Arik Ashepa
Nope, I'm serius, I have nothing better to do? So, do you have any ideas? Arik Rick Emery wrote: Do I detect a bit of Friday-afternoon sarcasm??? GRIN Actually, a beer sounds good about now -Original Message- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent: Friday,

Re: [PHP] Php Projects

2002-02-08 Thread mike cullerton
on 2/8/02 12:49 PM, Nick Wilson at [EMAIL PROTECTED] wrote: Do I detect a bit of Friday-afternoon sarcasm??? GRIN Actually, a beer sounds good about now Friday evening in .dk and php is always best served with a cold one! reminds me of my days as a netadmin. playing with routers late

[PHP] attachment problem

2002-02-08 Thread Olev Rumm
Hello gurus, need some help here please. I have mail php script with out attachment possibilities. How can I add attachment in to this one? ? $MailToAddress = [EMAIL PROTECTED]; $MailSubject = subject; if (!$MailFromAddress) { $MailFromAddress = [EMAIL PROTECTED]; } $Header =

Re: [PHP] ODBC_EXECUTE has a DANGEROUS 'feature'!!!

2002-02-08 Thread Lars Torben Wilson
On Fri, 2002-02-08 at 04:43, * RzE: wrote: Hi folks, I don't know if everyone ever knew this, but I haven't been able to find anything about this, anywhere... odbc_execute has a very dangerous 'feature'. I would like to call it a bug, because someone has implemented it on purpose I

[PHP] Mail Sent Date

2002-02-08 Thread Pickup, Jordan
We are in the -0700 time zone but whenever I use PHP to send a message it sends it from +0700 making the message appear to have been sent 14hours earlier than it was. I can add my own Date header to the mail function with the correct date/time zone but that means I have to modify all my

Re: [PHP] Fwd: confirm unsubscribe from php-general@lists.php.net

2002-02-08 Thread Carlos René Ponce Novelo
_ Hable con sus amigos en línea, pruebe MSN Messenger: http://messenger.msn.es -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Mail Sent Date - more info

2002-02-08 Thread Pickup, Jordan
I just checked the Date function and when you use the 'O' or 'r': O - Difference to Greenwich time in hours; i.e. +0200 r - RFC 822 formatted date; i.e. Thu, 21 Dec 2000 16:01:07 +0200 it also gives the wrong time zone. Is there anyway to tell PHP that it is wrong? Is this just a bug in

Re: [PHP] session register!!

2002-02-08 Thread Cristian Cerda
yes i did. Nick Wilson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Cristian Cerda declared Hi there, hope you can help me with my problem. I'm trying to set up a PHP/MySQL web site using session variables to pass information between pages. So far no good.

Re: [PHP] Web Hosts and PHP 4.10 +

2002-02-08 Thread anders nawroth
Sorry, should spell aletia.com From phpinfo at Aleita.com: PHP Version 4.1.0 System Linux cobra.nocdns.com 2.4.7-10smp #1 SMP Thu Sep 6 17:09:31 EDT 2001 i686 unknown Build Date Dec 15 2001 Configure Command './configure' '--with-apache=../apache_1.3.22' '--with-mysql' '--with-gd'

Re: [PHP] session register!!

2002-02-08 Thread Erik Price
On Friday, February 8, 2002, at 02:15 PM, Cristian Cerda wrote: I did set register_globals to On on the php.ini file. But when i use for example session_register(the_var) in one page ( using session_start() at the beginning), i don't get anything on the next page if i do echo $the_var . I

Re: [PHP] Trying to put ips into database

2002-02-08 Thread Daniel C. BAUFAY
And for efficiency you could convert and store IP addresses in numeric format. See INET_NTOA and INET_ATON. Subject: Re: [PHP] Trying to put ips into database From: Matt Drake [EMAIL PROTECTED] Date: Fri, 8 Feb 2002 11:52:26 -0600 (CST) To: [EMAIL PROTECTED] On Fri, 8 Feb 2002,

Re: [PHP] session register!!

2002-02-08 Thread Cristian Cerda
yes, and didn't work. Erik Price wrote: On Friday, February 8, 2002, at 02:15 PM, Cristian Cerda wrote: I did set register_globals to On on the php.ini file. But when i use for example session_register(the_var) in one page ( using session_start() at the beginning), i don't get anything

RE: [PHP] Trying to put ips into database

2002-02-08 Thread Matthew Walker
What type of field is 'ip'? Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:18 AM To: [EMAIL PROTECTED] Subject: [PHP] Trying to put ips into database I'm trying: $query =

[PHP] File Upload Performance

2002-02-08 Thread Linn Kubler
I've setup an upload form for uploading files to my server. It seems to work well except the performance is pretty sad. For example it took 20 minutes to upload a 50MB file over a 100Mb LAN. This is running on Linux w/Apache. At the heart of the script is the copy() function. Anyone have any

[PHP] Content Management

2002-02-08 Thread karthikeyan
Hi, How should i go about to developing a php application to manage the content of a web site OR is there allready some ready made script available which i can use in my project. Looking forward for yours response. karthikeyan.

Re: [PHP] Php Projects

2002-02-08 Thread hugh danaher
How about an interactive map showing all the commercial breweries in the world. I'll input the ones I know about in Antarctica. - Original Message - From: mike cullerton [EMAIL PROTECTED] To: PHP-General [EMAIL PROTECTED] Sent: Friday, February 08, 2002 12:21 PM Subject: Re: [PHP] Php

[PHP] Re: Execing problems

2002-02-08 Thread Peter Clarke
Make sure that exec() will not get any kind of response from the script if you want it in the background. This works for me: $command = funky script stuff here; exec ($command /dev/null 21 ); Peter Clarke Jason Rennie [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

[PHP] escaping ?

2002-02-08 Thread Steven Jarvis
I'm trying to do some string replaces on XML files to import them into a prprietary db that doesn't understand XML. I need to strip the XML tags out of the file. However, when I use this line: $contents = str_replace('?xml version=1.0?', '', $contents); The ? in the string ends my php block.

[PHP] Re: Content Management

2002-02-08 Thread Philip Hallstrom
check the application section of www.zend.com -philip On Sat, 9 Feb 2002, karthikeyan wrote: Hi, How should i go about to developing a php application to manage the content of a web site OR is there allready some ready made script available which i can use in my project. Looking

RE: [PHP] How to keep form inputs from being cleared

2002-02-08 Thread SpamSucks86
With --enable-trans-sid the problem still exists. For example, a user logs in and cookies are disabled. He browses to a page which doesn't load the session. Then from there he goes to a page that does use sessions. Unless I'm mistaken, --enable-trans-sid won't add the session ID unless the

RE: [PHP] Content Management

2002-02-08 Thread sean
We'd need some more information, as Content Management is as varied as web pages, but depending on your needs: http://www.roadsend.com/siteManager/home/treeMenu.php is a hot script. Look around on-line or on php.net for some leads that suite your complexity requirements, or fill us in on the

Re: [PHP] Content Management

2002-02-08 Thread Justin Farnsworth
You might check out binarycloud. This is a platform but there is probably going to be an app for content management very soon as this is being worked on. SEE: http://binarycloud.tigris.org/ SEE: http://www.binarycloud.com/ _justin karthikeyan wrote: Hi, How should i go about to

Re: [PHP] escaping ?

2002-02-08 Thread Jeff Sheltren
Hi, try this: str_replace(?xml version=\1.0\? Jeff At 03:45 PM 2/8/2002 -0600, Steven Jarvis wrote: I'm trying to do some string replaces on XML files to import them into a prprietary db that doesn't understand XML. I need to strip the XML tags out of the file. However, when I use this

Re: [PHP] How to keep form inputs from being cleared

2002-02-08 Thread Jason Wong
On Saturday 09 February 2002 06:56, SpamSucks86 wrote: With --enable-trans-sid the problem still exists. For example, a user logs in and cookies are disabled. He browses to a page which doesn't load the session. Then from there he goes to a page that does use sessions. Unless I'm mistaken,

[PHP] Math rounding problem

2002-02-08 Thread Charlie Killian
For an arbitrary large number I need to round() it up to the hundreds place if it is not divisible by 100 and leave it untouched if it is. So 1100 would round to 1100 and 1101 would round to 1200. Is there a clean way to do this? Currently I'm: $scale = round($scale+49, -2); // round up to

[PHP] Re: Math rounding problem

2002-02-08 Thread Philip Hallstrom
Something like this...? if( $n % 100 != 0 ) { $n += 100 - ($n % 100); } Although I don't think your example is any messier... maybe ceil/floor should have a precision field added... -philip On Fri, 8 Feb 2002, Charlie Killian wrote: For an arbitrary large number I need to round() it up

Re: [PHP] secure form handling

2002-02-08 Thread Paul Roberts
I think you mean that you want to display the total as text but have the total on the form hidden so they can't edit it (and give themselves a discount), you can use a hidden form field, sessions or cookies. input type=hidden value= name=total Paul Roberts [EMAIL PROTECTED]

Re: [PHP] Math rounding problem

2002-02-08 Thread DL Neil
Charlie, For an arbitrary large number I need to round() it up to the hundreds place if it is not divisible by 100 and leave it untouched if it is. So 1100 would round to 1100 and 1101 would round to 1200. Is there a clean way to do this? Currently I'm: $scale = round($scale+49,

RE: [PHP] Math rounding problem

2002-02-08 Thread Charlie Killian
This equation from Bogdan is simple and working: $scale=ceil($scale/100)*100; Thanks to all those who helped, Charlie -Original Message- From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] $scale=ceil($scale/100)*100, maybe? Bogdan -- PHP General Mailing List

[PHP] die! die! directory!

2002-02-08 Thread hugh danaher
Help! I've been beating on a problem all day and think I've isolated the problem to the following line: print input type=image src=./maps/map1.jpg name=coordinate ; If I call the statement as is, I get a little red x where my map should be. In earlier calls to the same directory, I can

[PHP] Re: die! die! directory!

2002-02-08 Thread hugh danaher
Phil, Thanks for the suggestion. I tried it and it worked the first time, but as I changed to a second directory ./maps2/ it fell apart again. Also, what I didn't state at the start, was that map1.jpg is actually a variable, $map. It's just that when I was pounding on it, I settled on using

[PHP] Search Page

2002-02-08 Thread Georgie Casey
I'm making a search page on my site where users enter certain criteria and I ouput the results like many other webistes: By first telling how many results were generated, then having dynamic pages to view, say, 10 results at a time. So first I have to SQL the database to get totalresults, then

  1   2   >