RE: [PHP] RE: html in my form? bad things! help help help!

2001-07-16 Thread Ray Dow
Once you open up ANY HTML tag to the public you open a huge can of worms and trouble, like the following for example a href=http://php.net; onmousemove=javascript:alert('Blar Blar Blar');Click me!/a My javascript is not great (I could not think of anything more damaging) but its pretty clear

[PHP] Re: Question about strlen I think

2001-07-16 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Dennis Kaandorp) wrote: Ah. I see why you're having trouble: documentation of the 'F' modifier has apparently be excised from the manual since the preg_replace_callback() has replaced it in PHP 4.0.5. If you've got 4.0.5, use the new function

Re: [PHP] option value

2001-07-16 Thread teo
Hi Michael! On Sun, 15 Jul 2001, Michael Thomas wrote: how can i populate an dropdown box useing php postgresql. Thanks in advance if you tell me how you tried by yourself first, I'll help you further ;) it's trivial with Javascript, but if you don't want to use that it's still doable.

Re: [PHP] output plain HTML for CD Rom

2001-07-16 Thread David Robley
On Sun, 15 Jul 2001 16:10, Justin French wrote: Hi, I have a client who wishes to publish some catalogues to CD Rom. Of course they can't be placed onto a CD using PHP code (because it would require the CD user to have PHP installed!!), but PHP/MySQL is definately the best way to build the

[PHP] Free Hosting Sites

2001-07-16 Thread Bernie Kruger
I need some free PHP hosting sites. Any url's that you can spare? Tx Bernie -- 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] Problem with cookie

2001-07-16 Thread Mihailo Dzigurski
Hello, I need cookie that will expire in 15 mins. My server is in different time zone than most of my clients. When I set cookie, the cookie is already expired when it reach clients. I use setcookie(Test, 1, time()+600). This problem only happens with IE, Netscape is working fine?! Is there

[PHP] Free Hosting Sites

2001-07-16 Thread Aniceto Lopez
some free host servers PHP + mySQL http://www.jumpworld.net/ http://hosting.datablocks.net/ http://www.coolfreehost.com/ http://www.nexen.net http://free.any.za.net Ani López http://www.lamundial.net Visit us, download our music -- PHP General Mailing List (http://www.php.net/) To

[PHP] Problem with passthru

2001-07-16 Thread Manuel Forget
I use passthru to launch an Unix command but after it's done (I verufy the execution of the unix prog) , it seems that php does not work anymore. The loading of a php page is infinite. First, I think that the unix shell does not send to php the end of the command, so I use at the end of the

Re: [PHP] lack of error

2001-07-16 Thread Christian Reiniger
On Sunday 15 July 2001 17:11, Jon Yaggie wrote: i am generating an image. Everything is going fine except this one image. it shows only as a broken image. even if you go directly too the file all you get is a broken image. with out an error of some sort i am baffled where to start. any

Re: [PHP] session problem using headers

2001-07-16 Thread David Allen
Thanks for your email. I did the changes you suggested, and the page is now going to input.php?= ie no record of the SID. I added the following lines to the code. echo SID: $SID; and echo SID: $PHPSESSID; and $SID was not displayed i.e just SID: was displayed. I guess this is the problem. For

[PHP] Re: Problem with cookie

2001-07-16 Thread Yasuo Ohgaki
IE does not accept cookie expires less than 7200 sec. Someone mentioned it before. (I don't verified this) Is this true? -- Yasuo Ohgaki Mihailo Dzigurski [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I need cookie that will expire in 15 mins. My

[PHP] the triple equal sign?

2001-07-16 Thread elias
What is the '===' ? Please give me an example. -- 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] the triple equal sign?

2001-07-16 Thread Thies C. Arntzen
On Mon, Jul 16, 2001 at 04:36:54AM -0700, elias wrote: What is the '===' ? Please give me an example. ( == false) is true ( === false) is false re, tc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] report generation with PHP

