Re: [PHP] Namespce operator

2009-03-25 Thread Nathan Rixham
Jochem Maas wrote: Luke schreef: Backslash doesn't sound like it will look very pretty 2009/3/25 Richard Heyes Backslash? Seriously? I'm hurt that my suggestion of "¬" (ASCII170 ?) wasn't used. :-( please kill this thread, the namespace operator was heavily discussed multiple times in the

Re: [PHP] newbe question

2009-03-25 Thread Raymond Irving
Hi Andres, I'm also new to this mailing list. The echo function does not insert a \n at the end of the line. Try removing the extra space after the ?> __ Raymond Irving Create Rich PHP Web Apps Today! Raxan PDI - http://raxanpdi.com/ --- On Wed, 3/25/09, Andres Gonzalez wrote: From: Andr

Re: [PHP] Fwd: A fatal error with php virtual cron

2009-03-25 Thread אלמוג בקו
amm.. i don`t really know what is fast-cgi. well I think I don't use it. however, thanks. * צור איתי קשר:* On Wed, Mar 25, 2009 at 10:33 PM, Shawn McKenzie wrote: > אלמוג בקו wrote: > > my script(cron.php) check th

Re: [PHP] Fwd: A fatal error with php virtual cron

2009-03-25 Thread Shawn McKenzie
אלמוג בקו wrote: > my script(cron.php) check the job and call by http-request > himself(cron.php). > > I already solve the timezone problem, I set the timezone to Israel`s > timezone[works fine]: > > //Set TimeZone > date_default_timezone_set(timezone_name_from_abbr("", 2*60*60, null)); > I was

Re: [PHP] Fwd: A fatal error with php virtual cron

