[PHP] wrong value from define

2004-12-29 Thread Arthur
Hi, in the following code, i want to get a constant value from config.php. I don't receive the value, that is defined, but the name of the constant. I tested the defines in config.php by echoing all defines, and it was allright, so i'm quite confused why it doesn't work here. That's my piece of

Re: [PHP] wrong value from define

2004-12-29 Thread Richard Davey
Hello Arthur, Wednesday, December 29, 2004, 12:37:30 PM, you wrote: A That's my piece of code (which is in a class in a file which is in the same A dir as config.php): A function reg($name, $pw, $ally, $act) { A include('config.php'); A echo(DB_SERV_NAME . 'br'); A $dbp =

[PHP] RE: help with PEAR and SOAP

2004-12-29 Thread Jones, Douglas 1
Greg, The code that you gave seems like it would work...only I'm not sure how I can reformat the result before it gets sent back to the soap client. For instance, I have a function that simply builds a string containing XML and returns that. I wrap this function in a class. The constructor

Re: [PHP] Arrays

2004-12-29 Thread Brent Baisley
You can absolutely use arrays as form field names. They allow great flexibility. Although you wouldn't use quotes for the array keys. So your form field name would be something like: att[keyname] While in PHP, the same array would look like: $att['keyname'] Your array id's are consider keys

Re: [PHP] MySQL Database type

2004-12-29 Thread Brent Baisley
It depends on what you are trying to do. If you need full text searching, MyISAM is what you should be using. If you are doing transactions, InnoDB is what you probably want to use. If you write a lot to the database, InnoDB may be better, if you read a lot MyISAM may be better. But that

RE: [PHP] cURL and line breaks