2001-07-16 Thread Matthew Garman
Hello: I wrote an small web application that interfaces a Microsoft Access database. The database is fairly small and simple: it is a listing of employees, their phone number(s) and their department. My interface allows folks to view the phone list, search for a name, list by department,

[PHP] php file extensions with IIS

2001-07-16 Thread Matthew Garman
I installed PHP 4.0 on an MS Windows 2000 server (running IIS 5.0). It processes files whose extension is .php but displays files with .php3 and .php4 extensions as text. I might have specified such behavior in the original installation. But now I can't find out where to associate other

RE: [PHP] the triple equal sign?

2001-07-16 Thread Jochen Kaechelin
What is the '===' ? You can not only compare if the content of two variables is the same ($a == $b) - you can also compare the type (integer, float...) $a = 1; $b = 1; $a == $b - TRUE $a = 1; $b = 1; $a === $b - FALSE because $a is a STRING and $b is a INTEGER! --

Re: [PHP] report generation with PHP

2001-07-16 Thread Morten Winkler Jørgensen
Hi Matthew, MG Now I want to be able to generate this report from the web. It doesn't MG have to use Access (and I would prefer that it didn't, so I can convert to MG MySQL). But I don't know of a nice (and easy!) way to generate such a MG report. Using HTML tables isn't acceptable---when

[PHP] how to strip just the img tag from html file?

2001-07-16 Thread sgibbs
I've created a printer-friendly version of a page (PHP/MySQL) and want to have just the img tags automatically removed. I thought about using strip_tags() but I'm not able to predict what html tags to include as the exceptions so that they would not be removed too. How can I do this? Thank

Re: [PHP] Re: Problem with cookie

2001-07-16 Thread Justin Farnsworth
You may have different behaviour between browsers, but you are never going to be able to use this method reliably because of the vagaries of times encountered on the client side. Just look at the postings to this list, supposedly more sophisticated computer users, as some postings are dated 1972,

[PHP] Re: how to strip just the img tag from html file?

2001-07-16 Thread James Holloway
Hi Shawna Look up preg_replace(); Assuming $file is the contents of your file - $file = preg_replace(/img.*?/i, , $file); James. [EMAIL PROTECTED] wrote in message BB6D932A42D6D211B4AC0090274EBB1D2EEF63@GLOBAL1">news:BB6D932A42D6D211B4AC0090274EBB1D2EEF63@GLOBAL1... I've created a

[PHP] sending to large mailing list

2001-07-16 Thread Adrian Teasdale
Hi I have some mailing list programming which we've used for quite some time. However, one of my clients now has 660 people on the list and we are getting a timeout error on the script and class. I'm using the Mime type class from Manuel Lemos I'd like to know how other people handle large

[PHP] Exec, system, passthru didn't work

2001-07-16 Thread Reuben D Budiardja
Hi, I tried to execute the following command from the web interface using a system call /usr/bin/play a_wave_file.wav I tried exec, system, passthru, and shell_exec. None of them worked, that is I didn't hear any sound played. Note that I'm sitting here on the server itself, and tried it

[PHP] Cannot add SNMP support

2001-07-16 Thread Robert Covell
I have been trying to add snmp support into PHP 4.0.4pl1 and 4.0.6 without success. The box currently has ucd-snmp-4.2.1 on it and is working fine with our mod_perl installation. When we configure it with --with-snmp and --enable-ucd-snmp-hack it configures fine and lists the it has found SNMP.

RE: [PHP] sending to large mailing list

2001-07-16 Thread Richard Heyes
I have some mailing list programming which we've used for quite some time. However, one of my clients now has 660 people on the list and we are getting a timeout error on the script and class. set_time_limit(0); -- Richard Heyes Passwords are like underwear: don't share them, hide them

Re: [PHP] sending to large mailing list

2001-07-16 Thread Adrian Teasdale
Richard Thanks for this email. I have done that and used flush(); on the next page. It does seem to be taking a long time and I was wondering if people use other methods. For example, one of the scripts I have seen can use either mail, sendmail, or smtp as options. I was wondering if going

