[PHP] __LINE__,__FILE__ + custom error handlers

2003-01-26 Thread electroteque
hi guys i am trying to create callback error functions handlers , i was wondering if there was a way to get the file and line caught in a error function say with a database abstraction query without having to explicitly put the line and number in the query function , at the moment if i put line

php-general Digest 26 Jan 2003 08:39:29 -0000 Issue 1845

2003-01-26 Thread php-general-digest-help
php-general Digest 26 Jan 2003 08:39:29 - Issue 1845 Topics (messages 133123 through 133161): Re: Minor email problem 133123 by: George E. Papadakis Re: Word Count 133124 by: George E. Papadakis Re: $object-function($parameter)-function(); 133125 by: Alex Re: a

Re: [PHP] __LINE__,__FILE__ + custom error handlers

2003-01-26 Thread Jason k Larson
from: http://www.php.net/manual/en/function.set-error-handler.php string set_error_handler ( callback error_handler) The user function needs to accept 2 parameters: the error code, and a string describing the error. From PHP 4.0.2, an additional 3 optional parameters are supplied: the filename

[PHP] Re: OO2relation mapping

2003-01-26 Thread Dominik Wittenbeck
I am targeting a more slim solution though, solving a very specialized problem. As a developer I simply hate needing to change a database table, splitting it up, to make it fit the customers needs. I causes all those SQL statement to be revised. With the oo2rel mapping layer I have put much

[PHP] Re: OO2relation mapping

2003-01-26 Thread Manuel Lemos
Hello, On 01/26/2003 02:59 AM, Dominik Wittenbeck wrote: Sounds most interesting (and far more ambicious, than what I had in mind). I'll probably do you wrong by not grasping the full extend of the project, but in short, did I get it right: XML2UML2ProgrammingLanguage Don't be mislead by

[PHP] Re: OO2relation mapping

2003-01-26 Thread Manuel Lemos
Hello, On 01/26/2003 03:20 AM, Dominik Wittenbeck wrote: I am targeting a more slim solution though, solving a very specialized problem. As a developer I simply hate needing to change a database table, splitting it up, to make it fit the customers needs. I causes all those SQL statement to be

[PHP] xtemplate windows

2003-01-26 Thread Cenk Uysal
hi, i try to run xtemplate on my windows machine but i get errors such like : undefined index main...(main is the name of block !-- BEGIN: main --) it seems it can not process blocks in template. theres no error in unix machine. does anyone knows the solution?

[PHP] Re: xtemplate windows