2004-12-29 Thread Mike Johnson
From: Andrew Kreps [mailto:[EMAIL PROTECTED] Are you talking about the variable you're POSTing? Does it make a difference if you urlencode the form var? Have you tried debugging from the server end to see what cURL is passing over? I use cURL quite a bit, although I've never tried passing

Re: [PHP] PEAR DB vs ADODB

2004-12-29 Thread Matthew Weier O'Phinney
* [EMAIL PROTECTED] [EMAIL PROTECTED]: Haven't done much with either of them, besides reading docs, but I'd lean towards ADODB for its exception handling(with php5), if you need error handling. Having that said, I haven't really a clue what I'm talking about in this regard, so I'll be

Re: [PHP] Destroying session data

2004-12-29 Thread Jason Barnett
this might be coming into play: http://us4.php.net/session session.gc_maxlifetime integer session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and cleaned up. Okay, lemme see if I understand how it works. Even if it sees it as garbage, it will

[PHP] Re: Interfaces and Access Levels

2004-12-29 Thread Jason Barnett
Gerard Samuel wrote: I would like bar::do_something_internal() to have an access level of *private* But this would fail, as the interface can only have *public* methods. Is there a way to get bar::do_something_internal() to be private? Or am I SOL, and it has be public? Thanks interface foo {

[PHP] Re: wrong value from define

2004-12-29 Thread Daniel Schierbeck
Arthur wrote: Hi, in the following code, i want to get a constant value from config.php. I don't receive the value, that is defined, but the name of the constant. I tested the defines in config.php by echoing all defines, and it was allright, so i'm quite confused why it doesn't work here. That's

Re: [PHP] How to enable TTF extension

2004-12-29 Thread John Nichel
Viet Hung wrote: Hi all, I'm testing an PHP application, this application requires TTF extension. Please help me a way to configure PHP enabling TTF extension. I have to download install which application/module to configure successfully. I'm using Linux OS (FC3). Any help will be appreciated

[PHP] Which Version To Get?

2004-12-29 Thread GH
Greetings I am about to launch on the mission to install PHP4 on my Laptop running Win XP Pro SP2. When I go to the download page of the PHP.net website I am presented with the following for windows PHP 4.3.10 Windows Binaries All Windows binaries can be used on Windows 98/Me and on

Re: [PHP] Which Version To Get?

2004-12-29 Thread Richard Davey
Hello GH, Wednesday, December 29, 2004, 3:20:15 PM, you wrote: G I am about to launch on the mission to install PHP4 on my Laptop G running Win XP Pro SP2. G PHP 4.3.10 zip package [7,405Kb] - 15 Dec 2004 Get this one. Sure it doesn't come with an installer, but you don't need one anyway.

Re: [PHP] Re: Interfaces and Access Levels

2004-12-29 Thread Gerard Samuel
Jason Barnett wrote: Gerard Samuel wrote: I would like bar::do_something_internal() to have an access level of *private* But this would fail, as the interface can only have *public* methods. Is there a way to get bar::do_something_internal() to be private? Or am I SOL, and it has be public?

Re: [PHP] Which Version To Get?

2004-12-29 Thread GH
However, I have IIS on this box NOT Apache On Wed, 29 Dec 2004 15:51:26 +, Richard Davey [EMAIL PROTECTED] wrote: Hello GH, Wednesday, December 29, 2004, 3:20:15 PM, you wrote: G I am about to launch on the mission to install PHP4 on my Laptop G running Win XP Pro SP2. G PHP

Re: [PHP] Re: Interfaces and Access Levels

2004-12-29 Thread Jason Barnett
[After thought] I was proof reading my reply, and the thought occured to me, that I can have the so called common code be an abstract class, that contains the neccessary methods for the *contract*. Well that thought, just blew away my reply ;) Indeed... because this is what abstract classes are

Re: [PHP] Which Version To Get?

2004-12-29 Thread Jason Barnett
Gh wrote: However, I have IIS on this box NOT Apache It doesn't matter. It's not terribly difficult to set up PHP and the extensions are well worth the download. Almost guaranteed that once you take PHP out for a spin there will be a few extensions that start grabbing your attention... --

[PHP] multithread extension issue

2004-12-29 Thread Kevin Avila
i have a question about muli-threaded PHP. I have a few custom extentions I am loading, everything works great in the main thread, if I spawn a new thread, my extentions are still loaded and active, but thier functions don't get loaded int the function table for the secondary thread. is there

Re[2]: [PHP] Which Version To Get?

2004-12-29 Thread Richard Davey
Hello GH, Wednesday, December 29, 2004, 3:53:55 PM, you wrote: G However, I have IIS on this box NOT Apache So stop the IIS service and get a decent web server installed then. Or if you must keep it (and unless you need parallel ASP development, there is no good reason), still get that version

Re: [PHP] Which Version To Get?

2004-12-29 Thread GH
So going to the ZIP though a harder install will be the best bet? On Wed, 29 Dec 2004 11:04:11 -0500, Jason Barnett [EMAIL PROTECTED] wrote: Gh wrote: However, I have IIS on this box NOT Apache It doesn't matter. It's not terribly difficult to set up PHP and the extensions are well

[PHP] Installing on Windows.... CGI v. ISAPI?

2004-12-29 Thread GH
#1 what is ISAPI? #2 which method is better to install PHP with IIS? ISAPI or CGI? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_FILE[user][error] = 6 ?

2004-12-29 Thread Christopher Fulton
It may help to know what your form looks like. Does your form have the hidden MAX_FILE_SIZE variable before the file field? Also, what version of PHP are you running? Anyways, just some suggestions. -Chris On Tue, 28 Dec 2004 15:18:16 -0500, Al [EMAIL PROTECTED] wrote: I keyed

[PHP]

2004-12-29 Thread Tony Di Croce
I am relatively new to web development, but I have been a C/C++ programmer now for about 9 years... So far, I really love PHP... It just makes web development so much more convenient... But I sometimes wonder why so much server side work is done with intrpreted scripting languages... Why haven't

Re: [PHP] Installing on Windows.... CGI v. ISAPI?

2004-12-29 Thread John Holmes
GH wrote: #2 which method is better to install PHP with IIS? ISAPI or CGI? ISAPI... no idea what it stands for though, but installing PHP that way will make it a module within the server instead of an .exe file that's loaded with each PHP request... -- ---John Holmes... Amazon Wishlist:

Re: [PHP] layers

2004-12-29 Thread Fernando Gutierrez
a css maillist http://css-discuss.incutio.com/ On Wed, 22 Dec 2004 06:53:47 -0600, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] The problem I am having doesn't exactly use PHP but, if you guys would help me out anyways, I would be very greatful. [/snip] There is a great maililng list at

Re: [PHP] Installing on Windows.... CGI v. ISAPI?

2004-12-29 Thread Frank M. Kromann
Hi, Though the ISAPI version is getting more stable it's still not as stable as the CGI version. As an alternative to CGI you can use FastCGI. It installs a module in the IIS web server and will preload a number of PHP processes. This will make the web requests perform almost as fast as the

[PHP] Calendar Script

2004-12-29 Thread Joe Harman
Hello, I just finished writing a basic calendar script... I wanted to pass it out to everyone here... maybe someone could use it... or, even better optimize it.. .and maybe share that with me. ?php function Cal_Month(){// Get Today's Date$todays_date = getdate();// Determine what month

[PHP] Calendar Script

2004-12-29 Thread Joe Harman
Hello, I just finished writing a basic calendar script... I wanted to pass it out to everyone here... maybe someone could use it... or, even better optimize it.. .and maybe share that with me. ?php function Cal_Month(){// Get Today's Date$todays_date = getdate();// Determine what

Re: [PHP] Installing on Windows.... CGI v. ISAPI?

2004-12-29 Thread Greg Donald
On Wed, 29 Dec 2004 11:27:35 -0500, GH [EMAIL PROTECTED] wrote: #1 what is ISAPI? Internet/Information Services Application Programming Interface -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] $_FILE[user][error] = 6 ?

2004-12-29 Thread Greg Donald
What is a $_FILE[user][error]= 6 It appears undefined per the manual: http://www.php.net/manual/en/features.file-upload.errors.php -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP]

2004-12-29 Thread Greg Donald
On Wed, 29 Dec 2004 08:35:28 -0800, Tony Di Croce [EMAIL PROTECTED] wrote: Their must be a good reason this has never been done (or has it?). Caching systems aside, the compile time would be the first major issue to overcome. Having a C/C++ background, why not take a stab at it? Might land you

[PHP] installing php5 with mysql

2004-12-29 Thread blackwater dev
Hello, I am trying to install the php5 to my fedora box and I am using a php5/mysql rpm. The rpm keeps complaining that it can't find libmysql.so.14. I have tried to upgrade my mysql to 4.1...where can I get just this file? Thanks! -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: installing php5 with mysql

2004-12-29 Thread blackwater dev
sorry, I meant libmysqlclient.so.14 On Wed, 29 Dec 2004 15:02:06 -0500, blackwater dev [EMAIL PROTECTED] wrote: Hello, I am trying to install the php5 to my fedora box and I am using a php5/mysql rpm. The rpm keeps complaining that it can't find libmysql.so.14. I have tried to upgrade my

[PHP] Installing PHP 4.3 on Windows XP with SP2 and IIS

2004-12-29 Thread GH
I am trying to install php 4.3 on Windows XP Pro SP2 w/ IIS ... (please dont kill me :-)) I am doing it via ISAPI, I am up to the step in the instruction sheet that says Under Home Directory, click on the 'configuration' button. Add a new entry to the Application Mappings. Use the path to the

[PHP] 4.3.10 mySQL

2004-12-29 Thread GH
Hi all I just installed PHP MySql on my laptop together with IIS (go ahead and boo)... I just ran a ?PHP phpinfo(); ? script to test that the server was working and got a strange result it says that I have version 3.23.49 when I have 4.1.8 of mysql installed on the machine... what

Re: [PHP] 4.3.10 mySQL

2004-12-29 Thread John Nichel
GH wrote: Hi all I just installed PHP MySql on my laptop together with IIS (go ahead and boo)... I just ran a ?PHP phpinfo(); ? script to test that the server was working and got a strange result it says that I have version 3.23.49 when I have 4.1.8 of mysql installed on the machine...

Re: [PHP] $_FILE[user][error] = 6 ?

2004-12-29 Thread Curt Zirzow
* Thus wrote Al: What is a $_FILE[user][error]= 6 I can't find Error level 6 in the manual or on Google. Here is my files array: [userfile] = Array ( [name] = Readme.txt [type] = [tmp_name] = [error] = 6 [size] = 0

[PHP] Re: 4.3.10 failure

2004-12-29 Thread Ben
PaulWB wrote: My advise to everyone is not to install this version, the problems is creates are worse than the ones it fixed, a website with a few security wholes is better than no website. No website is better than a website with security holes, especially from the perspective of your fellow

Re: [PHP] $_FILE[user][error] = 6 ?

2004-12-29 Thread Curt Zirzow
* Thus wrote Greg Donald: What is a $_FILE[user][error]= 6 It appears undefined per the manual: http://www.php.net/manual/en/features.file-upload.errors.php It will show up shortly, the entry will be something like: UPLOAD_ERR_NO_TMP_DIR Value: 6; Missing a temporary folder.

[PHP] czirzow@gmail.com

2004-12-29 Thread Curt Zirzow
asdf Curt -- Quoth the Raven, Nevermore. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] wrong value from define

2004-12-29 Thread Arthur
Hello Arthur, Wednesday, December 29, 2004, 12:37:30 PM, you wrote: A That's my piece of code (which is in a class in a file which is in the same A dir as config.php): A function reg($name, $pw, $ally, $act) { A include('config.php'); A echo(DB_SERV_NAME . 'br'); A $dbp =

Re: [PHP] Installing PHP 4.3 on Windows XP with SP2 and IIS

2004-12-29 Thread Richard Davey
Hello GH, Wednesday, December 29, 2004, 9:22:08 PM, you wrote: G anyone have advice --- please dont tell me to get Apache :-P You'd have none of these issues if you did. Apache even has a pretty installer. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services

[PHP] Re: czirzow@gmail.com

2004-12-29 Thread Jason Barnett
Curt Zirzow wrote: asdf Attention Spammers: Die Fast! -- Teach a person to fish... Ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html PHP Manual: http://php.net/manual/ php-general archives: http://marc.theaimsgroup.com/?l=php-generalw=2 -- PHP General Mailing List

Re: [PHP] Installing PHP 4.3 on Windows XP with SP2 and IIS

2004-12-29 Thread GH
Well actually it now works just took a bit of rest and relaxing :) On Wed, 29 Dec 2004 22:18:25 +, Richard Davey [EMAIL PROTECTED] wrote: Hello GH, Wednesday, December 29, 2004, 9:22:08 PM, you wrote: G anyone have advice --- please dont tell me to get Apache :-P You'd have none