RE: [PHP] how to strip just the img tag from html file?

2001-07-16 Thread Adrian Ciutureanu
$printerFriendlyContent = eregi_replace('img[^]*', '', $htmlContent); You can also use $printerFriendlyContent = eregi_replace('src=[^]*', 'src=images/spacer.gif', $htmlContent); to preserve formatting (spacer.gif = 1x1 px transparent) -Original Message- From: [EMAIL PROTECTED]

[PHP] submitting free-form text to a database

2001-07-16 Thread garman
Hello. I'm creating a simple Classifieds PHP application. It allows users to view classifieds by category, and add new items to the database. For now, I'm using MS Access 97 as my database (although eventually I would like to switch to MySQL). Anyway, one element of a classified is the

RE: [PHP] report generation with PHP

2001-07-16 Thread garman
= Original Message From Morten Winkler Jørgensen [EMAIL PROTECTED] = Hi Matthew, MG Now I want to be able to generate this report from the web. It doesn't MG have to use Access (and I would prefer that it didn't, so I can convert to MG MySQL). But I don't know of a nice (and easy!) way

[PHP] sessions . . . .

2001-07-16 Thread Jon Yaggie
i have three pages all begin with session_start() one fo the variables i register on the first page si $directory which is used to create a unique and temp directory for user files. in the first this is some stuff saved tot his directory. in the second page there is information pulled

Re: [PHP] sending to large mailing list

2001-07-16 Thread Mark Charette
From: Adrian Teasdale [EMAIL PROTECTED] The idea is that this database will expand to quite a few thousand in the near future and I want to know that we'll be able to handle it :) The problem is that I cleverly added the feature that each email has a salutation which personalized to the

RE: [PHP] submitting free-form text to a database

2001-07-16 Thread garman
= Original Message From Duncan Hill [EMAIL PROTECTED] = On Mon, 16 Jul 2001, garman wrote: box where the user enters a description of the item he is selling. If the user's input contains an apostrophe (aka a single quote ') or even a double quote, the code gets confused. addslashes()

RE: [PHP] report generation with PHP

2001-07-16 Thread Marius Andreiana
În 16 Jul 2001 09:07:17 -0500 garman a scris: I forgot to mention that I already looked into the PDF extensions. Although it looks like it would do exactly what I want, the PDFLib isn't free for You can generate xml in php, write xsl to convert xml in xml-fo and then use fop to generate pdf,

RE: [PHP] submitting free-form text to a database

2001-07-16 Thread Rasmus Lerdorf
= Original Message From Duncan Hill [EMAIL PROTECTED] = On Mon, 16 Jul 2001, garman wrote: box where the user enters a description of the item he is selling. If the user's input contains an apostrophe (aka a single quote ') or even a double quote, the code gets confused.

Re: [PHP] output plain HTML for CD Rom

2001-07-16 Thread Justin French
Many thanks to David and Lars. Justin French -- 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] Exec, system, passthru didn't work

2001-07-16 Thread Rasmus Lerdorf
I tried to execute the following command from the web interface using a system call /usr/bin/play a_wave_file.wav I tried exec, system, passthru, and shell_exec. None of them worked, that is I didn't hear any sound played. Note that I'm sitting here on the server itself, and tried it with

Re: [PHP] sending to large mailing list

2001-07-16 Thread Adrian Teasdale
OK Mark Thanks for your reply. I'll have a look at this and see if I can use PHP for managing the list of people, but use another app to send Thanks again ade Honestly speaking, when mailing lists grow to (somewhere past trivial) numbers that are large it's best to use software that is

RE: [PHP] Re: REGEXP

2001-07-16 Thread Don Read
On 16-Jul-01 Adrian D'Costa wrote: Hi James, Thanks for your mail. But I think the problem like somewhere else. I have the following: echo $buffer; There result : Content-Type: multipart/mixed; This is wrong. It should be Content-Type: multipart/mixed;

