[PHP] Re: No redirect with header()

2005-10-20 Thread ac
On 10/20/05, Dotan Cohen [EMAIL PROTECTED] wrote: On 10/18/05, Oliver Grätz [EMAIL PROTECTED] wrote: Snippets are bad ;-) Please post a full example that is _not_ working on your server. Perhaps this is no PHP problem at all. I know, but I don't want to post my tracking code. I am

[PHP] Re: OPTIMIZING - The fastest way to open and show a file

2005-10-17 Thread ac
PROTECTED] wrote: In a almost idle desktop machine always takes arround 0.04. The measured is on a server when it was with low traffic (average load arround 0.7) ac wrote: where did these time measured? on a heavily loaded server or on your own almost idle desktop machine ? On 10/14/05

[PHP] Re: ampersand in dom with utf-8

2005-10-16 Thread ac
try this, if you need more entities to be included, just refer to `http://www.w3.org/2003/entities/iso8879/isolat1.ent' or find out its charcode by yourself. ?xml version=1.0? !DOCTYPE html [ !ENTITY egrave #x00e8; !ENTITY icirc #x00ee; ] item_namefarm lettuces with reed avocado, cregrave;me

Re: [PHP] Setting up Linux and SendMail for SMTP

2005-10-14 Thread ac
On 10/14/05, Todd Cary [EMAIL PROTECTED] wrote: Can I configure SendMail to send mail to my ISP's SMTP server using the built in mail() function of PHP? i think you can, may be you would like to read the manual of your sendmail program, about how to configure it as a smart host. and if

Re: [PHP] Trouble moving directory

2005-10-14 Thread ac
escapeshellarg() works quite well, why you say its still failed? did u try? do a ?php echo escapeshellarg('Dir That (Won't Move)/'); ? will produce 'Dir That (Won'\''t Move)' and this does fit into shell, even `(' and `)' is not escaped, for in bash, all thing quoted in single quote will be

[PHP] Re: OPTIMIZING - The fastest way to open and show a file

2005-10-14 Thread ac
where did these time measured? on a heavily loaded server or on your own almost idle desktop machine ? On 10/14/05, Ruben Rubio Rey [EMAIL PROTECTED] wrote: Hi, I m creating a cache system, and i have a problem: PHP takes a lot of time opening the file. (Im using 2.6.9-1.667smp and XFS) *

[PHP] IO timeout

2005-05-15 Thread AC
Anyone using the dio_read function? I'm having issues trying to keep dio_read from hanging if there's no data to read. Anyone know of a work around or hack to mimic a timeout? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] str_replace on words?

2005-05-11 Thread AC
I whipped this together, it should work ok. You'll want to clean it up, but you get the gist. ?php /* AC Was here */ $str=I'm going to the store to buy some stuff.; $bold=array(store,some,stuff); function boldWord($str,$bold) { if(isset($str)) { foreach($bold as $b) { echo $b

[PHP] Re: marking words bold

2005-05-11 Thread AC
get the gist. ?php /* AC Was here */ $str=I'm going to the store to buy some stuff.; $bold=array(store,some,stuff); function boldWord($str,$bold) { if(isset($str)) { foreach($bold as $b) { echo $b should be b$b/b\n; $str = eregi_replace($b,b$b/b,$str

[PHP] dio_read timeout?

2005-05-10 Thread AC
I'm using dio_read to read data from a serial port via a php cli script, this works great. However I'm unable to get dio_read to timeout if there's no data to read. No matter how I formulate the while loop, set_time_out, etc I can't seem to get it to stop reading and move on. Anyone have a

[PHP] php my sql question

2003-07-02 Thread Jerome A. Jackson/AC/VCU
I have a web site that has my sql installed. The web server is 1st host web and they do not provide much support other than referral to my sql and php web site. I know how to set up a database from a text file then upload to an sql database. Now I want to write code to make it open and access