[PHP] czirzow@yahoo.com

2004-12-29 Thread Curt Zirzow
asdf Curt -- Quoth the Raven, Nevermore. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP]

2004-12-29 Thread Andrew Kreps
On Wed, 29 Dec 2004 08:35:28 -0800, Tony Di Croce [EMAIL PROTECTED] wrote: So far, I really love PHP... It just makes web development so much more convenient... But I sometimes wonder why so much server side work is done with intrpreted scripting languages... Why haven't languages been

[PHP] Re: High-quality web design and programming

2004-12-29 Thread NiTeHaWK
Stephen Poley wrote: On 12 Dec 2004 02:23:01 -0800, [EMAIL PROTECTED] (CNA Programming Group) wrote: If you want to make a high-quality website fast and for a reasonable price - this offer is for you. Portfolio can be seen at http://www.actionwebstudio.com/portfolio.php High-quality eh? Well ...

Re: [PHP] Re: czirzow@gmail.com

2004-12-29 Thread Curt Zirzow
* Thus wrote Jason Barnett: Curt Zirzow wrote: asdf Attention Spammers: Die Fast! heh.. that was funny, i was wondering where those two emails went... :) Curt -- Quoth the Raven, Nevermore. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: High-quality web design and programming

2004-12-29 Thread John Nichel
NiTeHaWK wrote: Stephen Poley wrote: On 12 Dec 2004 02:23:01 -0800, [EMAIL PROTECTED] (CNA Programming Group) wrote: If you want to make a high-quality website fast and for a reasonable price - this offer is for you. Portfolio can be seen at http://www.actionwebstudio.com/portfolio.php