Re: [PHP] submitting free-form text to a database

2001-07-16 Thread Francis Fillion
If I remember the best things with M$ oriented database, is to to double it so ' should be '' and it should be ok. Anyway, that's what I do when I have to do stuff with those software. garman wrote: = Original Message From Duncan Hill [EMAIL PROTECTED] = On Mon, 16 Jul 2001, garman

[PHP] string search

2001-07-16 Thread Joseph Bannon
I need a search function (if statement) that performs a search on a string and if the string contains something like aol.com, performs another function. Can anyone help me? Thanks. Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] sessions . . . .

2001-07-16 Thread scott [gts]
any number of things could happen to the $directory variable... it could be out of scope, gotten overwritten or unset by another function, or it might just never have been saved to the database... but the real problem with that code is that there are no error checks on the file functions. that

Re: [PHP] sessions . . . .

2001-07-16 Thread Jon Yaggie
Luiz I can see from the error message the variable is empty in control.php. however there are two pages of script before it where it does exist. So the problem is why isnt it also available in this part of the script? i have started the session on this page also which should make it avaiable.

[PHP] echo vs printf

2001-07-16 Thread brother
Why should I use printf instead of echo and vice versa? As for today I use printf mostly but I don't know why. brother Mail: [EMAIL PROTECTED] UIN: 4722160 Web: http://motd.st -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] Re: echo vs printf

2001-07-16 Thread Steve Brett
don't echo and printf do different jobs ? as i understand it echo will dump anything to screen, fprint will accept formatted text args like you owe me %d dollars,$owed_amount) or something like that. i kind of use print by itself (harking back to the old days of basic etc) but use echo quite a

[PHP] Re: string search

2001-07-16 Thread J Smith
Joseph Bannon wrote: I need a search function (if statement) that performs a search on a string and if the string contains something like aol.com, performs another function. Can anyone help me? Thanks. Joseph Try researching regular expressions. In PHP, look at the preg and ereg groups

[PHP] Re: string search

2001-07-16 Thread Steve Brett
have a look at ereg() (regular expression match) functions in manual. they'll do exactly what you want. Steve Joseph Bannon [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I need a search function (if statement) that performs a search on a string and if the

RE: [PHP] echo vs printf

2001-07-16 Thread Don Read
On 16-Jul-01 brother wrote: Why should I use printf instead of echo and vice versa? printf print-formated $a=12.3456; echo $a, 'BR'; printf('%1.2fBR', $a); 12.3456BR 12.34BR As for today I use printf mostly but I don't know why. You prolly mean print; There may be some minor

[PHP] escape char hell

2001-07-16 Thread Steve Brett
hi, i've got myself into a bit of a mess. i have a database with approx 4000 records (mysql) and when i populated the database i was given 4000 text files with the product name as the file name and the description of the product as the contents. so i set up a text field in the table to hold

[PHP] Re: escape char hell

