Re: [PHP] On register_shutdown_function: What might be the problem?

2005-07-22 Thread Liang ZHONG
I think I did not express myself clearly. What I want is to be able to redirect user an existing page (let them get it immediately), and to close the connection actively, NOT passively by user abort, at last, to run the function in background. But the redirecting using function header() with

Re: [PHP] On register_shutdown_function: What might be the problem?

2005-07-22 Thread Rasmus Lerdorf
Liang ZHONG wrote: > My Question is: > What is the correct way to keep the function running after I redirect an > existing page to http client (which I want the client get immediately) > and then immediately close the connection? ignore_user_abort(true); -Rasmus -- PHP General Mailing List (htt

Re: [PHP] Re: System specific information gathering

2005-07-22 Thread Ramil Sagum
On 7/23/05, Vidyut Luther <[EMAIL PROTECTED]> wrote: > Ok, > If I use the file_get_contents.. how do I actually parse the > contents on /proc/uptime > cat /proc/uptime > 1400293.13 1317047.64 The first number is the total uptime in seconds, the second number is the total idle time. --

Re: [PHP] Re: System specific information gathering

2005-07-22 Thread Vidyut Luther
Ok, If I use the file_get_contents.. how do I actually parse the contents on /proc/uptime cat /proc/uptime 1400293.13 1317047.64 What do I do with those two numbers ? man uptime doesn't really talk about that file.. :/ On Jul 22, 2005, at 2:42 AM, Jasper Bryant-Greene wrote: Vidyut Luth

Re: [PHP] On register_shutdown_function: What might be the problem?

2005-07-22 Thread Jasper Bryant-Greene
Liang ZHONG wrote: What is the correct way to keep the function running after I redirect an existing page to http client (which I want the client get immediately) and then immediately close the connection? Use the execution functions to call an external script that performs the tasks you want

Re: [PHP] On register_shutdown_function: What might be the problem?

2005-07-22 Thread Liang ZHONG
I want the http client see the page ( here y.html) immediately after I call header function, and then close the connectiion, and the function f running in the background. But trying many many times, the result seems that I have to either set the time limit to small to send the the html page soo

Re: [PHP] On register_shutdown_function: What might be the problem?

2005-07-22 Thread André Medeiros
Given it's a fatal error, it's as bad as a syntax error. It cancels everything it's doing and leaves. Remember that, even the shutdown function has to obey the time limit. On 7/22/05, Liang ZHONG <[EMAIL PROTECTED]> wrote: > > set_time_limit(0); > function f(){ > $count=1000; >

[PHP] On register_shutdown_function: What might be the problem?

2005-07-22 Thread Liang ZHONG
When the time_limit is set to 0, the redirect page will be shown in 20 second after the file ccc is created. When the time_limit is set to 5, the redirect page will be shown in 5 second and the ccc file is not created. The error from curl command line tool is as: ---

Re: [PHP] how to post a question?

2005-07-22 Thread Edward Vermillion
Chirantan Ghosh wrote: Hello Edward, I did try your approach in this page http://www.homecare1.biz/public_html/PHPsiteTest01.html with no avail. How would I find out if I have fopen wrappers enabled? This page is remote hosted ( Hosted by Godaddy.com who state I have PHP/MySQL enabled). COD

RE: [PHP] Is there a way to get a variable name as a string?

2005-07-22 Thread Daevid Vincent
> He wants a function that, if you put in $x, you get out 'x' > > For *ANY* $variable. > > There is no such function. > Usually the person asking it is doing something very > newbie-ish, and very wrong. Actually it's not either... Since you can't easily debug when generating XML, as malforme

RE: [PHP] Is there a way to get a variable name as a string?

2005-07-22 Thread Daevid Vincent
> What I was thinking with debug_backtrace() is that you could get the > information for the function that called the function you want the > variable name for, *reducing* the likelyhood of duplicate values, but > admitedly not eliminating it. > > You could also pass the name of the variable to

Re: [PHP] Re: Konqueror does not like my Website

2005-07-22 Thread Rick Emery
Quoting Michelle Konzack <[EMAIL PROTECTED]>: Am 2005-07-22 10:12:17, schrieb John Nichel: You mean the 'posting a totally non-php question to a php list' bug? Because the page is generated by a couple of PHP scripts and ONLY THIS PAGE is not working. So I was thinking there is a problem wi

[PHP] Re: gloabl & reference behavior question?

2005-07-22 Thread Surendra Singhi
"Richard Lynch" <[EMAIL PROTECTED]> writes: > The & operator is not, as far as I know, defined for an array assignment > operation. > > True, you can use & in the parameter list in some versions to keep PHP > from copying the whole array. But that does not legitimatize what you are > doing, I don

Re: [PHP] how to post a question?

2005-07-22 Thread Chirantan Ghosh
Hello Edward, I did try your approach in this page http://www.homecare1.biz/public_html/PHPsiteTest01.html with no avail. How would I find out if I have fopen wrappers enabled? This page is remote hosted ( Hosted by Godaddy.com who state I have PHP/MySQL enabled). CODE USED: === h

Re: [PHP] Konqueror does not like my Website

2005-07-22 Thread Matt Darby
The easiest way to fix this is to validate your output. Konqueror is likely more picky about correct code. Here is validator output: http://validator.w3.org/check?uri=http%3A%2F%2Fmichelle.konzack.home.tamay-dogan.homelinux.net%2Ftdlandmap%2F Michelle Konzack wrote: Hello *, I an developing

Re: [PHP] how to post a question?

2005-07-22 Thread Ryan A
Hey, Some more _dirty code_ as posted on http://php-php.com/a2ztips/test.php, http://www.dtcc.com/ThoughtLeadership/menu.htm'); $o=array("../dtcc.css","images/","/http","..http:"); $n=array("http://www.dtcc.com/dtcc.css","http://www.dtcc.com/ThoughtLeadersh ip/images/","http","http:"); $filename

Re: [PHP] how to post a question?

2005-07-22 Thread Edward Vermillion
Chirantan Ghosh wrote: Hi Edward, I would simply like to print the remote Menu page( http://www.dtcc.com/ThoughtLeadership/menu.htm ) in a new page. I did the Error report print because I had no idea for what reason my PHP code was working. The menu is used as a header as well(the root file

Re: [PHP] how to post a question?

2005-07-22 Thread Ryan A
Hey, The problem might be with your php settings, run phpinfo() and see if allow_url_fopen is set to ON heres where i uploaded what i did so far, little more needs to be done so that the mouseover images work: http://php-php.com/a2ztips/test.php The way I did it is in a *very very very dirty way*

Re: [PHP] how to post a question?

2005-07-22 Thread Chirantan Ghosh
Hi Ryan, I tried that first & also after you wrote with no avail. ( This should be very elemental) = http://www.dtcc.com/ThoughtLeadership/menu.htm'); echo $filename; ?> = I am trying this html in a local machine. I preview it Internet Explorer (which has access to net). Does it

Re: [PHP] how to post a question?

2005-07-22 Thread Ryan A
Hey, Getting the code from the remote site is easy enough, you just gotto find the images now, but heres something that should get you the basic code including the javascript: http://www.dtcc.com/ThoughtLeadership/menu.htm'); echo $filename; ?> once you have the code, start converting the relativ

Re: [PHP] Re: Konqueror does not like my Website

2005-07-22 Thread John Nichel
Michelle Konzack wrote: Am 2005-07-22 10:12:17, schrieb John Nichel: You mean the 'posting a totally non-php question to a php list' bug? Because the page is generated by a couple of PHP scripts and ONLY THIS PAGE is not working. So I was thinking there is a problem with the file-extension

Re: [PHP] Re: Konqueror does not like my Website

2005-07-22 Thread Duncan Hill
On Friday 22 July 2005 16:33, Michelle Konzack typed: > Am 2005-07-22 10:12:17, schrieb John Nichel: > > You mean the 'posting a totally non-php question to a php list' bug? > > Because the page is generated by a couple of PHP scripts and > ONLY THIS PAGE is not working. > > So I was thinking there

Re: [PHP] how to post a question?

2005-07-22 Thread Chirantan Ghosh
Hi Edward, I would simply like to print the remote Menu page( http://www.dtcc.com/ThoughtLeadership/menu.htm ) in a new page. I did the Error report print because I had no idea for what reason my PHP code was working. The menu is used as a header as well(the root file is JS which I can't use

Re: [PHP] how to post a question?

2005-07-22 Thread Pascual De Ruvo
You just did it On 7/22/05, Chirantan Ghosh <[EMAIL PROTECTED]> wrote: > > I was wondering how can I ask a question to the other subscribers? > >

Re: [PHP] how to post a question?

2005-07-22 Thread Nadim Attari
> Posting a question on how to post a question. Here it goes: http://www.collectionscanada.ca/obj/h9/f1/284-v3.jpg Just put your hand on top of it and say "ABRACADABRA" Nadim Attari -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Konqueror does not like my Website

2005-07-22 Thread Michelle Konzack
Am 2005-07-22 10:12:17, schrieb John Nichel: > You mean the 'posting a totally non-php question to a php list' bug? Because the page is generated by a couple of PHP scripts and ONLY THIS PAGE is not working. So I was thinking there is a problem with the file-extension *.php and Konqueror can not

Re: [PHP] Content Header

2005-07-22 Thread Matthew Weier O'Phinney
* "Richard Lynch" <[EMAIL PROTECTED]> : > On Thu, July 21, 2005 4:55 am, Chris Shiflett said: > > Christopher J. Umina wrote: > > > I currently have a script which streams data out of a MySQL database, > > > and prints the content headers correctly, however, when I use the > > > following line: > >

Re: [PHP] how to post a question?

2005-07-22 Thread Edward Vermillion
Chirantan Ghosh wrote: Hi Alan & Everybody who wasted time to read my 1st Letter, SORRY guys, I do deserve the scorn but it was genuine mistake I didn't want to post garbage bugging other people. I was under the impression that I was mailing to the HELP DESK( nonliving resp system). If you c

Re: [PHP] how to post a question?

2005-07-22 Thread Chirantan Ghosh
Hi Alan & Everybody who wasted time to read my 1st Letter, SORRY guys, I do deserve the scorn but it was genuine mistake I didn't want to post garbage bugging other people. I was under the impression that I was mailing to the HELP DESK( nonliving resp system). If you can, Please do help me in

Re: [PHP] how to post a question?

2005-07-22 Thread Alan Milnes
Chirantan Ghosh wrote: I was wondering how can I ask a question to the other subscribers? Try reading this first:- http://www.catb.org/~esr/faqs/smart-questions.html Alan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to post a question?

2005-07-22 Thread Ryan A
> I was wondering how can I ask a question to the other subscribers? Dude, when you figure it out let me know too... :-p -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Loading dynamic extension

2005-07-22 Thread Mathieu Dumoulin
Richard Lynch wrote: On Thu, July 21, 2005 12:17 pm, Mathieu Dumoulin said: 2. Further more, i can't seem to find a way to know from which path or drive my usbkey is operating. There is maybe something i missed somewhere that's why im asking. Anyone ever found something about the CLI current ru

[PHP] Remote HTM not printing via PHP

2005-07-22 Thread Chirantan Ghosh
Sorry Guys for the previous ignorant Q I thought I was emailing the Help desk, do forgive. I am trying to print a remote header menu in a html page without frames. The client side JS in located in this htm. ( http://www.dtcc.com/T

Re: [PHP] Konqueror does not like my Website

2005-07-22 Thread John Nichel
Michelle Konzack wrote: Hello *, I an developing a tool which let me scroll in a very big (some 1000 km²) topographical map. For testing I have installed a citymap of Offenburg/Germany but I get only en empty HTML-Page in Konqueror, but ist works in Mozilla, Firefox and InfernalExploder. The L

Re: [PHP] how to post a question?

2005-07-22 Thread eoghan
Shaw, Chris - Accenture wrote: Posting a question on how to post a question. :) you gotta start somewhere -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] how to post a question?

2005-07-22 Thread Shaw, Chris - Accenture
Posting a question on how to post a question. :) -Original Message- From: Chirantan Ghosh [mailto:[EMAIL PROTECTED] Sent: 22 July 2005 14:56 To: php-general@lists.php.net Subject: [PHP] how to post a question? * This e-mail has been received by the

[PHP] Re: how to post a question?

2005-07-22 Thread Michelle Konzack
Am 2005-07-22 09:55:47, schrieb Chirantan Ghosh: > I was wondering how can I ask a question to the other subscribers? - END OF REPLYED MESSAGE - Coucou... I can see your question. :-) Greetings Michelle -- Linux-User #280138 with the Linux Count

Re: [PHP] how to post a question?

2005-07-22 Thread John Nichel
Chirantan Ghosh wrote: I was wondering how can I ask a question to the other subscribers? Don't look know but, you just did. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

[PHP] Konqueror does not like my Website

2005-07-22 Thread Michelle Konzack
Hello *, I an developing a tool which let me scroll in a very big (some 1000 km²) topographical map. For testing I have installed a citymap of Offenburg/Germany but I get only en empty HTML-Page in Konqueror, but ist works in Mozilla, Firefox and InfernalExploder. The Link is:

[PHP] how to post a question?

2005-07-22 Thread Chirantan Ghosh
I was wondering how can I ask a question to the other subscribers?

RE: [PHP] RE: [SPAM 6.0] [PHP] Session help!?

2005-07-22 Thread Programmer
I did not specify all versions; older versions worked fine, but I.E. that shipped with WINXP, before any service packs had these issues. J -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, July 21, 2005 9:04 PM To: Programmer Cc: 'Richard Baldwin'; php-ge

Re: [PHP] Is there a way to get a variable name as a string?

2005-07-22 Thread Edward Vermillion
Richard Lynch wrote: [snip] PS It's true that your variable could/would/should appear in debug_backtrace, but how would you pick it out from all the other variables that would appear in your debug_backtrace? For that matter, it's in $_GLOBALS, but how would you pick it out? You could print

Re: [PHP] Affiliate Tracking [Management] program

2005-07-22 Thread Matt Darby
Eugene Voznesensky wrote: I' looking for free PHP/MySQL Affiliate Tracking [Management] program. Would appreciate any advice/idea fd. Have you looked over sourceforge.net? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with a home-grown function

2005-07-22 Thread André Medeiros
On Thu, 2005-07-21 at 13:37 -0700, Dan Trainor wrote: > Hello, all - > > I've been looking around for a function that would tell me if a $value > in a $key=>$value array was empty, and I could not find one. So I > decided to make my own. Even if I am re-inventing the wheel, I thought > that the

Re: [PHP] Re: PHP from CLI with SAPI

2005-07-22 Thread Richard Lynch
On Mon, July 18, 2005 1:49 pm, Fredrik Tolf said: > very huge undertaking. I realize that Apache is huge, but that's just > because it has so insanely many features -- an HTTP server in itself > shouldn't need to be very complex, the way I see it. There are innumerable other HTTP servers. Some of

Re: [PHP] Char encoding using fget or curl

2005-07-22 Thread Richard Lynch
On Mon, July 18, 2005 2:14 pm, Marcelo Volmaro said: > I need to get some information from a webpage, that is served as UTF-8. > I need that information because the page contains different language > characters. The problem is that no matter if I use fget or the CURL > libraries, i got the informat

Re: [PHP] Is there a way to get a variable name as a string?

2005-07-22 Thread Richard Lynch
On Mon, July 18, 2005 8:24 pm, Ryan A said: > I didnt totally understand you q in the beginning (and still dont fully), > but He wants a function that, if you put in $x, you get out 'x' For *ANY* $variable. There is no such function. Usually the person asking it is doing something very ne

Re: [PHP] Rasmus' 30 second AJAX Tutorial - [was Re: [PHP] AJAX & PHP]

2005-07-22 Thread Rasmus Lerdorf
Richard Lynch wrote: > On Thu, July 21, 2005 3:50 pm, Rasmus Lerdorf said: > >>I find a lot of this AJAX stuff a bit of a hype. Lots of people have >>been using similar things long before it became "AJAX". And it really > > > Call me silly, but... > > Didn't a LOT of us move a bunch of code t

Re: [PHP] Question about apache-php concurrent process control

2005-07-22 Thread Richard Lynch
On Tue, July 19, 2005 5:32 am, Liang ZHONG said: > It sounds interesting. But since I am pretty new to PHP, I have some > questions, naive maybe, about what you wrote. > > "#!/bin/sh\n/path/to/script/Send.php 12 &\n" > > What does the Send.php look like? I do not have idea how a shell > interprets

Re: [PHP] Question about apache-php concurrent process control

2005-07-22 Thread Rasmus Lerdorf
Read this chapter of the manual: http://www.php.net/manual/en/features.connection-handling.php Liang ZHONG wrote: > I now encounter a problem with flow control of my program with PHP. This > is very crucial to the design of a pretty big project. This is what I > want to do in the program: > > d

Re: [PHP] Ok, why is this happening...

2005-07-22 Thread Richard Lynch
On Tue, July 19, 2005 10:26 am, John Nichel said: > There's some freaky math going on there or something. I added a couple > of other echos in to see and for some reason it seems to be losing > single digit value (subtracting, rounding down, I don't know). > > $calculatedGross = $originalNet + (

Re: [PHP] Translating english into amglish

2005-07-22 Thread Richard Lynch
On Tue, July 19, 2005 1:12 pm, Murray @ PlanetThoughtful said: > I'm based in Australia but my blog is predominantly read by Americans. I'm > wondering if anyone knows of a class that will translate Australian / UK / > Canadian / Whathaveyou English spellings into their American English > equivalen

Re: [PHP] Tracking a mobile phone

2005-07-22 Thread Richard Lynch
On Mon, July 18, 2005 12:15 pm, Thomas said: > I was wondering if anybody has attempted to track a mobile phone through a > country. I know that this is usually more a case for the FBI . a friend of > mine is going on a 4 month bike tour and I would like to 'track' him for > locations. I thought of

Re: [PHP] Question about apache-php concurrent process control

2005-07-22 Thread Liang ZHONG
Thank you Richard, I think I'd better explain a little about the project and then you or somebody else might give some good suggestion upon the restrictions of the project. The project is to implement a digital library protocol, called oai_pmh (http://www.openarchives.org/OAI/openarchivesprot