[PHP] build list of available functions and classes

2004-12-29 Thread dAniel hAhler
Hello, for the purpose of automatically building a syntax highlighting file for jEdit I wanted to write a script that does this automatically by retrieving http://php.net/quickref.php and extracting it. Unfortunately the syntax for the function names there is not trivial. For example, the

[PHP] Re: build list of available functions and classes

2004-12-29 Thread Matthew Weier O'Phinney
* dAniel hAhler [EMAIL PROTECTED]: for the purpose of automatically building a syntax highlighting file for jEdit I wanted to write a script that does this automatically by retrieving http://php.net/quickref.php and extracting it. Unfortunately the syntax for the function names there is not

[PHP] Align pic

2004-12-29 Thread Labunski
Sorry for posting this here, but this is only newsgroup I'm using, and I can't solve simple HTML problem. yeah, it's funny, but still.. ;) I need to center image on the blank screen without using javascript. - so I wrote: table width=100% height=100% tr td width=100% height=100% align=center

[PHP] Re: Align pic

2004-12-29 Thread Jonathan
table align=center Labunski [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sorry for posting this here, but this is only newsgroup I'm using, and I can't solve simple HTML problem. yeah, it's funny, but still.. ;) I need to center image on the blank screen without using

Re: [PHP] Align pic

2004-12-29 Thread Curt Zirzow
* Thus wrote Labunski: Sorry for posting this here, but this is only newsgroup I'm using, and I can't solve simple HTML problem. yeah, it's funny, but still.. ;) there are reason's why there are other groups to join. Curt -- Quoth the Raven, Nevermore. -- PHP General Mailing List

Re: [PHP]

2004-12-29 Thread Rasmus Lerdorf
Andrew Kreps wrote: On Wed, 29 Dec 2004 08:35:28 -0800, Tony Di Croce [EMAIL PROTECTED] wrote: So far, I really love PHP... It just makes web development so much more convenient... But I sometimes wonder why so much server side work is done with intrpreted scripting languages... Why haven't

Re: [PHP] Re: Align pic

2004-12-29 Thread Matthew Fonda
or just use css, set it to the background image of the body and use background-position: center center; On Wed, 2004-12-29 at 20:20, Jonathan wrote: table align=center Labunski [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sorry for posting this here, but this is only