Re: [PHP] redirecting some values from one page to other in php

2005-07-22 Thread Richard Lynch
On Wed, July 20, 2005 1:04 pm, Matt Darby said: babu wrote: It will become a big mess up for me if i combine all the files as they are large files. Scenario #1: Use include/require to suck in the files, when needed. Scenario #2: Use header(Location: ) to re-direct the browser to another file.

[PHP] Re: Character Encoding problem

2005-07-22 Thread Mike Magat
Are characters such as àâáâãäåèéêë and others like them considered UTF-8 characters? If it is considered UTF-8 characters, it still manages itself to be displayed correctly under ISO-8859-1. The page contains those type of characters and it is being displayed under ISO-8859-1. However, if I

Re: [PHP] Content Header

2005-07-22 Thread Richard Lynch
On Wed, July 20, 2005 7:32 am, Christopher J. Umina said: Hello! 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: header(Content-Disposition: attachment; filename=\. $filename .\);

Re: [PHP] Cannot modify header information error........usage of header method.

2005-07-22 Thread Richard Lynch
On Wed, July 20, 2005 10:15 am, babu said: I am using header method to redirect to a certain page.my first question is 1.Is there any other alternative to this method. 2.I am getting the error by using this method. the error is Cannot modify header information - headers already sent by. i

RE: [PHP] Combining recordsets

2005-07-22 Thread Richard Lynch
On Wed, July 20, 2005 10:02 am, Shaw, Chris - Accenture said: I recommend redesigning your query, the database can pull back the records you want far quicker than any frontend combining/processing, since that's what T-SQL and relational database were designed for. This is usually true, and

[PHP] Re: System specific information gathering

2005-07-22 Thread Jasper Bryant-Greene
Vidyut Luther wrote: Hello, I have a question on how to get Server side system specific information via PHP, or just general direction on how to parse some of the information found in /proc I just use file_get_contents() on the files in /proc. I would expect that would be a lot faster

Re: [PHP] checking for internet connection

2005-07-22 Thread Richard Lynch
On Wed, July 20, 2005 12:49 am, Steven said: I am looking for a simple way to check if the server is connected to the Internet, they use a dialup to get Internet connection, and I need to email reports out, but want to check to see if the user remembered to connect to the Internet first. If

Re: [PHP] More toroughly checking a script before execution

2005-07-22 Thread Markus Fischer
Richard Lynch wrote: On Thu, July 21, 2005 3:50 pm, Markus Fischer said: is there a way to have a more torough checking of PHP code before executing? Use E_ALL if you aren't already. Most people aren't because the default is E_ALL ~ E_NOTICE, which is a Big Mistake for a default, imnsho.

Re: [PHP] More toroughly checking a script before execution

2005-07-22 Thread Markus Fischer
Rasmus Lerdorf wrote: Sounds like you just need to turn on E_NOTICE. At least for your variable access stuff assuming your test case actually hits that part of the code. I was talking about finding the problems bevore executing the code. If you are talking about complete code coverage

Re: [PHP] Mail Function

2005-07-22 Thread Richard Lynch
On Tue, July 19, 2005 4:31 pm, Cabbar Duzayak said: I have a web site that is going to have around total of 10-20 thousand unique users, about 1000 unique hits per day on shared hosting. I have been using PHP's internal mail mechanism with the local smtp server on my hosting company, but it

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

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 an

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 equivalents?

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] 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: ?php

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 an php

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 to PHP

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 ?php $x = 5; ? 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

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 information

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] 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] 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] 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] 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] how to post a question?

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

[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:

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:

[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

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

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] 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

[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. (

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

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] 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 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 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

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:

[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] 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

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 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

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 is a

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

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: ?php $filename = file_get_contents('http://www.dtcc.com/ThoughtLeadership/menu.htm'); echo $filename; ? once you have

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) = ?php $filename = file_get_contents('http://www.dtcc.com/ThoughtLeadership/menu.htm'); echo $filename; ? = I am trying this html in a local machine. I preview it Internet Explorer

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

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

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, ?php $filename = file_get_contents('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

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 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: === table

[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't think.

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

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 the

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 malformed XML

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).

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

2005-07-22 Thread Liang ZHONG
?php set_time_limit(0); function f(){ $count=1000; for($i=0; $i$count; $i++){ } exec(touch /tmp/ccc); } register_shutdown_function('f'); header(Content-type: text/plain); header(Location: y.html); ? When the time_limit is set to 0, the redirect page will be shown

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: ?php set_time_limit(0); function f(){ $count=1000;

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

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

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

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. -- ramil

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