2009-03-25 Thread אלמוג בקו
my script(cron.php) check the job and call by http-request himself(cron.php). I already solve the timezone problem, I set the timezone to Israel`s timezone[works fine]: //Set TimeZone date_default_timezone_set(timezone_name_from_abbr("", 2*60*60, null)); * צור איתי ק

Re: [PHP] Fwd: A fatal error with php virtual cron

2009-03-25 Thread Shawn McKenzie
אלמוג בקו wrote: > This is a part of the class: > > private function _request() { > //URL information > $url= "http://".$_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; > $url_info= parse_url($url); > > //Fixing port > if(!isset($url_info['port'])) $url_info['port']=8

Re: [PHP] Fwd: A fatal error with php virtual cron

2009-03-25 Thread Igor Escobar
Oh, Sorry, I had not seen. Well, I don't see anything wrong in your code, but maybe...if you find in your apache config file, you can found for something similar to your problem ... Sorry can't help you. Regards, Igor Escobar systems analyst & interface designer www . igorescobar . com On We

Re: [PHP] Namespce operator

2009-03-25 Thread Eric Butera
On Wed, Mar 25, 2009 at 8:30 AM, Jochem Maas wrote: > Christoph Boget schreef: Backslash? Seriously? I'm hurt that my suggestion of "¬" (ASCII170 ?) wasn't used. :-( >>> Backslash doesn't sound like it will look very pretty >> >> Windows and DOS have been getting away with it for the las

Re: [PHP] Fwd: A fatal error with php virtual cron

2009-03-25 Thread אלמוג בקו
I already wrote that.. ignore_user_abort(true); set_time_limit(0); sleep(1); * צור איתי קשר:* On Wed, Mar 25, 2009 at 9:38 PM, Igor Escobar wrote: > Try the ignore_user_abort(true); > > Regards, > Igor Escobar >

Re: [PHP] Fwd: A fatal error with php virtual cron

2009-03-25 Thread Igor Escobar
Try the ignore_user_abort(true); Regards, Igor Escobar systems analyst & interface designer www . igorescobar . com On Wed, Mar 25, 2009 at 4:21 PM, אלמוג בקו wrote: > This is a part of the class: > > private function _request() { > //URL information > $url= "http://".$_SERVER

Re: [PHP] Fwd: A fatal error with php virtual cron

2009-03-25 Thread אלמוג בקו
This is a part of the class: private function _request() { //URL information $url= "http://".$_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; $url_info= parse_url($url); //Fixing port if(!isset($url_info['port'])) $url_info['port']=80; //Send "Cron-data" $da

Re: [PHP] Fwd: A fatal error with php virtual cron

2009-03-25 Thread Igor Escobar
Maybe your problem are in the way you're calling your program by socket. If you show me this part of the code, maybe i can help you. Regards, Igor Escobar systems analyst & interface designer www . igorescobar . com On Wed, Mar 25, 2009 at 4:01 PM, אלמוג בקו wrote: > Hello, > There is some

[PHP] Fwd: A fatal error with php virtual cron

2009-03-25 Thread אלמוג בקו
Hello, There is some week than I trying to solve a critical error on my VirtualCron script. *First of all what is VirtualCron?:* Virtual cron is script that`s call(http request) himself and doing the "jobs" by the time(like a cron-jobs on linux, but this script build on php and its make it indepen

Re: [PHP] utf-8-safe replacement for strtr()?

2009-03-25 Thread Tom Worster
thanks for the info. i'll leave 2-param uses of strtr in my code alone. i have a replacement for the 3-param version. btw: i have quite a long checklist of stuff to do when upgrading code for utf-8, including notes on about 100 functions. do you think it would be worth putting it on a wiki somewh

Re: [PHP] Problems with implode

2009-03-25 Thread Tom Worster
On 3/24/09 9:25 AM, "Andrea Giammarchi" wrote: > > Dunno why you guys started talk about utf-8 problems, he has a list of ids > which should contain only unsigned integers, otherwise I do not get how that > query could work with an implode(',', $whatever) rather than 'id in > ("'.implode('","',

RE: [PHP] Multiple PHP's and php.ini's - Linux 5.2.9/5.2.6

2009-03-25 Thread kyle.smith
After further suffering, I've discovered this was due to the source tree being used to build two PHPs. I'm not sure the exact cause, but I removed the entire php-5.2.9/ tree and re-extracted the tarball. My new PHP correctly points at /usr/local/. Maybe this will help someone else in the same po

Re: [PHP] newbe question

2009-03-25 Thread Andres Gonzalez
thanks for your response kyle, I did not realize that. -Andres kyle.smith wrote: I'm not sure it will resolve your issue, but the closing ?> is not a requirement and will eliminate any chance of you adding whitespace to the end of your scripts: #!/usr/bin/php echo "I'm some script output!"

Re: [PHP] newbe question

2009-03-25 Thread Andres Gonzalez
I just figured this out. It all depends on what is AFTER the last ?> tag. If I do not have extra line feeds they are not printed. Wow... thanks, -Andres Andres Gonzalez wrote: Hi, I want to learn PHP so I started using it for all of my general purpose scripts. The general format of my s

RE: [PHP] newbe question

2009-03-25 Thread kyle.smith
I'm not sure it will resolve your issue, but the closing ?> is not a requirement and will eliminate any chance of you adding whitespace to the end of your scripts: #!/usr/bin/php mailto:and...@packetstorm.com] Sent: Wednesday, March 25, 2009 11:29 AM To: php-general@lists.php.net Subject: [PHP] n

[PHP] newbe question

2009-03-25 Thread Andres Gonzalez
Hi, I want to learn PHP so I started using it for all of my general purpose scripts. The general format of my scripts are like this: #!/usr/bin/php When I run my scripts and I have an echo (or print) at the end of the script to print out the results of the script, I get an extra line feed

[PHP] Multiple PHP's and php.ini's - Linux 5.2.9/5.2.6

2009-03-25 Thread kyle.smith
I've been wrestling with this issue for a few days, I'm hoping someone can help. The issue we had is that we have a system httpd running a custom php-5.2.9 which is compiled in /opt/php/. The php.ini for this installation linked to and ioncube accelerator Zend module. The same apache also hosted

Re: [PHP] Problems with implode

2009-03-25 Thread Igor Escobar
Maybe you can reduce your code a little using the range(); it's just a sugestion... Regards, Igor Escobar systems analyst & interface designer www . igorescobar . com On Wed, Mar 25, 2009 at 4:42 AM, Toke Herkild wrote: > Okay, tested in the following manner: > > for ($i=12300;$i<12801;$i+

Re: [PHP] Namespce operator

2009-03-25 Thread Jochem Maas
Christoph Boget schreef: >>> Backslash? Seriously? I'm hurt that my suggestion of "¬" (ASCII170 ?) >>> wasn't used. :-( >> Backslash doesn't sound like it will look very pretty > > Windows and DOS have been getting away with it for the last 25+ years > so why can't PHP get in on that action? :P >

Re: [PHP] Namespce operator

2009-03-25 Thread Christoph Boget
>> Backslash? Seriously? I'm hurt that my suggestion of "¬" (ASCII170 ?) >> wasn't used. :-( > Backslash doesn't sound like it will look very pretty Windows and DOS have been getting away with it for the last 25+ years so why can't PHP get in on that action? :P Though I have read the explanation

Re: [PHP] Namespce operator

2009-03-25 Thread Jochem Maas
Luke schreef: > Backslash doesn't sound like it will look very pretty > > 2009/3/25 Richard Heyes > >> Backslash? Seriously? I'm hurt that my suggestion of "¬" (ASCII170 ?) >> wasn't used. :-( please kill this thread, the namespace operator was heavily discussed multiple times in the last 1-2 y

[PHP] Writing to dbase (dbf) deletes index (cdx)

2009-03-25 Thread Rahul S. Johari
Ave, I noticed something peculiar and I can't find a solution for this. I'm wondering if anyone can help me out. I'm using the dbase functions to read & write from dbf (foxpro) tables. The DBF tables usually have an Index which is contained in filename.cdx. It appears that anytime I Write

Re: [PHP] Namespce operator

2009-03-25 Thread Richard Heyes
> Backslash doesn't sound like it will look very pretty Well no, but practically I can't see any dis/advantages. Except that it saves two whole keypresses over something like :::. Think of the RSI lawsuits prevented... -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari

Re: [PHP] Namespce operator

2009-03-25 Thread Luke
Backslash doesn't sound like it will look very pretty 2009/3/25 Richard Heyes > Backslash? Seriously? I'm hurt that my suggestion of "¬" (ASCII170 ?) > wasn't used. :-( > > -- > Richard Heyes > > HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: > http://www.rgraph.net (Updated March

[PHP] Namespce operator

2009-03-25 Thread Richard Heyes
Backslash? Seriously? I'm hurt that my suggestion of "¬" (ASCII170 ?) wasn't used. :-( -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated March 14th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

Re: [PHP] utf-8-safe replacement for strtr()?

2009-03-25 Thread Nisse Engström
On Tue, 24 Mar 2009 08:15:35 -0400, Tom Worster wrote: > On 3/23/09 2:02 PM, "Tom Worster" wrote: > >> i havea general replacement or workaround for every php function in my code >> that i know to be utf-8-unsafe. except one: strtr(). > > strtr() with three parameters is certainly unsafe. but m

Re: [PHP] Problems with implode

2009-03-25 Thread Toke Herkild
works fine, created a html output to browser which displayed nicely. - weird regards Toke Toke Herkild skrev: As stated before, packet size not the problem, data is delivered perfectly from MySQL. Problem seems to be when the result string is diplayed. I'll try to do a test with a numeric arra

Re: [PHP] Problems with implode

2009-03-25 Thread Toke Herkild
Okay, tested in the following manner: for ($i=12300;$i<12801;$i++){ // List is filled with integers, in the correct charset from PHP $list[] = $i; } $pidList = implode(',', $list); mail('y...@email.dom, 'debug implode', var_export(array($pidList, $list),1)); And I got the same error, which

Re: [PHP] Problems with implode

2009-03-25 Thread Toke Herkild
As stated before, packet size not the problem, data is delivered perfectly from MySQL. Problem seems to be when the result string is diplayed. I'll try to do a test with a numeric array: $list = array(12300..12800); and see what happens. regards, Toke Andrea Giammarchi skrev: What about MySQL