2003-01-26 Thread rush
Cenk Uysal [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi, i try to run xtemplate on my windows machine but i get errors such like : hi, I am not fluent with xtemplate, but it does not seems likely that your problem is related to windows. It could be that

[PHP] CRLF in file

2003-01-26 Thread Malcolm Brownell
Hello, I'm having trouble with /r/n when I try to write to a file. Here's my code ; The array I want to write - $ch =array( $SQL_HOST= $SQL_HOST, SQL_USER= $SQL_USER, SQL_PWD=$SQL_PWD); and the code I'm using to write the file $fp = fopen (newfig.txt, w); if (!($fp)) { print (ERROR file

[PHP] Problems to compile php (cvs)

2003-01-26 Thread Robert Mena
Hi, I usually fetch php from cvs a couple of times in order to try new features etc. Unfortunately since the beginning of this week I have been unable to compile, no matter what I do. I have been cvsing daily, buildconf and the same ./configure settings I have been using for ages. ./configure

[PHP] go to detail page problem

2003-01-26 Thread WMB
Hope Í'm at the right place to ask this question. Am using DMX and encounter following problem: Have a connection to a database with plenty of data. On a page which shows part of these records (10 max) I have a go to detail page action which works fine when called from the 1st 10 records, but

Re: [PHP] CRLF in file

2003-01-26 Thread Jason Wong
On Sunday 26 January 2003 22:13, Malcolm Brownell wrote: Hello, I'm having trouble with /r/n when I try to write to a file. It's \r\n that you want. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

RE: [PHP] xtemplate windows

2003-01-26 Thread John W. Holmes
i try to run xtemplate on my windows machine but i get errors such like : undefined index main...(main is the name of block !-- BEGIN: main --) it seems it can not process blocks in template. theres no error in unix machine. does anyone knows the solution? One solution would be to

[PHP] Perl Includes when executed with php....

2003-01-26 Thread Mike Morton
I have a perl script that needs to be executed using the exec command. This perl script had a use for another library. When executing this perl script from the consol - there is no problem - the library from the use is picked up from the proper directory (the included library is in the same

Re: [PHP] CRLF in file

2003-01-26 Thread Malcolm Brownell
awww geeze ! Thank you sir. Again I embarass myself and slink away On Mon, 27 Jan 2003 00:35:01 +0800, [EMAIL PROTECTED] (Jason Wong) wrote: On Sunday 26 January 2003 22:13, Malcolm Brownell wrote: Hello, I'm having trouble with /r/n when I try to write to a file. It's \r\n that

Re: [PHP] CRLF in file

2003-01-26 Thread Malcolm Brownell
Thank you Jason, If you'll bear with me for one more question -- The /\ fix did what I wanted but now the word Array appears before the first var -- the text file looks like this - Array$hostname = hostname $SQL_USER = username $SQL_PWD = dbpass I know this is php telling me the data is an

Re: [PHP] Problems to compile php (cvs)

2003-01-26 Thread Evan Nemerson
I'll bet you're trying to mix v4 and v5... Make sure you're using the latest anoncvs instructions, as they have changed recently... On Sunday 26 January 2003 07:52 am, Robert Mena wrote: Hi, I usually fetch php from cvs a couple of times in order to try new features etc. Unfortunately

Re: [PHP] CRLF in file

2003-01-26 Thread Jason Wong
On Monday 27 January 2003 01:27, Malcolm Brownell wrote: Thank you Jason, If you'll bear with me for one more question -- The /\ fix did what I wanted but now the word Array appears before the first var -- the text file looks like this - Array$hostname = hostname $SQL_USER = username

[PHP] human language detection

2003-01-26 Thread Marco Bleeker
Hi, I am creating a bilingual website (Dutch and English) and I wonder how I would best detect the human language of a visitor. I am attempting several things, but I am sure there must be a generally accepted alternative. Can anyone point me to more info? I am tinkering around with

[PHP] Using MySQL user variables in PHP

2003-01-26 Thread Jim MacCormaic
I'm currently developing a PHP/MySQL project, one aspect of which involves displaying a default set from the database which picks out all records for whichever individual is associated with the most recent date. I know this is a very general description, but I don't think it's necessary to

Re: [PHP] human language detection

2003-01-26 Thread Jason Wong
On Monday 27 January 2003 01:39, Marco Bleeker wrote: Hi, I am creating a bilingual website (Dutch and English) and I wonder how I would best detect the human language of a visitor. I am attempting several things, but I am sure there must be a generally accepted alternative. Can anyone point

Re: [PHP] Using MySQL user variables in PHP

2003-01-26 Thread Jason Wong
On Monday 27 January 2003 01:51, Jim MacCormaic wrote: I'm currently developing a PHP/MySQL project, one aspect of which involves displaying a default set from the database which picks out all records for whichever individual is associated with the most recent date. I know this is a very

[PHP] Combine 3 MySql rows into one PHP output row ?

2003-01-26 Thread CF High
Hey all. I'm a recent PHP convert (coming from Cold Fusion).. Here's the deal: I've got a table that contains hockey game result info; for each goal scored I record the goal scorer ID (i.e. their Jersey Number), and assist1 and assist2 IDs if applicable. When I output the game box

RE: [PHP] Using MySQL user variables in PHP

2003-01-26 Thread John W. Holmes
I'm currently developing a PHP/MySQL project, one aspect of which involves displaying a default set from the database which picks out all records for whichever individual is associated with the most recent date. I know this is a very general description, but I don't think it's necessary to

RE: [PHP] Using MySQL user variables in PHP

2003-01-26 Thread Mark Charette
-Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] 2. $tempQuery1 = SELECT @most_recent:=MAX(date) from presenters; $tempQuery2 = SELECT @recent_presenter:=presenter FROM presenters WHERE date=@most_recent; $presenterQuery =

Re: [PHP] Using MySQL user variables in PHP

2003-01-26 Thread Jim MacCormaic
On Sunday, January 26, 2003, at 06:26 pm, Jason Wong wrote: You're not doing anything with $tempQuery1 $tempQuery2 this is complete nonsense ;-) Bowing obsequiously, suitably chastened, I read on . . . This is getting closer. Unfortunately you haven't been reading the manual.

Re: [PHP] Using MySQL user variables in PHP

2003-01-26 Thread Jason Wong
On Monday 27 January 2003 02:36, Mark Charette wrote: -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] 2.$tempQuery1 = SELECT @most_recent:=MAX(date) from presenters; $tempQuery2 = SELECT @recent_presenter:=presenter FROM