2001-07-16 Thread Steve Brett
sorry posted to wrong group Steve Steve Brett [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi, i've got myself into a bit of a mess. i have a database with approx 4000 records (mysql) and when i populated the database i was given 4000 text files

Re: [PHP] echo vs printf

2001-07-16 Thread Steve Brett
i seem to remember reading somewhere that print acts like (is) a function, presumably returning false if it cannot print to screen, whereas echo just dumps it. also you can drop vars in print like print you have $points points; whereas to echo it you'd have to concatenate the string. Steve

[PHP] infinite loop problem

2001-07-16 Thread Florin Covaciu
HI, my bigest problem in the last two weeks is that I can't figure this out: - I ' m running a script which contains an infinite loop, and displays something from time to time, with flush() method. - this script seems to be working with one IE window openned. - I open a new window (CTRL + N) and

Re: [PHP] echo vs print (was echo vs printf)

2001-07-16 Thread Sheridan Saint-Michel
Ummm. I am not sure about either having a return value... but print you have $points points; and echo you have $points points; have identical output. You can drop a variable into an echo statement with no problem Sheridan - Original Message - From: Steve Brett [EMAIL PROTECTED]

[PHP] RE: string search

2001-07-16 Thread Joseph Bannon
Will this work? $string = http://www.aol.com/;; if (ereg (^aol.com^, $string) { } else { } I need a search function (if statement) that performs a search on a string and if the string contains something like aol.com, performs another function. Can anyone help me? Thanks.

[PHP] How can I see if variable is a odd or an even number?

2001-07-16 Thread SED
Do you know if there is a function to find out if a variable contains a odd or an even number? I checked the manual but didn't see it. Thanks! Regards, Sumarlidi Einar Dadason SED - Graphic Design -- Phone: (+354) 4615501 Mobile: (+354)

Re: [PHP] echo vs printf

2001-07-16 Thread rm
Actually, you can do the same thing with echo. echo you have $points points; As I understand it, echo is not a function it's a language something or other, supposedly it runs slightly faster than print given the same output. however, given it's Monday, I could be wrong. rm also you can

[PHP] string replace using ereg

2001-07-16 Thread Jeroen Olthof
hi, I want to replace strings in string using a key / value array as the replacemant contract basicly, I want to find a open en close tag, pick out the word in the middle and replace it by the value of the key that match the picked out word. example test test should result in this is a test

RE: [PHP] echo vs printf

2001-07-16 Thread scott [gts]
from the manual: [print is a language construct [EMAIL PROTECTED]] The print() function returns a boolean indicating the status of the call. If the write was successful, print() returns 1. If not, it returns 0. This can be used to detect when the client has closed the connection, and appropriate

RE: [PHP] RE: string search

2001-07-16 Thread scott [gts]
read the docs for ereg... i hardly use it, so i dont know for certain if it will match. (althouth the use of ^ at beginning *and* end suggests that it wont do what you expect) preg will match aol.com with this regexp: preg_match('/aol.com/', $string ) -Original Message- From: Joseph

RE: [PHP] How can I see if variable is a odd or an even number?

2001-07-16 Thread scott [gts]
even numbers are even becuase they're divisible by 2 w/o a remainder... use this property to your advantage: if ( $num % 2 ) { print $num is odd; } else { print $num is even; } -Original Message- From: SED [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 12:07

[PHP] Can i use PHP to do Voice Chat?

2001-07-16 Thread Timthothy
If you have any other idea, also tell me...thanks a lot timchan -- 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] string replace using ereg

2001-07-16 Thread scott [gts]
$text = Hello there, test. My name is name; $ASSIGN = array(test = this is a test, 'name'= 'BOB', ); $OPENTAG = ; $CLOSETAG = ; print preg_replace( /$OPENTAG(.*?)$CLOSETAG/e, '$ASSIGN[$1]', $text ); prints: Hello there, this is a test. My name is BOB To do what you want, throw a loop

Re: [PHP] session problem using headers

2001-07-16 Thread David Allen
Further to the last e-mail the plot thickens... If cookies is turned on, the line echo SID: $PHPSESSID; displays the session id. I thought the whole idea of using $PHPSESSID was so that sessions would work with cookies turned off! Am I missing something here? I disabled cookies via the

RE: [PHP] Re: echo vs printf

2001-07-16 Thread Gonyou, Austin
print, echo, and printf are all available to help different coders code in their own style. So if you're used to just using echo in shell, or print in perl/basic or perhaps printf, in c/c++/java/asp, there you go. Make a language easy to get stuff out of, and you can have a really quick user

Re: [PHP] RE: string search

2001-07-16 Thread Sheridan Saint-Michel
Couldn't he just do something like if (strstr($text, aol.com)) { MyFunction(); } else { echo Not Found; } It just seems like using ereg for this is like killing a fly with a sledgehammer Sheridan - Original Message - From: scott [gts] [EMAIL PROTECTED] To: php [EMAIL PROTECTED]

[PHP] Global Database

2001-07-16 Thread Erich Kolb
Does anynone know where I can find a database of general information like country abbreviations - country, zip codes, state names? I am also looking for a database that has generic topic lists, sort of like how you see on Yahoo.com or DMOZ? If there is no database, would anyone be interested in

Re: [PHP] mysql ERROR: Update Query Failed problem with 4.0.6

2001-07-16 Thread David Wartell
I know a lot of people are having this problem too because there is a bug report with the same/similar description for many different platforms. Here is how I got things to work. I did this with the latest php4 dev CVS snapshot (which also has the same error) but it should work on 4.0.6 also.

[PHP] free email providers

2001-07-16 Thread Egan
Hi, I need to prohibit free email address domains when verifying account information via email, and I found this list of free email providers: http://www.fepg.net/ Does anyone know of other lists, or better yet, have a text file of free email domains? Egan -- PHP General Mailing List

Re: [PHP] Global Database

2001-07-16 Thread rm
FWIW re: dmoz.or, provides an index of topics and catagories as well as their own current database of subjects and content for download...big downloads, I think the content material is over 500megs, but it's free. It's in some sort of text format, I can't seem to recall the exact format. rm

RE: [PHP] string replace using ereg

2001-07-16 Thread scott [gts]
what code are you trying to use? i have exactly the following code, and it prints out: Hello there, this is a test. My name is BOB $text = Hello there, test. My name is name; $ASSIGN = array(test = this is a test, 'name'= 'BOB', ); $OPENTAG = ; $CLOSETAG = ; print

RE: [PHP] RE: string search

2001-07-16 Thread scott [gts]
hehe... that's what regular expressions are for. they're extrememly powerful... but that doesnt mean that you should only use them for extremely complicated situations. they work great everywhere... if you dont like overdoing it, you might as well loop thru the string character by character,

RE: [PHP] Do not get any PHP-binary in install?

2001-07-16 Thread scott [gts]
i know it's silly to ask -- but did you look for php in /usr/local/bin/ -Original Message- From: Lasse Andersson [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 2:49 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Do not get any PHP-binary in install? Hi,

RE: [PHP] submitting free-form text to a database

2001-07-16 Thread scott [gts]
for the quotes thing. you must have single quotes around the values that will go to the database, and you must escape single quotes inside the value with either '' or \' (at least in MySQL, both work) and as for the database... IMO, you should download MySQL now and save yourself a ton of

RE: [PHP] Exec, system, passthru didn't work

2001-07-16 Thread scott [gts]
did you try and capture error messages from the system calls? webserver probably doesnt have permission to do what you want it to do. -Original Message- From: Reuben D Budiardja [mailto:[EMAIL PROTECTED]] Subject: [PHP] Exec, system, passthru didn't work Hi, I tried to execute

[PHP] Re: free email providers

2001-07-16 Thread Inércia Sensorial
Hi, I am not trying to discredit your decision to don't accept free emails, but look for example my situation. The only email accounts I have are on free email providers. I also connect to the internet using a free ISP, so there's no pratical reason to use a paid email. So it would be

RE: [PHP] echo vs printf

2001-07-16 Thread Kent Sandvik
As I understand it, echo is not a function it's a language something or other, supposedly it runs slightly faster than print given the same output. ?php class xTimer{ var $time_start; var $time_delta; function Start(){ $this-time_start =

[PHP] Time Taken to Process

2001-07-16 Thread Phil Spitler
Does anyone know an easy way to tell how long a page takes to run in ms. Maybe some variable that can be called at the bottom of the page or something. THANKS! - Phil Spitler [Applications Developer] American City Business Journals p: 704.973.1049 f:

Re: [PHP] Re: free email providers

2001-07-16 Thread Egan
On Mon, 16 Jul 2001 14:41:35 -0300, Inércia Sensorial [EMAIL PROTECTED] wrote: I am not trying to discredit your decision to don't accept free emails, but look for example my situation. The only email accounts I have are on free email providers. I also connect to the internet using a free ISP,

Re: [PHP] how can i creat a file and write a string to it!