Re: [PHP] Masive mail Advice

2003-01-26 Thread Maciek Ruckgaber Bielecki
Thanks a lot for your sugestions guys, and i'll have a look into phpMail and write a prototype keeping in mind your advice about the size of chunks and use of sleep. Just let me bother you a little bit more if i run into trouble Michael ;-) Thanks again guys !

[PHP] Predefined Variables In Classes

2003-01-26 Thread @ Nilaab
Hello Everyone, I am a little confused. Why do predefined variables like $PHP_SELF or $DOCUMENT_ROOT not process within a class, in the methods secifically. For example: ?php class someClass { function someFunction () { $root = $DOCUMENT_ROOT; return $root; } function

Re: [PHP] Predefined Variables In Classes

2003-01-26 Thread Philip Olson
Read: http://www.php.net/variables.scope Also note that $_SERVER is an autoglobal. Regards, Philip On Sun, 26 Jan 2003, @ Nilaab wrote: Hello Everyone, I am a little confused. Why do predefined variables like $PHP_SELF or $DOCUMENT_ROOT not process within a class, in the methods

[PHP] Problem solved

2003-01-26 Thread WMB
Just in case someone wants to know : I had to uncheck the passing parameters in the go to detailpage parameter box! Martin Wmb [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... | Hope Í'm at the right place to ask this question. | | Am using DMX and encounter

[PHP] Java call on object causes segfault.

2003-01-26 Thread John Wells
Working on getting Java integration going. I was able to get it to work with the online example and can create an object of java.lang.System and print various properties returned from there. However, if I create my own class, I can instantiate it, but if I call a method on that class it causes a

[PHP] PHP And Apache

2003-01-26 Thread Beogradjanin
Zdravo php-general, Hi I'm having ptoblem how do I aneble PHP on apache..?? I've read Hot to install but Apche changed httpd.conf on new version of Apache server. Help Thanks +++Info About this E-mail+ +Poruka je napisana u 12:45:19 + +Dana Sunday, January 26,

php-general Digest 26 Jan 2003 20:47:35 -0000 Issue 1846

2003-01-26 Thread php-general-digest-help
php-general Digest 26 Jan 2003 20:47:35 - Issue 1846 Topics (messages 133162 through 133192): Re: __LINE__,__FILE__ + custom error handlers 133162 by: Jason k Larson Re: OO2relation mapping 133163 by: Dominik Wittenbeck 133164 by: Manuel Lemos 133165 by:

[PHP] can't write and read on/from a file - Apache.exe access error

2003-01-26 Thread phplam
Hello ! I'm in a mess. Please help me. Every time I tried to write with fwrite or fputs in a file, I get an error on windows nt sp6 , ie6 from Doc. Watson saying that Apache.exe makes an application access error . Filesystem functions: is_readable, is_writable,fopen,fclose are ok . I can create,

Re: [PHP] Java call on object causes segfault.

2003-01-26 Thread Philip Olson
Whenever you get a segfault, try the latest stable release and during compile be sure to use --enable-debug : http://snaps.php.net/ If the segfault exists here, write a bug report and include the backtrace: http://bugs.php.net/how-to-report.php http://bugs.php.net/ This will be of great

Re: [PHP] Java call on object causes segfault.

2003-01-26 Thread John Wells
Philip, Thanks. I did submit a bug report and also compiled with debug. That's where the backtrace captured in my email came from. If you'd like to veiw the bug report, it can be found at: http://bugs.php.net/bug.php?id=21881 I'll try 4.3.0 and see what happens. I was holding back because I

RE: [PHP] Predefined Variables In Classes

2003-01-26 Thread @ Nilaab
Well, I don't think this has anything to do with predefined variables being global or not because I only have use for them within the specific methods. The methods will capture their values and assign them to a variable inside the function, which will return that variable at the end. The

[PHP] Re: Masive mail Advice

2003-01-26 Thread Manuel Lemos
Hello, On 01/26/2003 02:17 AM, Maciek Ruckgaber Bielecki wrote: I'll start to write an application which will be used to send large amounts of mail to users in a DB. All these mails to be sent shoul be personalized. Since i understand, and please correct me if im wrong, the mail() function is

RE: [PHP] Predefined Variables In Classes

2003-01-26 Thread John W. Holmes
Well, I don't think this has anything to do with predefined variables being global or not because I only have use for them within the specific methods. The methods will capture their values and assign them to a variable inside the function, which will return that variable at the end. The

RE: [PHP] Predefined Variables In Classes

2003-01-26 Thread @ Nilaab
John, YES! That's what I was looking for. Thanks for the explaination. It helps a great deal. I had $_SERVER['DOCUMENT_ROOT'] work for me. But I'm still struggling with $_SERVER['PHP_SELF'], because it's not returning anything. So here's the second part to my question stated earlier. Let's say,

[PHP] Re: Mass Mailing

2003-01-26 Thread Manuel Lemos
Hello, On 01/23/2003 02:40 AM, Jonathan Chum wrote: Anyway, the problem of personalizing messages is that makes your mailings take much longer to generate and queue because you need to create separate message for each recipient. I'm weighing down personalization and enveloping for this

RE: [PHP] Predefined Variables In Classes

2003-01-26 Thread @ Nilaab
Nevermind John, it worked! I had $_SERVER['PHP_SELF'] spelled as $SERVER['PHP_SELF']. I appreciate your help! :P -Original Message- From: @ Nilaab [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 26, 2003 4:01 PM To: Php-General Subject: RE: [PHP] Predefined Variables In Classes

RE: [PHP] Re: Masive mail Advice

2003-01-26 Thread Mark Charette
-Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED]] That number of messages is small and with today's servers you can queue that volume of personalized is less than a minute. Your problems will start as you enter in the tens of thousands of recipients, not because qmail

[PHP] Session Variables

2003-01-26 Thread Jed R. Brubaker
I have a quirky problem that should be a breeze for someone who is smarter than I. I have a script where I am registering a HTML form post variable as a session variable and then echo it. In the real script I use it in a MySQL query, but for the sake of this post, here is the script: $user1 =

Re: [PHP] Re: Masive mail Advice

2003-01-26 Thread Manuel Lemos
Hello, On 01/26/2003 08:22 PM, Mark Charette wrote: -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED]] That number of messages is small and with today's servers you can queue that volume of personalized is less than a minute. Your problems will start as you enter in the