2001-07-16 Thread Jason Bell
You need to open the file before you can actually write to it try this: $fp = fopen($file, w); fwrite($fp, $articletext); fclose($fp); - Original Message - From: sunny AT wde [EMAIL PROTECTED] To: php [EMAIL PROTECTED] Sent: Sunday, July 15, 2001 10:27 AM Subject: [PHP] how can i

[PHP] Re: Time Taken to Process

2001-07-16 Thread Philip Hallstrom
Look at the recent subject entitled echo vs printf. There's code to do exactly what you want. I don't think there's anything built in, but I could be wrong. On Mon, 16 Jul 2001, Phil Spitler wrote: Does anyone know an easy way to tell how long a page takes to run in ms. Maybe some variable

[PHP] true type fonts

2001-07-16 Thread Jon Yaggie
i am creating images using true type fonts. i have uploaded all my fonts into one directory on the server(/fonts) some fonts like arial.ttf work. however other show up as boxes. they are beautiful but not quit the desired effect. what is the problem any idea? it cant be a scriptproblem

[PHP] RE: Time Taken to Process

2001-07-16 Thread Phil Spitler
yeah, I just saw that, thanks! :) Phil -Original Message- From: Philip Hallstrom [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 2:12 PM To: Phil Spitler Cc: [EMAIL PROTECTED] Subject: Re: Time Taken to Process Look at the recent subject entitled echo vs printf. There's

Re: [PHP] Exec, system, passthru didn't work

2001-07-16 Thread Reuben D Budiardja
On Monday 16 July 2001 10:37 am, you wrote: On Monday 16 July 2001 09:42 am, you wrote: I tried to execute the following command from the web interface using a system call /usr/bin/play a_wave_file.wav I tried exec, system, passthru, and shell_exec. None of them worked,

Re: [PHP] Do not get any PHP-binary in install?

2001-07-16 Thread Lasse Andersson
No it isn't there either. My configure, make and make install do not seem to create a 'php' binary. Lasse Scott wrote: i know it's silly to ask -- but did you look for php in /usr/local/bin/ -Original Message- From: Lasse Andersson [mailto:[EMAIL PROTECTED]] Sent: Monday,

RE: [PHP] RE: Time Taken to Process

2001-07-16 Thread Michael Geier, CDM Systems Admin
try the attached class. $t = new timer; $t-start(); // some code; $t-stop(); $diff = $t-gettime(); echo $diff; -Original Message- From: Phil Spitler [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 1:20 PM To: [EMAIL PROTECTED] Subject: [PHP] RE: Time Taken to Process yeah, I

Re: [PHP] Time Taken to Process

2001-07-16 Thread py
Mostly Taken from phpbuilder I beleive... // = // Function to start the timer. // = function start_timer(){ $timeparts = explode( ,microtime() ); $starttime = $timeparts[1].substr(

Re: [PHP] true type fonts

2001-07-16 Thread Chris Anderson
Many special fonts don't have all the characters besides letters and numbers. Perhaps thats the problem? - Original Message - From: Jon Yaggie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 16, 2001 2:11 PM Subject: [PHP] true type fonts i am creating images using true type

Re: [PHP] true type fonts

2001-07-16 Thread Jon Yaggie
nope. the fonts are normalenough when i i open them. and in fact i guess i get slight different boxes for different fonts. but all of them are alpha-numeric fonts Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code

[PHP] Quoted-Printable Encoding

2001-07-16 Thread Sheridan Saint-Michel
I am trying to put together a script that e-mails web pages (similar to the send page functionality in IE). Is there a function that will convert HTML from plaintext into Quoted-Printable Encoding (ie = becomes =3D) so I can e-mail it? Or will one of the encodings available (ie rawurlencode)

RE: [PHP] echo vs printf

2001-07-16 Thread rm
I don't know what to say, my comment was based on http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40 note the author. I ran your code in both windows and linux and got faster speeds, on a regular basis, for echo. That said, the speed differences were not great(minor is a good

[PHP] auto link?

2001-07-16 Thread [EMAIL PROTECTED]
On Ray's advice I've given up on letting the users put html into my form. But I would like any http:// type addresses they include to be turned into hyper links: a href=http://www.mysite.comwww.mysite.com/a is there a script or function some place I can use to do this? Or must I try to write

Re: [PHP] Quoted-Printable Encoding

2001-07-16 Thread jeremy brand
I think you will want to use the imap_8bit() function: http://php.net/imap_8bit But, I'm not sure if there is a version available in PHP without compiling in c-client IMAP. Jeremy Jeremy Brand :: Sr. Software Engineer :: +393485323988 :: [EMAIL PROTECTED]

[PHP] return

2001-07-16 Thread Tyler Longren
Here's my code: ? function expDate($date) { $month = substr($date, 0, 2); $len = strlen($date); $year = substr($date, $len-2, $len); return $month; return $year; } expDate(11/2002); print $month $year; ? I know this isn't the correct usage of return, but

RE: [PHP] return

2001-07-16 Thread Boget, Chris
Here's my code: ? function expDate($date) { $month = substr($date, 0, 2); $len = strlen($date); $year = substr($date, $len-2, $len); return $month; return $year; } expDate(11/2002); print $month $year; ? I know this isn't the correct usage of

Re: [PHP] Quoted-Printable Encoding

2001-07-16 Thread Sheridan Saint-Michel
I tried the imap_8bit function, but got: Fatal error: Call to undefined function: imap_8bit() in /home/www/foxjet/admin/mailer.php on line 44 I do not have control over what is compiled on my hosts machine. They are running PHP 4.0.4pl1 I am not sure how to tell what has and has not been

RE: [PHP] return

2001-07-16 Thread Don Read
On 16-Jul-01 Tyler Longren wrote: Here's my code: ? function expDate($date) { $month = substr($date, 0, 2); $len = strlen($date); $year = substr($date, $len-2, $len); return $month; return $year; } expDate(11/2002); print $month $year; ? I

Re: [PHP] return

2001-07-16 Thread Alexander Skwar
So sprach »Tyler Longren« am 2001-07-16 um 15:25:08 -0500 : function? Currently, nothing is printed to the browser. No wonder, because you don't assign the returned value of expDate to anything.. well, if you want to return two values, I'd suggest to use an array, like so: function

Re: [PHP] return

2001-07-16 Thread Alexander Skwar
So sprach »Alexander 'Digital Projects' Skwar« am 2001-07-16 um 22:38:44 +0200 : anything.. correction: Whoops - there's a . missing anything... Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com |

RE: [PHP] auto link?

2001-07-16 Thread Chad Day
Here's a function I use on a text field.. function activateUrls( $s ) { $o = ''; while ($s != '') { $url = ''; $temp = split('://', $s, 2); if (count($temp)1) { # '://' found; now extract schema $s = $temp[1]; $temp2 = split('[^[:alpha:]]', strrev($temp[0]), 2);

Re: [PHP] auto link?

2001-07-16 Thread Bob Scott
Take a look at http://www.php.net/manual/en/function.ereg-replace.php There's a bit of sample code up there that may help... -bob -- Bob Scott Web / DB Developer http://www.covalent.netCovalent Technologies, Inc. On Mon, 16 Jul 1979, [EMAIL PROTECTED] wrote:

[PHP] Re: string search

2001-07-16 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (J Smith) wrote: I need a search function (if statement) that performs a search on a string and if the string contains something like aol.com, performs another function. Can anyone help me? Thanks. Joseph Try researching regular

[PHP] RE: report generation with PHP

2001-07-16 Thread Andrew Chase
There's more than one way to skin a cat - if not directly from PHP to PDF, why not PHP to a .TeX LaTeX file, then use exec() to run latex and dvi2pdf on it. No license restrictions there that I know of, and you can get some very nice results with LaTeX. -Andy -Original Message- From:

  1   2   >