[PHP] human language detection

2003-01-26 Thread Marco Bleeker
Hi, I am creating a bilingual website (Dutch and English) and I wonder how I would best detect the human language of a visitor. I am attempting several things, but I am sure there must be a generally accepted alternative. Can anyone point me to more info? I am tinkering around with

[PHP] human language detection?

2003-01-26 Thread Marco Bleeker
Hi, I am creating a bilingual website (Dutch and English) and I wonder how I would best detect the human language of a visitor. I am attempting several things, but I am sure there must be a generally accepted alternative. Can anyone point me to more info? I am tinkering around with

RE: [PHP] Re: Masive mail Advice

2003-01-26 Thread Mark Charette
-Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED]] On 01/26/2003 08:22 PM, Mark Charette wrote: -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED]] That number of messages is small and with today's servers you can queue that volume of

Re: [PHP] Re: Masive mail Advice

2003-01-26 Thread Manuel Lemos
On 01/26/2003 09:25 PM, Mark Charette wrote: That number of messages is small and with today's servers you can queue that volume of personalized is less than a minute. Your problems will start as you enter in the tens of thousands of recipients, not because qmail won't handle it but because that

Re: [PHP] human language detection?

2003-01-26 Thread Davy Obdam
Hi Marco. Try the HTTP_USER_ACCEPT_LANGUAGE variable. It simply detects the language of the visitors browser. It wouldnt work for my cause i use an english version of Mozilla (i am dutch too), although 90% of the dutch visitors probably uses MSIE in dutch eh;-) Best regards, Davy Obdam

[PHP] Transition Page?

2003-01-26 Thread Lee Herron
I'm interested in how most would create a transition page.. I have an upload process that takes a bit before it changes the page displayed on the browser. I would like to create a transition page [Uploading Now .. please standby] that would refresh to a result page once the upload is done. Now

[PHP] I'm new in PHP

2003-01-26 Thread Beogradjanin
Zdravo php-general, Hi I have setup PHP Apache MySql. I;m new in this stuff where can I learn hot to make web pages in PHP...??? +++Info About this E-mail+ +Poruka je napisana u 16:24:13 + +Dana Sunday, January 26, 2003 + +Files in this E-mail massage+ +none

Re: [PHP] I'm new in PHP

2003-01-26 Thread Philip Olson
On Sun, 26 Jan 2003, Beogradjanin wrote: Zdravo php-general, Hi I have setup PHP Apache MySql. I;m new in this stuff where can I learn hot to make web pages in PHP...??? Go here: Learn HTML http://www.w3schools.com/html/ Learn SQL http://www.w3schools.com/sql/

Re: [PHP] I'm new in PHP

2003-01-26 Thread Andy Turegano
www.htmlgoodies.com - The best site for HTML On Mon, 27 Jan 2003, Philip Olson wrote: On Sun, 26 Jan 2003, Beogradjanin wrote: Zdravo php-general, Hi I have setup PHP Apache MySql. I;m new in this stuff where can I learn hot to make web pages in PHP...??? Go here:

[PHP] Nesting level too deep

2003-01-26 Thread Sascha Alexander Jopen
Hi, i installed php-4.3.0 on apache 2.0.34. but whenever i try to display a php script i got a PHP Fatal error: Nesting level too deep - recursive dependency? in Unknown on line 0 Even the simplest document leads to this error: index.php ?php header(LOCATION: ../login.php); ? i know these

[PHP] Re: Session Variables

2003-01-26 Thread Bobby Patel
This variable is registered in the Session, and the variable isn't active until the page refreshes. It's hard to explain. I thought I would try. There are some things you can do. If you need the variable right away, you can do this: if (isset($HTTP_SESSION_VARS[user1])) { $user1 =

Re: [PHP] Transition Page?

2003-01-26 Thread Chris Shiflett
--- Lee Herron [EMAIL PROTECTED] wrote: I'm interested in how most would create a transition page.. One thing you might consider is using flush() to output what you have so far to the browser rather than sending them to another page when you're done. An example of something to output might be:

RE: [PHP] Transition Page?

2003-01-26 Thread @ Nilaab
Hello Lee :) Well, there is one way that I know of that some people might overlook. What you can do is use CSS positioning and set the Uploading Now message (Whether it's text, an image, a flash file, etc.) BEHIND the result page by setting the z-index value of the Uploading Now message to a

RE: [PHP] I'm new in PHP

2003-01-26 Thread @ Nilaab
Beogradjanin, In addition to Philip's links, don't forget that PHP works great with the MySQL database. If you plan to use MySQL, then go to the following for great tutorials: http://www.mysql.com Remember, PHP can be as creative as you want to be. If you need any help with anything else,

Re: [PHP] Transition Page?

2003-01-26 Thread Lee Herron
I'm interested in how most would create a transition page.. One thing you might consider is using flush() to output what you have so far to the browser rather than sending The problem I'm having is that the uploading of the file takes time, and the screen simply sits there while this is being

[PHP] Installation problem

2003-01-26 Thread Jean-Christian Imbeault
I've installed PHP and Apache countless times but it seems I have forgotten something somehow because I can't for the life of me get apache to install PHP as a static module. Argh ...! I'm trying to get PHP 4.3.0, Apache 1.3.27, openssl-0.9.7, mod_ssl-2.8.12-1.3.27 all working together but to

[PHP] Re: Files PHP in tmp ?

2003-01-26 Thread Max Tappenden
Are they things like php45a45s879a787g54a21s3a12g3a21s31a3a? If so, yup i know the feeling 297,548,197 of them using up 128GB of storage on my HD! Don't worry They're just sessions Oh and don't worry Unless your site is a huge wooper with 500,000 - 1,000-,000 users loggin in a day, you won't get

[PHP] Making a file manager with PHP?

2003-01-26 Thread Max Tappenden
Hello there. Basically I'm trying to make a file manager with PHP. Here's what I need to do Ok I have artists and coders working for my site No FTP I want them to be able to upload/download files from me as and when they please without having to email me the files The files that will be

[PHP] Re: How do you update multiple rows at the same time?

2003-01-26 Thread Max Tappenden
You on MySQL? If so do this UPDATE tblName SET firstcol = '$var41stcol', $secondcol = '$var42ndcol' and so on Steve Jackson [EMAIL PROTECTED] wrote in message 01c2c3a0$27591b50$[EMAIL PROTECTED]">news:01c2c3a0$27591b50$[EMAIL PROTECTED]... I am having trouble with this. I need to update

Re: [PHP] total file size

2003-01-26 Thread Max Tappenden
It can be done with ASP and JSP. ROFLMFAO! No it shouldn't be reported to their bugs database! It's not a bug! It just isn't a feature of PHP! You could suggest it to them though... Victor [EMAIL PROTECTED] wrote in message

[PHP] Re: I'm new in PHP

2003-01-26 Thread Max Tappenden
www.php.net/manual Beogradjanin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Zdravo php-general, Hi I have setup PHP Apache MySql. I;m new in this stuff where can I learn hot to make web pages in PHP...??? +++Info About this E-mail+